FTM Price: $0.32 (-2.83%)
Gas: 28 Gwei

Token

Nightmare On Fantom St (NOFS)
 

Overview

Max Total Supply

2,357 NOFS

Holders

289

Market

Fully Diluted Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Balance
0 NOFS
0x0000000000000000000000000000000000000000
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information

Contract Source Code Verified (Exact Match)

Contract Name:
NightmareOnFantomSt

Compiler Version
v0.8.0+commit.c7dfd78e

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 16 : NightmareOnFantomSt.sol
/**************************************************************************************
 * This contract is an Experiment, and should be used at your own risk.
 * 
 * Author: Stinky Fi & Twisted Tech
 * Name:   Nightmare On Fantom St.
 * Desc:   Knock on our door, and say the magic words, if you dare!
 *         Minters will receive a Trick or a Treat, determined by on-chain randomness.
 *         The ghost haunting our contract has replaced the mint cap with a time cap. 
 *         When this contract is Haunted, You will be able to mint as many times as
 *         you want. Take advantage, this haunting will not last long! Once Halloween
 *         is over, no one will be able to mint from this contract again!
 *************************************************************************************/

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

import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Burnable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/Counters.sol";

contract NightmareOnFantomSt is ERC721Enumerable, ERC721Burnable, ReentrancyGuard, Ownable {

    using Counters for Counters.Counter;
    Counters.Counter private _tokenIds;
    
    /*********************************************
     * Haunting (Minting starts):
     * Saturday, October 30, 2021 12:00:00 AM EST
     * Friday, October 29, 2021 9:00:00 PM PST
     * Saturday, October 30, 2021 4:00:00 AM GMT
     *********************************************/
    uint256 public haunting  = 1635480000;
    /*********************************************
     * Exorcism (Minting ends):
     * Monday, November 1, 2021 3:00:00 AM EST
     * Monday, November 1, 2021 12:00:00 PM PST
     * Monday, November 1, 2021 7:00:00 AM GMT
     *********************************************/
    uint256 public exorcism  = 1635750000;
     // Mint Price 1 FTM
    uint256 public price     = 1000000000000000000;

    // Trick Rarities
    string[] private tricks;
    string[] private rare_tricks;
    string[] private legendary_tricks;
    // Treat Rarities
    string[] private treats;
    string[] private rare_treats;
    string[] private legendary_treats;
    
    address public beneficiary;
    //Free mints
    mapping (address => uint256) public winner;
    
    event NaughtyList(address indexed _winner, uint256 _tokenId, uint256 _date);
    
    constructor(address _beneficiary) ERC721("Nightmare On Fantom St", "NOFS") {
        beneficiary = _beneficiary;
    }

    function setTrickBag(string[] memory _common, string[] memory _rare, string[] memory _legendary) public onlyOwner {
        tricks = _common;
        rare_tricks = _rare;
        legendary_tricks = _legendary;
    }
    
    function setTreatBag(string[] memory _common, string[] memory _rare, string[] memory _legendary) public onlyOwner {
        treats = _common;
        rare_treats = _rare;
        legendary_treats = _legendary;
    }
    
   /************************************************************* 
    * Desc: If you won
    *      After using your freebie, you can use claimHandfull.
    ***********************************************************/
    function contestWinner() public nonReentrant {
        uint8 result;
        bool _haunting = witchingHour();
        require(_haunting, "This Contract is no longer Haunted");
        require(winner[msg.sender] > 0, "Your name is not on the list, rejected.");
        for(uint256 i = 1; i <= winner[msg.sender]; i++)
        {
            _tokenIds.increment();
            _safeMint(_msgSender(), _tokenIds.current());
            
            result = bowlGrab(_tokenIds.current());
            if(result == 1 || result == 2){
                emit NaughtyList(msg.sender, _tokenIds.current(), block.timestamp);
            }
        }
        delete winner[msg.sender];
    }
    
	/************************************************************* 
     * Desc: If you won
     *      After using your freebie, you can use claimHandfull.
     ***********************************************************/
    function claim(uint256 _mintAmount) public payable nonReentrant {
	    uint8 result;
        bool _haunting = witchingHour();
        require(_haunting, "This Contract is no longer Haunted");
        uint256 _bundle = _mintAmount * price;
        require(_bundle == msg.value, "Incorrect payment amount");
        
        for(uint256 i = 0; i < _mintAmount; i++)
        {
            _tokenIds.increment();
            _safeMint(_msgSender(), _tokenIds.current());
            result = bowlGrab(_tokenIds.current());
            if(result == 1 || result == 2){
                emit NaughtyList(msg.sender, _tokenIds.current(), block.timestamp);
            }
        }
        
        payable(beneficiary).transfer(_bundle);
    }

    
    function tokenURI(uint256 _tokenId) override public view returns (string memory) {
        require(_tokenId <= _tokenIds.current(), "TokenID Has not been minted yet");
        return reveal(_tokenId);
    }
    
    /***********************************************************
     * random function found in $LOOT.
     ***********************************************************/
    function random(uint256 _tokenId, string memory _keyPrefix) internal pure returns (uint256) {
        bytes memory abiEncoded = abi.encodePacked(_keyPrefix, toString(_tokenId));
        return uint256(keccak256(abiEncoded));
    }
    
    /*************************************************
     * Desc: Inspired by $FLOOT ($LOOT derivative)
     *       Dice Roll 1:
     *          1/4 change of a trick
     *          3/4 change of a treat
     *       Dice Roll 2:
     *          1/8 change of upgrade to RARE
     *       Dice Roll 3(if got RARE):
     *          1/12 change of LEGENDARY
     **************************************************/
    function bowlGrab(uint256 _tokenId) internal pure returns (uint8) {
        uint256 diceRoll = random(_tokenId, "Trick-Or-Treat");

        if(diceRoll % 4 == 0)
        {
            diceRoll = random(_tokenId, "Smell-My-Feet");
            //Trick
            if(diceRoll % 8 == 0) // Rare 
            {   
                diceRoll = random(_tokenId, "Good-To-Eat");
                if(diceRoll % 12 == 0) //legendary Trick
                    return 1;
                return 3;
            }
            return 5;
        }
        else
        {
            diceRoll = random(_tokenId, "Smell-My-Feet");
            //Treat
            if(diceRoll % 8 == 0) //Rare Treat
            {
                diceRoll = random(_tokenId, "Good-To-Eat");
                if(diceRoll % 12 == 0)
                    return 2;  
                return 4;   
            }
            return 6;
        }
    }     
     

	/************************************
     * Desc: Determine Type and Rarity
    ************************************/         
    function reveal(uint256 _tokenId) internal view returns (string memory) {
        uint8 result = bowlGrab(_tokenId);
        
        if(result == 5)
            return tricks[_tokenId % tricks.length];
        else if (result == 3)
            return rare_tricks[_tokenId % tricks.length];
        else if (result == 1)
            return legendary_tricks[_tokenId % legendary_tricks.length];
        else if (result == 2)
            return legendary_treats[_tokenId % legendary_treats.length];
        else if (result == 4)
            return rare_treats[_tokenId % rare_treats.length];
        else
            return treats[_tokenId % treats.length];
    }
    
    
    // From $FLOOT
    function toString(uint256 value) internal pure returns (string memory) {
    // Inspired by OraclizeAPI's implementation - MIT license
    // 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);
    }
    
    /**********************************************************
     * Desc: All of the minting functions, will only operate
     *       during Halloween weekend 2021
     *********************************************************/
    function witchingHour() public view returns (bool) {
        if(block.timestamp >= haunting && block.timestamp < exorcism)
            {return true;}
        else
            {return false;}
    }
    
    /**********************************************
     * Desc: Contest Winners and Partnerships
     *********************************************/
    function assignWinners(address[] memory _winners, uint256 winnings) public onlyOwner {
        for (uint i=0; i < _winners.length; i++) {
            winner[_winners[i]] = winnings;
        }
    }
    
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual override(ERC721, ERC721Enumerable) {
        super._beforeTokenTransfer(from, to, tokenId);

        // do stuff before every transfer
        // e.g. check that vote (other than when minted) 
        // being transferred to registered candidate
    }
    
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override(ERC721, ERC721Enumerable) returns (bool) {
        return
            interfaceId == type(IERC721).interfaceId ||
            interfaceId == type(IERC721Metadata).interfaceId ||
            super.supportsInterface(interfaceId);
    }
}

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

pragma solidity ^0.8.0;

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

/**
 * @title ERC721 Burnable Token
 * @dev ERC721 Token that can be irreversibly burned (destroyed).
 */
abstract contract ERC721Burnable is Context, ERC721 {
    /**
     * @dev Burns `tokenId`. See {ERC721-_burn}.
     *
     * Requirements:
     *
     * - The caller must own `tokenId` or be an approved operator.
     */
    function burn(uint256 tokenId) public virtual {
        //solhint-disable-next-line max-line-length
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721Burnable: caller is not owner nor approved");
        _burn(tokenId);
    }
}

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

pragma solidity ^0.8.0;

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

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

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

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

        _;

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

File 5 of 16 : Ownable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

File 7 of 16 : 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 8 of 16 : 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 9 of 16 : IERC721.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

File 10 of 16 : 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 11 of 16 : 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 12 of 16 : Address.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

File 15 of 16 : ERC165.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

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

pragma solidity ^0.8.0;

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_beneficiary","type":"address"}],"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":"_winner","type":"address"},{"indexed":false,"internalType":"uint256","name":"_tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_date","type":"uint256"}],"name":"NaughtyList","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_winners","type":"address[]"},{"internalType":"uint256","name":"winnings","type":"uint256"}],"name":"assignWinners","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":"beneficiary","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintAmount","type":"uint256"}],"name":"claim","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"contestWinner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"exorcism","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"haunting","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string[]","name":"_common","type":"string[]"},{"internalType":"string[]","name":"_rare","type":"string[]"},{"internalType":"string[]","name":"_legendary","type":"string[]"}],"name":"setTreatBag","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string[]","name":"_common","type":"string[]"},{"internalType":"string[]","name":"_rare","type":"string[]"},{"internalType":"string[]","name":"_legendary","type":"string[]"}],"name":"setTrickBag","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":"","type":"address"}],"name":"winner","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"witchingHour","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"}]

Contract Creation Code

608060405263617b71c0600d5563617f9070600e55670de0b6b3a7640000600f553480156200002d57600080fd5b5060405162005217380380620052178339818101604052810190620000539190620002f8565b6040518060400160405280601681526020017f4e696768746d617265204f6e2046616e746f6d205374000000000000000000008152506040518060400160405280600481526020017f4e4f4653000000000000000000000000000000000000000000000000000000008152508160009080519060200190620000d792919062000231565b508060019080519060200190620000f092919062000231565b5050506001600a819055506200011b6200010f6200016360201b60201c565b6200016b60201b60201c565b80601660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050620003d7565b600033905090565b6000600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8280546200023f9062000358565b90600052602060002090601f016020900481019282620002635760008555620002af565b82601f106200027e57805160ff1916838001178555620002af565b82800160010185558215620002af579182015b82811115620002ae57825182559160200191906001019062000291565b5b509050620002be9190620002c2565b5090565b5b80821115620002dd576000816000905550600101620002c3565b5090565b600081519050620002f281620003bd565b92915050565b6000602082840312156200030b57600080fd5b60006200031b84828501620002e1565b91505092915050565b6000620003318262000338565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600060028204905060018216806200037157607f821691505b602082108114156200038857620003876200038e565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b620003c88162000324565b8114620003d457600080fd5b50565b614e3080620003e76000396000f3fe6080604052600436106101d85760003560e01c80635efa3c4511610102578063a035b1fe11610095578063bcefaab611610064578063bcefaab61461069b578063c87b56dd146106c6578063e985e9c514610703578063f2fde38b14610740576101d8565b8063a035b1fe146105f5578063a22cb46514610620578063afbdadcd14610649578063b88d4fde14610672576101d8565b8063860d3e69116100d1578063860d3e691461055d578063885ec659146105885780638da5cb5b1461059f57806395d89b41146105ca576101d8565b80635efa3c45146104a35780636352211e146104cc57806370a0823114610509578063715018a614610546576101d8565b80632ad957861161017a57806342842e0e1161014957806342842e0e146103e957806342966c68146104125780634f6ccce71461043b578063595b9b4d14610478576101d8565b80632ad95786146103285780632f745c5914610365578063379607f5146103a257806338af3eed146103be576101d8565b8063095ea7b3116101b6578063095ea7b31461028257806318160ddd146102ab57806323b872dd146102d657806324cf69c2146102ff576101d8565b806301ffc9a7146101dd57806306fdde031461021a578063081812fc14610245575b600080fd5b3480156101e957600080fd5b5061020460048036038101906101ff9190613bd7565b610769565b60405161021191906145cd565b60405180910390f35b34801561022657600080fd5b5061022f61084b565b60405161023c91906145e8565b60405180910390f35b34801561025157600080fd5b5061026c60048036038101906102679190613c29565b6108dd565b6040516102799190614566565b60405180910390f35b34801561028e57600080fd5b506102a960048036038101906102a49190613ab0565b610962565b005b3480156102b757600080fd5b506102c0610a7a565b6040516102cd91906148ea565b60405180910390f35b3480156102e257600080fd5b506102fd60048036038101906102f891906139aa565b610a87565b005b34801561030b57600080fd5b5061032660048036038101906103219190613b40565b610ae7565b005b34801561033457600080fd5b5061034f600480360381019061034a9190613945565b610bad565b60405161035c91906148ea565b60405180910390f35b34801561037157600080fd5b5061038c60048036038101906103879190613ab0565b610bc5565b60405161039991906148ea565b60405180910390f35b6103bc60048036038101906103b79190613c29565b610c6a565b005b3480156103ca57600080fd5b506103d3610e9b565b6040516103e09190614566565b60405180910390f35b3480156103f557600080fd5b50610410600480360381019061040b91906139aa565b610ec1565b005b34801561041e57600080fd5b5061043960048036038101906104349190613c29565b610ee1565b005b34801561044757600080fd5b50610462600480360381019061045d9190613c29565b610f3d565b60405161046f91906148ea565b60405180910390f35b34801561048457600080fd5b5061048d610fd4565b60405161049a91906148ea565b60405180910390f35b3480156104af57600080fd5b506104ca60048036038101906104c59190613b40565b610fda565b005b3480156104d857600080fd5b506104f360048036038101906104ee9190613c29565b6110a0565b6040516105009190614566565b60405180910390f35b34801561051557600080fd5b50610530600480360381019061052b9190613945565b611152565b60405161053d91906148ea565b60405180910390f35b34801561055257600080fd5b5061055b61120a565b005b34801561056957600080fd5b50610572611292565b60405161057f91906145cd565b60405180910390f35b34801561059457600080fd5b5061059d6112bd565b005b3480156105ab57600080fd5b506105b4611536565b6040516105c19190614566565b60405180910390f35b3480156105d657600080fd5b506105df611560565b6040516105ec91906145e8565b60405180910390f35b34801561060157600080fd5b5061060a6115f2565b60405161061791906148ea565b60405180910390f35b34801561062c57600080fd5b5061064760048036038101906106429190613a74565b6115f8565b005b34801561065557600080fd5b50610670600480360381019061066b9190613aec565b611779565b005b34801561067e57600080fd5b50610699600480360381019061069491906139f9565b61189d565b005b3480156106a757600080fd5b506106b06118ff565b6040516106bd91906148ea565b60405180910390f35b3480156106d257600080fd5b506106ed60048036038101906106e89190613c29565b611905565b6040516106fa91906145e8565b60405180910390f35b34801561070f57600080fd5b5061072a6004803603810190610725919061396e565b611963565b60405161073791906145cd565b60405180910390f35b34801561074c57600080fd5b5061076760048036038101906107629190613945565b6119f7565b005b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061083457507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610844575061084382611aef565b5b9050919050565b60606000805461085a90614c25565b80601f016020809104026020016040519081016040528092919081815260200182805461088690614c25565b80156108d35780601f106108a8576101008083540402835291602001916108d3565b820191906000526020600020905b8154815290600101906020018083116108b657829003601f168201915b5050505050905090565b60006108e882611b69565b610927576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161091e906147ea565b60405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b600061096d826110a0565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156109de576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109d59061484a565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff166109fd611bd5565b73ffffffffffffffffffffffffffffffffffffffff161480610a2c5750610a2b81610a26611bd5565b611963565b5b610a6b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a629061470a565b60405180910390fd5b610a758383611bdd565b505050565b6000600880549050905090565b610a98610a92611bd5565b82611c96565b610ad7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ace9061486a565b60405180910390fd5b610ae2838383611d74565b505050565b610aef611bd5565b73ffffffffffffffffffffffffffffffffffffffff16610b0d611536565b73ffffffffffffffffffffffffffffffffffffffff1614610b63576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b5a9061480a565b60405180910390fd5b8260139080519060200190610b79929190613588565b508160149080519060200190610b90929190613588565b508060159080519060200190610ba7929190613588565b50505050565b60176020528060005260406000206000915090505481565b6000610bd083611152565b8210610c11576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c089061460a565b60405180910390fd5b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b6002600a541415610cb0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ca7906148aa565b60405180910390fd5b6002600a81905550600080610cc3611292565b905080610d05576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cfc906147aa565b60405180910390fd5b6000600f5484610d159190614ae1565b9050348114610d59576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d50906146ca565b60405180910390fd5b60005b84811015610e2357610d6e600c611fd0565b610d88610d79611bd5565b610d83600c611fe6565b611ff4565b610d9a610d95600c611fe6565b612012565b935060018460ff161480610db1575060028460ff16145b15610e10573373ffffffffffffffffffffffffffffffffffffffff167f8afcdbc426c286fea7e19bcd9301ea66fc7ff1f180134834ea355aa2024cc439610df8600c611fe6565b42604051610e07929190614905565b60405180910390a25b8080610e1b90614c57565b915050610d5c565b50601660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050158015610e8c573d6000803e3d6000fd5b505050506001600a8190555050565b601660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b610edc8383836040518060200160405280600081525061189d565b505050565b610ef2610eec611bd5565b82611c96565b610f31576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f28906148ca565b60405180910390fd5b610f3a81612200565b50565b6000610f47610a7a565b8210610f88576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f7f9061488a565b60405180910390fd5b60088281548110610fc2577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002001549050919050565b600e5481565b610fe2611bd5565b73ffffffffffffffffffffffffffffffffffffffff16611000611536565b73ffffffffffffffffffffffffffffffffffffffff1614611056576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161104d9061480a565b60405180910390fd5b826010908051906020019061106c929190613588565b508160119080519060200190611083929190613588565b50806012908051906020019061109a929190613588565b50505050565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611149576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111409061474a565b60405180910390fd5b80915050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156111c3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111ba9061472a565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b611212611bd5565b73ffffffffffffffffffffffffffffffffffffffff16611230611536565b73ffffffffffffffffffffffffffffffffffffffff1614611286576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161127d9061480a565b60405180910390fd5b6112906000612311565b565b6000600d5442101580156112a75750600e5442105b156112b557600190506112ba565b600090505b90565b6002600a541415611303576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112fa906148aa565b60405180910390fd5b6002600a81905550600080611316611292565b905080611358576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161134f906147aa565b60405180910390fd5b6000601760003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054116113da576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113d19061478a565b60405180910390fd5b6000600190505b601760003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205481116114e657611431600c611fd0565b61144b61143c611bd5565b611446600c611fe6565b611ff4565b61145d611458600c611fe6565b612012565b925060018360ff161480611474575060028360ff16145b156114d3573373ffffffffffffffffffffffffffffffffffffffff167f8afcdbc426c286fea7e19bcd9301ea66fc7ff1f180134834ea355aa2024cc4396114bb600c611fe6565b426040516114ca929190614905565b60405180910390a25b80806114de90614c57565b9150506113e1565b50601760003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000905550506001600a81905550565b6000600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60606001805461156f90614c25565b80601f016020809104026020016040519081016040528092919081815260200182805461159b90614c25565b80156115e85780601f106115bd576101008083540402835291602001916115e8565b820191906000526020600020905b8154815290600101906020018083116115cb57829003601f168201915b5050505050905090565b600f5481565b611600611bd5565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561166e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611665906146aa565b60405180910390fd5b806005600061167b611bd5565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611728611bd5565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161176d91906145cd565b60405180910390a35050565b611781611bd5565b73ffffffffffffffffffffffffffffffffffffffff1661179f611536565b73ffffffffffffffffffffffffffffffffffffffff16146117f5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117ec9061480a565b60405180910390fd5b60005b825181101561189857816017600085848151811061183f577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550808061189090614c57565b9150506117f8565b505050565b6118ae6118a8611bd5565b83611c96565b6118ed576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118e49061486a565b60405180910390fd5b6118f9848484846123d7565b50505050565b600d5481565b6060611911600c611fe6565b821115611953576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161194a906147ca565b60405180910390fd5b61195c82612433565b9050919050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6119ff611bd5565b73ffffffffffffffffffffffffffffffffffffffff16611a1d611536565b73ffffffffffffffffffffffffffffffffffffffff1614611a73576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a6a9061480a565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611ae3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ada9061464a565b60405180910390fd5b611aec81612311565b50565b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611b625750611b61826129d8565b5b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16611c50836110a0565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000611ca182611b69565b611ce0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cd7906146ea565b60405180910390fd5b6000611ceb836110a0565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480611d5a57508373ffffffffffffffffffffffffffffffffffffffff16611d42846108dd565b73ffffffffffffffffffffffffffffffffffffffff16145b80611d6b5750611d6a8185611963565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff16611d94826110a0565b73ffffffffffffffffffffffffffffffffffffffff1614611dea576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611de19061482a565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611e5a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e519061468a565b60405180910390fd5b611e65838383612aba565b611e70600082611bdd565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611ec09190614b3b565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611f179190614a5a565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b6001816000016000828254019250508190555050565b600081600001549050919050565b61200e828260405180602001604052806000815250612aca565b5050565b600080612054836040518060400160405280600e81526020017f547269636b2d4f722d5472656174000000000000000000000000000000000000815250612b25565b905060006004826120659190614ca0565b1415612135576120aa836040518060400160405280600d81526020017f536d656c6c2d4d792d4665657400000000000000000000000000000000000000815250612b25565b905060006008826120bb9190614ca0565b141561212b57612100836040518060400160405280600b81526020017f476f6f642d546f2d456174000000000000000000000000000000000000000000815250612b25565b90506000600c826121119190614ca0565b14156121215760019150506121fb565b60039150506121fb565b60059150506121fb565b612174836040518060400160405280600d81526020017f536d656c6c2d4d792d4665657400000000000000000000000000000000000000815250612b25565b905060006008826121859190614ca0565b14156121f5576121ca836040518060400160405280600b81526020017f476f6f642d546f2d456174000000000000000000000000000000000000000000815250612b25565b90506000600c826121db9190614ca0565b14156121eb5760029150506121fb565b60049150506121fb565b60069150505b919050565b600061220b826110a0565b905061221981600084612aba565b612224600083611bdd565b6001600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546122749190614b3b565b925050819055506002600083815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905581600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b6000600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6123e2848484611d74565b6123ee84848484612b68565b61242d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124249061462a565b60405180910390fd5b50505050565b6060600061244083612012565b905060058160ff1614156125325760108080549050846124609190614ca0565b81548110612497577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000200180546124ac90614c25565b80601f01602080910402602001604051908101604052809291908181526020018280546124d890614c25565b80156125255780601f106124fa57610100808354040283529160200191612525565b820191906000526020600020905b81548152906001019060200180831161250857829003601f168201915b50505050509150506129d3565b60038160ff161415612623576011601080549050846125519190614ca0565b81548110612588577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002001805461259d90614c25565b80601f01602080910402602001604051908101604052809291908181526020018280546125c990614c25565b80156126165780601f106125eb57610100808354040283529160200191612616565b820191906000526020600020905b8154815290600101906020018083116125f957829003601f168201915b50505050509150506129d3565b60018160ff1614156127135760128080549050846126419190614ca0565b81548110612678577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002001805461268d90614c25565b80601f01602080910402602001604051908101604052809291908181526020018280546126b990614c25565b80156127065780601f106126db57610100808354040283529160200191612706565b820191906000526020600020905b8154815290600101906020018083116126e957829003601f168201915b50505050509150506129d3565b60028160ff1614156128035760158080549050846127319190614ca0565b81548110612768577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002001805461277d90614c25565b80601f01602080910402602001604051908101604052809291908181526020018280546127a990614c25565b80156127f65780601f106127cb576101008083540402835291602001916127f6565b820191906000526020600020905b8154815290600101906020018083116127d957829003601f168201915b50505050509150506129d3565b60048160ff1614156128f35760148080549050846128219190614ca0565b81548110612858577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002001805461286d90614c25565b80601f016020809104026020016040519081016040528092919081815260200182805461289990614c25565b80156128e65780601f106128bb576101008083540402835291602001916128e6565b820191906000526020600020905b8154815290600101906020018083116128c957829003601f168201915b50505050509150506129d3565b60138080549050846129059190614ca0565b8154811061293c577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002001805461295190614c25565b80601f016020809104026020016040519081016040528092919081815260200182805461297d90614c25565b80156129ca5780601f1061299f576101008083540402835291602001916129ca565b820191906000526020600020905b8154815290600101906020018083116129ad57829003601f168201915b50505050509150505b919050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612aa357507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80612ab35750612ab282612cff565b5b9050919050565b612ac5838383612d69565b505050565b612ad48383612e7d565b612ae16000848484612b68565b612b20576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b179061462a565b60405180910390fd5b505050565b60008082612b328561304b565b604051602001612b43929190614542565b6040516020818303038152906040529050808051906020012060001c91505092915050565b6000612b898473ffffffffffffffffffffffffffffffffffffffff166131f8565b15612cf2578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612bb2611bd5565b8786866040518563ffffffff1660e01b8152600401612bd49493929190614581565b602060405180830381600087803b158015612bee57600080fd5b505af1925050508015612c1f57506040513d601f19601f82011682018060405250810190612c1c9190613c00565b60015b612ca2573d8060008114612c4f576040519150601f19603f3d011682016040523d82523d6000602084013e612c54565b606091505b50600081511415612c9a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c919061462a565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050612cf7565b600190505b949350505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b612d7483838361320b565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612db757612db281613210565b612df6565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614612df557612df48382613259565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612e3957612e34816133c6565b612e78565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614612e7757612e768282613509565b5b5b505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612eed576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ee49061476a565b60405180910390fd5b612ef681611b69565b15612f36576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f2d9061466a565b60405180910390fd5b612f4260008383612aba565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612f929190614a5a565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b60606000821415613093576040518060400160405280600181526020017f300000000000000000000000000000000000000000000000000000000000000081525090506131f3565b600082905060005b600082146130c55780806130ae90614c57565b915050600a826130be9190614ab0565b915061309b565b60008167ffffffffffffffff811115613107577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156131395781602001600182028036833780820191505090505b5090505b600085146131ec576001826131529190614b3b565b9150600a856131619190614ca0565b603061316d9190614a5a565b60f81b8183815181106131a9577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a856131e59190614ab0565b945061313d565b8093505050505b919050565b600080823b905060008111915050919050565b505050565b6008805490506009600083815260200190815260200160002081905550600881908060018154018082558091505060019003906000526020600020016000909190919091505550565b6000600161326684611152565b6132709190614b3b565b9050600060076000848152602001908152602001600020549050818114613355576000600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816007600083815260200190815260200160002081905550505b6007600084815260200190815260200160002060009055600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b600060016008805490506133da9190614b3b565b9050600060096000848152602001908152602001600020549050600060088381548110613430577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b906000526020600020015490508060088381548110613478577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000200181905550816009600083815260200190815260200160002081905550600960008581526020019081526020016000206000905560088054806134ed577f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b600061351483611152565b905081600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806007600084815260200190815260200160002081905550505050565b8280548282559060005260206000209081019282156135d7579160200282015b828111156135d65782518290805190602001906135c69291906135e8565b50916020019190600101906135a8565b5b5090506135e4919061366e565b5090565b8280546135f490614c25565b90600052602060002090601f016020900481019282613616576000855561365d565b82601f1061362f57805160ff191683800117855561365d565b8280016001018555821561365d579182015b8281111561365c578251825591602001919060010190613641565b5b50905061366a9190613692565b5090565b5b8082111561368e576000818161368591906136af565b5060010161366f565b5090565b5b808211156136ab576000816000905550600101613693565b5090565b5080546136bb90614c25565b6000825580601f106136cd57506136ec565b601f0160209004906000526020600020908101906136eb9190613692565b5b50565b60006137026136fd8461495f565b61492e565b9050808382526020820190508285602086028201111561372157600080fd5b60005b8581101561375157816137378882613834565b845260208401935060208301925050600181019050613724565b5050509392505050565b600061376e6137698461498b565b61492e565b9050808382526020820190508260005b858110156137ae57813585016137948882613906565b84526020840193506020830192505060018101905061377e565b5050509392505050565b60006137cb6137c6846149b7565b61492e565b9050828152602081018484840111156137e357600080fd5b6137ee848285614be3565b509392505050565b6000613809613804846149e7565b61492e565b90508281526020810184848401111561382157600080fd5b61382c848285614be3565b509392505050565b60008135905061384381614d9e565b92915050565b600082601f83011261385a57600080fd5b813561386a8482602086016136ef565b91505092915050565b600082601f83011261388457600080fd5b813561389484826020860161375b565b91505092915050565b6000813590506138ac81614db5565b92915050565b6000813590506138c181614dcc565b92915050565b6000815190506138d681614dcc565b92915050565b600082601f8301126138ed57600080fd5b81356138fd8482602086016137b8565b91505092915050565b600082601f83011261391757600080fd5b81356139278482602086016137f6565b91505092915050565b60008135905061393f81614de3565b92915050565b60006020828403121561395757600080fd5b600061396584828501613834565b91505092915050565b6000806040838503121561398157600080fd5b600061398f85828601613834565b92505060206139a085828601613834565b9150509250929050565b6000806000606084860312156139bf57600080fd5b60006139cd86828701613834565b93505060206139de86828701613834565b92505060406139ef86828701613930565b9150509250925092565b60008060008060808587031215613a0f57600080fd5b6000613a1d87828801613834565b9450506020613a2e87828801613834565b9350506040613a3f87828801613930565b925050606085013567ffffffffffffffff811115613a5c57600080fd5b613a68878288016138dc565b91505092959194509250565b60008060408385031215613a8757600080fd5b6000613a9585828601613834565b9250506020613aa68582860161389d565b9150509250929050565b60008060408385031215613ac357600080fd5b6000613ad185828601613834565b9250506020613ae285828601613930565b9150509250929050565b60008060408385031215613aff57600080fd5b600083013567ffffffffffffffff811115613b1957600080fd5b613b2585828601613849565b9250506020613b3685828601613930565b9150509250929050565b600080600060608486031215613b5557600080fd5b600084013567ffffffffffffffff811115613b6f57600080fd5b613b7b86828701613873565b935050602084013567ffffffffffffffff811115613b9857600080fd5b613ba486828701613873565b925050604084013567ffffffffffffffff811115613bc157600080fd5b613bcd86828701613873565b9150509250925092565b600060208284031215613be957600080fd5b6000613bf7848285016138b2565b91505092915050565b600060208284031215613c1257600080fd5b6000613c20848285016138c7565b91505092915050565b600060208284031215613c3b57600080fd5b6000613c4984828501613930565b91505092915050565b613c5b81614b6f565b82525050565b613c6a81614b81565b82525050565b6000613c7b82614a17565b613c858185614a2d565b9350613c95818560208601614bf2565b613c9e81614d8d565b840191505092915050565b6000613cb482614a22565b613cbe8185614a3e565b9350613cce818560208601614bf2565b613cd781614d8d565b840191505092915050565b6000613ced82614a22565b613cf78185614a4f565b9350613d07818560208601614bf2565b80840191505092915050565b6000613d20602b83614a3e565b91507f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008301527f74206f6620626f756e64730000000000000000000000000000000000000000006020830152604082019050919050565b6000613d86603283614a3e565b91507f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008301527f63656976657220696d706c656d656e74657200000000000000000000000000006020830152604082019050919050565b6000613dec602683614a3e565b91507f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008301527f64647265737300000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000613e52601c83614a3e565b91507f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006000830152602082019050919050565b6000613e92602483614a3e565b91507f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008301527f72657373000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000613ef8601983614a3e565b91507f4552433732313a20617070726f766520746f2063616c6c6572000000000000006000830152602082019050919050565b6000613f38601883614a3e565b91507f496e636f7272656374207061796d656e7420616d6f756e7400000000000000006000830152602082019050919050565b6000613f78602c83614a3e565b91507f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008301527f697374656e7420746f6b656e00000000000000000000000000000000000000006020830152604082019050919050565b6000613fde603883614a3e565b91507f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008301527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006020830152604082019050919050565b6000614044602a83614a3e565b91507f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008301527f726f2061646472657373000000000000000000000000000000000000000000006020830152604082019050919050565b60006140aa602983614a3e565b91507f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008301527f656e7420746f6b656e00000000000000000000000000000000000000000000006020830152604082019050919050565b6000614110602083614a3e565b91507f4552433732313a206d696e7420746f20746865207a65726f20616464726573736000830152602082019050919050565b6000614150602783614a3e565b91507f596f7572206e616d65206973206e6f74206f6e20746865206c6973742c20726560008301527f6a65637465642e000000000000000000000000000000000000000000000000006020830152604082019050919050565b60006141b6602283614a3e565b91507f5468697320436f6e7472616374206973206e6f206c6f6e676572204861756e7460008301527f65640000000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b600061421c601f83614a3e565b91507f546f6b656e494420486173206e6f74206265656e206d696e74656420796574006000830152602082019050919050565b600061425c602c83614a3e565b91507f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008301527f697374656e7420746f6b656e00000000000000000000000000000000000000006020830152604082019050919050565b60006142c2602083614a3e565b91507f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726000830152602082019050919050565b6000614302602983614a3e565b91507f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960008301527f73206e6f74206f776e00000000000000000000000000000000000000000000006020830152604082019050919050565b6000614368602183614a3e565b91507f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008301527f72000000000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b60006143ce603183614a3e565b91507f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008301527f776e6572206e6f7220617070726f7665640000000000000000000000000000006020830152604082019050919050565b6000614434602c83614a3e565b91507f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008301527f7574206f6620626f756e647300000000000000000000000000000000000000006020830152604082019050919050565b600061449a601f83614a3e565b91507f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006000830152602082019050919050565b60006144da603083614a3e565b91507f4552433732314275726e61626c653a2063616c6c6572206973206e6f74206f7760008301527f6e6572206e6f7220617070726f766564000000000000000000000000000000006020830152604082019050919050565b61453c81614bd9565b82525050565b600061454e8285613ce2565b915061455a8284613ce2565b91508190509392505050565b600060208201905061457b6000830184613c52565b92915050565b60006080820190506145966000830187613c52565b6145a36020830186613c52565b6145b06040830185614533565b81810360608301526145c28184613c70565b905095945050505050565b60006020820190506145e26000830184613c61565b92915050565b600060208201905081810360008301526146028184613ca9565b905092915050565b6000602082019050818103600083015261462381613d13565b9050919050565b6000602082019050818103600083015261464381613d79565b9050919050565b6000602082019050818103600083015261466381613ddf565b9050919050565b6000602082019050818103600083015261468381613e45565b9050919050565b600060208201905081810360008301526146a381613e85565b9050919050565b600060208201905081810360008301526146c381613eeb565b9050919050565b600060208201905081810360008301526146e381613f2b565b9050919050565b6000602082019050818103600083015261470381613f6b565b9050919050565b6000602082019050818103600083015261472381613fd1565b9050919050565b6000602082019050818103600083015261474381614037565b9050919050565b600060208201905081810360008301526147638161409d565b9050919050565b6000602082019050818103600083015261478381614103565b9050919050565b600060208201905081810360008301526147a381614143565b9050919050565b600060208201905081810360008301526147c3816141a9565b9050919050565b600060208201905081810360008301526147e38161420f565b9050919050565b600060208201905081810360008301526148038161424f565b9050919050565b60006020820190508181036000830152614823816142b5565b9050919050565b60006020820190508181036000830152614843816142f5565b9050919050565b600060208201905081810360008301526148638161435b565b9050919050565b60006020820190508181036000830152614883816143c1565b9050919050565b600060208201905081810360008301526148a381614427565b9050919050565b600060208201905081810360008301526148c38161448d565b9050919050565b600060208201905081810360008301526148e3816144cd565b9050919050565b60006020820190506148ff6000830184614533565b92915050565b600060408201905061491a6000830185614533565b6149276020830184614533565b9392505050565b6000604051905081810181811067ffffffffffffffff8211171561495557614954614d5e565b5b8060405250919050565b600067ffffffffffffffff82111561497a57614979614d5e565b5b602082029050602081019050919050565b600067ffffffffffffffff8211156149a6576149a5614d5e565b5b602082029050602081019050919050565b600067ffffffffffffffff8211156149d2576149d1614d5e565b5b601f19601f8301169050602081019050919050565b600067ffffffffffffffff821115614a0257614a01614d5e565b5b601f19601f8301169050602081019050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b6000614a6582614bd9565b9150614a7083614bd9565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115614aa557614aa4614cd1565b5b828201905092915050565b6000614abb82614bd9565b9150614ac683614bd9565b925082614ad657614ad5614d00565b5b828204905092915050565b6000614aec82614bd9565b9150614af783614bd9565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615614b3057614b2f614cd1565b5b828202905092915050565b6000614b4682614bd9565b9150614b5183614bd9565b925082821015614b6457614b63614cd1565b5b828203905092915050565b6000614b7a82614bb9565b9050919050565b60008115159050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b82818337600083830152505050565b60005b83811015614c10578082015181840152602081019050614bf5565b83811115614c1f576000848401525b50505050565b60006002820490506001821680614c3d57607f821691505b60208210811415614c5157614c50614d2f565b5b50919050565b6000614c6282614bd9565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415614c9557614c94614cd1565b5b600182019050919050565b6000614cab82614bd9565b9150614cb683614bd9565b925082614cc657614cc5614d00565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b614da781614b6f565b8114614db257600080fd5b50565b614dbe81614b81565b8114614dc957600080fd5b50565b614dd581614b8d565b8114614de057600080fd5b50565b614dec81614bd9565b8114614df757600080fd5b5056fea264697066735822122074a1f3ba6ee50eb47312d7956afe60671786058ce64fd2c4daaf47daa47cb42d64736f6c63430008000033000000000000000000000000a12d5ef9a77874716b661147f219cab91f4b3185

Deployed Bytecode

0x6080604052600436106101d85760003560e01c80635efa3c4511610102578063a035b1fe11610095578063bcefaab611610064578063bcefaab61461069b578063c87b56dd146106c6578063e985e9c514610703578063f2fde38b14610740576101d8565b8063a035b1fe146105f5578063a22cb46514610620578063afbdadcd14610649578063b88d4fde14610672576101d8565b8063860d3e69116100d1578063860d3e691461055d578063885ec659146105885780638da5cb5b1461059f57806395d89b41146105ca576101d8565b80635efa3c45146104a35780636352211e146104cc57806370a0823114610509578063715018a614610546576101d8565b80632ad957861161017a57806342842e0e1161014957806342842e0e146103e957806342966c68146104125780634f6ccce71461043b578063595b9b4d14610478576101d8565b80632ad95786146103285780632f745c5914610365578063379607f5146103a257806338af3eed146103be576101d8565b8063095ea7b3116101b6578063095ea7b31461028257806318160ddd146102ab57806323b872dd146102d657806324cf69c2146102ff576101d8565b806301ffc9a7146101dd57806306fdde031461021a578063081812fc14610245575b600080fd5b3480156101e957600080fd5b5061020460048036038101906101ff9190613bd7565b610769565b60405161021191906145cd565b60405180910390f35b34801561022657600080fd5b5061022f61084b565b60405161023c91906145e8565b60405180910390f35b34801561025157600080fd5b5061026c60048036038101906102679190613c29565b6108dd565b6040516102799190614566565b60405180910390f35b34801561028e57600080fd5b506102a960048036038101906102a49190613ab0565b610962565b005b3480156102b757600080fd5b506102c0610a7a565b6040516102cd91906148ea565b60405180910390f35b3480156102e257600080fd5b506102fd60048036038101906102f891906139aa565b610a87565b005b34801561030b57600080fd5b5061032660048036038101906103219190613b40565b610ae7565b005b34801561033457600080fd5b5061034f600480360381019061034a9190613945565b610bad565b60405161035c91906148ea565b60405180910390f35b34801561037157600080fd5b5061038c60048036038101906103879190613ab0565b610bc5565b60405161039991906148ea565b60405180910390f35b6103bc60048036038101906103b79190613c29565b610c6a565b005b3480156103ca57600080fd5b506103d3610e9b565b6040516103e09190614566565b60405180910390f35b3480156103f557600080fd5b50610410600480360381019061040b91906139aa565b610ec1565b005b34801561041e57600080fd5b5061043960048036038101906104349190613c29565b610ee1565b005b34801561044757600080fd5b50610462600480360381019061045d9190613c29565b610f3d565b60405161046f91906148ea565b60405180910390f35b34801561048457600080fd5b5061048d610fd4565b60405161049a91906148ea565b60405180910390f35b3480156104af57600080fd5b506104ca60048036038101906104c59190613b40565b610fda565b005b3480156104d857600080fd5b506104f360048036038101906104ee9190613c29565b6110a0565b6040516105009190614566565b60405180910390f35b34801561051557600080fd5b50610530600480360381019061052b9190613945565b611152565b60405161053d91906148ea565b60405180910390f35b34801561055257600080fd5b5061055b61120a565b005b34801561056957600080fd5b50610572611292565b60405161057f91906145cd565b60405180910390f35b34801561059457600080fd5b5061059d6112bd565b005b3480156105ab57600080fd5b506105b4611536565b6040516105c19190614566565b60405180910390f35b3480156105d657600080fd5b506105df611560565b6040516105ec91906145e8565b60405180910390f35b34801561060157600080fd5b5061060a6115f2565b60405161061791906148ea565b60405180910390f35b34801561062c57600080fd5b5061064760048036038101906106429190613a74565b6115f8565b005b34801561065557600080fd5b50610670600480360381019061066b9190613aec565b611779565b005b34801561067e57600080fd5b50610699600480360381019061069491906139f9565b61189d565b005b3480156106a757600080fd5b506106b06118ff565b6040516106bd91906148ea565b60405180910390f35b3480156106d257600080fd5b506106ed60048036038101906106e89190613c29565b611905565b6040516106fa91906145e8565b60405180910390f35b34801561070f57600080fd5b5061072a6004803603810190610725919061396e565b611963565b60405161073791906145cd565b60405180910390f35b34801561074c57600080fd5b5061076760048036038101906107629190613945565b6119f7565b005b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061083457507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610844575061084382611aef565b5b9050919050565b60606000805461085a90614c25565b80601f016020809104026020016040519081016040528092919081815260200182805461088690614c25565b80156108d35780601f106108a8576101008083540402835291602001916108d3565b820191906000526020600020905b8154815290600101906020018083116108b657829003601f168201915b5050505050905090565b60006108e882611b69565b610927576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161091e906147ea565b60405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b600061096d826110a0565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156109de576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109d59061484a565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff166109fd611bd5565b73ffffffffffffffffffffffffffffffffffffffff161480610a2c5750610a2b81610a26611bd5565b611963565b5b610a6b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a629061470a565b60405180910390fd5b610a758383611bdd565b505050565b6000600880549050905090565b610a98610a92611bd5565b82611c96565b610ad7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ace9061486a565b60405180910390fd5b610ae2838383611d74565b505050565b610aef611bd5565b73ffffffffffffffffffffffffffffffffffffffff16610b0d611536565b73ffffffffffffffffffffffffffffffffffffffff1614610b63576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b5a9061480a565b60405180910390fd5b8260139080519060200190610b79929190613588565b508160149080519060200190610b90929190613588565b508060159080519060200190610ba7929190613588565b50505050565b60176020528060005260406000206000915090505481565b6000610bd083611152565b8210610c11576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c089061460a565b60405180910390fd5b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b6002600a541415610cb0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ca7906148aa565b60405180910390fd5b6002600a81905550600080610cc3611292565b905080610d05576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cfc906147aa565b60405180910390fd5b6000600f5484610d159190614ae1565b9050348114610d59576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d50906146ca565b60405180910390fd5b60005b84811015610e2357610d6e600c611fd0565b610d88610d79611bd5565b610d83600c611fe6565b611ff4565b610d9a610d95600c611fe6565b612012565b935060018460ff161480610db1575060028460ff16145b15610e10573373ffffffffffffffffffffffffffffffffffffffff167f8afcdbc426c286fea7e19bcd9301ea66fc7ff1f180134834ea355aa2024cc439610df8600c611fe6565b42604051610e07929190614905565b60405180910390a25b8080610e1b90614c57565b915050610d5c565b50601660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050158015610e8c573d6000803e3d6000fd5b505050506001600a8190555050565b601660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b610edc8383836040518060200160405280600081525061189d565b505050565b610ef2610eec611bd5565b82611c96565b610f31576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f28906148ca565b60405180910390fd5b610f3a81612200565b50565b6000610f47610a7a565b8210610f88576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f7f9061488a565b60405180910390fd5b60088281548110610fc2577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002001549050919050565b600e5481565b610fe2611bd5565b73ffffffffffffffffffffffffffffffffffffffff16611000611536565b73ffffffffffffffffffffffffffffffffffffffff1614611056576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161104d9061480a565b60405180910390fd5b826010908051906020019061106c929190613588565b508160119080519060200190611083929190613588565b50806012908051906020019061109a929190613588565b50505050565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611149576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111409061474a565b60405180910390fd5b80915050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156111c3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111ba9061472a565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b611212611bd5565b73ffffffffffffffffffffffffffffffffffffffff16611230611536565b73ffffffffffffffffffffffffffffffffffffffff1614611286576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161127d9061480a565b60405180910390fd5b6112906000612311565b565b6000600d5442101580156112a75750600e5442105b156112b557600190506112ba565b600090505b90565b6002600a541415611303576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112fa906148aa565b60405180910390fd5b6002600a81905550600080611316611292565b905080611358576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161134f906147aa565b60405180910390fd5b6000601760003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054116113da576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113d19061478a565b60405180910390fd5b6000600190505b601760003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205481116114e657611431600c611fd0565b61144b61143c611bd5565b611446600c611fe6565b611ff4565b61145d611458600c611fe6565b612012565b925060018360ff161480611474575060028360ff16145b156114d3573373ffffffffffffffffffffffffffffffffffffffff167f8afcdbc426c286fea7e19bcd9301ea66fc7ff1f180134834ea355aa2024cc4396114bb600c611fe6565b426040516114ca929190614905565b60405180910390a25b80806114de90614c57565b9150506113e1565b50601760003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000905550506001600a81905550565b6000600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60606001805461156f90614c25565b80601f016020809104026020016040519081016040528092919081815260200182805461159b90614c25565b80156115e85780601f106115bd576101008083540402835291602001916115e8565b820191906000526020600020905b8154815290600101906020018083116115cb57829003601f168201915b5050505050905090565b600f5481565b611600611bd5565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561166e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611665906146aa565b60405180910390fd5b806005600061167b611bd5565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611728611bd5565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161176d91906145cd565b60405180910390a35050565b611781611bd5565b73ffffffffffffffffffffffffffffffffffffffff1661179f611536565b73ffffffffffffffffffffffffffffffffffffffff16146117f5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117ec9061480a565b60405180910390fd5b60005b825181101561189857816017600085848151811061183f577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550808061189090614c57565b9150506117f8565b505050565b6118ae6118a8611bd5565b83611c96565b6118ed576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118e49061486a565b60405180910390fd5b6118f9848484846123d7565b50505050565b600d5481565b6060611911600c611fe6565b821115611953576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161194a906147ca565b60405180910390fd5b61195c82612433565b9050919050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6119ff611bd5565b73ffffffffffffffffffffffffffffffffffffffff16611a1d611536565b73ffffffffffffffffffffffffffffffffffffffff1614611a73576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a6a9061480a565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611ae3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ada9061464a565b60405180910390fd5b611aec81612311565b50565b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611b625750611b61826129d8565b5b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16611c50836110a0565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000611ca182611b69565b611ce0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cd7906146ea565b60405180910390fd5b6000611ceb836110a0565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480611d5a57508373ffffffffffffffffffffffffffffffffffffffff16611d42846108dd565b73ffffffffffffffffffffffffffffffffffffffff16145b80611d6b5750611d6a8185611963565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff16611d94826110a0565b73ffffffffffffffffffffffffffffffffffffffff1614611dea576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611de19061482a565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611e5a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e519061468a565b60405180910390fd5b611e65838383612aba565b611e70600082611bdd565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611ec09190614b3b565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611f179190614a5a565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b6001816000016000828254019250508190555050565b600081600001549050919050565b61200e828260405180602001604052806000815250612aca565b5050565b600080612054836040518060400160405280600e81526020017f547269636b2d4f722d5472656174000000000000000000000000000000000000815250612b25565b905060006004826120659190614ca0565b1415612135576120aa836040518060400160405280600d81526020017f536d656c6c2d4d792d4665657400000000000000000000000000000000000000815250612b25565b905060006008826120bb9190614ca0565b141561212b57612100836040518060400160405280600b81526020017f476f6f642d546f2d456174000000000000000000000000000000000000000000815250612b25565b90506000600c826121119190614ca0565b14156121215760019150506121fb565b60039150506121fb565b60059150506121fb565b612174836040518060400160405280600d81526020017f536d656c6c2d4d792d4665657400000000000000000000000000000000000000815250612b25565b905060006008826121859190614ca0565b14156121f5576121ca836040518060400160405280600b81526020017f476f6f642d546f2d456174000000000000000000000000000000000000000000815250612b25565b90506000600c826121db9190614ca0565b14156121eb5760029150506121fb565b60049150506121fb565b60069150505b919050565b600061220b826110a0565b905061221981600084612aba565b612224600083611bdd565b6001600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546122749190614b3b565b925050819055506002600083815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905581600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b6000600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6123e2848484611d74565b6123ee84848484612b68565b61242d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124249061462a565b60405180910390fd5b50505050565b6060600061244083612012565b905060058160ff1614156125325760108080549050846124609190614ca0565b81548110612497577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000200180546124ac90614c25565b80601f01602080910402602001604051908101604052809291908181526020018280546124d890614c25565b80156125255780601f106124fa57610100808354040283529160200191612525565b820191906000526020600020905b81548152906001019060200180831161250857829003601f168201915b50505050509150506129d3565b60038160ff161415612623576011601080549050846125519190614ca0565b81548110612588577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002001805461259d90614c25565b80601f01602080910402602001604051908101604052809291908181526020018280546125c990614c25565b80156126165780601f106125eb57610100808354040283529160200191612616565b820191906000526020600020905b8154815290600101906020018083116125f957829003601f168201915b50505050509150506129d3565b60018160ff1614156127135760128080549050846126419190614ca0565b81548110612678577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002001805461268d90614c25565b80601f01602080910402602001604051908101604052809291908181526020018280546126b990614c25565b80156127065780601f106126db57610100808354040283529160200191612706565b820191906000526020600020905b8154815290600101906020018083116126e957829003601f168201915b50505050509150506129d3565b60028160ff1614156128035760158080549050846127319190614ca0565b81548110612768577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002001805461277d90614c25565b80601f01602080910402602001604051908101604052809291908181526020018280546127a990614c25565b80156127f65780601f106127cb576101008083540402835291602001916127f6565b820191906000526020600020905b8154815290600101906020018083116127d957829003601f168201915b50505050509150506129d3565b60048160ff1614156128f35760148080549050846128219190614ca0565b81548110612858577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002001805461286d90614c25565b80601f016020809104026020016040519081016040528092919081815260200182805461289990614c25565b80156128e65780601f106128bb576101008083540402835291602001916128e6565b820191906000526020600020905b8154815290600101906020018083116128c957829003601f168201915b50505050509150506129d3565b60138080549050846129059190614ca0565b8154811061293c577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002001805461295190614c25565b80601f016020809104026020016040519081016040528092919081815260200182805461297d90614c25565b80156129ca5780601f1061299f576101008083540402835291602001916129ca565b820191906000526020600020905b8154815290600101906020018083116129ad57829003601f168201915b50505050509150505b919050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612aa357507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80612ab35750612ab282612cff565b5b9050919050565b612ac5838383612d69565b505050565b612ad48383612e7d565b612ae16000848484612b68565b612b20576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b179061462a565b60405180910390fd5b505050565b60008082612b328561304b565b604051602001612b43929190614542565b6040516020818303038152906040529050808051906020012060001c91505092915050565b6000612b898473ffffffffffffffffffffffffffffffffffffffff166131f8565b15612cf2578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612bb2611bd5565b8786866040518563ffffffff1660e01b8152600401612bd49493929190614581565b602060405180830381600087803b158015612bee57600080fd5b505af1925050508015612c1f57506040513d601f19601f82011682018060405250810190612c1c9190613c00565b60015b612ca2573d8060008114612c4f576040519150601f19603f3d011682016040523d82523d6000602084013e612c54565b606091505b50600081511415612c9a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c919061462a565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050612cf7565b600190505b949350505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b612d7483838361320b565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612db757612db281613210565b612df6565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614612df557612df48382613259565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612e3957612e34816133c6565b612e78565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614612e7757612e768282613509565b5b5b505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612eed576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ee49061476a565b60405180910390fd5b612ef681611b69565b15612f36576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f2d9061466a565b60405180910390fd5b612f4260008383612aba565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612f929190614a5a565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b60606000821415613093576040518060400160405280600181526020017f300000000000000000000000000000000000000000000000000000000000000081525090506131f3565b600082905060005b600082146130c55780806130ae90614c57565b915050600a826130be9190614ab0565b915061309b565b60008167ffffffffffffffff811115613107577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156131395781602001600182028036833780820191505090505b5090505b600085146131ec576001826131529190614b3b565b9150600a856131619190614ca0565b603061316d9190614a5a565b60f81b8183815181106131a9577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a856131e59190614ab0565b945061313d565b8093505050505b919050565b600080823b905060008111915050919050565b505050565b6008805490506009600083815260200190815260200160002081905550600881908060018154018082558091505060019003906000526020600020016000909190919091505550565b6000600161326684611152565b6132709190614b3b565b9050600060076000848152602001908152602001600020549050818114613355576000600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816007600083815260200190815260200160002081905550505b6007600084815260200190815260200160002060009055600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b600060016008805490506133da9190614b3b565b9050600060096000848152602001908152602001600020549050600060088381548110613430577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b906000526020600020015490508060088381548110613478577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000200181905550816009600083815260200190815260200160002081905550600960008581526020019081526020016000206000905560088054806134ed577f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b600061351483611152565b905081600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806007600084815260200190815260200160002081905550505050565b8280548282559060005260206000209081019282156135d7579160200282015b828111156135d65782518290805190602001906135c69291906135e8565b50916020019190600101906135a8565b5b5090506135e4919061366e565b5090565b8280546135f490614c25565b90600052602060002090601f016020900481019282613616576000855561365d565b82601f1061362f57805160ff191683800117855561365d565b8280016001018555821561365d579182015b8281111561365c578251825591602001919060010190613641565b5b50905061366a9190613692565b5090565b5b8082111561368e576000818161368591906136af565b5060010161366f565b5090565b5b808211156136ab576000816000905550600101613693565b5090565b5080546136bb90614c25565b6000825580601f106136cd57506136ec565b601f0160209004906000526020600020908101906136eb9190613692565b5b50565b60006137026136fd8461495f565b61492e565b9050808382526020820190508285602086028201111561372157600080fd5b60005b8581101561375157816137378882613834565b845260208401935060208301925050600181019050613724565b5050509392505050565b600061376e6137698461498b565b61492e565b9050808382526020820190508260005b858110156137ae57813585016137948882613906565b84526020840193506020830192505060018101905061377e565b5050509392505050565b60006137cb6137c6846149b7565b61492e565b9050828152602081018484840111156137e357600080fd5b6137ee848285614be3565b509392505050565b6000613809613804846149e7565b61492e565b90508281526020810184848401111561382157600080fd5b61382c848285614be3565b509392505050565b60008135905061384381614d9e565b92915050565b600082601f83011261385a57600080fd5b813561386a8482602086016136ef565b91505092915050565b600082601f83011261388457600080fd5b813561389484826020860161375b565b91505092915050565b6000813590506138ac81614db5565b92915050565b6000813590506138c181614dcc565b92915050565b6000815190506138d681614dcc565b92915050565b600082601f8301126138ed57600080fd5b81356138fd8482602086016137b8565b91505092915050565b600082601f83011261391757600080fd5b81356139278482602086016137f6565b91505092915050565b60008135905061393f81614de3565b92915050565b60006020828403121561395757600080fd5b600061396584828501613834565b91505092915050565b6000806040838503121561398157600080fd5b600061398f85828601613834565b92505060206139a085828601613834565b9150509250929050565b6000806000606084860312156139bf57600080fd5b60006139cd86828701613834565b93505060206139de86828701613834565b92505060406139ef86828701613930565b9150509250925092565b60008060008060808587031215613a0f57600080fd5b6000613a1d87828801613834565b9450506020613a2e87828801613834565b9350506040613a3f87828801613930565b925050606085013567ffffffffffffffff811115613a5c57600080fd5b613a68878288016138dc565b91505092959194509250565b60008060408385031215613a8757600080fd5b6000613a9585828601613834565b9250506020613aa68582860161389d565b9150509250929050565b60008060408385031215613ac357600080fd5b6000613ad185828601613834565b9250506020613ae285828601613930565b9150509250929050565b60008060408385031215613aff57600080fd5b600083013567ffffffffffffffff811115613b1957600080fd5b613b2585828601613849565b9250506020613b3685828601613930565b9150509250929050565b600080600060608486031215613b5557600080fd5b600084013567ffffffffffffffff811115613b6f57600080fd5b613b7b86828701613873565b935050602084013567ffffffffffffffff811115613b9857600080fd5b613ba486828701613873565b925050604084013567ffffffffffffffff811115613bc157600080fd5b613bcd86828701613873565b9150509250925092565b600060208284031215613be957600080fd5b6000613bf7848285016138b2565b91505092915050565b600060208284031215613c1257600080fd5b6000613c20848285016138c7565b91505092915050565b600060208284031215613c3b57600080fd5b6000613c4984828501613930565b91505092915050565b613c5b81614b6f565b82525050565b613c6a81614b81565b82525050565b6000613c7b82614a17565b613c858185614a2d565b9350613c95818560208601614bf2565b613c9e81614d8d565b840191505092915050565b6000613cb482614a22565b613cbe8185614a3e565b9350613cce818560208601614bf2565b613cd781614d8d565b840191505092915050565b6000613ced82614a22565b613cf78185614a4f565b9350613d07818560208601614bf2565b80840191505092915050565b6000613d20602b83614a3e565b91507f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008301527f74206f6620626f756e64730000000000000000000000000000000000000000006020830152604082019050919050565b6000613d86603283614a3e565b91507f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008301527f63656976657220696d706c656d656e74657200000000000000000000000000006020830152604082019050919050565b6000613dec602683614a3e565b91507f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008301527f64647265737300000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000613e52601c83614a3e565b91507f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006000830152602082019050919050565b6000613e92602483614a3e565b91507f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008301527f72657373000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000613ef8601983614a3e565b91507f4552433732313a20617070726f766520746f2063616c6c6572000000000000006000830152602082019050919050565b6000613f38601883614a3e565b91507f496e636f7272656374207061796d656e7420616d6f756e7400000000000000006000830152602082019050919050565b6000613f78602c83614a3e565b91507f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008301527f697374656e7420746f6b656e00000000000000000000000000000000000000006020830152604082019050919050565b6000613fde603883614a3e565b91507f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008301527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006020830152604082019050919050565b6000614044602a83614a3e565b91507f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008301527f726f2061646472657373000000000000000000000000000000000000000000006020830152604082019050919050565b60006140aa602983614a3e565b91507f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008301527f656e7420746f6b656e00000000000000000000000000000000000000000000006020830152604082019050919050565b6000614110602083614a3e565b91507f4552433732313a206d696e7420746f20746865207a65726f20616464726573736000830152602082019050919050565b6000614150602783614a3e565b91507f596f7572206e616d65206973206e6f74206f6e20746865206c6973742c20726560008301527f6a65637465642e000000000000000000000000000000000000000000000000006020830152604082019050919050565b60006141b6602283614a3e565b91507f5468697320436f6e7472616374206973206e6f206c6f6e676572204861756e7460008301527f65640000000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b600061421c601f83614a3e565b91507f546f6b656e494420486173206e6f74206265656e206d696e74656420796574006000830152602082019050919050565b600061425c602c83614a3e565b91507f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008301527f697374656e7420746f6b656e00000000000000000000000000000000000000006020830152604082019050919050565b60006142c2602083614a3e565b91507f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726000830152602082019050919050565b6000614302602983614a3e565b91507f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960008301527f73206e6f74206f776e00000000000000000000000000000000000000000000006020830152604082019050919050565b6000614368602183614a3e565b91507f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008301527f72000000000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b60006143ce603183614a3e565b91507f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008301527f776e6572206e6f7220617070726f7665640000000000000000000000000000006020830152604082019050919050565b6000614434602c83614a3e565b91507f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008301527f7574206f6620626f756e647300000000000000000000000000000000000000006020830152604082019050919050565b600061449a601f83614a3e565b91507f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006000830152602082019050919050565b60006144da603083614a3e565b91507f4552433732314275726e61626c653a2063616c6c6572206973206e6f74206f7760008301527f6e6572206e6f7220617070726f766564000000000000000000000000000000006020830152604082019050919050565b61453c81614bd9565b82525050565b600061454e8285613ce2565b915061455a8284613ce2565b91508190509392505050565b600060208201905061457b6000830184613c52565b92915050565b60006080820190506145966000830187613c52565b6145a36020830186613c52565b6145b06040830185614533565b81810360608301526145c28184613c70565b905095945050505050565b60006020820190506145e26000830184613c61565b92915050565b600060208201905081810360008301526146028184613ca9565b905092915050565b6000602082019050818103600083015261462381613d13565b9050919050565b6000602082019050818103600083015261464381613d79565b9050919050565b6000602082019050818103600083015261466381613ddf565b9050919050565b6000602082019050818103600083015261468381613e45565b9050919050565b600060208201905081810360008301526146a381613e85565b9050919050565b600060208201905081810360008301526146c381613eeb565b9050919050565b600060208201905081810360008301526146e381613f2b565b9050919050565b6000602082019050818103600083015261470381613f6b565b9050919050565b6000602082019050818103600083015261472381613fd1565b9050919050565b6000602082019050818103600083015261474381614037565b9050919050565b600060208201905081810360008301526147638161409d565b9050919050565b6000602082019050818103600083015261478381614103565b9050919050565b600060208201905081810360008301526147a381614143565b9050919050565b600060208201905081810360008301526147c3816141a9565b9050919050565b600060208201905081810360008301526147e38161420f565b9050919050565b600060208201905081810360008301526148038161424f565b9050919050565b60006020820190508181036000830152614823816142b5565b9050919050565b60006020820190508181036000830152614843816142f5565b9050919050565b600060208201905081810360008301526148638161435b565b9050919050565b60006020820190508181036000830152614883816143c1565b9050919050565b600060208201905081810360008301526148a381614427565b9050919050565b600060208201905081810360008301526148c38161448d565b9050919050565b600060208201905081810360008301526148e3816144cd565b9050919050565b60006020820190506148ff6000830184614533565b92915050565b600060408201905061491a6000830185614533565b6149276020830184614533565b9392505050565b6000604051905081810181811067ffffffffffffffff8211171561495557614954614d5e565b5b8060405250919050565b600067ffffffffffffffff82111561497a57614979614d5e565b5b602082029050602081019050919050565b600067ffffffffffffffff8211156149a6576149a5614d5e565b5b602082029050602081019050919050565b600067ffffffffffffffff8211156149d2576149d1614d5e565b5b601f19601f8301169050602081019050919050565b600067ffffffffffffffff821115614a0257614a01614d5e565b5b601f19601f8301169050602081019050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b6000614a6582614bd9565b9150614a7083614bd9565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115614aa557614aa4614cd1565b5b828201905092915050565b6000614abb82614bd9565b9150614ac683614bd9565b925082614ad657614ad5614d00565b5b828204905092915050565b6000614aec82614bd9565b9150614af783614bd9565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615614b3057614b2f614cd1565b5b828202905092915050565b6000614b4682614bd9565b9150614b5183614bd9565b925082821015614b6457614b63614cd1565b5b828203905092915050565b6000614b7a82614bb9565b9050919050565b60008115159050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b82818337600083830152505050565b60005b83811015614c10578082015181840152602081019050614bf5565b83811115614c1f576000848401525b50505050565b60006002820490506001821680614c3d57607f821691505b60208210811415614c5157614c50614d2f565b5b50919050565b6000614c6282614bd9565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415614c9557614c94614cd1565b5b600182019050919050565b6000614cab82614bd9565b9150614cb683614bd9565b925082614cc657614cc5614d00565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b614da781614b6f565b8114614db257600080fd5b50565b614dbe81614b81565b8114614dc957600080fd5b50565b614dd581614b8d565b8114614de057600080fd5b50565b614dec81614bd9565b8114614df757600080fd5b5056fea264697066735822122074a1f3ba6ee50eb47312d7956afe60671786058ce64fd2c4daaf47daa47cb42d64736f6c63430008000033

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

000000000000000000000000a12d5ef9a77874716b661147f219cab91f4b3185

-----Decoded View---------------
Arg [0] : _beneficiary (address): 0xA12D5eF9A77874716b661147f219caB91f4B3185

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000a12d5ef9a77874716b661147f219cab91f4b3185


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.