ETH Price: $2,627.85 (-3.19%)

Token

MiceForce (MFORCE)
 

Overview

Max Total Supply

885 MFORCE

Holders

171

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
blkstut.eth
Balance
4 MFORCE
0x8DB907BcB3A3B9a47536abd81dA90493DF1507d2
Loading...
Loading
Loading...
Loading
Loading...
Loading

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

Contract Source Code Verified (Exact Match)

Contract Name:
MiceForce

Compiler Version
v0.8.0+commit.c7dfd78e

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 14 : MiceForce.sol
// contracts/MiceForce.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "./IMFMetaVault.sol";
import "./IBrainz.sol";

/* 
  __  __ _          ______                 
 |  \/  (_)        |  ____|                
 | \  / |_  ___ ___| |__ ___  _ __ ___ ___ 
 | |\/| | |/ __/ _ \  __/ _ \| '__/ __/ _ \
 | |  | | | (_|  __/ | | (_) | | | (_|  __/
 |_|  |_|_|\___\___|_|  \___/|_|  \___\___|
                                           
*/

/**
@dev MiceForce contract is the main contract for MF collection
*/
contract MiceForce is ERC721Enumerable {
    //Mappings
    mapping(uint256 => bytes16) internal tokenIdToHash;

    //uint256s
    uint public constant MAX_SUPPLY = 7500;
    //team + giveaway reserve, not possible to mint directly
    uint public constant RESERVED_SUPPLY = 150;
    uint public constant BRAINS_MINT_COST = 12 ether;
    uint public pumpkinMinted;
    uint public brainsMinted;
    uint SEED_NONCE = 0;

    uint public scientistTotal;
    uint public militaryTotal;

    //uint arrays
    uint16[][8] TIERS;

    //bytes32
    bytes32 entropySauce;

    //boolean
    bool public MINT_ENABLED;

    //address
    address constant burnAddress=0x000000000000000000000000000000000D15ea5E;
    address public _owner;
    address metaVaultAddress;
    address pumpkinJackAddress;
    address brainzAddress;

    constructor() ERC721("MiceForce", "MFORCE") {
        _owner = msg.sender;
        // eyes
        TIERS[0]=[0,375,750,1875,2250,2250];
        // hair
        TIERS[1]=[0,375,750,1875,2250,2250];
        // suit
        TIERS[2]=[0,1125,2625,3750];
        // nose
        TIERS[3]=[0,3000,3000,1500];
        // mouth
        TIERS[4]=[0,375,750,1125,1500,1875,1875];
        // whiskers
        TIERS[5]=[0,3750,3750];
        // body
        TIERS[6]=[4,1873,1873,1875,1875];
    }

    /** 
    @dev Generate 16 bytes hash with all trait rolls. Does not guarantee the uniquness of every MiceForce unit.
    @param _milisci MiceForce unit type
    */
    function hash(
        uint8 _milisci,
        uint256 _t,
        address _a
    ) 
        internal 
        returns (bytes16) 
    {
        // hash kept as 16 bytes
        // 1 byte: 0 - military, 1 - scientist
        // 2 byte: 0 - alive, 2 - dead
        // 3-16 bytes: 7 pairs of bytes for trait rolls   
        
        // 0 byte is always 0x00 as MiceForce unit is alive
        bytes16 currentHash=bytes16(0);
        // set 1 byte to MiceForce unit type
        currentHash=setHashByte(currentHash, 1, bytes1(_milisci));
        // generate random uint256
        uint randomUint256 = uint256(
                    keccak256(
                    abi.encodePacked(
                        block.timestamp,
                        block.difficulty,
                        _t,
                        _a,
                        ++SEED_NONCE,
                        entropySauce
                    )));

        uint16 _randinput;
        // iterating through traits
        for (uint8 i = 0; i < 7; i++) {
            // take 4 digits from random uint256 as roll for trait
            _randinput = uint16((randomUint256 / 10000**i % 10000) % MAX_SUPPLY);
            // write roll to coresponding trait position within the hash 
            currentHash = setTraitRollToHash(currentHash,i,_randinput);
        }

        return currentHash;
    }

    /** 
    @dev Mint tokens for free, usable by giveaway contract only
    @param _winner Address to mint tokens
    @param _amount Amount of tokens to mint
    @param _class Class to mint (0 - mili, 1 - sci, 3 - random)
    */
    function getPrize(address _winner, uint8 _amount, uint8 _class) 
        external 
        onlyPumpkinJack 
    {
        uint256 _startMintId = totalSupply();
        require(
            (_startMintId + _amount) <= MAX_SUPPLY,
            "The amount exceed max supply"
        );

        bool randomize = _class==3;
        pumpkinMinted += _amount;

        for (uint i = 0; i < _amount; i++) {
            uint8 rand = randomize?uint8(uint256(keccak256(abi.encodePacked(_winner, _amount, block.timestamp, block.difficulty, SEED_NONCE++)))%2):_class;
            uint256 _mintId = _startMintId + i;

            tokenIdToHash[_mintId] = hash(rand, _mintId, _winner);
            rand==0?militaryTotal++:scientistTotal++;
            _mint(_winner, _mintId);
        }
        
    }

    /** 
    @dev Mint several tokens in exchange to BRAIN$
    @param _milisci MiceForce unit type (0 - mili, 1 - sci)
    @param _amount Amount to mint
    */
    function mintFew(uint8 _milisci, uint _amount) 
        external 
        noCheaters 
        mintAllowed 
    {
        require(_milisci < 2, "Wrong class chosen");

        require(_amount <= 10, "Max amount per tx exceed");
        uint256 _startMintId = totalSupply();

        require((_startMintId + _amount) <= MAX_SUPPLY, "The amount exceed max supply");
        require(_startMintId + _amount <= MAX_SUPPLY - RESERVED_SUPPLY, "No unreserved mice force available");
        
        IBrainz(brainzAddress).burnFrom(msg.sender, BRAINS_MINT_COST*_amount);
        brainsMinted+=_amount;

        for (uint i = 0; i < _amount; i++) {
            uint256 _mintId = _startMintId + i;
            _milisci==0?militaryTotal++:scientistTotal++;
            tokenIdToHash[_mintId] = hash(_milisci,_mintId, msg.sender);
            _mint(msg.sender, _mintId);
        }
    }

    /** 
    @dev Mint one token in exchange to BRAIN$
    @param _milisci MiceForce unit type (0 - mili, 1 - sci)
    */
    function mintOne(uint8 _milisci) 
        external  
        noCheaters
        mintAllowed
    {
        require(_milisci < 2, "Wrong class chosen");

        uint _mintId = totalSupply();

        require(_mintId < MAX_SUPPLY, "No more mice force available");
        require(brainsMinted < MAX_SUPPLY - RESERVED_SUPPLY, "No unreserved mice force available");

        IBrainz(brainzAddress).burnFrom(msg.sender, BRAINS_MINT_COST);
        brainsMinted++;

        _milisci==0?militaryTotal++:scientistTotal++;
        bytes16 _h=hash(_milisci, _mintId, msg.sender);
        tokenIdToHash[_mintId] = _h;

        _mint(msg.sender, _mintId);
    }

    /**
    @dev Burn the token
    @param _tokenId Token ID
    */
    function burn(uint _tokenId) external {
        _transfer(
            msg.sender,
            burnAddress,
            _tokenId
        );
    }

    /**
    @dev Return all metadata for token ID
    @param _tokenId Token ID
    */
    function tokenURI(
        uint256 _tokenId
    )
        public
        view
        override
        returns (string memory)
    {
        require(_exists(_tokenId));

        bytes9 packedHash = getPackedHashByTokenId(_tokenId);
        return IMFMetaVault(metaVaultAddress).getMetadataByHash(_tokenId, packedHash);
    }

    /**
    @dev Return the wallet of a given address. Mainly for ease for frontend devs
    @param _wallet The wallet to get the tokens of
    */
    function walletOfOwner(
        address _wallet
    )
        external
        view
        returns (uint256[] memory)
    {
        uint256 tokenCount = balanceOf(_wallet);

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

    /**
    @dev Get bytes9 hash by tokenID
    @param _tokenId Token ID
    */
    function getPackedHashByTokenId(uint _tokenId) public view returns(bytes9) {
        require(_exists(_tokenId));

        bytes16 _hash=tokenIdToHash[_tokenId];
        bytes1 burned=0x00;
        if (ownerOf(_tokenId) == burnAddress) {
            burned=0x01;
        }

        bytes9 phash=burned;
        phash=setPackedHashByte(phash,1,_hash[1]);

        if (getTraitRollFromHash(_hash, 6)<TIERS[6][0]) {
            return phash;
        }

        for (uint8 i = 0; i < 7; i++) {
            uint16 edge;
            uint16 trait_roll=getTraitRollFromHash(_hash, i);
            for (uint8 j = 0; j < TIERS[i].length; j++) {
                if (trait_roll < (edge+=TIERS[i][j])) 
                {
                    phash=setPackedHashByte(phash,i+2,bytes1(j));
                    break;
                }
            }  
        }
        return(phash);
    }

    /**
    @dev Set addresses
    @param _brainzAddress BRAIN$ contract address
    @param _metavaultAddress MetaBault contract address
    @param _pumpkinJackAddress PumpkinJack contract address
    */
    function setAddress(address _brainzAddress, address _metavaultAddress, address _pumpkinJackAddress) external onlyOwner {
        brainzAddress=_brainzAddress;
        metaVaultAddress=_metavaultAddress;
        pumpkinJackAddress = _pumpkinJackAddress;
    }

    /** 
    @dev Switch the mint phase state from true -> false and vice versa
    */
    function mintSwitch() external onlyOwner {
        MINT_ENABLED=!MINT_ENABLED;
    }

    /** 
    @dev Transfers ownership
    @param _newOwner The new owner
    */
    function transferOwnership(
        address _newOwner
    ) 
        public 
        onlyOwner 
    {
        _owner = _newOwner;
    }

    function getTraitRoll(uint _tokenId, uint8 _traitId) internal view returns(uint16) {
        return getTraitRollFromHash(tokenIdToHash[_tokenId], _traitId);
    }

    //Modifiers

    /**
    @dev Modifier to only allow owner to call function
    */
    modifier onlyOwner() {
        require(_owner == msg.sender);
        _;
    }

    /**
    @dev Modifier to only allow PJ contract to call function
    */
    modifier onlyPumpkinJack() {
        require(pumpkinJackAddress == msg.sender);
        _;
    }

    /**
    @dev Modifier to only allow function to be used if MINT_ENABLED
    */
    modifier mintAllowed() {
        require(MINT_ENABLED);
        _;
    }

    /**
    @notice Credits goes to Ether Orcs
    @dev Modifier to not allow contracts call the function
    */
    modifier noCheaters() {
        uint256 size = 0;
        address acc = msg.sender;
        assembly { size := extcodesize(acc)}

        require(msg.sender == tx.origin , "No contracts allowed");
        require(size == 0,                "No contracts allowed");
        _;

        // We'll use the last caller hash to add entropy to next caller
        entropySauce = keccak256(abi.encodePacked(acc, block.coinbase));
    }

    // Utility functions

    /**
    @dev Get string representation of uint
    */
    function _toString(uint256 value) internal pure returns (string memory) {
        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 Write trait roll number to bytes16 hash
    */
    function setTraitRollToHash(bytes16 _hash, uint8 _traitId, uint16 roll) internal pure returns (bytes16) {
        return (_hash & ~(bytes16(0xffff0000000000000000000000000000) >> (16+_traitId * 16))) | (bytes16(bytes2(roll)) >> (16+_traitId * 16));
    }

    /**
    @dev Get trait roll number from bytes16 hash
    */
    function getTraitRollFromHash(bytes16 _hash, uint8 _traitId) internal pure returns (uint16) {
        uint16 number;
        uint8 start_pos=2+_traitId*2;
        number = uint16(uint8(_hash[start_pos])*(2**(8)) + uint8(_hash[start_pos+1]));
        return number;
    }

    /**
    @dev Write byte to bytes9 hash
    */
    function setPackedHashByte(bytes9 _hash, uint _index, bytes1 _byte) internal pure returns (bytes9) {
        return (_hash & ~(bytes9(0xff0000000000000000) >> (_index * 8))) | (bytes9(_byte) >> (_index * 8));
    }

    /**
    @dev Write byte to bytes16 hash
    */
    function setHashByte(bytes16 _hash, uint _index, bytes1 _byte) internal pure returns (bytes16) {
        return (_hash & ~(bytes16(0xff000000000000000000000000000000) >> (_index * 8))) | (bytes16(_byte) >> (_index * 8));
    }
}

File 2 of 14 : ERC721Enumerable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../ERC721.sol";
import "./IERC721Enumerable.sol";

/**
 * @dev This implements an optional extension of {ERC721} defined in the EIP that adds
 * enumerability of all the token ids in the contract as well as all token ids owned by each
 * account.
 */
abstract contract ERC721Enumerable is ERC721, IERC721Enumerable {
    // Mapping from owner to list of owned token IDs
    mapping(address => mapping(uint256 => uint256)) private _ownedTokens;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 3 of 14 : IMFMetaVault.sol
// contracts/IMFMetaVault.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

interface IMFMetaVault {
    function getMetadataByHash(
        uint _id, bytes9 packedHash
    )
        external
        view
        returns (string memory);
}

File 4 of 14 : IBrainz.sol
// contracts/IBrainz.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

interface IBrainz {
    function burnFrom(address account, uint256 amount) external;
}

File 5 of 14 : ERC721.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        require(operator != _msgSender(), "ERC721: approve to caller");

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

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

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

        _transfer(from, to, tokenId);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfer(from, to, tokenId);

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

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

        emit Transfer(from, to, tokenId);
    }

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

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

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

File 6 of 14 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

File 7 of 14 : 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 8 of 14 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

File 9 of 14 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

File 10 of 14 : 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 11 of 14 : 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 12 of 14 : 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 13 of 14 : 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 14 of 14 : 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",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"BRAINS_MINT_COST","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINT_ENABLED","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"RESERVED_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"brainsMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"getPackedHashByTokenId","outputs":[{"internalType":"bytes9","name":"","type":"bytes9"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_winner","type":"address"},{"internalType":"uint8","name":"_amount","type":"uint8"},{"internalType":"uint8","name":"_class","type":"uint8"}],"name":"getPrize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"militaryTotal","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint8","name":"_milisci","type":"uint8"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"mintFew","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"_milisci","type":"uint8"}],"name":"mintOne","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"mintSwitch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pumpkinMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"scientistTotal","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_brainzAddress","type":"address"},{"internalType":"address","name":"_metavaultAddress","type":"address"},{"internalType":"address","name":"_pumpkinJackAddress","type":"address"}],"name":"setAddress","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":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_wallet","type":"address"}],"name":"walletOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"}]

60806040526000600d553480156200001657600080fd5b506040518060400160405280600981526020017f4d696365466f72636500000000000000000000000000000000000000000000008152506040518060400160405280600681526020017f4d464f524345000000000000000000000000000000000000000000000000000081525081600090805190602001906200009b929190620004fc565b508060019080519060200190620000b4929190620004fc565b50505033601960016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506040518060c00160405280600061ffff16815260200161017761ffff1681526020016102ee61ffff16815260200161075361ffff1681526020016108ca61ffff1681526020016108ca61ffff16815250601060006008811062000184577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b01906006620001959291906200058d565b506040518060c00160405280600061ffff16815260200161017761ffff1681526020016102ee61ffff16815260200161075361ffff1681526020016108ca61ffff1681526020016108ca61ffff16815250601060016008811062000222577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b01906006620002339291906200058d565b506040518060800160405280600061ffff16815260200161046561ffff168152602001610a4161ffff168152602001610ea661ffff168152506010600260088110620002a8577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b01906004620002b99291906200063e565b506040518060800160405280600061ffff168152602001610bb861ffff168152602001610bb861ffff1681526020016105dc61ffff1681525060106003600881106200032e577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b019060046200033f9291906200063e565b506040518060e00160405280600061ffff16815260200161017761ffff1681526020016102ee61ffff16815260200161046561ffff1681526020016105dc61ffff16815260200161075361ffff16815260200161075361ffff168152506010600460088110620003d8577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b01906007620003e9929190620006ef565b506040518060600160405280600061ffff168152602001610ea661ffff168152602001610ea661ffff16815250601060056008811062000452577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b0190600362000463929190620007a0565b506040518060a00160405280600461ffff16815260200161075161ffff16815260200161075161ffff16815260200161075361ffff16815260200161075361ffff168152506010600660088110620004e4577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b01906005620004f592919062000851565b5062000986565b8280546200050a9062000921565b90600052602060002090601f0160209004810192826200052e57600085556200057a565b82601f106200054957805160ff19168380011785556200057a565b828001600101855582156200057a579182015b82811115620005795782518255916020019190600101906200055c565b5b50905062000589919062000902565b5090565b82805482825590600052602060002090600f016010900481019282156200062b5791602002820160005b83821115620005f957835183826101000a81548161ffff021916908361ffff1602179055509260200192600201602081600101049283019260010302620005b7565b8015620006295782816101000a81549061ffff0219169055600201602081600101049283019260010302620005f9565b505b5090506200063a919062000902565b5090565b82805482825590600052602060002090600f01601090048101928215620006dc5791602002820160005b83821115620006aa57835183826101000a81548161ffff021916908361ffff160217905550926020019260020160208160010104928301926001030262000668565b8015620006da5782816101000a81549061ffff0219169055600201602081600101049283019260010302620006aa565b505b509050620006eb919062000902565b5090565b82805482825590600052602060002090600f016010900481019282156200078d5791602002820160005b838211156200075b57835183826101000a81548161ffff021916908361ffff160217905550926020019260020160208160010104928301926001030262000719565b80156200078b5782816101000a81549061ffff02191690556002016020816001010492830192600103026200075b565b505b5090506200079c919062000902565b5090565b82805482825590600052602060002090600f016010900481019282156200083e5791602002820160005b838211156200080c57835183826101000a81548161ffff021916908361ffff1602179055509260200192600201602081600101049283019260010302620007ca565b80156200083c5782816101000a81549061ffff02191690556002016020816001010492830192600103026200080c565b505b5090506200084d919062000902565b5090565b82805482825590600052602060002090600f01601090048101928215620008ef5791602002820160005b83821115620008bd57835183826101000a81548161ffff021916908361ffff16021790555092602001926002016020816001010492830192600103026200087b565b8015620008ed5782816101000a81549061ffff0219169055600201602081600101049283019260010302620008bd565b505b509050620008fe919062000902565b5090565b5b808211156200091d57600081600090555060010162000903565b5090565b600060028204905060018216806200093a57607f821691505b6020821081141562000951576200095062000957565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b614cad80620009966000396000f3fe608060405234801561001057600080fd5b50600436106102065760003560e01c80634d25530f1161011a5780639fbca28c116100ad578063c87b56dd1161007c578063c87b56dd146105ef578063d12699451461061f578063e985e9c51461063b578063eacb912d1461066b578063f2fde38b1461067557610206565b80639fbca28c1461057b578063a22cb46514610599578063b2bdfa7b146105b5578063b88d4fde146105d357610206565b80636806d512116100e95780636806d512146104df5780636ec1735d1461050f57806370a082311461052d57806395d89b411461055d57610206565b80634d25530f146104435780634f6ccce7146104615780636352211e14610491578063669b2986146104c157610206565b80632f745c591161019d57806338fa411d1161016c57806338fa411d146103a35780633be08dab146103bf57806342842e0e146103db57806342966c68146103f7578063438b63001461041357610206565b80632f745c591461031957806331a53e9a1461034957806332cb6b0c1461036757806333c1b4a91461038557610206565b806314062184116101d957806314062184146102a557806318160ddd146102c357806323b872dd146102e15780632dd191bd146102fd57610206565b806301ffc9a71461020b57806306fdde031461023b578063081812fc14610259578063095ea7b314610289575b600080fd5b61022560048036038101906102209190613579565b610691565b604051610232919061411b565b60405180910390f35b61024361070b565b6040516102509190614151565b60405180910390f35b610273600480360381019061026e919061360c565b61079d565b6040516102809190614069565b60405180910390f35b6102a3600480360381019061029e91906134ee565b610822565b005b6102ad61093a565b6040516102ba9190614413565b60405180910390f35b6102cb610940565b6040516102d89190614413565b60405180910390f35b6102fb60048036038101906102f691906133e8565b61094d565b005b6103176004803603810190610312919061365e565b6109ad565b005b610333600480360381019061032e91906134ee565b610d73565b6040516103409190614413565b60405180910390f35b610351610e18565b60405161035e9190614413565b60405180910390f35b61036f610e1d565b60405161037c9190614413565b60405180910390f35b61038d610e23565b60405161039a9190614413565b60405180910390f35b6103bd60048036038101906103b89190613635565b610e29565b005b6103d960048036038101906103d49190613399565b61115e565b005b6103f560048036038101906103f091906133e8565b611280565b005b610411600480360381019061040c919061360c565b6112a0565b005b61042d60048036038101906104289190613334565b6112b2565b60405161043a91906140f9565b60405180910390f35b61044b6113ac565b6040516104589190614413565b60405180910390f35b61047b6004803603810190610476919061360c565b6113b2565b6040516104889190614413565b60405180910390f35b6104ab60048036038101906104a6919061360c565b611449565b6040516104b89190614069565b60405180910390f35b6104c96114fb565b6040516104d69190614413565b60405180910390f35b6104f960048036038101906104f4919061360c565b611507565b6040516105069190614136565b60405180910390f35b610517611840565b6040516105249190614413565b60405180910390f35b61054760048036038101906105429190613334565b611846565b6040516105549190614413565b60405180910390f35b6105656118fe565b6040516105729190614151565b60405180910390f35b610583611990565b604051610590919061411b565b60405180910390f35b6105b360048036038101906105ae91906134b2565b6119a3565b005b6105bd611b24565b6040516105ca9190614069565b60405180910390f35b6105ed60048036038101906105e89190613437565b611b4a565b005b6106096004803603810190610604919061360c565b611bac565b6040516106169190614151565b60405180910390f35b6106396004803603810190610634919061352a565b611c87565b005b6106556004803603810190610650919061335d565b611e95565b604051610662919061411b565b60405180910390f35b610673611f29565b005b61068f600480360381019061068a9190613334565b611faf565b005b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061070457506107038261204d565b5b9050919050565b60606000805461071a906149de565b80601f0160208091040260200160405190810160405280929190818152602001828054610746906149de565b80156107935780601f1061076857610100808354040283529160200191610793565b820191906000526020600020905b81548152906001019060200180831161077657829003601f168201915b5050505050905090565b60006107a88261212f565b6107e7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107de906142d3565b60405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b600061082d82611449565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561089e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161089590614333565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff166108bd61219b565b73ffffffffffffffffffffffffffffffffffffffff1614806108ec57506108eb816108e661219b565b611e95565b5b61092b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161092290614253565b60405180910390fd5b61093583836121a3565b505050565b600f5481565b6000600880549050905090565b61095e61095861219b565b8261225c565b61099d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161099490614373565b60405180910390fd5b6109a883838361233a565b505050565b600080339050803b91503273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610a25576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a1c906143d3565b60405180910390fd5b60008214610a68576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a5f906143d3565b60405180910390fd5b601960009054906101000a900460ff16610a8157600080fd5b60028460ff1610610ac7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610abe906142f3565b60405180910390fd5b600a831115610b0b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b0290614393565b60405180910390fd5b6000610b15610940565b9050611d4c8482610b269190614591565b1115610b67576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b5e90614353565b60405180910390fd5b6096611d4c610b769190614891565b8482610b829190614591565b1115610bc3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bba906143f3565b60405180910390fd5b601c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166379cc6790338667a688906bd8b00000610c1691906147fc565b6040518363ffffffff1660e01b8152600401610c339291906140d0565b600060405180830381600087803b158015610c4d57600080fd5b505af1158015610c61573d6000803e3d6000fd5b5050505083600c6000828254610c779190614591565b9250508190555060005b84811015610d3c5760008183610c979190614591565b905060008760ff1614610cc057600e6000815480929190610cb790614a10565b91905055610cd8565b600f6000815480929190610cd390614a10565b919050555b50610ce4878233612596565b600a600083815260200190815260200160002060006101000a8154816fffffffffffffffffffffffffffffffff021916908360801c0217905550610d283382612676565b508080610d3490614a10565b915050610c81565b50508041604051602001610d51929190613f6e565b6040516020818303038152906040528051906020012060188190555050505050565b6000610d7e83611846565b8210610dbf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610db690614173565b60405180910390fd5b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b609681565b611d4c81565b600e5481565b600080339050803b91503273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610ea1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e98906143d3565b60405180910390fd5b60008214610ee4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610edb906143d3565b60405180910390fd5b601960009054906101000a900460ff16610efd57600080fd5b60028360ff1610610f43576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f3a906142f3565b60405180910390fd5b6000610f4d610940565b9050611d4c8110610f93576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f8a906141b3565b60405180910390fd5b6096611d4c610fa29190614891565b600c5410610fe5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fdc906143f3565b60405180910390fd5b601c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166379cc67903367a688906bd8b000006040518363ffffffff1660e01b815260040161104a9291906140d0565b600060405180830381600087803b15801561106457600080fd5b505af1158015611078573d6000803e3d6000fd5b50505050600c600081548092919061108f90614a10565b919050555060008460ff16146110bb57600e60008154809291906110b290614a10565b919050556110d3565b600f60008154809291906110ce90614a10565b919050555b5060006110e1858333612596565b905080600a600084815260200190815260200160002060006101000a8154816fffffffffffffffffffffffffffffffff021916908360801c02179055506111283383612676565b5050804160405160200161113d929190613f6e565b60405160208183030381529060405280519060200120601881905550505050565b3373ffffffffffffffffffffffffffffffffffffffff16601960019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146111b857600080fd5b82601c60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555081601a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080601b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550505050565b61129b83838360405180602001604052806000815250611b4a565b505050565b6112af33630d15ea5e8361233a565b50565b606060006112bf83611846565b905060008167ffffffffffffffff811115611303577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280602002602001820160405280156113315781602001602082028036833780820191505090505b50905060005b828110156113a1576113498582610d73565b828281518110611382577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001018181525050808061139990614a10565b915050611337565b508092505050919050565b600b5481565b60006113bc610940565b82106113fd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113f4906143b3565b60405180910390fd5b60088281548110611437577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002001549050919050565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156114f2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114e990614293565b60405180910390fd5b80915050919050565b67a688906bd8b0000081565b60006115128261212f565b61151b57600080fd5b6000600a600084815260200190815260200160002060009054906101000a900460801b905060008060f81b9050630d15ea5e73ffffffffffffffffffffffffffffffffffffffff1661156c85611449565b73ffffffffffffffffffffffffffffffffffffffff16141561159057600160f81b90505b6000817effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff19169050611600816001856001601081106115f7577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b1a60f81b612844565b9050601060066008811061163d577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b01600081548110611677577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002090601091828204019190066002029054906101000a900461ffff1661ffff166116aa8460066128d5565b61ffff1610156116bf5780935050505061183b565b60005b60078160ff161015611833576000806116db86846128d5565b905060005b60108460ff166008811061171d577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b01805490508160ff16101561181d5760108460ff1660088110611769577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b018160ff16815481106117a5577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002090601091828204019190066002029054906101000a900461ffff16836117d49190614559565b92508261ffff168261ffff16101561180a57611803856002866117f791906145e7565b60ff168360f81b612844565b945061181d565b808061181590614a59565b9150506116e0565b505050808061182b90614a59565b9150506116c2565b508093505050505b919050565b600c5481565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156118b7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118ae90614273565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b60606001805461190d906149de565b80601f0160208091040260200160405190810160405280929190818152602001828054611939906149de565b80156119865780601f1061195b57610100808354040283529160200191611986565b820191906000526020600020905b81548152906001019060200180831161196957829003601f168201915b5050505050905090565b601960009054906101000a900460ff1681565b6119ab61219b565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611a19576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a1090614213565b60405180910390fd5b8060056000611a2661219b565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611ad361219b565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611b18919061411b565b60405180910390a35050565b601960019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b611b5b611b5561219b565b8361225c565b611b9a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b9190614373565b60405180910390fd5b611ba6848484846129b1565b50505050565b6060611bb78261212f565b611bc057600080fd5b6000611bcb83611507565b9050601a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663113132fd84836040518363ffffffff1660e01b8152600401611c2a92919061442e565b60006040518083038186803b158015611c4257600080fd5b505afa158015611c56573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f82011682018060405250810190611c7f91906135cb565b915050919050565b3373ffffffffffffffffffffffffffffffffffffffff16601b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611ce157600080fd5b6000611ceb610940565b9050611d4c8360ff1682611cff9190614591565b1115611d40576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d3790614353565b60405180910390fd5b600060038360ff161490508360ff16600b6000828254611d609190614591565b9250508190555060005b8460ff16811015611e8d57600082611d825784611dd7565b600287874244600d6000815480929190611d9b90614a10565b91905055604051602001611db3959493929190613f9a565b6040516020818303038152906040528051906020012060001c611dd69190614adf565b5b905060008285611de79190614591565b9050611df482828a612596565b600a600083815260200190815260200160002060006101000a8154816fffffffffffffffffffffffffffffffff021916908360801c021790555060008260ff1614611e5557600e6000815480929190611e4c90614a10565b91905055611e6d565b600f6000815480929190611e6890614a10565b919050555b50611e788882612676565b50508080611e8590614a10565b915050611d6a565b505050505050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b3373ffffffffffffffffffffffffffffffffffffffff16601960019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611f8357600080fd5b601960009054906101000a900460ff1615601960006101000a81548160ff021916908315150217905550565b3373ffffffffffffffffffffffffffffffffffffffff16601960019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161461200957600080fd5b80601960016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061211857507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80612128575061212782612a0d565b5b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff1661221683611449565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006122678261212f565b6122a6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161229d90614233565b60405180910390fd5b60006122b183611449565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16148061232057508373ffffffffffffffffffffffffffffffffffffffff166123088461079d565b73ffffffffffffffffffffffffffffffffffffffff16145b8061233157506123308185611e95565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff1661235a82611449565b73ffffffffffffffffffffffffffffffffffffffff16146123b0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123a790614313565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612420576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612417906141f3565b60405180910390fd5b61242b838383612a77565b6124366000826121a3565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546124869190614891565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546124dd9190614591565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b600080600060801b90506125af8160018760f81b612b8b565b9050600042448686600d600081546125c690614a10565b9190508190556018546040516020016125e496959493929190613ff9565b6040516020818303038152906040528051906020012060001c9050600080600090505b60078160ff16101561266857611d4c6127108261271061262791906146a2565b85612632919061461e565b61263c9190614adf565b6126469190614adf565b9150612653848284612c15565b9350808061266090614a59565b915050612607565b508293505050509392505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156126e6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126dd906142b3565b60405180910390fd5b6126ef8161212f565b1561272f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612726906141d3565b60405180910390fd5b61273b60008383612a77565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461278b9190614591565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b600060088361285391906147fc565b827effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191676ffffffffffffffffffffffffffffffffffffffffffffff1916901c60088461289f91906147fc565b68ff000000000000000060b81b76ffffffffffffffffffffffffffffffffffffffffffffff1916901c1985161790509392505050565b60008060006002846128e79190614856565b60026128f391906145e7565b90508460018261290391906145e7565b60ff166010811061293d577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b1a60f81b60f81c60ff16610100868360ff1660108110612986577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b1a60f81b60f81c60ff1661299a91906147c0565b6129a49190614559565b9150819250505092915050565b6129bc84848461233a565b6129c884848484612cbf565b612a07576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129fe90614193565b60405180910390fd5b50505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b612a82838383612e56565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612ac557612ac081612e5b565b612b04565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614612b0357612b028382612ea4565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612b4757612b4281613011565b612b86565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614612b8557612b848282613154565b5b5b505050565b6000600883612b9a91906147fc565b827effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166fffffffffffffffffffffffffffffffff1916901c600884612bdf91906147fc565b6fff00000000000000000000000000000060801b6fffffffffffffffffffffffffffffffff1916901c1985161790509392505050565b6000601083612c249190614856565b6010612c3091906145e7565b60ff168260f01b7dffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166fffffffffffffffffffffffffffffffff1916901c601084612c7a9190614856565b6010612c8691906145e7565b60ff166fffff000000000000000000000000000060801b6fffffffffffffffffffffffffffffffff1916901c1985161790509392505050565b6000612ce08473ffffffffffffffffffffffffffffffffffffffff166131d3565b15612e49578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612d0961219b565b8786866040518563ffffffff1660e01b8152600401612d2b9493929190614084565b602060405180830381600087803b158015612d4557600080fd5b505af1925050508015612d7657506040513d601f19601f82011682018060405250810190612d7391906135a2565b60015b612df9573d8060008114612da6576040519150601f19603f3d011682016040523d82523d6000602084013e612dab565b606091505b50600081511415612df1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612de890614193565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050612e4e565b600190505b949350505050565b505050565b6008805490506009600083815260200190815260200160002081905550600881908060018154018082558091505060019003906000526020600020016000909190919091505550565b60006001612eb184611846565b612ebb9190614891565b9050600060076000848152602001908152602001600020549050818114612fa0576000600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816007600083815260200190815260200160002081905550505b6007600084815260200190815260200160002060009055600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b600060016008805490506130259190614891565b905060006009600084815260200190815260200160002054905060006008838154811061307b577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000200154905080600883815481106130c3577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b906000526020600020018190555081600960008381526020019081526020016000208190555060096000858152602001908152602001600020600090556008805480613138577f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b600061315f83611846565b905081600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806007600084815260200190815260200160002081905550505050565b600080823b905060008111915050919050565b60006131f96131f484614488565b614457565b90508281526020810184848401111561321157600080fd5b61321c84828561499c565b509392505050565b6000613237613232846144b8565b614457565b90508281526020810184848401111561324f57600080fd5b61325a8482856149ab565b509392505050565b60008135905061327181614c04565b92915050565b60008135905061328681614c1b565b92915050565b60008135905061329b81614c32565b92915050565b6000815190506132b081614c32565b92915050565b600082601f8301126132c757600080fd5b81356132d78482602086016131e6565b91505092915050565b600082601f8301126132f157600080fd5b8151613301848260208601613224565b91505092915050565b60008135905061331981614c49565b92915050565b60008135905061332e81614c60565b92915050565b60006020828403121561334657600080fd5b600061335484828501613262565b91505092915050565b6000806040838503121561337057600080fd5b600061337e85828601613262565b925050602061338f85828601613262565b9150509250929050565b6000806000606084860312156133ae57600080fd5b60006133bc86828701613262565b93505060206133cd86828701613262565b92505060406133de86828701613262565b9150509250925092565b6000806000606084860312156133fd57600080fd5b600061340b86828701613262565b935050602061341c86828701613262565b925050604061342d8682870161330a565b9150509250925092565b6000806000806080858703121561344d57600080fd5b600061345b87828801613262565b945050602061346c87828801613262565b935050604061347d8782880161330a565b925050606085013567ffffffffffffffff81111561349a57600080fd5b6134a6878288016132b6565b91505092959194509250565b600080604083850312156134c557600080fd5b60006134d385828601613262565b92505060206134e485828601613277565b9150509250929050565b6000806040838503121561350157600080fd5b600061350f85828601613262565b92505060206135208582860161330a565b9150509250929050565b60008060006060848603121561353f57600080fd5b600061354d86828701613262565b935050602061355e8682870161331f565b925050604061356f8682870161331f565b9150509250925092565b60006020828403121561358b57600080fd5b60006135998482850161328c565b91505092915050565b6000602082840312156135b457600080fd5b60006135c2848285016132a1565b91505092915050565b6000602082840312156135dd57600080fd5b600082015167ffffffffffffffff8111156135f757600080fd5b613603848285016132e0565b91505092915050565b60006020828403121561361e57600080fd5b600061362c8482850161330a565b91505092915050565b60006020828403121561364757600080fd5b60006136558482850161331f565b91505092915050565b6000806040838503121561367157600080fd5b600061367f8582860161331f565b92505060206136908582860161330a565b9150509250929050565b60006136a68383613f22565b60208301905092915050565b6136c36136be826148d7565b614a95565b82525050565b6136d2816148c5565b82525050565b6136e96136e4826148c5565b614a83565b82525050565b60006136fa826144f8565b6137048185614526565b935061370f836144e8565b8060005b83811015613740578151613727888261369a565b975061373283614519565b925050600181019050613713565b5085935050505092915050565b613756816148e9565b82525050565b61376d613768826148f5565b614aa7565b82525050565b61377c8161492b565b82525050565b600061378d82614503565b6137978185614537565b93506137a78185602086016149ab565b6137b081614bcc565b840191505092915050565b60006137c68261450e565b6137d08185614548565b93506137e08185602086016149ab565b6137e981614bcc565b840191505092915050565b6000613801602b83614548565b91507f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008301527f74206f6620626f756e64730000000000000000000000000000000000000000006020830152604082019050919050565b6000613867603283614548565b91507f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008301527f63656976657220696d706c656d656e74657200000000000000000000000000006020830152604082019050919050565b60006138cd601c83614548565b91507f4e6f206d6f7265206d69636520666f72636520617661696c61626c65000000006000830152602082019050919050565b600061390d601c83614548565b91507f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006000830152602082019050919050565b600061394d602483614548565b91507f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008301527f72657373000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b60006139b3601983614548565b91507f4552433732313a20617070726f766520746f2063616c6c6572000000000000006000830152602082019050919050565b60006139f3602c83614548565b91507f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008301527f697374656e7420746f6b656e00000000000000000000000000000000000000006020830152604082019050919050565b6000613a59603883614548565b91507f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008301527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006020830152604082019050919050565b6000613abf602a83614548565b91507f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008301527f726f2061646472657373000000000000000000000000000000000000000000006020830152604082019050919050565b6000613b25602983614548565b91507f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008301527f656e7420746f6b656e00000000000000000000000000000000000000000000006020830152604082019050919050565b6000613b8b602083614548565b91507f4552433732313a206d696e7420746f20746865207a65726f20616464726573736000830152602082019050919050565b6000613bcb602c83614548565b91507f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008301527f697374656e7420746f6b656e00000000000000000000000000000000000000006020830152604082019050919050565b6000613c31601283614548565b91507f57726f6e6720636c6173732063686f73656e00000000000000000000000000006000830152602082019050919050565b6000613c71602983614548565b91507f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960008301527f73206e6f74206f776e00000000000000000000000000000000000000000000006020830152604082019050919050565b6000613cd7602183614548565b91507f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008301527f72000000000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000613d3d601c83614548565b91507f54686520616d6f756e7420657863656564206d617820737570706c79000000006000830152602082019050919050565b6000613d7d603183614548565b91507f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008301527f776e6572206e6f7220617070726f7665640000000000000000000000000000006020830152604082019050919050565b6000613de3601883614548565b91507f4d617820616d6f756e74207065722074782065786365656400000000000000006000830152602082019050919050565b6000613e23602c83614548565b91507f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008301527f7574206f6620626f756e647300000000000000000000000000000000000000006020830152604082019050919050565b6000613e89601483614548565b91507f4e6f20636f6e74726163747320616c6c6f7765640000000000000000000000006000830152602082019050919050565b6000613ec9602283614548565b91507f4e6f20756e7265736572766564206d69636520666f72636520617661696c616260008301527f6c650000000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b613f2b81614985565b82525050565b613f3a81614985565b82525050565b613f51613f4c82614985565b614ac3565b82525050565b613f68613f638261498f565b614acd565b82525050565b6000613f7a82856136d8565b601482019150613f8a82846136b2565b6014820191508190509392505050565b6000613fa682886136d8565b601482019150613fb68287613f57565b600182019150613fc68286613f40565b602082019150613fd68285613f40565b602082019150613fe68284613f40565b6020820191508190509695505050505050565b60006140058289613f40565b6020820191506140158288613f40565b6020820191506140258287613f40565b60208201915061403582866136d8565b6014820191506140458285613f40565b602082019150614055828461375c565b602082019150819050979650505050505050565b600060208201905061407e60008301846136c9565b92915050565b600060808201905061409960008301876136c9565b6140a660208301866136c9565b6140b36040830185613f31565b81810360608301526140c58184613782565b905095945050505050565b60006040820190506140e560008301856136c9565b6140f26020830184613f31565b9392505050565b6000602082019050818103600083015261411381846136ef565b905092915050565b6000602082019050614130600083018461374d565b92915050565b600060208201905061414b6000830184613773565b92915050565b6000602082019050818103600083015261416b81846137bb565b905092915050565b6000602082019050818103600083015261418c816137f4565b9050919050565b600060208201905081810360008301526141ac8161385a565b9050919050565b600060208201905081810360008301526141cc816138c0565b9050919050565b600060208201905081810360008301526141ec81613900565b9050919050565b6000602082019050818103600083015261420c81613940565b9050919050565b6000602082019050818103600083015261422c816139a6565b9050919050565b6000602082019050818103600083015261424c816139e6565b9050919050565b6000602082019050818103600083015261426c81613a4c565b9050919050565b6000602082019050818103600083015261428c81613ab2565b9050919050565b600060208201905081810360008301526142ac81613b18565b9050919050565b600060208201905081810360008301526142cc81613b7e565b9050919050565b600060208201905081810360008301526142ec81613bbe565b9050919050565b6000602082019050818103600083015261430c81613c24565b9050919050565b6000602082019050818103600083015261432c81613c64565b9050919050565b6000602082019050818103600083015261434c81613cca565b9050919050565b6000602082019050818103600083015261436c81613d30565b9050919050565b6000602082019050818103600083015261438c81613d70565b9050919050565b600060208201905081810360008301526143ac81613dd6565b9050919050565b600060208201905081810360008301526143cc81613e16565b9050919050565b600060208201905081810360008301526143ec81613e7c565b9050919050565b6000602082019050818103600083015261440c81613ebc565b9050919050565b60006020820190506144286000830184613f31565b92915050565b60006040820190506144436000830185613f31565b6144506020830184613773565b9392505050565b6000604051905081810181811067ffffffffffffffff8211171561447e5761447d614b9d565b5b8060405250919050565b600067ffffffffffffffff8211156144a3576144a2614b9d565b5b601f19601f8301169050602081019050919050565b600067ffffffffffffffff8211156144d3576144d2614b9d565b5b601f19601f8301169050602081019050919050565b6000819050602082019050919050565b600081519050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600061456482614957565b915061456f83614957565b92508261ffff0382111561458657614585614b10565b5b828201905092915050565b600061459c82614985565b91506145a783614985565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156145dc576145db614b10565b5b828201905092915050565b60006145f28261498f565b91506145fd8361498f565b92508260ff0382111561461357614612614b10565b5b828201905092915050565b600061462982614985565b915061463483614985565b92508261464457614643614b3f565b5b828204905092915050565b6000808291508390505b60018511156146995780860481111561467557614674614b10565b5b60018516156146845780820291505b808102905061469285614bf7565b9450614659565b94509492505050565b60006146ad82614985565b91506146b88361498f565b92506146e57fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff84846146ed565b905092915050565b6000826146fd57600190506147b9565b8161470b57600090506147b9565b8160018114614721576002811461472b5761475a565b60019150506147b9565b60ff84111561473d5761473c614b10565b5b8360020a91508482111561475457614753614b10565b5b506147b9565b5060208310610133831016604e8410600b841016171561478f5782820a90508381111561478a57614789614b10565b5b6147b9565b61479c848484600161464f565b925090508184048111156147b3576147b2614b10565b5b81810290505b9392505050565b60006147cb82614957565b91506147d683614957565b92508161ffff04831182151516156147f1576147f0614b10565b5b828202905092915050565b600061480782614985565b915061481283614985565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561484b5761484a614b10565b5b828202905092915050565b60006148618261498f565b915061486c8361498f565b92508160ff048311821515161561488657614885614b10565b5b828202905092915050565b600061489c82614985565b91506148a783614985565b9250828210156148ba576148b9614b10565b5b828203905092915050565b60006148d082614965565b9050919050565b60006148e282614965565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b60007fffffffffffffffffff000000000000000000000000000000000000000000000082169050919050565b600061ffff82169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b82818337600083830152505050565b60005b838110156149c95780820151818401526020810190506149ae565b838111156149d8576000848401525b50505050565b600060028204905060018216806149f657607f821691505b60208210811415614a0a57614a09614b6e565b5b50919050565b6000614a1b82614985565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415614a4e57614a4d614b10565b5b600182019050919050565b6000614a648261498f565b915060ff821415614a7857614a77614b10565b5b600182019050919050565b6000614a8e82614ab1565b9050919050565b6000614aa082614ab1565b9050919050565b6000819050919050565b6000614abc82614bea565b9050919050565b6000819050919050565b6000614ad882614bdd565b9050919050565b6000614aea82614985565b9150614af583614985565b925082614b0557614b04614b3f565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b60008160f81b9050919050565b60008160601b9050919050565b60008160011c9050919050565b614c0d816148c5565b8114614c1857600080fd5b50565b614c24816148e9565b8114614c2f57600080fd5b50565b614c3b816148ff565b8114614c4657600080fd5b50565b614c5281614985565b8114614c5d57600080fd5b50565b614c698161498f565b8114614c7457600080fd5b5056fea2646970667358221220270ca589d83ef60430dae151de181d376bd272fdb81624f3f417929dc8ecbfaf64736f6c63430008000033

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106102065760003560e01c80634d25530f1161011a5780639fbca28c116100ad578063c87b56dd1161007c578063c87b56dd146105ef578063d12699451461061f578063e985e9c51461063b578063eacb912d1461066b578063f2fde38b1461067557610206565b80639fbca28c1461057b578063a22cb46514610599578063b2bdfa7b146105b5578063b88d4fde146105d357610206565b80636806d512116100e95780636806d512146104df5780636ec1735d1461050f57806370a082311461052d57806395d89b411461055d57610206565b80634d25530f146104435780634f6ccce7146104615780636352211e14610491578063669b2986146104c157610206565b80632f745c591161019d57806338fa411d1161016c57806338fa411d146103a35780633be08dab146103bf57806342842e0e146103db57806342966c68146103f7578063438b63001461041357610206565b80632f745c591461031957806331a53e9a1461034957806332cb6b0c1461036757806333c1b4a91461038557610206565b806314062184116101d957806314062184146102a557806318160ddd146102c357806323b872dd146102e15780632dd191bd146102fd57610206565b806301ffc9a71461020b57806306fdde031461023b578063081812fc14610259578063095ea7b314610289575b600080fd5b61022560048036038101906102209190613579565b610691565b604051610232919061411b565b60405180910390f35b61024361070b565b6040516102509190614151565b60405180910390f35b610273600480360381019061026e919061360c565b61079d565b6040516102809190614069565b60405180910390f35b6102a3600480360381019061029e91906134ee565b610822565b005b6102ad61093a565b6040516102ba9190614413565b60405180910390f35b6102cb610940565b6040516102d89190614413565b60405180910390f35b6102fb60048036038101906102f691906133e8565b61094d565b005b6103176004803603810190610312919061365e565b6109ad565b005b610333600480360381019061032e91906134ee565b610d73565b6040516103409190614413565b60405180910390f35b610351610e18565b60405161035e9190614413565b60405180910390f35b61036f610e1d565b60405161037c9190614413565b60405180910390f35b61038d610e23565b60405161039a9190614413565b60405180910390f35b6103bd60048036038101906103b89190613635565b610e29565b005b6103d960048036038101906103d49190613399565b61115e565b005b6103f560048036038101906103f091906133e8565b611280565b005b610411600480360381019061040c919061360c565b6112a0565b005b61042d60048036038101906104289190613334565b6112b2565b60405161043a91906140f9565b60405180910390f35b61044b6113ac565b6040516104589190614413565b60405180910390f35b61047b6004803603810190610476919061360c565b6113b2565b6040516104889190614413565b60405180910390f35b6104ab60048036038101906104a6919061360c565b611449565b6040516104b89190614069565b60405180910390f35b6104c96114fb565b6040516104d69190614413565b60405180910390f35b6104f960048036038101906104f4919061360c565b611507565b6040516105069190614136565b60405180910390f35b610517611840565b6040516105249190614413565b60405180910390f35b61054760048036038101906105429190613334565b611846565b6040516105549190614413565b60405180910390f35b6105656118fe565b6040516105729190614151565b60405180910390f35b610583611990565b604051610590919061411b565b60405180910390f35b6105b360048036038101906105ae91906134b2565b6119a3565b005b6105bd611b24565b6040516105ca9190614069565b60405180910390f35b6105ed60048036038101906105e89190613437565b611b4a565b005b6106096004803603810190610604919061360c565b611bac565b6040516106169190614151565b60405180910390f35b6106396004803603810190610634919061352a565b611c87565b005b6106556004803603810190610650919061335d565b611e95565b604051610662919061411b565b60405180910390f35b610673611f29565b005b61068f600480360381019061068a9190613334565b611faf565b005b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061070457506107038261204d565b5b9050919050565b60606000805461071a906149de565b80601f0160208091040260200160405190810160405280929190818152602001828054610746906149de565b80156107935780601f1061076857610100808354040283529160200191610793565b820191906000526020600020905b81548152906001019060200180831161077657829003601f168201915b5050505050905090565b60006107a88261212f565b6107e7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107de906142d3565b60405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b600061082d82611449565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561089e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161089590614333565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff166108bd61219b565b73ffffffffffffffffffffffffffffffffffffffff1614806108ec57506108eb816108e661219b565b611e95565b5b61092b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161092290614253565b60405180910390fd5b61093583836121a3565b505050565b600f5481565b6000600880549050905090565b61095e61095861219b565b8261225c565b61099d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161099490614373565b60405180910390fd5b6109a883838361233a565b505050565b600080339050803b91503273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610a25576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a1c906143d3565b60405180910390fd5b60008214610a68576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a5f906143d3565b60405180910390fd5b601960009054906101000a900460ff16610a8157600080fd5b60028460ff1610610ac7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610abe906142f3565b60405180910390fd5b600a831115610b0b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b0290614393565b60405180910390fd5b6000610b15610940565b9050611d4c8482610b269190614591565b1115610b67576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b5e90614353565b60405180910390fd5b6096611d4c610b769190614891565b8482610b829190614591565b1115610bc3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bba906143f3565b60405180910390fd5b601c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166379cc6790338667a688906bd8b00000610c1691906147fc565b6040518363ffffffff1660e01b8152600401610c339291906140d0565b600060405180830381600087803b158015610c4d57600080fd5b505af1158015610c61573d6000803e3d6000fd5b5050505083600c6000828254610c779190614591565b9250508190555060005b84811015610d3c5760008183610c979190614591565b905060008760ff1614610cc057600e6000815480929190610cb790614a10565b91905055610cd8565b600f6000815480929190610cd390614a10565b919050555b50610ce4878233612596565b600a600083815260200190815260200160002060006101000a8154816fffffffffffffffffffffffffffffffff021916908360801c0217905550610d283382612676565b508080610d3490614a10565b915050610c81565b50508041604051602001610d51929190613f6e565b6040516020818303038152906040528051906020012060188190555050505050565b6000610d7e83611846565b8210610dbf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610db690614173565b60405180910390fd5b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b609681565b611d4c81565b600e5481565b600080339050803b91503273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610ea1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e98906143d3565b60405180910390fd5b60008214610ee4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610edb906143d3565b60405180910390fd5b601960009054906101000a900460ff16610efd57600080fd5b60028360ff1610610f43576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f3a906142f3565b60405180910390fd5b6000610f4d610940565b9050611d4c8110610f93576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f8a906141b3565b60405180910390fd5b6096611d4c610fa29190614891565b600c5410610fe5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fdc906143f3565b60405180910390fd5b601c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166379cc67903367a688906bd8b000006040518363ffffffff1660e01b815260040161104a9291906140d0565b600060405180830381600087803b15801561106457600080fd5b505af1158015611078573d6000803e3d6000fd5b50505050600c600081548092919061108f90614a10565b919050555060008460ff16146110bb57600e60008154809291906110b290614a10565b919050556110d3565b600f60008154809291906110ce90614a10565b919050555b5060006110e1858333612596565b905080600a600084815260200190815260200160002060006101000a8154816fffffffffffffffffffffffffffffffff021916908360801c02179055506111283383612676565b5050804160405160200161113d929190613f6e565b60405160208183030381529060405280519060200120601881905550505050565b3373ffffffffffffffffffffffffffffffffffffffff16601960019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146111b857600080fd5b82601c60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555081601a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080601b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550505050565b61129b83838360405180602001604052806000815250611b4a565b505050565b6112af33630d15ea5e8361233a565b50565b606060006112bf83611846565b905060008167ffffffffffffffff811115611303577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280602002602001820160405280156113315781602001602082028036833780820191505090505b50905060005b828110156113a1576113498582610d73565b828281518110611382577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001018181525050808061139990614a10565b915050611337565b508092505050919050565b600b5481565b60006113bc610940565b82106113fd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113f4906143b3565b60405180910390fd5b60088281548110611437577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002001549050919050565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156114f2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114e990614293565b60405180910390fd5b80915050919050565b67a688906bd8b0000081565b60006115128261212f565b61151b57600080fd5b6000600a600084815260200190815260200160002060009054906101000a900460801b905060008060f81b9050630d15ea5e73ffffffffffffffffffffffffffffffffffffffff1661156c85611449565b73ffffffffffffffffffffffffffffffffffffffff16141561159057600160f81b90505b6000817effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff19169050611600816001856001601081106115f7577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b1a60f81b612844565b9050601060066008811061163d577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b01600081548110611677577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002090601091828204019190066002029054906101000a900461ffff1661ffff166116aa8460066128d5565b61ffff1610156116bf5780935050505061183b565b60005b60078160ff161015611833576000806116db86846128d5565b905060005b60108460ff166008811061171d577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b01805490508160ff16101561181d5760108460ff1660088110611769577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b018160ff16815481106117a5577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002090601091828204019190066002029054906101000a900461ffff16836117d49190614559565b92508261ffff168261ffff16101561180a57611803856002866117f791906145e7565b60ff168360f81b612844565b945061181d565b808061181590614a59565b9150506116e0565b505050808061182b90614a59565b9150506116c2565b508093505050505b919050565b600c5481565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156118b7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118ae90614273565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b60606001805461190d906149de565b80601f0160208091040260200160405190810160405280929190818152602001828054611939906149de565b80156119865780601f1061195b57610100808354040283529160200191611986565b820191906000526020600020905b81548152906001019060200180831161196957829003601f168201915b5050505050905090565b601960009054906101000a900460ff1681565b6119ab61219b565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611a19576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a1090614213565b60405180910390fd5b8060056000611a2661219b565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611ad361219b565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611b18919061411b565b60405180910390a35050565b601960019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b611b5b611b5561219b565b8361225c565b611b9a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b9190614373565b60405180910390fd5b611ba6848484846129b1565b50505050565b6060611bb78261212f565b611bc057600080fd5b6000611bcb83611507565b9050601a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663113132fd84836040518363ffffffff1660e01b8152600401611c2a92919061442e565b60006040518083038186803b158015611c4257600080fd5b505afa158015611c56573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f82011682018060405250810190611c7f91906135cb565b915050919050565b3373ffffffffffffffffffffffffffffffffffffffff16601b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611ce157600080fd5b6000611ceb610940565b9050611d4c8360ff1682611cff9190614591565b1115611d40576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d3790614353565b60405180910390fd5b600060038360ff161490508360ff16600b6000828254611d609190614591565b9250508190555060005b8460ff16811015611e8d57600082611d825784611dd7565b600287874244600d6000815480929190611d9b90614a10565b91905055604051602001611db3959493929190613f9a565b6040516020818303038152906040528051906020012060001c611dd69190614adf565b5b905060008285611de79190614591565b9050611df482828a612596565b600a600083815260200190815260200160002060006101000a8154816fffffffffffffffffffffffffffffffff021916908360801c021790555060008260ff1614611e5557600e6000815480929190611e4c90614a10565b91905055611e6d565b600f6000815480929190611e6890614a10565b919050555b50611e788882612676565b50508080611e8590614a10565b915050611d6a565b505050505050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b3373ffffffffffffffffffffffffffffffffffffffff16601960019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611f8357600080fd5b601960009054906101000a900460ff1615601960006101000a81548160ff021916908315150217905550565b3373ffffffffffffffffffffffffffffffffffffffff16601960019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161461200957600080fd5b80601960016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061211857507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80612128575061212782612a0d565b5b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff1661221683611449565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006122678261212f565b6122a6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161229d90614233565b60405180910390fd5b60006122b183611449565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16148061232057508373ffffffffffffffffffffffffffffffffffffffff166123088461079d565b73ffffffffffffffffffffffffffffffffffffffff16145b8061233157506123308185611e95565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff1661235a82611449565b73ffffffffffffffffffffffffffffffffffffffff16146123b0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123a790614313565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612420576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612417906141f3565b60405180910390fd5b61242b838383612a77565b6124366000826121a3565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546124869190614891565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546124dd9190614591565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b600080600060801b90506125af8160018760f81b612b8b565b9050600042448686600d600081546125c690614a10565b9190508190556018546040516020016125e496959493929190613ff9565b6040516020818303038152906040528051906020012060001c9050600080600090505b60078160ff16101561266857611d4c6127108261271061262791906146a2565b85612632919061461e565b61263c9190614adf565b6126469190614adf565b9150612653848284612c15565b9350808061266090614a59565b915050612607565b508293505050509392505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156126e6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126dd906142b3565b60405180910390fd5b6126ef8161212f565b1561272f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612726906141d3565b60405180910390fd5b61273b60008383612a77565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461278b9190614591565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b600060088361285391906147fc565b827effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191676ffffffffffffffffffffffffffffffffffffffffffffff1916901c60088461289f91906147fc565b68ff000000000000000060b81b76ffffffffffffffffffffffffffffffffffffffffffffff1916901c1985161790509392505050565b60008060006002846128e79190614856565b60026128f391906145e7565b90508460018261290391906145e7565b60ff166010811061293d577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b1a60f81b60f81c60ff16610100868360ff1660108110612986577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b1a60f81b60f81c60ff1661299a91906147c0565b6129a49190614559565b9150819250505092915050565b6129bc84848461233a565b6129c884848484612cbf565b612a07576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129fe90614193565b60405180910390fd5b50505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b612a82838383612e56565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612ac557612ac081612e5b565b612b04565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614612b0357612b028382612ea4565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612b4757612b4281613011565b612b86565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614612b8557612b848282613154565b5b5b505050565b6000600883612b9a91906147fc565b827effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166fffffffffffffffffffffffffffffffff1916901c600884612bdf91906147fc565b6fff00000000000000000000000000000060801b6fffffffffffffffffffffffffffffffff1916901c1985161790509392505050565b6000601083612c249190614856565b6010612c3091906145e7565b60ff168260f01b7dffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166fffffffffffffffffffffffffffffffff1916901c601084612c7a9190614856565b6010612c8691906145e7565b60ff166fffff000000000000000000000000000060801b6fffffffffffffffffffffffffffffffff1916901c1985161790509392505050565b6000612ce08473ffffffffffffffffffffffffffffffffffffffff166131d3565b15612e49578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612d0961219b565b8786866040518563ffffffff1660e01b8152600401612d2b9493929190614084565b602060405180830381600087803b158015612d4557600080fd5b505af1925050508015612d7657506040513d601f19601f82011682018060405250810190612d7391906135a2565b60015b612df9573d8060008114612da6576040519150601f19603f3d011682016040523d82523d6000602084013e612dab565b606091505b50600081511415612df1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612de890614193565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050612e4e565b600190505b949350505050565b505050565b6008805490506009600083815260200190815260200160002081905550600881908060018154018082558091505060019003906000526020600020016000909190919091505550565b60006001612eb184611846565b612ebb9190614891565b9050600060076000848152602001908152602001600020549050818114612fa0576000600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816007600083815260200190815260200160002081905550505b6007600084815260200190815260200160002060009055600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b600060016008805490506130259190614891565b905060006009600084815260200190815260200160002054905060006008838154811061307b577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000200154905080600883815481106130c3577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b906000526020600020018190555081600960008381526020019081526020016000208190555060096000858152602001908152602001600020600090556008805480613138577f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b600061315f83611846565b905081600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806007600084815260200190815260200160002081905550505050565b600080823b905060008111915050919050565b60006131f96131f484614488565b614457565b90508281526020810184848401111561321157600080fd5b61321c84828561499c565b509392505050565b6000613237613232846144b8565b614457565b90508281526020810184848401111561324f57600080fd5b61325a8482856149ab565b509392505050565b60008135905061327181614c04565b92915050565b60008135905061328681614c1b565b92915050565b60008135905061329b81614c32565b92915050565b6000815190506132b081614c32565b92915050565b600082601f8301126132c757600080fd5b81356132d78482602086016131e6565b91505092915050565b600082601f8301126132f157600080fd5b8151613301848260208601613224565b91505092915050565b60008135905061331981614c49565b92915050565b60008135905061332e81614c60565b92915050565b60006020828403121561334657600080fd5b600061335484828501613262565b91505092915050565b6000806040838503121561337057600080fd5b600061337e85828601613262565b925050602061338f85828601613262565b9150509250929050565b6000806000606084860312156133ae57600080fd5b60006133bc86828701613262565b93505060206133cd86828701613262565b92505060406133de86828701613262565b9150509250925092565b6000806000606084860312156133fd57600080fd5b600061340b86828701613262565b935050602061341c86828701613262565b925050604061342d8682870161330a565b9150509250925092565b6000806000806080858703121561344d57600080fd5b600061345b87828801613262565b945050602061346c87828801613262565b935050604061347d8782880161330a565b925050606085013567ffffffffffffffff81111561349a57600080fd5b6134a6878288016132b6565b91505092959194509250565b600080604083850312156134c557600080fd5b60006134d385828601613262565b92505060206134e485828601613277565b9150509250929050565b6000806040838503121561350157600080fd5b600061350f85828601613262565b92505060206135208582860161330a565b9150509250929050565b60008060006060848603121561353f57600080fd5b600061354d86828701613262565b935050602061355e8682870161331f565b925050604061356f8682870161331f565b9150509250925092565b60006020828403121561358b57600080fd5b60006135998482850161328c565b91505092915050565b6000602082840312156135b457600080fd5b60006135c2848285016132a1565b91505092915050565b6000602082840312156135dd57600080fd5b600082015167ffffffffffffffff8111156135f757600080fd5b613603848285016132e0565b91505092915050565b60006020828403121561361e57600080fd5b600061362c8482850161330a565b91505092915050565b60006020828403121561364757600080fd5b60006136558482850161331f565b91505092915050565b6000806040838503121561367157600080fd5b600061367f8582860161331f565b92505060206136908582860161330a565b9150509250929050565b60006136a68383613f22565b60208301905092915050565b6136c36136be826148d7565b614a95565b82525050565b6136d2816148c5565b82525050565b6136e96136e4826148c5565b614a83565b82525050565b60006136fa826144f8565b6137048185614526565b935061370f836144e8565b8060005b83811015613740578151613727888261369a565b975061373283614519565b925050600181019050613713565b5085935050505092915050565b613756816148e9565b82525050565b61376d613768826148f5565b614aa7565b82525050565b61377c8161492b565b82525050565b600061378d82614503565b6137978185614537565b93506137a78185602086016149ab565b6137b081614bcc565b840191505092915050565b60006137c68261450e565b6137d08185614548565b93506137e08185602086016149ab565b6137e981614bcc565b840191505092915050565b6000613801602b83614548565b91507f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008301527f74206f6620626f756e64730000000000000000000000000000000000000000006020830152604082019050919050565b6000613867603283614548565b91507f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008301527f63656976657220696d706c656d656e74657200000000000000000000000000006020830152604082019050919050565b60006138cd601c83614548565b91507f4e6f206d6f7265206d69636520666f72636520617661696c61626c65000000006000830152602082019050919050565b600061390d601c83614548565b91507f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006000830152602082019050919050565b600061394d602483614548565b91507f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008301527f72657373000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b60006139b3601983614548565b91507f4552433732313a20617070726f766520746f2063616c6c6572000000000000006000830152602082019050919050565b60006139f3602c83614548565b91507f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008301527f697374656e7420746f6b656e00000000000000000000000000000000000000006020830152604082019050919050565b6000613a59603883614548565b91507f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008301527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006020830152604082019050919050565b6000613abf602a83614548565b91507f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008301527f726f2061646472657373000000000000000000000000000000000000000000006020830152604082019050919050565b6000613b25602983614548565b91507f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008301527f656e7420746f6b656e00000000000000000000000000000000000000000000006020830152604082019050919050565b6000613b8b602083614548565b91507f4552433732313a206d696e7420746f20746865207a65726f20616464726573736000830152602082019050919050565b6000613bcb602c83614548565b91507f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008301527f697374656e7420746f6b656e00000000000000000000000000000000000000006020830152604082019050919050565b6000613c31601283614548565b91507f57726f6e6720636c6173732063686f73656e00000000000000000000000000006000830152602082019050919050565b6000613c71602983614548565b91507f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960008301527f73206e6f74206f776e00000000000000000000000000000000000000000000006020830152604082019050919050565b6000613cd7602183614548565b91507f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008301527f72000000000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000613d3d601c83614548565b91507f54686520616d6f756e7420657863656564206d617820737570706c79000000006000830152602082019050919050565b6000613d7d603183614548565b91507f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008301527f776e6572206e6f7220617070726f7665640000000000000000000000000000006020830152604082019050919050565b6000613de3601883614548565b91507f4d617820616d6f756e74207065722074782065786365656400000000000000006000830152602082019050919050565b6000613e23602c83614548565b91507f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008301527f7574206f6620626f756e647300000000000000000000000000000000000000006020830152604082019050919050565b6000613e89601483614548565b91507f4e6f20636f6e74726163747320616c6c6f7765640000000000000000000000006000830152602082019050919050565b6000613ec9602283614548565b91507f4e6f20756e7265736572766564206d69636520666f72636520617661696c616260008301527f6c650000000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b613f2b81614985565b82525050565b613f3a81614985565b82525050565b613f51613f4c82614985565b614ac3565b82525050565b613f68613f638261498f565b614acd565b82525050565b6000613f7a82856136d8565b601482019150613f8a82846136b2565b6014820191508190509392505050565b6000613fa682886136d8565b601482019150613fb68287613f57565b600182019150613fc68286613f40565b602082019150613fd68285613f40565b602082019150613fe68284613f40565b6020820191508190509695505050505050565b60006140058289613f40565b6020820191506140158288613f40565b6020820191506140258287613f40565b60208201915061403582866136d8565b6014820191506140458285613f40565b602082019150614055828461375c565b602082019150819050979650505050505050565b600060208201905061407e60008301846136c9565b92915050565b600060808201905061409960008301876136c9565b6140a660208301866136c9565b6140b36040830185613f31565b81810360608301526140c58184613782565b905095945050505050565b60006040820190506140e560008301856136c9565b6140f26020830184613f31565b9392505050565b6000602082019050818103600083015261411381846136ef565b905092915050565b6000602082019050614130600083018461374d565b92915050565b600060208201905061414b6000830184613773565b92915050565b6000602082019050818103600083015261416b81846137bb565b905092915050565b6000602082019050818103600083015261418c816137f4565b9050919050565b600060208201905081810360008301526141ac8161385a565b9050919050565b600060208201905081810360008301526141cc816138c0565b9050919050565b600060208201905081810360008301526141ec81613900565b9050919050565b6000602082019050818103600083015261420c81613940565b9050919050565b6000602082019050818103600083015261422c816139a6565b9050919050565b6000602082019050818103600083015261424c816139e6565b9050919050565b6000602082019050818103600083015261426c81613a4c565b9050919050565b6000602082019050818103600083015261428c81613ab2565b9050919050565b600060208201905081810360008301526142ac81613b18565b9050919050565b600060208201905081810360008301526142cc81613b7e565b9050919050565b600060208201905081810360008301526142ec81613bbe565b9050919050565b6000602082019050818103600083015261430c81613c24565b9050919050565b6000602082019050818103600083015261432c81613c64565b9050919050565b6000602082019050818103600083015261434c81613cca565b9050919050565b6000602082019050818103600083015261436c81613d30565b9050919050565b6000602082019050818103600083015261438c81613d70565b9050919050565b600060208201905081810360008301526143ac81613dd6565b9050919050565b600060208201905081810360008301526143cc81613e16565b9050919050565b600060208201905081810360008301526143ec81613e7c565b9050919050565b6000602082019050818103600083015261440c81613ebc565b9050919050565b60006020820190506144286000830184613f31565b92915050565b60006040820190506144436000830185613f31565b6144506020830184613773565b9392505050565b6000604051905081810181811067ffffffffffffffff8211171561447e5761447d614b9d565b5b8060405250919050565b600067ffffffffffffffff8211156144a3576144a2614b9d565b5b601f19601f8301169050602081019050919050565b600067ffffffffffffffff8211156144d3576144d2614b9d565b5b601f19601f8301169050602081019050919050565b6000819050602082019050919050565b600081519050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600061456482614957565b915061456f83614957565b92508261ffff0382111561458657614585614b10565b5b828201905092915050565b600061459c82614985565b91506145a783614985565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156145dc576145db614b10565b5b828201905092915050565b60006145f28261498f565b91506145fd8361498f565b92508260ff0382111561461357614612614b10565b5b828201905092915050565b600061462982614985565b915061463483614985565b92508261464457614643614b3f565b5b828204905092915050565b6000808291508390505b60018511156146995780860481111561467557614674614b10565b5b60018516156146845780820291505b808102905061469285614bf7565b9450614659565b94509492505050565b60006146ad82614985565b91506146b88361498f565b92506146e57fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff84846146ed565b905092915050565b6000826146fd57600190506147b9565b8161470b57600090506147b9565b8160018114614721576002811461472b5761475a565b60019150506147b9565b60ff84111561473d5761473c614b10565b5b8360020a91508482111561475457614753614b10565b5b506147b9565b5060208310610133831016604e8410600b841016171561478f5782820a90508381111561478a57614789614b10565b5b6147b9565b61479c848484600161464f565b925090508184048111156147b3576147b2614b10565b5b81810290505b9392505050565b60006147cb82614957565b91506147d683614957565b92508161ffff04831182151516156147f1576147f0614b10565b5b828202905092915050565b600061480782614985565b915061481283614985565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561484b5761484a614b10565b5b828202905092915050565b60006148618261498f565b915061486c8361498f565b92508160ff048311821515161561488657614885614b10565b5b828202905092915050565b600061489c82614985565b91506148a783614985565b9250828210156148ba576148b9614b10565b5b828203905092915050565b60006148d082614965565b9050919050565b60006148e282614965565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b60007fffffffffffffffffff000000000000000000000000000000000000000000000082169050919050565b600061ffff82169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b82818337600083830152505050565b60005b838110156149c95780820151818401526020810190506149ae565b838111156149d8576000848401525b50505050565b600060028204905060018216806149f657607f821691505b60208210811415614a0a57614a09614b6e565b5b50919050565b6000614a1b82614985565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415614a4e57614a4d614b10565b5b600182019050919050565b6000614a648261498f565b915060ff821415614a7857614a77614b10565b5b600182019050919050565b6000614a8e82614ab1565b9050919050565b6000614aa082614ab1565b9050919050565b6000819050919050565b6000614abc82614bea565b9050919050565b6000819050919050565b6000614ad882614bdd565b9050919050565b6000614aea82614985565b9150614af583614985565b925082614b0557614b04614b3f565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b60008160f81b9050919050565b60008160601b9050919050565b60008160011c9050919050565b614c0d816148c5565b8114614c1857600080fd5b50565b614c24816148e9565b8114614c2f57600080fd5b50565b614c3b816148ff565b8114614c4657600080fd5b50565b614c5281614985565b8114614c5d57600080fd5b50565b614c698161498f565b8114614c7457600080fd5b5056fea2646970667358221220270ca589d83ef60430dae151de181d376bd272fdb81624f3f417929dc8ecbfaf64736f6c63430008000033

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.