ETH Price: $3,419.13 (+1.36%)

Token

Purrnelopes KittyVault Purrks ()
 

Overview

Max Total Supply

67,441

Holders

3,976

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
breezey.eth
0xe316cb8dbb22d55590d47ee6672eeec47a727e53
Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

Purrnelopes KittyVault Purrks contain a shard from the KittyVauly. These airdrops were all airdropped Purrnelopes Country Club Cat holders in our first 8 months of existence.

# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
Ticket

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 16 : pcc-ticket.sol
/*
                              ▓▓█
                            ▒██▒▒█ 
                           █▓▓▓░▒▓▓     
                         ▒█▓▒█░▒▒▒█     
                        ▒█▒▒▒█▒▒▒▒▓▒    
 ▓▓▒░                  ▓█▒▒▒▓██▓▒░▒█    
 █▓▓██▓░              ▓█▒▒▒▒████▒▒▒█    
 ▓█▓▒▒▓██▓░          ▒█▒▒▒▒▒██▓█▓░░▓▒   
 ▓▒▓▒▒▒▒▒▓█▓░  ░▒▒▓▓██▒▒▒▒▒▒█████▒▒▒▓   
 ▓░█▒▒▒▒▒▒▒▓▓█▓█▓▓▓▓▒▒▒▒▒▒▒▒██▓██▒░▒█   
 ▓░▓█▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓████▒▒▒█   
 ▓░▓██▒▒▒▒▒▒▒▒▒▒▒▒▒▓▓▒▒▒▒▒▒▒▒▒▓██░░░█   
 ▓░▓███▒▒▒▒▒▒▒▒▒▒▒▓█▒▒▒▒▒▒▒▒▒▒▒▒▓▓▓▒▓▓  
 ▒▒▒██▓▒▓█▓▒▒▒▒▒▒▒▓▒▒▒▒▒▒▓▓▓▒▒▒▒▒▒▒▓▒█  
  ▓▒█▓▒▒▒▒▓▒▒▒▒▒▒▒▒▒▒▒▓█▓▓▓▓█▓▒▒▒▒▒▒▒▓▒ 
  ▓▒█▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓▓      ▓█▓▒▒▒▒▒▓█ 
  ▒▒▓▒▒▒▓▓▓▒▒▒▒▒▒▒▒▒▓▓   ░▓▓   █▓▒▒▒▒▒█ 
   █▒▒▓▓▓▒▒▓▓▒▒▒▒▒▒▓▓   █████▓  █▓▒▒▒▒▓▒
   ▓▓█▒     ▒▓▒▒▒▒▒█   ░██████  ░█▒▒▒▒▓▓
   ▓█▒  ▒███ ▒▓▒▒▒▒█    ██████   ▓▒▒▒▒▒▓
   ██   █████ █▒▒▒▒█     ███▓    ▓▓▒▒▒▒▓
   █▓   █████ ▒▓▒▒▒█             █▓▓▓▒▒▓
   █▓   ░███  ░▓▒▒▒▓█          ░█▓▒▒▒▓▒▓
   ██         ▒▓▒▒▒▒▓▓      ░▒▓█▓    ░▓▓
   ▓█░        █▓██▓▒▒▓█▓▓▓▓██▓▓▒▓▒░░▒▓▒▓
   ▒██░      ▓▒███▓▒▒▒▒▓▓▓▓▒▒▒▒▒▒▓▓▓▓▒▓ 
    █▓█▓▓▒▒▓█▓▒░██▒▒▓▓█▓▒▒▒▒▒▒▒▒▒▒▒▒▓▓█▒
    ▓ ░▓▓▓▓▓▒▓▓▓▓▒▓▓▓▒▓▒▒▒▒▒▒▒▒▒▒▒▓▓▓▓▓▓
    ▒▒▒▓▒▒▒▒▒▒▓█░ ░░░ ▓▓▒▒▒▒▒▒▒▒▒▒▒▓██▓▒
     █▓▒▒▒▒▒▒▒▒▓▓ ░░░ ▓▓▒▒▒▒▒▒▒▒▒▓▓▓▒▒▓▒
      ██▓▓▒▒▒▒▒▒█▒░░░░█▒▒▒▒▒▒▒▒▓█▓▓▒▒▒▒▒
       ▒██▓▓▒▒▒▒▒█▓▒▒▓▒▒▒▒▒▒▓███▓▒▒▒▒▒▓▓
          ░▒▓▓▓▓▒▒▓▓▓▓▓▓████▓▓█▒▒▒▒▒▓▓█░
████████████████████████████████████████████████████████████████████████
█▄─▄▄─█▄─██─▄█▄─▄▄▀█▄─▄▄▀█▄─▀█▄─▄█▄─▄▄─█▄─▄███─▄▄─█▄─▄▄─█▄─▄▄─█─▄▄▄▄████
██─▄▄▄██─██─███─▄─▄██─▄─▄██─█▄▀─███─▄█▀██─██▀█─██─██─▄▄▄██─▄█▀█▄▄▄▄─████
█▄▄▄████▄▄▄▄██▄▄█▄▄█▄▄█▄▄█▄▄▄██▄▄█▄▄▄▄▄█▄▄▄▄▄█▄▄▄▄█▄▄▄███▄▄▄▄▄█▄▄▄▄▄████
████████████████████████████████████████████████████████████████████████
█─▄▄▄─█─▄▄─█▄─██─▄█▄─▀█▄─▄█─▄─▄─█▄─▄▄▀█▄─█─▄███─▄▄▄─█▄─▄███▄─██─▄█▄─▄─▀█
█─███▀█─██─██─██─███─█▄▀─████─████─▄─▄██▄─▄████─███▀██─██▀██─██─███─▄─▀█
█▄▄▄▄▄█▄▄▄▄██▄▄▄▄██▄▄▄██▄▄██▄▄▄██▄▄█▄▄██▄▄▄████▄▄▄▄▄█▄▄▄▄▄██▄▄▄▄██▄▄▄▄██*/

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";


interface Iminter {
    function mint(address recipient, uint256 quantity) external;   
}

contract Ticket is ERC1155, Ownable, ReentrancyGuard {
     using Counters for Counters.Counter;
     using SafeMath for uint256;
     string public BaseURI;
     Counters.Counter private _tokenCounter;
     
     uint256 private totalCount;
     event RedeemFractions(address indexed _address, uint256 indexed _id, uint256 _tickets);
     event RedeemNFT(address indexed _address, uint256 indexed _id, uint256 _tickets);
     event RedeemPhysical(address indexed _address, uint256 indexed _id, uint256 _tickets);

     Iminter public CurrentNFTContract;
     IERC20 public FractionsContract;
     
     mapping(uint256 => string) uriTokenHash;
     
     mapping(uint256 => uint256) public TotalRedeemed;
     
     mapping(uint256 => bool) public FractionRedeemAllowed;
     mapping(uint256 => uint256) public FractionsPerTicket;
     
     mapping(uint256 => bool) public AlternateRedeemAllowed;
     mapping(uint256 => uint256) public TicketsPerAlternate;
     
     mapping(uint256 => bool) public ERC721RedeemAllowed;
     mapping(uint256 => uint256) public TicketsPerERC721;
     
     address constant BURN_ADDRESS = 0x000000000000000000000000000000000000dEaD;
     
    constructor() ERC1155("PDRP") {

    }
    
    function setFractionsContract(address fractions) public onlyOwner{
        FractionsContract = IERC20(fractions);
    }
    
    function setNFTContract(address nftAddress) public onlyOwner{
        CurrentNFTContract = Iminter(nftAddress);
    }
    
    function addNewTicket(string memory hash) public onlyOwner {
        _tokenCounter.increment();
        uint256 tokenId = _tokenCounter.current();
        uriTokenHash[tokenId] = hash;
        
        FractionRedeemAllowed[tokenId] = false;
        AlternateRedeemAllowed[tokenId] = false;
        ERC721RedeemAllowed[tokenId] = false;
        
        FractionsPerTicket[tokenId] = 0;
        TicketsPerAlternate[tokenId] = 0;
        TicketsPerERC721[tokenId] = 0;
    }
    
    function editTokenRedemption(uint256 tokenId, bool isFractionAllowed, bool isAlternateAllowed, bool isNFTAllowed
                                , uint256 numberOfFractionsPerTicket, uint256 numberofTicketsPerAlternate, uint256 numberOfTicketsPerNFT) public onlyOwner tokenExists(tokenId){
        FractionRedeemAllowed[tokenId] = isFractionAllowed;
        AlternateRedeemAllowed[tokenId] = isAlternateAllowed;
        ERC721RedeemAllowed[tokenId] = isNFTAllowed;
        
        FractionsPerTicket[tokenId] = numberOfFractionsPerTicket;
        TicketsPerAlternate[tokenId] = numberofTicketsPerAlternate;
        TicketsPerERC721[tokenId] = numberOfTicketsPerNFT;
    }
    
    function setTokenHash(uint256 tokenId, string memory hash) public onlyOwner tokenExists(tokenId){
        uriTokenHash[tokenId] = hash;
    }
    
    function setURI(string memory newuri) public onlyOwner {
        BaseURI = newuri;
    }

    
    function uri(uint256 id) public view virtual tokenExists(id) override returns (string memory) {
        return string(abi.encodePacked(BaseURI, uriTokenHash[id]));
    }
    
    modifier tokenExists(uint256 tokenId){
        require(tokenId <= _tokenCounter.current(), "Token does not exist");
        _;
    }
    
    function mintbulk(uint256 tokenId, address[] memory addresses, uint256[] memory quantities) public onlyOwner tokenExists(tokenId) {
        require(addresses.length == quantities.length, "Address and quantities need to be equal length");
        require(TotalRedeemed[tokenId].add(quantities.length) <= 10000, "Not enough tokens remaining");
        bytes memory x;
        for(uint256 i; i < quantities.length; i++){
            _mint(addresses[i], tokenId, quantities[i], x);
            TotalRedeemed[tokenId] = TotalRedeemed[tokenId].add(quantities[i]);
            totalCount = totalCount.add(quantities[i]);
        }
        
        
    }
    
    function isApprovedForAll(address account, address operator) public view virtual override returns (bool) {
     
     return operator == address(this) || super.isApprovedForAll(account, operator);   
    }
    
    function recallTokens(uint256 tokenId, address[] memory addresses) public onlyOwner{
        
        bytes memory x;
        for(uint256 i; i < addresses.length; i++){
            _safeTransferFrom(addresses[i], msg.sender, tokenId, balanceOf(addresses[i], tokenId), x);
        }
    }
    
    function burnTokenForFractions(uint256 numberOfTickets, uint256 tokenId) public tokenExists(tokenId) nonReentrant  {
        require(FractionRedeemAllowed[tokenId], "Kitty Bank fraction redemption is not currently open for this token");
        require(this.balanceOf(msg.sender, tokenId) >= numberOfTickets && numberOfTickets != 0, "You do not have any of these tokens to redeem");
        
        uint256 fractions = numberOfTickets.mul(FractionsPerTicket[tokenId]);
        require(FractionsContract.balanceOf(address(this)) >= fractions, "Not enough fractions available to redeem");
        
        //burn the tickets
        this.safeTransferFrom(msg.sender, BURN_ADDRESS, tokenId, numberOfTickets, "0x0");
        totalCount = totalCount.sub(numberOfTickets);
        //send tokens
        FractionsContract.transfer(msg.sender, fractions);
        
        emit RedeemFractions(msg.sender, tokenId, numberOfTickets);
    }
    
    function burnTokenForAlternate(uint256 numberOfTickets, uint256 tokenId) public tokenExists(tokenId) nonReentrant {
        require(AlternateRedeemAllowed[tokenId], "Alternate redemption is not currently open for this token");
        require(this.balanceOf(msg.sender, tokenId) >= numberOfTickets && numberOfTickets != 0, "You do not have any of these tokens to redeem");
        require(numberOfTickets == TicketsPerAlternate[tokenId] && numberOfTickets != 0, "Not enough tickets to redeem");

        
        //burn the tickets
        this.safeTransferFrom(msg.sender, BURN_ADDRESS, tokenId, numberOfTickets, "0x0");
        totalCount = totalCount.sub(numberOfTickets);
        
        emit RedeemPhysical(msg.sender, tokenId, numberOfTickets);
    }
    
    function burnTokenForCompanion(uint256 numberOfTickets, uint256 tokenId) public tokenExists(tokenId) nonReentrant {
        require(ERC721RedeemAllowed[tokenId], "NFT redemption is not currently open for this token");
        require(this.balanceOf(msg.sender, tokenId) >= numberOfTickets && numberOfTickets != 0, "You do not have any of these tokens to redeem");
        require(numberOfTickets.mod(TicketsPerERC721[tokenId]) == 0 && numberOfTickets != 0, "Not enough tickets to redeem");
    
        CurrentNFTContract.mint(msg.sender, numberOfTickets.div(TicketsPerERC721[tokenId]));
    
        //burn the tickets
        this.safeTransferFrom(msg.sender, BURN_ADDRESS, tokenId, numberOfTickets, "0x0");
        totalCount = totalCount.sub(numberOfTickets);
        
        emit RedeemNFT(msg.sender, tokenId, numberOfTickets);
    }
    
	function withdrawTokens(IERC20 token) public onlyOwner {
    	require(address(token) != address(0));
    	uint256 balance = token.balanceOf(address(this));
    	token.transfer(msg.sender, balance);
	}
	
	//no-one should transfer eth... but if they do.
	function withdraw() public onlyOwner {
		uint256 balance = address(this).balance;
		payable(msg.sender).transfer(balance);
	}

    function totalSupply() public view returns(uint256) {
        return totalCount;
    }

}

File 2 of 16 : ERC1155.sol
// SPDX-License-Identifier: MIT

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 {
        require(_msgSender() != operator, "ERC1155: setting approval status for self");

        _operatorApprovals[_msgSender()][operator] = approved;
        emit ApprovalForAll(_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();

        _beforeTokenTransfer(operator, from, to, _asSingletonArray(id), _asSingletonArray(amount), 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);

        _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);

        _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 `account`.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     * - If `account` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
     * acceptance magic value.
     */
    function _mint(
        address account,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) internal virtual {
        require(account != address(0), "ERC1155: mint to the zero address");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, address(0), account, _asSingletonArray(id), _asSingletonArray(amount), data);

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

        _doSafeTransferAcceptanceCheck(operator, address(0), account, 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);

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

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

        address operator = _msgSender();

        _beforeTokenTransfer(operator, account, address(0), _asSingletonArray(id), _asSingletonArray(amount), "");

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

        emit TransferSingle(operator, account, address(0), id, amount);
    }

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

        address operator = _msgSender();

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

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

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

        emit TransferBatch(operator, account, address(0), ids, amounts);
    }

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

    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 3 of 16 : Ownable.sol
// SPDX-License-Identifier: MIT

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() {
        _setOwner(_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 {
        _setOwner(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");
        _setOwner(newOwner);
    }

    function _setOwner(address newOwner) private {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 4 of 16 : Strings.sol
// SPDX-License-Identifier: MIT

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 16 : Counters.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

File 6 of 16 : IERC721.sol
// SPDX-License-Identifier: MIT

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

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

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

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

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

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

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

File 7 of 16 : IERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `recipient`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address recipient, uint256 amount) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `sender` to `recipient` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address sender,
        address recipient,
        uint256 amount
    ) external returns (bool);

    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);
}

File 8 of 16 : SafeMath.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.

/**
 * @dev Wrappers over Solidity's arithmetic operations.
 *
 * NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler
 * now has built in overflow checking.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            uint256 c = a + b;
            if (c < a) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the substraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b > a) return (false, 0);
            return (true, a - b);
        }
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
            // benefit is lost if 'b' is also tested.
            // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
            if (a == 0) return (true, 0);
            uint256 c = a * b;
            if (c / a != b) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a / b);
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a % b);
        }
    }

    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        return a + b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return a - b;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        return a * b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator.
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return a % b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b <= a, errorMessage);
            return a - b;
        }
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a / b;
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a % b;
        }
    }
}

File 9 of 16 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

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

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

        _;

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

File 10 of 16 : IERC1155.sol
// SPDX-License-Identifier: MIT

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;
}

File 11 of 16 : IERC1155Receiver.sol
// SPDX-License-Identifier: MIT

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.
        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. 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 12 of 16 : IERC1155MetadataURI.sol
// SPDX-License-Identifier: MIT

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 13 of 16 : Address.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 14 of 16 : Context.sol
// SPDX-License-Identifier: MIT

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 15 of 16 : ERC165.sol
// SPDX-License-Identifier: MIT

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 16 of 16 : IERC165.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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":"_address","type":"address"},{"indexed":true,"internalType":"uint256","name":"_id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_tickets","type":"uint256"}],"name":"RedeemFractions","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_address","type":"address"},{"indexed":true,"internalType":"uint256","name":"_id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_tickets","type":"uint256"}],"name":"RedeemNFT","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_address","type":"address"},{"indexed":true,"internalType":"uint256","name":"_id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_tickets","type":"uint256"}],"name":"RedeemPhysical","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"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"AlternateRedeemAllowed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"BaseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"CurrentNFTContract","outputs":[{"internalType":"contract Iminter","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"ERC721RedeemAllowed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"FractionRedeemAllowed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"FractionsContract","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"FractionsPerTicket","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"TicketsPerAlternate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"TicketsPerERC721","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"TotalRedeemed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"hash","type":"string"}],"name":"addNewTicket","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":"uint256","name":"numberOfTickets","type":"uint256"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burnTokenForAlternate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"numberOfTickets","type":"uint256"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burnTokenForCompanion","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"numberOfTickets","type":"uint256"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burnTokenForFractions","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bool","name":"isFractionAllowed","type":"bool"},{"internalType":"bool","name":"isAlternateAllowed","type":"bool"},{"internalType":"bool","name":"isNFTAllowed","type":"bool"},{"internalType":"uint256","name":"numberOfFractionsPerTicket","type":"uint256"},{"internalType":"uint256","name":"numberofTicketsPerAlternate","type":"uint256"},{"internalType":"uint256","name":"numberOfTicketsPerNFT","type":"uint256"}],"name":"editTokenRedemption","outputs":[],"stateMutability":"nonpayable","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":"tokenId","type":"uint256"},{"internalType":"address[]","name":"addresses","type":"address[]"},{"internalType":"uint256[]","name":"quantities","type":"uint256[]"}],"name":"mintbulk","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"address[]","name":"addresses","type":"address[]"}],"name":"recallTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","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":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"fractions","type":"address"}],"name":"setFractionsContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"nftAddress","type":"address"}],"name":"setNFTContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"string","name":"hash","type":"string"}],"name":"setTokenHash","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":"totalSupply","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":"id","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"}],"name":"withdrawTokens","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b506040518060400160405280600481526020017f504452500000000000000000000000000000000000000000000000000000000081525062000059816200008860201b60201c565b506200007a6200006e620000a460201b60201c565b620000ac60201b60201c565b600160048190555062000287565b8060029080519060200190620000a092919062000172565b5050565b600033905090565b6000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b828054620001809062000222565b90600052602060002090601f016020900481019282620001a45760008555620001f0565b82601f10620001bf57805160ff1916838001178555620001f0565b82800160010185558215620001f0579182015b82811115620001ef578251825591602001919060010190620001d2565b5b509050620001ff919062000203565b5090565b5b808211156200021e57600081600090555060010162000204565b5090565b600060028204905060018216806200023b57607f821691505b6020821081141562000252576200025162000258565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6157dd80620002976000396000f3fe608060405234801561001057600080fd5b50600436106102105760003560e01c80634c673a3a11610125578063a7ccabdf116100ad578063e985e9c51161007c578063e985e9c51461061b578063f242432a1461064b578063f2fde38b14610667578063fc36575c14610683578063ffcc43c4146106a157610210565b8063a7ccabdf146105a9578063abbd8ee5146105c5578063cd4c3060146105e1578063db47b811146105fd57610210565b8063715018a6116100f4578063715018a6146105195780638da5cb5b1461052357806392034a8f14610541578063974b1a301461055d578063a22cb4651461058d57610210565b80634c673a3a1461046d5780634e1273f41461048957806352e06b7e146104b95780636c09e32a146104e957610210565b806323581657116101a85780633ccfd60b116101775780633ccfd60b146103df57806342093d10146103e95780634403ef531461040557806345feb4b41461042157806349df728c1461045157610210565b806323581657146103335780632426fe71146103635780632eb2c2d6146103935780633be00a3d146103af57610210565b80630e89341c116101e45780630e89341c146102ad57806318160ddd146102dd5780631b80b314146102fb5780631bcac6c11461031757610210565b8062fdd58e1461021557806301ffc9a714610245578063027db6611461027557806302fe530514610291575b600080fd5b61022f600480360381019061022a9190613b8f565b6106bf565b60405161023c91906149fa565b60405180910390f35b61025f600480360381019061025a9190613c74565b610788565b60405161026c91906146a7565b60405180910390f35b61028f600480360381019061028a9190613d9e565b61086a565b005b6102ab60048036038101906102a69190613cfb565b610957565b005b6102c760048036038101906102c29190613d44565b6109ed565b6040516102d491906146f8565b60405180910390f35b6102e5610a79565b6040516102f291906149fa565b60405180910390f35b61031560048036038101906103109190613dfa565b610a83565b005b610331600480360381019061032c9190613e85565b610cf0565b005b61034d60048036038101906103489190613d44565b610e8c565b60405161035a91906149fa565b60405180910390f35b61037d60048036038101906103789190613d44565b610ea4565b60405161038a91906149fa565b60405180910390f35b6103ad60048036038101906103a891906139e9565b610ebc565b005b6103c960048036038101906103c49190613d44565b610f5d565b6040516103d691906146a7565b60405180910390f35b6103e7610f7d565b005b61040360048036038101906103fe9190613f83565b611048565b005b61041f600480360381019061041a9190613f83565b6114ce565b005b61043b60048036038101906104369190613d44565b6117ee565b60405161044891906146a7565b60405180910390f35b61046b60048036038101906104669190613cce565b61180e565b005b61048760048036038101906104829190613cfb565b6119e3565b005b6104a3600480360381019061049e9190613bcf565b611b72565b6040516104b0919061464e565b60405180910390f35b6104d360048036038101906104ce9190613d44565b611c8b565b6040516104e091906146a7565b60405180910390f35b61050360048036038101906104fe9190613d44565b611cab565b60405161051091906149fa565b60405180910390f35b610521611cc3565b005b61052b611d4b565b60405161053891906144f0565b60405180910390f35b61055b60048036038101906105569190613f83565b611d75565b005b61057760048036038101906105729190613d44565b61215c565b60405161058491906149fa565b60405180910390f35b6105a760048036038101906105a29190613b4f565b612174565b005b6105c360048036038101906105be919061397c565b6122f5565b005b6105df60048036038101906105da9190613f27565b6123b5565b005b6105fb60048036038101906105f6919061397c565b6124ab565b005b61060561256b565b60405161061291906146c2565b60405180910390f35b610635600480360381019061063091906139a9565b612591565b60405161064291906146a7565b60405180910390f35b61066560048036038101906106609190613ab8565b6125db565b005b610681600480360381019061067c919061397c565b61267c565b005b61068b612774565b60405161069891906146dd565b60405180910390f35b6106a961279a565b6040516106b691906146f8565b60405180910390f35b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610730576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107279061475a565b60405180910390fd5b60008083815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b60007fd9b67a26000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061085357507f0e89341c000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610863575061086282612828565b5b9050919050565b610872612892565b73ffffffffffffffffffffffffffffffffffffffff16610890611d4b565b73ffffffffffffffffffffffffffffffffffffffff16146108e6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108dd906148da565b60405180910390fd5b606060005b82518110156109515761093e83828151811061090a57610909614f3d565b5b6020026020010151338661093887868151811061092a57610929614f3d565b5b6020026020010151896106bf565b8661289a565b808061094990614e36565b9150506108eb565b50505050565b61095f612892565b73ffffffffffffffffffffffffffffffffffffffff1661097d611d4b565b73ffffffffffffffffffffffffffffffffffffffff16146109d3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109ca906148da565b60405180910390fd5b80600590805190602001906109e9929190613615565b5050565b6060816109fa6006612b1c565b811115610a3c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a339061483a565b60405180910390fd5b6005600a6000858152602001908152602001600020604051602001610a629291906144cc565b604051602081830303815290604052915050919050565b6000600754905090565b610a8b612892565b73ffffffffffffffffffffffffffffffffffffffff16610aa9611d4b565b73ffffffffffffffffffffffffffffffffffffffff1614610aff576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610af6906148da565b60405180910390fd5b82610b0a6006612b1c565b811115610b4c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b439061483a565b60405180910390fd5b8151835114610b90576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b87906147da565b60405180910390fd5b612710610bba8351600b600088815260200190815260200160002054612b2a90919063ffffffff16565b1115610bfb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bf2906149ba565b60405180910390fd5b606060005b8351811015610ce857610c49858281518110610c1f57610c1e614f3d565b5b602002602001015187868481518110610c3b57610c3a614f3d565b5b602002602001015185612b40565b610c89848281518110610c5f57610c5e614f3d565b5b6020026020010151600b600089815260200190815260200160002054612b2a90919063ffffffff16565b600b600088815260200190815260200160002081905550610ccf848281518110610cb657610cb5614f3d565b5b6020026020010151600754612b2a90919063ffffffff16565b6007819055508080610ce090614e36565b915050610c00565b505050505050565b610cf8612892565b73ffffffffffffffffffffffffffffffffffffffff16610d16611d4b565b73ffffffffffffffffffffffffffffffffffffffff1614610d6c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d63906148da565b60405180910390fd5b86610d776006612b1c565b811115610db9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610db09061483a565b60405180910390fd5b86600c60008a815260200190815260200160002060006101000a81548160ff02191690831515021790555085600e60008a815260200190815260200160002060006101000a81548160ff02191690831515021790555084601060008a815260200190815260200160002060006101000a81548160ff02191690831515021790555083600d60008a81526020019081526020016000208190555082600f60008a81526020019081526020016000208190555081601160008a8152602001908152602001600020819055505050505050505050565b600b6020528060005260406000206000915090505481565b60116020528060005260406000206000915090505481565b610ec4612892565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161480610f0a5750610f0985610f04612892565b612591565b5b610f49576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f409061489a565b60405180910390fd5b610f568585858585612cd6565b5050505050565b600c6020528060005260406000206000915054906101000a900460ff1681565b610f85612892565b73ffffffffffffffffffffffffffffffffffffffff16610fa3611d4b565b73ffffffffffffffffffffffffffffffffffffffff1614610ff9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ff0906148da565b60405180910390fd5b60004790503373ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050158015611044573d6000803e3d6000fd5b5050565b806110536006612b1c565b811115611095576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161108c9061483a565b60405180910390fd5b600260045414156110db576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110d29061499a565b60405180910390fd5b6002600481905550600c600083815260200190815260200160002060009054906101000a900460ff16611143576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161113a906149da565b60405180910390fd5b823073ffffffffffffffffffffffffffffffffffffffff1662fdd58e33856040518363ffffffff1660e01b815260040161117e929190614625565b60206040518083038186803b15801561119657600080fd5b505afa1580156111aa573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111ce9190613d71565b101580156111dd575060008314155b61121c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611213906148fa565b60405180910390fd5b6000611244600d60008581526020019081526020016000205485612fea90919063ffffffff16565b905080600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016112a291906144f0565b60206040518083038186803b1580156112ba57600080fd5b505afa1580156112ce573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112f29190613d71565b1015611333576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161132a9061485a565b60405180910390fd5b3073ffffffffffffffffffffffffffffffffffffffff1663f242432a3361dead86886040518563ffffffff1660e01b815260040161137494939291906145cd565b600060405180830381600087803b15801561138e57600080fd5b505af11580156113a2573d6000803e3d6000fd5b505050506113bb8460075461300090919063ffffffff16565b600781905550600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb33836040518363ffffffff1660e01b815260040161141e929190614625565b602060405180830381600087803b15801561143857600080fd5b505af115801561144c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114709190613c47565b50823373ffffffffffffffffffffffffffffffffffffffff167f7eb6cdc452acd55070e05ad1affe5ca0dc4d998bff7ebe9e85ccb53b2938085e866040516114b891906149fa565b60405180910390a3506001600481905550505050565b806114d96006612b1c565b81111561151b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115129061483a565b60405180910390fd5b60026004541415611561576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115589061499a565b60405180910390fd5b6002600481905550600e600083815260200190815260200160002060009054906101000a900460ff166115c9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115c09061479a565b60405180910390fd5b823073ffffffffffffffffffffffffffffffffffffffff1662fdd58e33856040518363ffffffff1660e01b8152600401611604929190614625565b60206040518083038186803b15801561161c57600080fd5b505afa158015611630573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116549190613d71565b10158015611663575060008314155b6116a2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611699906148fa565b60405180910390fd5b600f600083815260200190815260200160002054831480156116c5575060008314155b611704576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116fb906147fa565b60405180910390fd5b3073ffffffffffffffffffffffffffffffffffffffff1663f242432a3361dead85876040518563ffffffff1660e01b815260040161174594939291906145cd565b600060405180830381600087803b15801561175f57600080fd5b505af1158015611773573d6000803e3d6000fd5b5050505061178c8360075461300090919063ffffffff16565b600781905550813373ffffffffffffffffffffffffffffffffffffffff167f8401b2aee7813e6e00b7bb16cfad554f71619c12d19f8f43b18fbbe0b2b66275856040516117d991906149fa565b60405180910390a36001600481905550505050565b60106020528060005260406000206000915054906101000a900460ff1681565b611816612892565b73ffffffffffffffffffffffffffffffffffffffff16611834611d4b565b73ffffffffffffffffffffffffffffffffffffffff161461188a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611881906148da565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156118c457600080fd5b60008173ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016118ff91906144f0565b60206040518083038186803b15801561191757600080fd5b505afa15801561192b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061194f9190613d71565b90508173ffffffffffffffffffffffffffffffffffffffff1663a9059cbb33836040518363ffffffff1660e01b815260040161198c929190614625565b602060405180830381600087803b1580156119a657600080fd5b505af11580156119ba573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119de9190613c47565b505050565b6119eb612892565b73ffffffffffffffffffffffffffffffffffffffff16611a09611d4b565b73ffffffffffffffffffffffffffffffffffffffff1614611a5f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a56906148da565b60405180910390fd5b611a696006613016565b6000611a756006612b1c565b905081600a60008381526020019081526020016000209080519060200190611a9e929190613615565b506000600c600083815260200190815260200160002060006101000a81548160ff0219169083151502179055506000600e600083815260200190815260200160002060006101000a81548160ff02191690831515021790555060006010600083815260200190815260200160002060006101000a81548160ff0219169083151502179055506000600d6000838152602001908152602001600020819055506000600f600083815260200190815260200160002081905550600060116000838152602001908152602001600020819055505050565b60608151835114611bb8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611baf9061493a565b60405180910390fd5b6000835167ffffffffffffffff811115611bd557611bd4614f6c565b5b604051908082528060200260200182016040528015611c035781602001602082028036833780820191505090505b50905060005b8451811015611c8057611c50858281518110611c2857611c27614f3d565b5b6020026020010151858381518110611c4357611c42614f3d565b5b60200260200101516106bf565b828281518110611c6357611c62614f3d565b5b60200260200101818152505080611c7990614e36565b9050611c09565b508091505092915050565b600e6020528060005260406000206000915054906101000a900460ff1681565b600f6020528060005260406000206000915090505481565b611ccb612892565b73ffffffffffffffffffffffffffffffffffffffff16611ce9611d4b565b73ffffffffffffffffffffffffffffffffffffffff1614611d3f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d36906148da565b60405180910390fd5b611d49600061302c565b565b6000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b80611d806006612b1c565b811115611dc2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611db99061483a565b60405180910390fd5b60026004541415611e08576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611dff9061499a565b60405180910390fd5b60026004819055506010600083815260200190815260200160002060009054906101000a900460ff16611e70576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e679061481a565b60405180910390fd5b823073ffffffffffffffffffffffffffffffffffffffff1662fdd58e33856040518363ffffffff1660e01b8152600401611eab929190614625565b60206040518083038186803b158015611ec357600080fd5b505afa158015611ed7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611efb9190613d71565b10158015611f0a575060008314155b611f49576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f40906148fa565b60405180910390fd5b6000611f716011600085815260200190815260200160002054856130f290919063ffffffff16565b148015611f7f575060008314155b611fbe576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fb5906147fa565b60405180910390fd5b600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166340c10f193361202360116000878152602001908152602001600020548761310890919063ffffffff16565b6040518363ffffffff1660e01b8152600401612040929190614625565b600060405180830381600087803b15801561205a57600080fd5b505af115801561206e573d6000803e3d6000fd5b505050503073ffffffffffffffffffffffffffffffffffffffff1663f242432a3361dead85876040518563ffffffff1660e01b81526004016120b394939291906145cd565b600060405180830381600087803b1580156120cd57600080fd5b505af11580156120e1573d6000803e3d6000fd5b505050506120fa8360075461300090919063ffffffff16565b600781905550813373ffffffffffffffffffffffffffffffffffffffff167f544a58802162511b48f39dc30b8d8042334c9da794208c894d57590f328cedbb8560405161214791906149fa565b60405180910390a36001600481905550505050565b600d6020528060005260406000206000915090505481565b8173ffffffffffffffffffffffffffffffffffffffff16612193612892565b73ffffffffffffffffffffffffffffffffffffffff1614156121ea576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121e19061491a565b60405180910390fd5b80600160006121f7612892565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff166122a4612892565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516122e991906146a7565b60405180910390a35050565b6122fd612892565b73ffffffffffffffffffffffffffffffffffffffff1661231b611d4b565b73ffffffffffffffffffffffffffffffffffffffff1614612371576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612368906148da565b60405180910390fd5b80600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6123bd612892565b73ffffffffffffffffffffffffffffffffffffffff166123db611d4b565b73ffffffffffffffffffffffffffffffffffffffff1614612431576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612428906148da565b60405180910390fd5b8161243c6006612b1c565b81111561247e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124759061483a565b60405180910390fd5b81600a600085815260200190815260200160002090805190602001906124a5929190613615565b50505050565b6124b3612892565b73ffffffffffffffffffffffffffffffffffffffff166124d1611d4b565b73ffffffffffffffffffffffffffffffffffffffff1614612527576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161251e906148da565b60405180910390fd5b80600960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60003073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614806125d357506125d2838361311e565b5b905092915050565b6125e3612892565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161480612629575061262885612623612892565b612591565b5b612668576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161265f906147ba565b60405180910390fd5b612675858585858561289a565b5050505050565b612684612892565b73ffffffffffffffffffffffffffffffffffffffff166126a2611d4b565b73ffffffffffffffffffffffffffffffffffffffff16146126f8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126ef906148da565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415612768576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161275f9061477a565b60405180910390fd5b6127718161302c565b50565b600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600580546127a790614dd3565b80601f01602080910402602001604051908101604052809291908181526020018280546127d390614dd3565b80156128205780601f106127f557610100808354040283529160200191612820565b820191906000526020600020905b81548152906001019060200180831161280357829003601f168201915b505050505081565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600033905090565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16141561290a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129019061487a565b60405180910390fd5b6000612914612892565b9050612934818787612925886131b2565b61292e886131b2565b8761322c565b600080600086815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050838110156129cb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129c2906148ba565b60405180910390fd5b83810360008087815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508360008087815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612a809190614bae565b925050819055508573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628888604051612afd929190614a15565b60405180910390a4612b13828888888888613234565b50505050505050565b600081600001549050919050565b60008183612b389190614bae565b905092915050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415612bb0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ba79061497a565b60405180910390fd5b6000612bba612892565b9050612bdb81600087612bcc886131b2565b612bd5886131b2565b8761322c565b8260008086815260200190815260200160002060008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612c3a9190614bae565b925050819055508473ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628787604051612cb8929190614a15565b60405180910390a4612ccf81600087878787613234565b5050505050565b8151835114612d1a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d119061495a565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415612d8a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d819061487a565b60405180910390fd5b6000612d94612892565b9050612da481878787878761322c565b60005b8451811015612f55576000858281518110612dc557612dc4614f3d565b5b602002602001015190506000858381518110612de457612de3614f3d565b5b60200260200101519050600080600084815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015612e85576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e7c906148ba565b60405180910390fd5b81810360008085815260200190815260200160002060008c73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508160008085815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612f3a9190614bae565b9250508190555050505080612f4e90614e36565b9050612da7565b508473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051612fcc929190614670565b60405180910390a4612fe281878787878761341b565b505050505050565b60008183612ff89190614c35565b905092915050565b6000818361300e9190614c8f565b905092915050565b6001816000016000828254019250508190555050565b6000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600081836131009190614e7f565b905092915050565b600081836131169190614c04565b905092915050565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b60606000600167ffffffffffffffff8111156131d1576131d0614f6c565b5b6040519080825280602002602001820160405280156131ff5781602001602082028036833780820191505090505b509050828160008151811061321757613216614f3d565b5b60200260200101818152505080915050919050565b505050505050565b6132538473ffffffffffffffffffffffffffffffffffffffff16613602565b15613413578373ffffffffffffffffffffffffffffffffffffffff1663f23a6e6187878686866040518663ffffffff1660e01b8152600401613299959493929190614573565b602060405180830381600087803b1580156132b357600080fd5b505af19250505080156132e457506040513d601f19601f820116820180604052508101906132e19190613ca1565b60015b61338a576132f0614f9b565b806308c379a0141561334d575061330561569e565b80613310575061334f565b806040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161334491906146f8565b60405180910390fd5b505b6040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016133819061471a565b60405180910390fd5b63f23a6e6160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614613411576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016134089061473a565b60405180910390fd5b505b505050505050565b61343a8473ffffffffffffffffffffffffffffffffffffffff16613602565b156135fa578373ffffffffffffffffffffffffffffffffffffffff1663bc197c8187878686866040518663ffffffff1660e01b815260040161348095949392919061450b565b602060405180830381600087803b15801561349a57600080fd5b505af19250505080156134cb57506040513d601f19601f820116820180604052508101906134c89190613ca1565b60015b613571576134d7614f9b565b806308c379a0141561353457506134ec61569e565b806134f75750613536565b806040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161352b91906146f8565b60405180910390fd5b505b6040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016135689061471a565b60405180910390fd5b63bc197c8160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916146135f8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016135ef9061473a565b60405180910390fd5b505b505050505050565b600080823b905060008111915050919050565b82805461362190614dd3565b90600052602060002090601f016020900481019282613643576000855561368a565b82601f1061365c57805160ff191683800117855561368a565b8280016001018555821561368a579182015b8281111561368957825182559160200191906001019061366e565b5b509050613697919061369b565b5090565b5b808211156136b457600081600090555060010161369c565b5090565b60006136cb6136c684614a63565b614a3e565b905080838252602082019050828560208602820111156136ee576136ed614fc2565b5b60005b8581101561371e5781613704888261381c565b8452602084019350602083019250506001810190506136f1565b5050509392505050565b600061373b61373684614a8f565b614a3e565b9050808382526020820190508285602086028201111561375e5761375d614fc2565b5b60005b8581101561378e57816137748882613952565b845260208401935060208301925050600181019050613761565b5050509392505050565b60006137ab6137a684614abb565b614a3e565b9050828152602081018484840111156137c7576137c6614fc7565b5b6137d2848285614d91565b509392505050565b60006137ed6137e884614aec565b614a3e565b90508281526020810184848401111561380957613808614fc7565b5b613814848285614d91565b509392505050565b60008135905061382b81615734565b92915050565b600082601f83011261384657613845614fbd565b5b81356138568482602086016136b8565b91505092915050565b600082601f83011261387457613873614fbd565b5b8135613884848260208601613728565b91505092915050565b60008135905061389c8161574b565b92915050565b6000815190506138b18161574b565b92915050565b6000813590506138c681615762565b92915050565b6000815190506138db81615762565b92915050565b600082601f8301126138f6576138f5614fbd565b5b8135613906848260208601613798565b91505092915050565b60008135905061391e81615779565b92915050565b600082601f83011261393957613938614fbd565b5b81356139498482602086016137da565b91505092915050565b60008135905061396181615790565b92915050565b60008151905061397681615790565b92915050565b60006020828403121561399257613991614fd1565b5b60006139a08482850161381c565b91505092915050565b600080604083850312156139c0576139bf614fd1565b5b60006139ce8582860161381c565b92505060206139df8582860161381c565b9150509250929050565b600080600080600060a08688031215613a0557613a04614fd1565b5b6000613a138882890161381c565b9550506020613a248882890161381c565b945050604086013567ffffffffffffffff811115613a4557613a44614fcc565b5b613a518882890161385f565b935050606086013567ffffffffffffffff811115613a7257613a71614fcc565b5b613a7e8882890161385f565b925050608086013567ffffffffffffffff811115613a9f57613a9e614fcc565b5b613aab888289016138e1565b9150509295509295909350565b600080600080600060a08688031215613ad457613ad3614fd1565b5b6000613ae28882890161381c565b9550506020613af38882890161381c565b9450506040613b0488828901613952565b9350506060613b1588828901613952565b925050608086013567ffffffffffffffff811115613b3657613b35614fcc565b5b613b42888289016138e1565b9150509295509295909350565b60008060408385031215613b6657613b65614fd1565b5b6000613b748582860161381c565b9250506020613b858582860161388d565b9150509250929050565b60008060408385031215613ba657613ba5614fd1565b5b6000613bb48582860161381c565b9250506020613bc585828601613952565b9150509250929050565b60008060408385031215613be657613be5614fd1565b5b600083013567ffffffffffffffff811115613c0457613c03614fcc565b5b613c1085828601613831565b925050602083013567ffffffffffffffff811115613c3157613c30614fcc565b5b613c3d8582860161385f565b9150509250929050565b600060208284031215613c5d57613c5c614fd1565b5b6000613c6b848285016138a2565b91505092915050565b600060208284031215613c8a57613c89614fd1565b5b6000613c98848285016138b7565b91505092915050565b600060208284031215613cb757613cb6614fd1565b5b6000613cc5848285016138cc565b91505092915050565b600060208284031215613ce457613ce3614fd1565b5b6000613cf28482850161390f565b91505092915050565b600060208284031215613d1157613d10614fd1565b5b600082013567ffffffffffffffff811115613d2f57613d2e614fcc565b5b613d3b84828501613924565b91505092915050565b600060208284031215613d5a57613d59614fd1565b5b6000613d6884828501613952565b91505092915050565b600060208284031215613d8757613d86614fd1565b5b6000613d9584828501613967565b91505092915050565b60008060408385031215613db557613db4614fd1565b5b6000613dc385828601613952565b925050602083013567ffffffffffffffff811115613de457613de3614fcc565b5b613df085828601613831565b9150509250929050565b600080600060608486031215613e1357613e12614fd1565b5b6000613e2186828701613952565b935050602084013567ffffffffffffffff811115613e4257613e41614fcc565b5b613e4e86828701613831565b925050604084013567ffffffffffffffff811115613e6f57613e6e614fcc565b5b613e7b8682870161385f565b9150509250925092565b600080600080600080600060e0888a031215613ea457613ea3614fd1565b5b6000613eb28a828b01613952565b9750506020613ec38a828b0161388d565b9650506040613ed48a828b0161388d565b9550506060613ee58a828b0161388d565b9450506080613ef68a828b01613952565b93505060a0613f078a828b01613952565b92505060c0613f188a828b01613952565b91505092959891949750929550565b60008060408385031215613f3e57613f3d614fd1565b5b6000613f4c85828601613952565b925050602083013567ffffffffffffffff811115613f6d57613f6c614fcc565b5b613f7985828601613924565b9150509250929050565b60008060408385031215613f9a57613f99614fd1565b5b6000613fa885828601613952565b9250506020613fb985828601613952565b9150509250929050565b6000613fcf83836144ae565b60208301905092915050565b613fe481614cc3565b82525050565b6000613ff582614b42565b613fff8185614b70565b935061400a83614b1d565b8060005b8381101561403b5781516140228882613fc3565b975061402d83614b63565b92505060018101905061400e565b5085935050505092915050565b61405181614cd5565b82525050565b600061406282614b4d565b61406c8185614b81565b935061407c818560208601614da0565b61408581614fd6565b840191505092915050565b61409981614d49565b82525050565b6140a881614d5b565b82525050565b60006140b982614b58565b6140c38185614b92565b93506140d3818560208601614da0565b6140dc81614fd6565b840191505092915050565b600081546140f481614dd3565b6140fe8186614ba3565b94506001821660008114614119576001811461412a5761415d565b60ff1983168652818601935061415d565b61413385614b2d565b60005b8381101561415557815481890152600182019150602081019050614136565b838801955050505b50505092915050565b6000614173603483614b92565b915061417e82614ff4565b604082019050919050565b6000614196602883614b92565b91506141a182615043565b604082019050919050565b60006141b9602b83614b92565b91506141c482615092565b604082019050919050565b60006141dc602683614b92565b91506141e7826150e1565b604082019050919050565b60006141ff603983614b92565b915061420a82615130565b604082019050919050565b6000614222602983614b92565b915061422d8261517f565b604082019050919050565b6000614245602e83614b92565b9150614250826151ce565b604082019050919050565b6000614268601c83614b92565b91506142738261521d565b602082019050919050565b600061428b603383614b92565b915061429682615246565b604082019050919050565b60006142ae601483614b92565b91506142b982615295565b602082019050919050565b60006142d1602883614b92565b91506142dc826152be565b604082019050919050565b60006142f4602583614b92565b91506142ff8261530d565b604082019050919050565b6000614317603283614b92565b91506143228261535c565b604082019050919050565b600061433a600383614b81565b9150614345826153ab565b602082019050919050565b600061435d602a83614b92565b9150614368826153d4565b604082019050919050565b6000614380602083614b92565b915061438b82615423565b602082019050919050565b60006143a3602d83614b92565b91506143ae8261544c565b604082019050919050565b60006143c6602983614b92565b91506143d18261549b565b604082019050919050565b60006143e9602983614b92565b91506143f4826154ea565b604082019050919050565b600061440c602883614b92565b915061441782615539565b604082019050919050565b600061442f602183614b92565b915061443a82615588565b604082019050919050565b6000614452601f83614b92565b915061445d826155d7565b602082019050919050565b6000614475601b83614b92565b915061448082615600565b602082019050919050565b6000614498604383614b92565b91506144a382615629565b606082019050919050565b6144b781614d3f565b82525050565b6144c681614d3f565b82525050565b60006144d882856140e7565b91506144e482846140e7565b91508190509392505050565b60006020820190506145056000830184613fdb565b92915050565b600060a0820190506145206000830188613fdb565b61452d6020830187613fdb565b818103604083015261453f8186613fea565b905081810360608301526145538185613fea565b905081810360808301526145678184614057565b90509695505050505050565b600060a0820190506145886000830188613fdb565b6145956020830187613fdb565b6145a260408301866144bd565b6145af60608301856144bd565b81810360808301526145c18184614057565b90509695505050505050565b600060a0820190506145e26000830187613fdb565b6145ef6020830186613fdb565b6145fc60408301856144bd565b61460960608301846144bd565b818103608083015261461a8161432d565b905095945050505050565b600060408201905061463a6000830185613fdb565b61464760208301846144bd565b9392505050565b600060208201905081810360008301526146688184613fea565b905092915050565b6000604082019050818103600083015261468a8185613fea565b9050818103602083015261469e8184613fea565b90509392505050565b60006020820190506146bc6000830184614048565b92915050565b60006020820190506146d76000830184614090565b92915050565b60006020820190506146f2600083018461409f565b92915050565b6000602082019050818103600083015261471281846140ae565b905092915050565b6000602082019050818103600083015261473381614166565b9050919050565b6000602082019050818103600083015261475381614189565b9050919050565b60006020820190508181036000830152614773816141ac565b9050919050565b60006020820190508181036000830152614793816141cf565b9050919050565b600060208201905081810360008301526147b3816141f2565b9050919050565b600060208201905081810360008301526147d381614215565b9050919050565b600060208201905081810360008301526147f381614238565b9050919050565b600060208201905081810360008301526148138161425b565b9050919050565b600060208201905081810360008301526148338161427e565b9050919050565b60006020820190508181036000830152614853816142a1565b9050919050565b60006020820190508181036000830152614873816142c4565b9050919050565b60006020820190508181036000830152614893816142e7565b9050919050565b600060208201905081810360008301526148b38161430a565b9050919050565b600060208201905081810360008301526148d381614350565b9050919050565b600060208201905081810360008301526148f381614373565b9050919050565b6000602082019050818103600083015261491381614396565b9050919050565b60006020820190508181036000830152614933816143b9565b9050919050565b60006020820190508181036000830152614953816143dc565b9050919050565b60006020820190508181036000830152614973816143ff565b9050919050565b6000602082019050818103600083015261499381614422565b9050919050565b600060208201905081810360008301526149b381614445565b9050919050565b600060208201905081810360008301526149d381614468565b9050919050565b600060208201905081810360008301526149f38161448b565b9050919050565b6000602082019050614a0f60008301846144bd565b92915050565b6000604082019050614a2a60008301856144bd565b614a3760208301846144bd565b9392505050565b6000614a48614a59565b9050614a548282614e05565b919050565b6000604051905090565b600067ffffffffffffffff821115614a7e57614a7d614f6c565b5b602082029050602081019050919050565b600067ffffffffffffffff821115614aaa57614aa9614f6c565b5b602082029050602081019050919050565b600067ffffffffffffffff821115614ad657614ad5614f6c565b5b614adf82614fd6565b9050602081019050919050565b600067ffffffffffffffff821115614b0757614b06614f6c565b5b614b1082614fd6565b9050602081019050919050565b6000819050602082019050919050565b60008190508160005260206000209050919050565b600081519050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b6000614bb982614d3f565b9150614bc483614d3f565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115614bf957614bf8614eb0565b5b828201905092915050565b6000614c0f82614d3f565b9150614c1a83614d3f565b925082614c2a57614c29614edf565b5b828204905092915050565b6000614c4082614d3f565b9150614c4b83614d3f565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615614c8457614c83614eb0565b5b828202905092915050565b6000614c9a82614d3f565b9150614ca583614d3f565b925082821015614cb857614cb7614eb0565b5b828203905092915050565b6000614cce82614d1f565b9050919050565b60008115159050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6000614d1882614cc3565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b6000614d5482614d6d565b9050919050565b6000614d6682614d6d565b9050919050565b6000614d7882614d7f565b9050919050565b6000614d8a82614d1f565b9050919050565b82818337600083830152505050565b60005b83811015614dbe578082015181840152602081019050614da3565b83811115614dcd576000848401525b50505050565b60006002820490506001821680614deb57607f821691505b60208210811415614dff57614dfe614f0e565b5b50919050565b614e0e82614fd6565b810181811067ffffffffffffffff82111715614e2d57614e2c614f6c565b5b80604052505050565b6000614e4182614d3f565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415614e7457614e73614eb0565b5b600182019050919050565b6000614e8a82614d3f565b9150614e9583614d3f565b925082614ea557614ea4614edf565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600060033d1115614fba5760046000803e614fb7600051614fe7565b90505b90565b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b60008160e01c9050919050565b7f455243313135353a207472616e7366657220746f206e6f6e204552433131353560008201527f526563656976657220696d706c656d656e746572000000000000000000000000602082015250565b7f455243313135353a204552433131353552656365697665722072656a6563746560008201527f6420746f6b656e73000000000000000000000000000000000000000000000000602082015250565b7f455243313135353a2062616c616e636520717565727920666f7220746865207a60008201527f65726f2061646472657373000000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f416c7465726e61746520726564656d7074696f6e206973206e6f74206375727260008201527f656e746c79206f70656e20666f72207468697320746f6b656e00000000000000602082015250565b7f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260008201527f20617070726f7665640000000000000000000000000000000000000000000000602082015250565b7f4164647265737320616e64207175616e746974696573206e65656420746f206260008201527f6520657175616c206c656e677468000000000000000000000000000000000000602082015250565b7f4e6f7420656e6f756768207469636b65747320746f2072656465656d00000000600082015250565b7f4e465420726564656d7074696f6e206973206e6f742063757272656e746c792060008201527f6f70656e20666f72207468697320746f6b656e00000000000000000000000000602082015250565b7f546f6b656e20646f6573206e6f74206578697374000000000000000000000000600082015250565b7f4e6f7420656e6f756768206672616374696f6e7320617661696c61626c65207460008201527f6f2072656465656d000000000000000000000000000000000000000000000000602082015250565b7f455243313135353a207472616e7366657220746f20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b7f455243313135353a207472616e736665722063616c6c6572206973206e6f742060008201527f6f776e6572206e6f7220617070726f7665640000000000000000000000000000602082015250565b7f3078300000000000000000000000000000000000000000000000000000000000600082015250565b7f455243313135353a20696e73756666696369656e742062616c616e636520666f60008201527f72207472616e7366657200000000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f596f7520646f206e6f74206861766520616e79206f6620746865736520746f6b60008201527f656e7320746f2072656465656d00000000000000000000000000000000000000602082015250565b7f455243313135353a2073657474696e6720617070726f76616c2073746174757360008201527f20666f722073656c660000000000000000000000000000000000000000000000602082015250565b7f455243313135353a206163636f756e747320616e6420696473206c656e67746860008201527f206d69736d617463680000000000000000000000000000000000000000000000602082015250565b7f455243313135353a2069647320616e6420616d6f756e7473206c656e6774682060008201527f6d69736d61746368000000000000000000000000000000000000000000000000602082015250565b7f455243313135353a206d696e7420746f20746865207a65726f2061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b7f4e6f7420656e6f75676820746f6b656e732072656d61696e696e670000000000600082015250565b7f4b697474792042616e6b206672616374696f6e20726564656d7074696f6e206960008201527f73206e6f742063757272656e746c79206f70656e20666f72207468697320746f60208201527f6b656e0000000000000000000000000000000000000000000000000000000000604082015250565b600060443d10156156ae57615731565b6156b6614a59565b60043d036004823e80513d602482011167ffffffffffffffff821117156156de575050615731565b808201805167ffffffffffffffff8111156156fc5750505050615731565b80602083010160043d038501811115615719575050505050615731565b61572882602001850186614e05565b82955050505050505b90565b61573d81614cc3565b811461574857600080fd5b50565b61575481614cd5565b811461575f57600080fd5b50565b61576b81614ce1565b811461577657600080fd5b50565b61578281614d0d565b811461578d57600080fd5b50565b61579981614d3f565b81146157a457600080fd5b5056fea264697066735822122029ef9d92dc1b0e4b83d45c903d1d78f7c48f9e675a2cafa25eba631fb89650e164736f6c63430008070033

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106102105760003560e01c80634c673a3a11610125578063a7ccabdf116100ad578063e985e9c51161007c578063e985e9c51461061b578063f242432a1461064b578063f2fde38b14610667578063fc36575c14610683578063ffcc43c4146106a157610210565b8063a7ccabdf146105a9578063abbd8ee5146105c5578063cd4c3060146105e1578063db47b811146105fd57610210565b8063715018a6116100f4578063715018a6146105195780638da5cb5b1461052357806392034a8f14610541578063974b1a301461055d578063a22cb4651461058d57610210565b80634c673a3a1461046d5780634e1273f41461048957806352e06b7e146104b95780636c09e32a146104e957610210565b806323581657116101a85780633ccfd60b116101775780633ccfd60b146103df57806342093d10146103e95780634403ef531461040557806345feb4b41461042157806349df728c1461045157610210565b806323581657146103335780632426fe71146103635780632eb2c2d6146103935780633be00a3d146103af57610210565b80630e89341c116101e45780630e89341c146102ad57806318160ddd146102dd5780631b80b314146102fb5780631bcac6c11461031757610210565b8062fdd58e1461021557806301ffc9a714610245578063027db6611461027557806302fe530514610291575b600080fd5b61022f600480360381019061022a9190613b8f565b6106bf565b60405161023c91906149fa565b60405180910390f35b61025f600480360381019061025a9190613c74565b610788565b60405161026c91906146a7565b60405180910390f35b61028f600480360381019061028a9190613d9e565b61086a565b005b6102ab60048036038101906102a69190613cfb565b610957565b005b6102c760048036038101906102c29190613d44565b6109ed565b6040516102d491906146f8565b60405180910390f35b6102e5610a79565b6040516102f291906149fa565b60405180910390f35b61031560048036038101906103109190613dfa565b610a83565b005b610331600480360381019061032c9190613e85565b610cf0565b005b61034d60048036038101906103489190613d44565b610e8c565b60405161035a91906149fa565b60405180910390f35b61037d60048036038101906103789190613d44565b610ea4565b60405161038a91906149fa565b60405180910390f35b6103ad60048036038101906103a891906139e9565b610ebc565b005b6103c960048036038101906103c49190613d44565b610f5d565b6040516103d691906146a7565b60405180910390f35b6103e7610f7d565b005b61040360048036038101906103fe9190613f83565b611048565b005b61041f600480360381019061041a9190613f83565b6114ce565b005b61043b60048036038101906104369190613d44565b6117ee565b60405161044891906146a7565b60405180910390f35b61046b60048036038101906104669190613cce565b61180e565b005b61048760048036038101906104829190613cfb565b6119e3565b005b6104a3600480360381019061049e9190613bcf565b611b72565b6040516104b0919061464e565b60405180910390f35b6104d360048036038101906104ce9190613d44565b611c8b565b6040516104e091906146a7565b60405180910390f35b61050360048036038101906104fe9190613d44565b611cab565b60405161051091906149fa565b60405180910390f35b610521611cc3565b005b61052b611d4b565b60405161053891906144f0565b60405180910390f35b61055b60048036038101906105569190613f83565b611d75565b005b61057760048036038101906105729190613d44565b61215c565b60405161058491906149fa565b60405180910390f35b6105a760048036038101906105a29190613b4f565b612174565b005b6105c360048036038101906105be919061397c565b6122f5565b005b6105df60048036038101906105da9190613f27565b6123b5565b005b6105fb60048036038101906105f6919061397c565b6124ab565b005b61060561256b565b60405161061291906146c2565b60405180910390f35b610635600480360381019061063091906139a9565b612591565b60405161064291906146a7565b60405180910390f35b61066560048036038101906106609190613ab8565b6125db565b005b610681600480360381019061067c919061397c565b61267c565b005b61068b612774565b60405161069891906146dd565b60405180910390f35b6106a961279a565b6040516106b691906146f8565b60405180910390f35b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610730576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107279061475a565b60405180910390fd5b60008083815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b60007fd9b67a26000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061085357507f0e89341c000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610863575061086282612828565b5b9050919050565b610872612892565b73ffffffffffffffffffffffffffffffffffffffff16610890611d4b565b73ffffffffffffffffffffffffffffffffffffffff16146108e6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108dd906148da565b60405180910390fd5b606060005b82518110156109515761093e83828151811061090a57610909614f3d565b5b6020026020010151338661093887868151811061092a57610929614f3d565b5b6020026020010151896106bf565b8661289a565b808061094990614e36565b9150506108eb565b50505050565b61095f612892565b73ffffffffffffffffffffffffffffffffffffffff1661097d611d4b565b73ffffffffffffffffffffffffffffffffffffffff16146109d3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109ca906148da565b60405180910390fd5b80600590805190602001906109e9929190613615565b5050565b6060816109fa6006612b1c565b811115610a3c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a339061483a565b60405180910390fd5b6005600a6000858152602001908152602001600020604051602001610a629291906144cc565b604051602081830303815290604052915050919050565b6000600754905090565b610a8b612892565b73ffffffffffffffffffffffffffffffffffffffff16610aa9611d4b565b73ffffffffffffffffffffffffffffffffffffffff1614610aff576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610af6906148da565b60405180910390fd5b82610b0a6006612b1c565b811115610b4c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b439061483a565b60405180910390fd5b8151835114610b90576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b87906147da565b60405180910390fd5b612710610bba8351600b600088815260200190815260200160002054612b2a90919063ffffffff16565b1115610bfb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bf2906149ba565b60405180910390fd5b606060005b8351811015610ce857610c49858281518110610c1f57610c1e614f3d565b5b602002602001015187868481518110610c3b57610c3a614f3d565b5b602002602001015185612b40565b610c89848281518110610c5f57610c5e614f3d565b5b6020026020010151600b600089815260200190815260200160002054612b2a90919063ffffffff16565b600b600088815260200190815260200160002081905550610ccf848281518110610cb657610cb5614f3d565b5b6020026020010151600754612b2a90919063ffffffff16565b6007819055508080610ce090614e36565b915050610c00565b505050505050565b610cf8612892565b73ffffffffffffffffffffffffffffffffffffffff16610d16611d4b565b73ffffffffffffffffffffffffffffffffffffffff1614610d6c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d63906148da565b60405180910390fd5b86610d776006612b1c565b811115610db9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610db09061483a565b60405180910390fd5b86600c60008a815260200190815260200160002060006101000a81548160ff02191690831515021790555085600e60008a815260200190815260200160002060006101000a81548160ff02191690831515021790555084601060008a815260200190815260200160002060006101000a81548160ff02191690831515021790555083600d60008a81526020019081526020016000208190555082600f60008a81526020019081526020016000208190555081601160008a8152602001908152602001600020819055505050505050505050565b600b6020528060005260406000206000915090505481565b60116020528060005260406000206000915090505481565b610ec4612892565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161480610f0a5750610f0985610f04612892565b612591565b5b610f49576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f409061489a565b60405180910390fd5b610f568585858585612cd6565b5050505050565b600c6020528060005260406000206000915054906101000a900460ff1681565b610f85612892565b73ffffffffffffffffffffffffffffffffffffffff16610fa3611d4b565b73ffffffffffffffffffffffffffffffffffffffff1614610ff9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ff0906148da565b60405180910390fd5b60004790503373ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050158015611044573d6000803e3d6000fd5b5050565b806110536006612b1c565b811115611095576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161108c9061483a565b60405180910390fd5b600260045414156110db576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110d29061499a565b60405180910390fd5b6002600481905550600c600083815260200190815260200160002060009054906101000a900460ff16611143576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161113a906149da565b60405180910390fd5b823073ffffffffffffffffffffffffffffffffffffffff1662fdd58e33856040518363ffffffff1660e01b815260040161117e929190614625565b60206040518083038186803b15801561119657600080fd5b505afa1580156111aa573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111ce9190613d71565b101580156111dd575060008314155b61121c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611213906148fa565b60405180910390fd5b6000611244600d60008581526020019081526020016000205485612fea90919063ffffffff16565b905080600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016112a291906144f0565b60206040518083038186803b1580156112ba57600080fd5b505afa1580156112ce573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112f29190613d71565b1015611333576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161132a9061485a565b60405180910390fd5b3073ffffffffffffffffffffffffffffffffffffffff1663f242432a3361dead86886040518563ffffffff1660e01b815260040161137494939291906145cd565b600060405180830381600087803b15801561138e57600080fd5b505af11580156113a2573d6000803e3d6000fd5b505050506113bb8460075461300090919063ffffffff16565b600781905550600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb33836040518363ffffffff1660e01b815260040161141e929190614625565b602060405180830381600087803b15801561143857600080fd5b505af115801561144c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114709190613c47565b50823373ffffffffffffffffffffffffffffffffffffffff167f7eb6cdc452acd55070e05ad1affe5ca0dc4d998bff7ebe9e85ccb53b2938085e866040516114b891906149fa565b60405180910390a3506001600481905550505050565b806114d96006612b1c565b81111561151b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115129061483a565b60405180910390fd5b60026004541415611561576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115589061499a565b60405180910390fd5b6002600481905550600e600083815260200190815260200160002060009054906101000a900460ff166115c9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115c09061479a565b60405180910390fd5b823073ffffffffffffffffffffffffffffffffffffffff1662fdd58e33856040518363ffffffff1660e01b8152600401611604929190614625565b60206040518083038186803b15801561161c57600080fd5b505afa158015611630573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116549190613d71565b10158015611663575060008314155b6116a2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611699906148fa565b60405180910390fd5b600f600083815260200190815260200160002054831480156116c5575060008314155b611704576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116fb906147fa565b60405180910390fd5b3073ffffffffffffffffffffffffffffffffffffffff1663f242432a3361dead85876040518563ffffffff1660e01b815260040161174594939291906145cd565b600060405180830381600087803b15801561175f57600080fd5b505af1158015611773573d6000803e3d6000fd5b5050505061178c8360075461300090919063ffffffff16565b600781905550813373ffffffffffffffffffffffffffffffffffffffff167f8401b2aee7813e6e00b7bb16cfad554f71619c12d19f8f43b18fbbe0b2b66275856040516117d991906149fa565b60405180910390a36001600481905550505050565b60106020528060005260406000206000915054906101000a900460ff1681565b611816612892565b73ffffffffffffffffffffffffffffffffffffffff16611834611d4b565b73ffffffffffffffffffffffffffffffffffffffff161461188a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611881906148da565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156118c457600080fd5b60008173ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016118ff91906144f0565b60206040518083038186803b15801561191757600080fd5b505afa15801561192b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061194f9190613d71565b90508173ffffffffffffffffffffffffffffffffffffffff1663a9059cbb33836040518363ffffffff1660e01b815260040161198c929190614625565b602060405180830381600087803b1580156119a657600080fd5b505af11580156119ba573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119de9190613c47565b505050565b6119eb612892565b73ffffffffffffffffffffffffffffffffffffffff16611a09611d4b565b73ffffffffffffffffffffffffffffffffffffffff1614611a5f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a56906148da565b60405180910390fd5b611a696006613016565b6000611a756006612b1c565b905081600a60008381526020019081526020016000209080519060200190611a9e929190613615565b506000600c600083815260200190815260200160002060006101000a81548160ff0219169083151502179055506000600e600083815260200190815260200160002060006101000a81548160ff02191690831515021790555060006010600083815260200190815260200160002060006101000a81548160ff0219169083151502179055506000600d6000838152602001908152602001600020819055506000600f600083815260200190815260200160002081905550600060116000838152602001908152602001600020819055505050565b60608151835114611bb8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611baf9061493a565b60405180910390fd5b6000835167ffffffffffffffff811115611bd557611bd4614f6c565b5b604051908082528060200260200182016040528015611c035781602001602082028036833780820191505090505b50905060005b8451811015611c8057611c50858281518110611c2857611c27614f3d565b5b6020026020010151858381518110611c4357611c42614f3d565b5b60200260200101516106bf565b828281518110611c6357611c62614f3d565b5b60200260200101818152505080611c7990614e36565b9050611c09565b508091505092915050565b600e6020528060005260406000206000915054906101000a900460ff1681565b600f6020528060005260406000206000915090505481565b611ccb612892565b73ffffffffffffffffffffffffffffffffffffffff16611ce9611d4b565b73ffffffffffffffffffffffffffffffffffffffff1614611d3f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d36906148da565b60405180910390fd5b611d49600061302c565b565b6000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b80611d806006612b1c565b811115611dc2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611db99061483a565b60405180910390fd5b60026004541415611e08576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611dff9061499a565b60405180910390fd5b60026004819055506010600083815260200190815260200160002060009054906101000a900460ff16611e70576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e679061481a565b60405180910390fd5b823073ffffffffffffffffffffffffffffffffffffffff1662fdd58e33856040518363ffffffff1660e01b8152600401611eab929190614625565b60206040518083038186803b158015611ec357600080fd5b505afa158015611ed7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611efb9190613d71565b10158015611f0a575060008314155b611f49576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f40906148fa565b60405180910390fd5b6000611f716011600085815260200190815260200160002054856130f290919063ffffffff16565b148015611f7f575060008314155b611fbe576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fb5906147fa565b60405180910390fd5b600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166340c10f193361202360116000878152602001908152602001600020548761310890919063ffffffff16565b6040518363ffffffff1660e01b8152600401612040929190614625565b600060405180830381600087803b15801561205a57600080fd5b505af115801561206e573d6000803e3d6000fd5b505050503073ffffffffffffffffffffffffffffffffffffffff1663f242432a3361dead85876040518563ffffffff1660e01b81526004016120b394939291906145cd565b600060405180830381600087803b1580156120cd57600080fd5b505af11580156120e1573d6000803e3d6000fd5b505050506120fa8360075461300090919063ffffffff16565b600781905550813373ffffffffffffffffffffffffffffffffffffffff167f544a58802162511b48f39dc30b8d8042334c9da794208c894d57590f328cedbb8560405161214791906149fa565b60405180910390a36001600481905550505050565b600d6020528060005260406000206000915090505481565b8173ffffffffffffffffffffffffffffffffffffffff16612193612892565b73ffffffffffffffffffffffffffffffffffffffff1614156121ea576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121e19061491a565b60405180910390fd5b80600160006121f7612892565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff166122a4612892565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516122e991906146a7565b60405180910390a35050565b6122fd612892565b73ffffffffffffffffffffffffffffffffffffffff1661231b611d4b565b73ffffffffffffffffffffffffffffffffffffffff1614612371576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612368906148da565b60405180910390fd5b80600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6123bd612892565b73ffffffffffffffffffffffffffffffffffffffff166123db611d4b565b73ffffffffffffffffffffffffffffffffffffffff1614612431576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612428906148da565b60405180910390fd5b8161243c6006612b1c565b81111561247e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124759061483a565b60405180910390fd5b81600a600085815260200190815260200160002090805190602001906124a5929190613615565b50505050565b6124b3612892565b73ffffffffffffffffffffffffffffffffffffffff166124d1611d4b565b73ffffffffffffffffffffffffffffffffffffffff1614612527576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161251e906148da565b60405180910390fd5b80600960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60003073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614806125d357506125d2838361311e565b5b905092915050565b6125e3612892565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161480612629575061262885612623612892565b612591565b5b612668576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161265f906147ba565b60405180910390fd5b612675858585858561289a565b5050505050565b612684612892565b73ffffffffffffffffffffffffffffffffffffffff166126a2611d4b565b73ffffffffffffffffffffffffffffffffffffffff16146126f8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126ef906148da565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415612768576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161275f9061477a565b60405180910390fd5b6127718161302c565b50565b600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600580546127a790614dd3565b80601f01602080910402602001604051908101604052809291908181526020018280546127d390614dd3565b80156128205780601f106127f557610100808354040283529160200191612820565b820191906000526020600020905b81548152906001019060200180831161280357829003601f168201915b505050505081565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600033905090565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16141561290a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129019061487a565b60405180910390fd5b6000612914612892565b9050612934818787612925886131b2565b61292e886131b2565b8761322c565b600080600086815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050838110156129cb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129c2906148ba565b60405180910390fd5b83810360008087815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508360008087815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612a809190614bae565b925050819055508573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628888604051612afd929190614a15565b60405180910390a4612b13828888888888613234565b50505050505050565b600081600001549050919050565b60008183612b389190614bae565b905092915050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415612bb0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ba79061497a565b60405180910390fd5b6000612bba612892565b9050612bdb81600087612bcc886131b2565b612bd5886131b2565b8761322c565b8260008086815260200190815260200160002060008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612c3a9190614bae565b925050819055508473ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628787604051612cb8929190614a15565b60405180910390a4612ccf81600087878787613234565b5050505050565b8151835114612d1a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d119061495a565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415612d8a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d819061487a565b60405180910390fd5b6000612d94612892565b9050612da481878787878761322c565b60005b8451811015612f55576000858281518110612dc557612dc4614f3d565b5b602002602001015190506000858381518110612de457612de3614f3d565b5b60200260200101519050600080600084815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015612e85576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e7c906148ba565b60405180910390fd5b81810360008085815260200190815260200160002060008c73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508160008085815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612f3a9190614bae565b9250508190555050505080612f4e90614e36565b9050612da7565b508473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051612fcc929190614670565b60405180910390a4612fe281878787878761341b565b505050505050565b60008183612ff89190614c35565b905092915050565b6000818361300e9190614c8f565b905092915050565b6001816000016000828254019250508190555050565b6000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600081836131009190614e7f565b905092915050565b600081836131169190614c04565b905092915050565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b60606000600167ffffffffffffffff8111156131d1576131d0614f6c565b5b6040519080825280602002602001820160405280156131ff5781602001602082028036833780820191505090505b509050828160008151811061321757613216614f3d565b5b60200260200101818152505080915050919050565b505050505050565b6132538473ffffffffffffffffffffffffffffffffffffffff16613602565b15613413578373ffffffffffffffffffffffffffffffffffffffff1663f23a6e6187878686866040518663ffffffff1660e01b8152600401613299959493929190614573565b602060405180830381600087803b1580156132b357600080fd5b505af19250505080156132e457506040513d601f19601f820116820180604052508101906132e19190613ca1565b60015b61338a576132f0614f9b565b806308c379a0141561334d575061330561569e565b80613310575061334f565b806040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161334491906146f8565b60405180910390fd5b505b6040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016133819061471a565b60405180910390fd5b63f23a6e6160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614613411576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016134089061473a565b60405180910390fd5b505b505050505050565b61343a8473ffffffffffffffffffffffffffffffffffffffff16613602565b156135fa578373ffffffffffffffffffffffffffffffffffffffff1663bc197c8187878686866040518663ffffffff1660e01b815260040161348095949392919061450b565b602060405180830381600087803b15801561349a57600080fd5b505af19250505080156134cb57506040513d601f19601f820116820180604052508101906134c89190613ca1565b60015b613571576134d7614f9b565b806308c379a0141561353457506134ec61569e565b806134f75750613536565b806040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161352b91906146f8565b60405180910390fd5b505b6040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016135689061471a565b60405180910390fd5b63bc197c8160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916146135f8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016135ef9061473a565b60405180910390fd5b505b505050505050565b600080823b905060008111915050919050565b82805461362190614dd3565b90600052602060002090601f016020900481019282613643576000855561368a565b82601f1061365c57805160ff191683800117855561368a565b8280016001018555821561368a579182015b8281111561368957825182559160200191906001019061366e565b5b509050613697919061369b565b5090565b5b808211156136b457600081600090555060010161369c565b5090565b60006136cb6136c684614a63565b614a3e565b905080838252602082019050828560208602820111156136ee576136ed614fc2565b5b60005b8581101561371e5781613704888261381c565b8452602084019350602083019250506001810190506136f1565b5050509392505050565b600061373b61373684614a8f565b614a3e565b9050808382526020820190508285602086028201111561375e5761375d614fc2565b5b60005b8581101561378e57816137748882613952565b845260208401935060208301925050600181019050613761565b5050509392505050565b60006137ab6137a684614abb565b614a3e565b9050828152602081018484840111156137c7576137c6614fc7565b5b6137d2848285614d91565b509392505050565b60006137ed6137e884614aec565b614a3e565b90508281526020810184848401111561380957613808614fc7565b5b613814848285614d91565b509392505050565b60008135905061382b81615734565b92915050565b600082601f83011261384657613845614fbd565b5b81356138568482602086016136b8565b91505092915050565b600082601f83011261387457613873614fbd565b5b8135613884848260208601613728565b91505092915050565b60008135905061389c8161574b565b92915050565b6000815190506138b18161574b565b92915050565b6000813590506138c681615762565b92915050565b6000815190506138db81615762565b92915050565b600082601f8301126138f6576138f5614fbd565b5b8135613906848260208601613798565b91505092915050565b60008135905061391e81615779565b92915050565b600082601f83011261393957613938614fbd565b5b81356139498482602086016137da565b91505092915050565b60008135905061396181615790565b92915050565b60008151905061397681615790565b92915050565b60006020828403121561399257613991614fd1565b5b60006139a08482850161381c565b91505092915050565b600080604083850312156139c0576139bf614fd1565b5b60006139ce8582860161381c565b92505060206139df8582860161381c565b9150509250929050565b600080600080600060a08688031215613a0557613a04614fd1565b5b6000613a138882890161381c565b9550506020613a248882890161381c565b945050604086013567ffffffffffffffff811115613a4557613a44614fcc565b5b613a518882890161385f565b935050606086013567ffffffffffffffff811115613a7257613a71614fcc565b5b613a7e8882890161385f565b925050608086013567ffffffffffffffff811115613a9f57613a9e614fcc565b5b613aab888289016138e1565b9150509295509295909350565b600080600080600060a08688031215613ad457613ad3614fd1565b5b6000613ae28882890161381c565b9550506020613af38882890161381c565b9450506040613b0488828901613952565b9350506060613b1588828901613952565b925050608086013567ffffffffffffffff811115613b3657613b35614fcc565b5b613b42888289016138e1565b9150509295509295909350565b60008060408385031215613b6657613b65614fd1565b5b6000613b748582860161381c565b9250506020613b858582860161388d565b9150509250929050565b60008060408385031215613ba657613ba5614fd1565b5b6000613bb48582860161381c565b9250506020613bc585828601613952565b9150509250929050565b60008060408385031215613be657613be5614fd1565b5b600083013567ffffffffffffffff811115613c0457613c03614fcc565b5b613c1085828601613831565b925050602083013567ffffffffffffffff811115613c3157613c30614fcc565b5b613c3d8582860161385f565b9150509250929050565b600060208284031215613c5d57613c5c614fd1565b5b6000613c6b848285016138a2565b91505092915050565b600060208284031215613c8a57613c89614fd1565b5b6000613c98848285016138b7565b91505092915050565b600060208284031215613cb757613cb6614fd1565b5b6000613cc5848285016138cc565b91505092915050565b600060208284031215613ce457613ce3614fd1565b5b6000613cf28482850161390f565b91505092915050565b600060208284031215613d1157613d10614fd1565b5b600082013567ffffffffffffffff811115613d2f57613d2e614fcc565b5b613d3b84828501613924565b91505092915050565b600060208284031215613d5a57613d59614fd1565b5b6000613d6884828501613952565b91505092915050565b600060208284031215613d8757613d86614fd1565b5b6000613d9584828501613967565b91505092915050565b60008060408385031215613db557613db4614fd1565b5b6000613dc385828601613952565b925050602083013567ffffffffffffffff811115613de457613de3614fcc565b5b613df085828601613831565b9150509250929050565b600080600060608486031215613e1357613e12614fd1565b5b6000613e2186828701613952565b935050602084013567ffffffffffffffff811115613e4257613e41614fcc565b5b613e4e86828701613831565b925050604084013567ffffffffffffffff811115613e6f57613e6e614fcc565b5b613e7b8682870161385f565b9150509250925092565b600080600080600080600060e0888a031215613ea457613ea3614fd1565b5b6000613eb28a828b01613952565b9750506020613ec38a828b0161388d565b9650506040613ed48a828b0161388d565b9550506060613ee58a828b0161388d565b9450506080613ef68a828b01613952565b93505060a0613f078a828b01613952565b92505060c0613f188a828b01613952565b91505092959891949750929550565b60008060408385031215613f3e57613f3d614fd1565b5b6000613f4c85828601613952565b925050602083013567ffffffffffffffff811115613f6d57613f6c614fcc565b5b613f7985828601613924565b9150509250929050565b60008060408385031215613f9a57613f99614fd1565b5b6000613fa885828601613952565b9250506020613fb985828601613952565b9150509250929050565b6000613fcf83836144ae565b60208301905092915050565b613fe481614cc3565b82525050565b6000613ff582614b42565b613fff8185614b70565b935061400a83614b1d565b8060005b8381101561403b5781516140228882613fc3565b975061402d83614b63565b92505060018101905061400e565b5085935050505092915050565b61405181614cd5565b82525050565b600061406282614b4d565b61406c8185614b81565b935061407c818560208601614da0565b61408581614fd6565b840191505092915050565b61409981614d49565b82525050565b6140a881614d5b565b82525050565b60006140b982614b58565b6140c38185614b92565b93506140d3818560208601614da0565b6140dc81614fd6565b840191505092915050565b600081546140f481614dd3565b6140fe8186614ba3565b94506001821660008114614119576001811461412a5761415d565b60ff1983168652818601935061415d565b61413385614b2d565b60005b8381101561415557815481890152600182019150602081019050614136565b838801955050505b50505092915050565b6000614173603483614b92565b915061417e82614ff4565b604082019050919050565b6000614196602883614b92565b91506141a182615043565b604082019050919050565b60006141b9602b83614b92565b91506141c482615092565b604082019050919050565b60006141dc602683614b92565b91506141e7826150e1565b604082019050919050565b60006141ff603983614b92565b915061420a82615130565b604082019050919050565b6000614222602983614b92565b915061422d8261517f565b604082019050919050565b6000614245602e83614b92565b9150614250826151ce565b604082019050919050565b6000614268601c83614b92565b91506142738261521d565b602082019050919050565b600061428b603383614b92565b915061429682615246565b604082019050919050565b60006142ae601483614b92565b91506142b982615295565b602082019050919050565b60006142d1602883614b92565b91506142dc826152be565b604082019050919050565b60006142f4602583614b92565b91506142ff8261530d565b604082019050919050565b6000614317603283614b92565b91506143228261535c565b604082019050919050565b600061433a600383614b81565b9150614345826153ab565b602082019050919050565b600061435d602a83614b92565b9150614368826153d4565b604082019050919050565b6000614380602083614b92565b915061438b82615423565b602082019050919050565b60006143a3602d83614b92565b91506143ae8261544c565b604082019050919050565b60006143c6602983614b92565b91506143d18261549b565b604082019050919050565b60006143e9602983614b92565b91506143f4826154ea565b604082019050919050565b600061440c602883614b92565b915061441782615539565b604082019050919050565b600061442f602183614b92565b915061443a82615588565b604082019050919050565b6000614452601f83614b92565b915061445d826155d7565b602082019050919050565b6000614475601b83614b92565b915061448082615600565b602082019050919050565b6000614498604383614b92565b91506144a382615629565b606082019050919050565b6144b781614d3f565b82525050565b6144c681614d3f565b82525050565b60006144d882856140e7565b91506144e482846140e7565b91508190509392505050565b60006020820190506145056000830184613fdb565b92915050565b600060a0820190506145206000830188613fdb565b61452d6020830187613fdb565b818103604083015261453f8186613fea565b905081810360608301526145538185613fea565b905081810360808301526145678184614057565b90509695505050505050565b600060a0820190506145886000830188613fdb565b6145956020830187613fdb565b6145a260408301866144bd565b6145af60608301856144bd565b81810360808301526145c18184614057565b90509695505050505050565b600060a0820190506145e26000830187613fdb565b6145ef6020830186613fdb565b6145fc60408301856144bd565b61460960608301846144bd565b818103608083015261461a8161432d565b905095945050505050565b600060408201905061463a6000830185613fdb565b61464760208301846144bd565b9392505050565b600060208201905081810360008301526146688184613fea565b905092915050565b6000604082019050818103600083015261468a8185613fea565b9050818103602083015261469e8184613fea565b90509392505050565b60006020820190506146bc6000830184614048565b92915050565b60006020820190506146d76000830184614090565b92915050565b60006020820190506146f2600083018461409f565b92915050565b6000602082019050818103600083015261471281846140ae565b905092915050565b6000602082019050818103600083015261473381614166565b9050919050565b6000602082019050818103600083015261475381614189565b9050919050565b60006020820190508181036000830152614773816141ac565b9050919050565b60006020820190508181036000830152614793816141cf565b9050919050565b600060208201905081810360008301526147b3816141f2565b9050919050565b600060208201905081810360008301526147d381614215565b9050919050565b600060208201905081810360008301526147f381614238565b9050919050565b600060208201905081810360008301526148138161425b565b9050919050565b600060208201905081810360008301526148338161427e565b9050919050565b60006020820190508181036000830152614853816142a1565b9050919050565b60006020820190508181036000830152614873816142c4565b9050919050565b60006020820190508181036000830152614893816142e7565b9050919050565b600060208201905081810360008301526148b38161430a565b9050919050565b600060208201905081810360008301526148d381614350565b9050919050565b600060208201905081810360008301526148f381614373565b9050919050565b6000602082019050818103600083015261491381614396565b9050919050565b60006020820190508181036000830152614933816143b9565b9050919050565b60006020820190508181036000830152614953816143dc565b9050919050565b60006020820190508181036000830152614973816143ff565b9050919050565b6000602082019050818103600083015261499381614422565b9050919050565b600060208201905081810360008301526149b381614445565b9050919050565b600060208201905081810360008301526149d381614468565b9050919050565b600060208201905081810360008301526149f38161448b565b9050919050565b6000602082019050614a0f60008301846144bd565b92915050565b6000604082019050614a2a60008301856144bd565b614a3760208301846144bd565b9392505050565b6000614a48614a59565b9050614a548282614e05565b919050565b6000604051905090565b600067ffffffffffffffff821115614a7e57614a7d614f6c565b5b602082029050602081019050919050565b600067ffffffffffffffff821115614aaa57614aa9614f6c565b5b602082029050602081019050919050565b600067ffffffffffffffff821115614ad657614ad5614f6c565b5b614adf82614fd6565b9050602081019050919050565b600067ffffffffffffffff821115614b0757614b06614f6c565b5b614b1082614fd6565b9050602081019050919050565b6000819050602082019050919050565b60008190508160005260206000209050919050565b600081519050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b6000614bb982614d3f565b9150614bc483614d3f565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115614bf957614bf8614eb0565b5b828201905092915050565b6000614c0f82614d3f565b9150614c1a83614d3f565b925082614c2a57614c29614edf565b5b828204905092915050565b6000614c4082614d3f565b9150614c4b83614d3f565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615614c8457614c83614eb0565b5b828202905092915050565b6000614c9a82614d3f565b9150614ca583614d3f565b925082821015614cb857614cb7614eb0565b5b828203905092915050565b6000614cce82614d1f565b9050919050565b60008115159050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6000614d1882614cc3565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b6000614d5482614d6d565b9050919050565b6000614d6682614d6d565b9050919050565b6000614d7882614d7f565b9050919050565b6000614d8a82614d1f565b9050919050565b82818337600083830152505050565b60005b83811015614dbe578082015181840152602081019050614da3565b83811115614dcd576000848401525b50505050565b60006002820490506001821680614deb57607f821691505b60208210811415614dff57614dfe614f0e565b5b50919050565b614e0e82614fd6565b810181811067ffffffffffffffff82111715614e2d57614e2c614f6c565b5b80604052505050565b6000614e4182614d3f565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415614e7457614e73614eb0565b5b600182019050919050565b6000614e8a82614d3f565b9150614e9583614d3f565b925082614ea557614ea4614edf565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600060033d1115614fba5760046000803e614fb7600051614fe7565b90505b90565b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b60008160e01c9050919050565b7f455243313135353a207472616e7366657220746f206e6f6e204552433131353560008201527f526563656976657220696d706c656d656e746572000000000000000000000000602082015250565b7f455243313135353a204552433131353552656365697665722072656a6563746560008201527f6420746f6b656e73000000000000000000000000000000000000000000000000602082015250565b7f455243313135353a2062616c616e636520717565727920666f7220746865207a60008201527f65726f2061646472657373000000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f416c7465726e61746520726564656d7074696f6e206973206e6f74206375727260008201527f656e746c79206f70656e20666f72207468697320746f6b656e00000000000000602082015250565b7f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260008201527f20617070726f7665640000000000000000000000000000000000000000000000602082015250565b7f4164647265737320616e64207175616e746974696573206e65656420746f206260008201527f6520657175616c206c656e677468000000000000000000000000000000000000602082015250565b7f4e6f7420656e6f756768207469636b65747320746f2072656465656d00000000600082015250565b7f4e465420726564656d7074696f6e206973206e6f742063757272656e746c792060008201527f6f70656e20666f72207468697320746f6b656e00000000000000000000000000602082015250565b7f546f6b656e20646f6573206e6f74206578697374000000000000000000000000600082015250565b7f4e6f7420656e6f756768206672616374696f6e7320617661696c61626c65207460008201527f6f2072656465656d000000000000000000000000000000000000000000000000602082015250565b7f455243313135353a207472616e7366657220746f20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b7f455243313135353a207472616e736665722063616c6c6572206973206e6f742060008201527f6f776e6572206e6f7220617070726f7665640000000000000000000000000000602082015250565b7f3078300000000000000000000000000000000000000000000000000000000000600082015250565b7f455243313135353a20696e73756666696369656e742062616c616e636520666f60008201527f72207472616e7366657200000000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f596f7520646f206e6f74206861766520616e79206f6620746865736520746f6b60008201527f656e7320746f2072656465656d00000000000000000000000000000000000000602082015250565b7f455243313135353a2073657474696e6720617070726f76616c2073746174757360008201527f20666f722073656c660000000000000000000000000000000000000000000000602082015250565b7f455243313135353a206163636f756e747320616e6420696473206c656e67746860008201527f206d69736d617463680000000000000000000000000000000000000000000000602082015250565b7f455243313135353a2069647320616e6420616d6f756e7473206c656e6774682060008201527f6d69736d61746368000000000000000000000000000000000000000000000000602082015250565b7f455243313135353a206d696e7420746f20746865207a65726f2061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b7f4e6f7420656e6f75676820746f6b656e732072656d61696e696e670000000000600082015250565b7f4b697474792042616e6b206672616374696f6e20726564656d7074696f6e206960008201527f73206e6f742063757272656e746c79206f70656e20666f72207468697320746f60208201527f6b656e0000000000000000000000000000000000000000000000000000000000604082015250565b600060443d10156156ae57615731565b6156b6614a59565b60043d036004823e80513d602482011167ffffffffffffffff821117156156de575050615731565b808201805167ffffffffffffffff8111156156fc5750505050615731565b80602083010160043d038501811115615719575050505050615731565b61572882602001850186614e05565b82955050505050505b90565b61573d81614cc3565b811461574857600080fd5b50565b61575481614cd5565b811461575f57600080fd5b50565b61576b81614ce1565b811461577657600080fd5b50565b61578281614d0d565b811461578d57600080fd5b50565b61579981614d3f565b81146157a457600080fd5b5056fea264697066735822122029ef9d92dc1b0e4b83d45c903d1d78f7c48f9e675a2cafa25eba631fb89650e164736f6c63430008070033

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.