ETH Price: $3,319.29 (-4.36%)

Token

Settlements (STL)
 

Overview

Max Total Supply

9,905 STL

Holders

1,558

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
2 STL
0xb3f8dae49c7F0e94D434DB6088683c12D31A621F
Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

A turn-based on-chain nft game where rarity can be discovered not determined.

# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
Settlements

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 17 : Settlements.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;

import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
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/Strings.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import 'base64-sol/base64.sol';

//
//▄████████    ▄████████     ███         ███      ▄█          ▄████████   ▄▄▄▄███▄▄▄▄      ▄████████ ███▄▄▄▄       ███        ▄████████
//███    ███   ███    ███ ▀█████████▄ ▀█████████▄ ███         ███    ███ ▄██▀▀▀███▀▀▀██▄   ███    ███ ███▀▀▀██▄ ▀█████████▄   ███    ███
//███    █▀    ███    █▀     ▀███▀▀██    ▀███▀▀██ ███         ███    █▀  ███   ███   ███   ███    █▀  ███   ███    ▀███▀▀██   ███    █▀
//███         ▄███▄▄▄         ███   ▀     ███   ▀ ███        ▄███▄▄▄     ███   ███   ███  ▄███▄▄▄     ███   ███     ███   ▀   ███
//▀███████████ ▀▀███▀▀▀         ███         ███     ███       ▀▀███▀▀▀     ███   ███   ███ ▀▀███▀▀▀     ███   ███     ███     ▀███████████
//███   ███    █▄      ███         ███     ███         ███    █▄  ███   ███   ███   ███    █▄  ███   ███     ███              ███
//▄█    ███   ███    ███     ███         ███     ███▌    ▄   ███    ███ ███   ███   ███   ███    ███ ███   ███     ███        ▄█    ███
//▄████████▀    ██████████    ▄████▀      ▄████▀   █████▄▄██   ██████████  ▀█   ███   █▀    ██████████  ▀█   █▀     ▄████▀    ▄████████▀
//▀

// @author zeth

// @notice This contract is heavily inspired by Dom Hofmann's Loot Project with game design from Sid Meirs Civilisation, DND, Settlers of Catan & Age of Empires.

// Settlements allows for the creation of settlements of which users have 5 turns to create their perfect civ.
// Randomise will pseduo randomly assign a settlement a new set of attributes & increase their turn count.
// An allocation of 100 settlements are reserved for owner & future expansion packs

contract Settlements is ERC721, ERC721Enumerable, ReentrancyGuard, Ownable {

    constructor() ERC721("Settlements", "STL") {}

    struct Attributes {
        uint8 size;
        uint8 spirit;
        uint8 age;
        uint8 resource;
        uint8 morale;
        uint8 government;
        uint8 turns;
    }

    string[] private _sizes = ['Camp', 'Hamlet', 'Village', 'Town', 'District', 'Precinct', 'Capitol', 'State'];
    string[] private _spirits = ['Earth', 'Fire', 'Water', 'Air', 'Astral'];
    string[] private _ages = ['Ancient', 'Classical', 'Medieval', 'Renaissance', 'Industrial', 'Modern', 'Information', 'Future'];
    string[] private _resources = ['Iron', 'Gold', 'Silver', 'Wood', 'Wool', 'Water', 'Grass', 'Grain'];
    string[] private _morales = ['Expectant', 'Enlightened', 'Dismissive', 'Unhappy', 'Happy', 'Undecided', 'Warring', 'Scared', 'Unruly', 'Anarchist'];
    string[] private _governments = ['Democracy', 'Communism', 'Socialism', 'Oligarchy', 'Aristocracy', 'Monarchy', 'Theocracy', 'Colonialism', 'Dictatorship'];
    string[] private _realms = ['Genesis', 'Valhalla', 'Keskella', 'Shadow', 'Plains', 'Ends'];

    mapping(uint256 => Attributes) private attrIndex;

    function indexFor(string memory input, uint256 length) internal pure returns (uint256){
        return uint256(keccak256(abi.encodePacked(input))) % length;
    }

    function _getRandomSeed(uint256 tokenId, string memory seedFor) internal view returns (string memory) {
        return string(abi.encodePacked(seedFor, Strings.toString(tokenId), block.timestamp, block.difficulty));
    }

    function generateAttribute(string memory salt, string[] memory items) internal pure returns (uint8){
        return uint8(indexFor(string(salt), items.length));
    }

    function _makeParts(uint256 tokenId) internal view returns (string[15] memory){
        string[15] memory parts;
        parts[0] = '<svg xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="xMinYMin meet" viewBox="0 0 350 350"><style>.txt { fill: black; font-family: monospace; font-size: 12px;}</style><rect width="100%" height="100%" fill="white" /><text x="10" y="20" class="txt">';
        parts[1] = _sizes[attrIndex[tokenId].size];
        parts[2] = '</text><text x="10" y="40" class="txt">';
        parts[3] = _spirits[attrIndex[tokenId].spirit];
        parts[4] = '</text><text x="10" y="60" class="txt">';
        parts[5] = _ages[attrIndex[tokenId].age];
        parts[6] = '</text><text x="10" y="80" class="txt">';
        parts[7] = _resources[attrIndex[tokenId].resource];
        parts[8] = '</text><text x="10" y="100" class="txt">';
        parts[9] = _morales[attrIndex[tokenId].morale];
        parts[10] = '</text><text x="10" y="120" class="txt">';
        parts[11] = _governments[attrIndex[tokenId].government];
        parts[12] = '</text><text x="10" y="140" class="txt">';
        parts[13] = _realms[attrIndex[tokenId].turns];
        parts[14] = '</text></svg>';
        return parts;
    }

    function _makeAttributeParts(string[15] memory parts) internal pure returns (string[15] memory){
        string[15] memory attrParts;
        attrParts[0] = '[{ "trait_type": "Size", "value": "';
        attrParts[1] = parts[1];
        attrParts[2] = '" }, { "trait_type": "Spirit", "value": "';
        attrParts[3] = parts[3];
        attrParts[4] = '" }, { "trait_type": "Age", "value": "';
        attrParts[5] = parts[5];
        attrParts[6] = '" }, { "trait_type": "Resource", "value": "';
        attrParts[7] = parts[7];
        attrParts[8] = '" }, { "trait_type": "Morale", "value": "';
        attrParts[9] = parts[9];
        attrParts[10] = '" }, { "trait_type": "Government", "value": "';
        attrParts[11] = parts[11];
        attrParts[12] = '" }, { "trait_type": "Realm", "value": "';
        attrParts[13] = parts[13];
        attrParts[14] = '" }]';
        return attrParts;
    }

    function tokenURI(uint256 tokenId) virtual override public view returns (string memory) {
        require(_exists(tokenId), "Settlement does not exist");

        string[15] memory parts = _makeParts(tokenId);
        string[15] memory attributesParts = _makeAttributeParts(parts);
        
        string memory output = string(abi.encodePacked(parts[0], parts[1], parts[2], parts[3], parts[4], parts[5], parts[6], parts[7], parts[8]));
        output = string(abi.encodePacked(output, parts[9], parts[10], parts[11], parts[12], parts[13], parts[14]));

        string memory atrrOutput = string(abi.encodePacked(attributesParts[0], attributesParts[1], attributesParts[2], attributesParts[3], attributesParts[4], attributesParts[5], attributesParts[6], attributesParts[7], attributesParts[8]));
        atrrOutput = string(abi.encodePacked(atrrOutput, attributesParts[9], attributesParts[10], attributesParts[11], attributesParts[12], attributesParts[13], attributesParts[14]));

        string memory json = Base64.encode(bytes(string(abi.encodePacked('{"name": "Settlement #', Strings.toString(tokenId), '", "description": "Settlements are a turn based civilisation simulator stored entirely on chain, go forth and conquer.", "image": "data:image/svg+xml;base64,', Base64.encode(bytes(output)), '"', ',"attributes":', atrrOutput, '}'))));
        output = string(abi.encodePacked('data:application/json;base64,', json));

        return output;
    }

    function randomiseAttributes(uint256 tokenId, uint8 turn) internal {
        attrIndex[tokenId].size = generateAttribute(_getRandomSeed(tokenId, 'size'), _sizes);
        attrIndex[tokenId].spirit = generateAttribute(_getRandomSeed(tokenId, 'spirit'), _spirits);
        attrIndex[tokenId].age = generateAttribute(_getRandomSeed(tokenId, 'age'), _ages);
        attrIndex[tokenId].resource = generateAttribute(_getRandomSeed(tokenId, 'resource'), _resources);
        attrIndex[tokenId].morale = generateAttribute(_getRandomSeed(tokenId, 'morale'), _morales);
        attrIndex[tokenId].government = generateAttribute(_getRandomSeed(tokenId, 'government'), _governments);
        attrIndex[tokenId].turns = turn;
    }


    function randomise(uint256 tokenId) public nonReentrant {
        require(_exists(tokenId) && msg.sender == ownerOf(tokenId) && attrIndex[tokenId].turns < 5, 'Settlement turns over');
        randomiseAttributes(tokenId, uint8(SafeMath.add(attrIndex[tokenId].turns, 1)));
    }

    function settle(uint256 tokenId) public nonReentrant {
        require(!_exists(tokenId) && tokenId > 0 && tokenId < 9901, "Settlement id is invalid");
        randomiseAttributes(tokenId, 0);
        _safeMint(msg.sender, tokenId);
    }

    function settleForOwner(uint256 tokenId) public nonReentrant onlyOwner {
        require(!_exists(tokenId) && tokenId > 9900 && tokenId < 10001, "Settlement id is invalid");
        randomiseAttributes(tokenId, 0);
        _safeMint(msg.sender, tokenId);
    }

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

    function supportsInterface(bytes4 interfaceId)
    public
    view
    override(ERC721, ERC721Enumerable)
    returns (bool)
    {
        return super.supportsInterface(interfaceId);
    }
}

File 2 of 17 : 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 3 of 17 : 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 4 of 17 : 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 5 of 17 : 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 6 of 17 : 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 7 of 17 : 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 8 of 17 : SafeMath.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 9 of 17 : base64.sol
// SPDX-License-Identifier: MIT

/// @title Base64
/// @author Brecht Devos - <[email protected]>
/// @notice Provides a function for encoding some bytes in base64
library Base64 {
    string internal constant TABLE = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';

    function encode(bytes memory data) internal pure returns (string memory) {
        if (data.length == 0) return '';
        
        // load the table into memory
        string memory table = TABLE;

        // multiply by 4/3 rounded up
        uint256 encodedLen = 4 * ((data.length + 2) / 3);

        // add some extra buffer at the end required for the writing
        string memory result = new string(encodedLen + 32);

        assembly {
            // set the actual output length
            mstore(result, encodedLen)
            
            // prepare the lookup table
            let tablePtr := add(table, 1)
            
            // input ptr
            let dataPtr := data
            let endPtr := add(dataPtr, mload(data))
            
            // result ptr, jump over length
            let resultPtr := add(result, 32)
            
            // run over the input, 3 bytes at a time
            for {} lt(dataPtr, endPtr) {}
            {
               dataPtr := add(dataPtr, 3)
               
               // read 3 bytes
               let input := mload(dataPtr)
               
               // write 4 characters
               mstore(resultPtr, shl(248, mload(add(tablePtr, and(shr(18, input), 0x3F)))))
               resultPtr := add(resultPtr, 1)
               mstore(resultPtr, shl(248, mload(add(tablePtr, and(shr(12, input), 0x3F)))))
               resultPtr := add(resultPtr, 1)
               mstore(resultPtr, shl(248, mload(add(tablePtr, and(shr( 6, input), 0x3F)))))
               resultPtr := add(resultPtr, 1)
               mstore(resultPtr, shl(248, mload(add(tablePtr, and(        input,  0x3F)))))
               resultPtr := add(resultPtr, 1)
            }
            
            // padding with '='
            switch mod(mload(data), 3)
            case 1 { mstore(sub(resultPtr, 2), shl(240, 0x3d3d)) }
            case 2 { mstore(sub(resultPtr, 1), shl(248, 0x3d)) }
        }
        
        return result;
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

File 15 of 17 : 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 17 : 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);
}

File 17 of 17 : 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);
}

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

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"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":"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":"owner","type":"address"}],"name":"balanceOf","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":[{"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":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"randomise","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"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":"uint256","name":"tokenId","type":"uint256"}],"name":"settle","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"settleForOwner","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"}]

600461018081815263043616d760e41b6101a052608090815260066101c09081526512185b5b195d60d21b6101e05260a05260076102008181526656696c6c61676560c81b6102205260c052610240928352632a37bbb760e11b6102605260e092909252600861028081815267111a5cdd1c9a58dd60c21b6102a052610100526102c081815267141c9958da5b98dd60c21b6102e052610120526103009283526610d85c1a5d1bdb60ca1b6103205261014092909252610380604052600561034090815264537461746560d81b6103605261016052620000e391600c91906200087f565b506040805160e081018252600560a082018181526408ac2e4e8d60db1b60c084015282528251808401845260048152634669726560e01b6020828101919091528084019190915283518085018552828152642bb0ba32b960d91b818301528385015283518085018552600381526220b4b960e91b81830152606084015283518085019094526006845265105cdd1c985b60d21b9084015260808201929092526200019191600d9190620008e3565b5060405180610100016040528060405180604001604052806007815260200166105b98da595b9d60ca1b81525081526020016040518060400160405280600981526020016810db185cdcda58d85b60ba1b8152508152602001604051806040016040528060088152602001671359591a595d985b60c21b81525081526020016040518060400160405280600b81526020016a52656e61697373616e636560a81b81525081526020016040518060400160405280600a815260200169125b991d5cdd1c9a585b60b21b81525081526020016040518060400160405280600681526020016526b7b232b93760d11b81525081526020016040518060400160405280600b81526020016a24b73337b936b0ba34b7b760a91b81525081526020016040518060400160405280600681526020016546757475726560d01b815250815250600e906008620002e29291906200087f565b506040805161014081018252600461010082018181526324b937b760e11b6101208401528252825180840184528181526311dbdb1960e21b6020828101919091528084019190915283518085018552600681526529b4b63b32b960d11b8183015283850152835180850185528281526315dbdbd960e21b818301526060840152835180850185529182526315dbdbdb60e21b828201526080830191909152825180840184526005808252642bb0ba32b960d91b8284015260a08401919091528351808501855281815264477261737360d81b8184015260c0840152835180850190945283526423b930b4b760d91b9083015260e0810191909152620003ec90600f9060086200087f565b5060408051610180810182526009610140820181815268115e1c1958dd185b9d60ba1b610160840152825282518084018452600b81526a115b9b1a59da1d195b995960aa1b6020828101919091528084019190915283518085018552600a808252694469736d69737369766560b01b828401528486019190915284518086018652600780825266556e686170707960c81b828501526060860191909152855180870187526005815264486170707960d81b8185015260808601528551808701875284815268155b991958da59195960ba1b8185015260a0860152855180870187529081526657617272696e6760c81b8184015260c08501528451808601865260068082526514d8d85c995960d21b8285015260e08601919091528551808701875290815265556e72756c7960d01b81840152610100850152845180860190955291845268105b985c98da1a5cdd60ba1b9084015261012082019290925262000558916010919062000935565b506040805161016081018252600961012082018181526844656d6f637261637960b81b61014084015282528251808401845281815268436f6d6d756e69736d60b81b602082810191909152808401919091528351808501855282815268536f6369616c69736d60b81b818301528385015283518085018552828152684f6c6967617263687960b81b81830152606084015283518085018552600b8082526a41726973746f637261637960a81b8284015260808501919091528451808601865260088152674d6f6e617263687960c01b8184015260a085015284518086018652838152685468656f637261637960b81b8184015260c0850152845180860186529081526a436f6c6f6e69616c69736d60a81b8183015260e08401528351808501909452600c84526b04469637461746f72736869760a41b90840152610100820192909252620006aa916011919062000987565b506040518060c001604052806040518060400160405280600781526020016647656e6573697360c81b81525081526020016040518060400160405280600881526020016756616c68616c6c6160c01b8152508152602001604051806040016040528060088152602001674b65736b656c6c6160c01b815250815260200160405180604001604052806006815260200165536861646f7760d01b815250815260200160405180604001604052806006815260200165506c61696e7360d01b815250815260200160405180604001604052806004815260200163456e647360e01b8152508152506012906006620007a1929190620009d9565b50348015620007af57600080fd5b50604080518082018252600b81526a536574746c656d656e747360a81b60208083019182528351808501909452600384526214d51360ea1b908401528151919291620007fe9160009162000a2b565b5080516200081490600190602084019062000a2b565b50506001600a555062000827336200082d565b62000b6d565b600b80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b828054828255906000526020600020908101928215620008d1579160200282015b82811115620008d15782518051620008c091849160209091019062000a2b565b5091602001919060010190620008a0565b50620008df92915062000ab6565b5090565b828054828255906000526020600020908101928215620008d1579160200282015b82811115620008d157825180516200092491849160209091019062000a2b565b509160200191906001019062000904565b828054828255906000526020600020908101928215620008d1579160200282015b82811115620008d157825180516200097691849160209091019062000a2b565b509160200191906001019062000956565b828054828255906000526020600020908101928215620008d1579160200282015b82811115620008d15782518051620009c891849160209091019062000a2b565b5091602001919060010190620009a8565b828054828255906000526020600020908101928215620008d1579160200282015b82811115620008d1578251805162000a1a91849160209091019062000a2b565b5091602001919060010190620009fa565b82805462000a399062000b30565b90600052602060002090601f01602090048101928262000a5d576000855562000aa8565b82601f1062000a7857805160ff191683800117855562000aa8565b8280016001018555821562000aa8579182015b8281111562000aa857825182559160200191906001019062000a8b565b50620008df92915062000ad7565b80821115620008df57600062000acd828262000aee565b5060010162000ab6565b5b80821115620008df576000815560010162000ad8565b50805462000afc9062000b30565b6000825580601f1062000b0d575050565b601f01602090049060005260206000209081019062000b2d919062000ad7565b50565b600181811c9082168062000b4557607f821691505b6020821081141562000b6757634e487b7160e01b600052602260045260246000fd5b50919050565b6136e68062000b7d6000396000f3fe608060405234801561001057600080fd5b50600436106101425760003560e01c806370a08231116100b8578063a22cb4651161007c578063a22cb4651461028f578063b88d4fde146102a2578063c87b56dd146102b5578063e985e9c5146102c8578063f2fde38b14610304578063fbf606a81461031757600080fd5b806370a0823114610248578063715018a61461025b5780638da5cb5b146102635780638df828001461027457806395d89b411461028757600080fd5b806323b872dd1161010a57806323b872dd146101d65780632f745c59146101e957806342842e0e146101fc5780634f6ccce71461020f5780636352211e1461022257806364449c9c1461023557600080fd5b806301ffc9a71461014757806306fdde031461016f578063081812fc14610184578063095ea7b3146101af57806318160ddd146101c4575b600080fd5b61015a610155366004612cec565b61032a565b60405190151581526020015b60405180910390f35b61017761033b565b60405161016691906130f8565b610197610192366004612d24565b6103cd565b6040516001600160a01b039091168152602001610166565b6101c26101bd366004612cc3565b61045a565b005b6008545b604051908152602001610166565b6101c26101e4366004612b79565b610570565b6101c86101f7366004612cc3565b6105a1565b6101c261020a366004612b79565b610637565b6101c861021d366004612d24565b610652565b610197610230366004612d24565b6106f3565b6101c2610243366004612d24565b61076a565b6101c8610256366004612b2d565b610860565b6101c26108e7565b600b546001600160a01b0316610197565b6101c2610282366004612d24565b61091d565b6101776109c4565b6101c261029d366004612c89565b6109d3565b6101c26102b0366004612bb4565b610a98565b6101776102c3366004612d24565b610ad0565b61015a6102d6366004612b47565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b6101c2610312366004612b2d565b610cf0565b6101c2610325366004612d24565b610d8b565b600061033582610e47565b92915050565b60606000805461034a906132a8565b80601f0160208091040260200160405190810160405280929190818152602001828054610376906132a8565b80156103c35780601f10610398576101008083540402835291602001916103c3565b820191906000526020600020905b8154815290600101906020018083116103a657829003601f168201915b5050505050905090565b60006103d882610e6c565b61043e5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b6000610465826106f3565b9050806001600160a01b0316836001600160a01b031614156104d35760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610435565b336001600160a01b03821614806104ef57506104ef81336102d6565b6105615760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610435565b61056b8383610e89565b505050565b61057a3382610ef7565b6105965760405162461bcd60e51b815260040161043590613192565b61056b838383610fe1565b60006105ac83610860565b821061060e5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610435565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b61056b83838360405180602001604052806000815250610a98565b600061065d60085490565b82106106c05760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610435565b600882815481106106e157634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b6000818152600260205260408120546001600160a01b0316806103355760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610435565b6002600a54141561078d5760405162461bcd60e51b8152600401610435906131e3565b6002600a5561079b81610e6c565b80156107c057506107ab816106f3565b6001600160a01b0316336001600160a01b0316145b80156107e557506000818152601360205260409020546005600160301b90910460ff16105b6108295760405162461bcd60e51b815260206004820152601560248201527429b2ba3a3632b6b2b73a103a3ab937399037bb32b960591b6044820152606401610435565b60008181526013602052604090205461085890829061085390600160301b900460ff16600161118c565b61119f565b506001600a55565b60006001600160a01b0382166108cb5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610435565b506001600160a01b031660009081526003602052604090205490565b600b546001600160a01b031633146109115760405162461bcd60e51b81526004016104359061315d565b61091b60006118ad565b565b6002600a5414156109405760405162461bcd60e51b8152600401610435906131e3565b6002600a5561094e81610e6c565b15801561095b5750600081115b801561096857506126ad81105b6109af5760405162461bcd60e51b815260206004820152601860248201527714d95d1d1b195b595b9d081a59081a5cc81a5b9d985b1a5960421b6044820152606401610435565b6109ba81600061119f565b61085833826118ff565b60606001805461034a906132a8565b6001600160a01b038216331415610a2c5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610435565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b610aa23383610ef7565b610abe5760405162461bcd60e51b815260040161043590613192565b610aca8484848461191d565b50505050565b6060610adb82610e6c565b610b275760405162461bcd60e51b815260206004820152601960248201527f536574746c656d656e7420646f6573206e6f74206578697374000000000000006044820152606401610435565b6000610b3283611950565b90506000610b3f82612147565b82516020808501516040808701516060880151608089015160a08a015160c08b015160e08c01516101008d015196519a9b5060009a610b8b9a9996979596949593949293919201612e32565b60408051808303601f19018152908290526101208501516101408601516101608701516101808801516101a08901516101c08a0151959750610bd296889690602001612da0565b60408051808303601f190181528282528451602080870151938701516060880151608089015160a08a015160c08b015160e08c01516101008d0151989b5060009a610c2c9a98999697959694959394929391929101612e32565b60408051808303601f19018152908290526101208501516101408601516101608701516101808801516101a08901516101c08a0151959750610c7396889690602001612da0565b60405160208183030381529060405290506000610cc2610c9288612291565b610c9b856123ab565b84604051602001610cae93929190612f71565b6040516020818303038152906040526123ab565b905080604051602001610cd59190612f2c565b60408051601f19818403018152919052979650505050505050565b600b546001600160a01b03163314610d1a5760405162461bcd60e51b81526004016104359061315d565b6001600160a01b038116610d7f5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610435565b610d88816118ad565b50565b6002600a541415610dae5760405162461bcd60e51b8152600401610435906131e3565b6002600a55600b546001600160a01b03163314610ddd5760405162461bcd60e51b81526004016104359061315d565b610de681610e6c565b158015610df457506126ac81115b8015610968575061271181106109af5760405162461bcd60e51b815260206004820152601860248201527714d95d1d1b195b595b9d081a59081a5cc81a5b9d985b1a5960421b6044820152606401610435565b60006001600160e01b0319821663780e9d6360e01b1480610335575061033582612521565b6000908152600260205260409020546001600160a01b0316151590565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190610ebe826106f3565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000610f0282610e6c565b610f635760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610435565b6000610f6e836106f3565b9050806001600160a01b0316846001600160a01b03161480610fa95750836001600160a01b0316610f9e846103cd565b6001600160a01b0316145b80610fd957506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b0316610ff4826106f3565b6001600160a01b03161461105c5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610435565b6001600160a01b0382166110be5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610435565b6110c9838383612571565b6110d4600082610e89565b6001600160a01b03831660009081526003602052604081208054600192906110fd908490613265565b90915550506001600160a01b038216600090815260036020526040812080546001929061112b90849061321a565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6000611198828461321a565b9392505050565b61129f6111c8836040518060400160405280600481526020016373697a6560e01b81525061257c565b600c805480602002602001604051908101604052809291908181526020016000905b82821015611296578382906000526020600020018054611209906132a8565b80601f0160208091040260200160405190810160405280929190818152602001828054611235906132a8565b80156112825780601f1061125757610100808354040283529160200191611282565b820191906000526020600020905b81548152906001019060200180831161126557829003601f168201915b5050505050815260200190600101906111ea565b505050506125b4565b6013600084815260200190815260200160002060000160006101000a81548160ff021916908360ff1602179055506113c66112f883604051806040016040528060068152602001651cdc1a5c9a5d60d21b81525061257c565b600d805480602002602001604051908101604052809291908181526020016000905b82821015611296578382906000526020600020018054611339906132a8565b80601f0160208091040260200160405190810160405280929190818152602001828054611365906132a8565b80156113b25780601f10611387576101008083540402835291602001916113b2565b820191906000526020600020905b81548152906001019060200180831161139557829003601f168201915b50505050508152602001906001019061131a565b6013600084815260200190815260200160002060000160016101000a81548160ff021916908360ff1602179055506114ea61141c836040518060400160405280600381526020016261676560e81b81525061257c565b600e805480602002602001604051908101604052809291908181526020016000905b8282101561129657838290600052602060002001805461145d906132a8565b80601f0160208091040260200160405190810160405280929190818152602001828054611489906132a8565b80156114d65780601f106114ab576101008083540402835291602001916114d6565b820191906000526020600020905b8154815290600101906020018083116114b957829003601f168201915b50505050508152602001906001019061143e565b6013600084815260200190815260200160002060000160026101000a81548160ff021916908360ff16021790555061161361154583604051806040016040528060088152602001677265736f7572636560c01b81525061257c565b600f805480602002602001604051908101604052809291908181526020016000905b82821015611296578382906000526020600020018054611586906132a8565b80601f01602080910402602001604051908101604052809291908181526020018280546115b2906132a8565b80156115ff5780601f106115d4576101008083540402835291602001916115ff565b820191906000526020600020905b8154815290600101906020018083116115e257829003601f168201915b505050505081526020019060010190611567565b6013600084815260200190815260200160002060000160036101000a81548160ff021916908360ff16021790555061173a61166c83604051806040016040528060068152602001656d6f72616c6560d01b81525061257c565b6010805480602002602001604051908101604052809291908181526020016000905b828210156112965783829060005260206000200180546116ad906132a8565b80601f01602080910402602001604051908101604052809291908181526020018280546116d9906132a8565b80156117265780601f106116fb57610100808354040283529160200191611726565b820191906000526020600020905b81548152906001019060200180831161170957829003601f168201915b50505050508152602001906001019061168e565b6013600084815260200190815260200160002060000160046101000a81548160ff021916908360ff160217905550611865611797836040518060400160405280600a81526020016919dbdd995c9b9b595b9d60b21b81525061257c565b6011805480602002602001604051908101604052809291908181526020016000905b828210156112965783829060005260206000200180546117d8906132a8565b80601f0160208091040260200160405190810160405280929190818152602001828054611804906132a8565b80156118515780601f1061182657610100808354040283529160200191611851565b820191906000526020600020905b81548152906001019060200180831161183457829003601f168201915b5050505050815260200190600101906117b9565b600092835260136020526040909220805466ffff000000000019166501000000000060ff9485160266ff000000000000191617600160301b9290931691909102919091179055565b600b80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6119198282604051806020016040528060008152506125c1565b5050565b611928848484610fe1565b611934848484846125f4565b610aca5760405162461bcd60e51b81526004016104359061310b565b611958612ae9565b611960612ae9565b60405180610120016040528060fe81526020016133e260fe91398152600083815260136020526040902054600c8054909160ff169081106119b157634e487b7160e01b600052603260045260246000fd5b9060005260206000200180546119c6906132a8565b80601f01602080910402602001604051908101604052809291908181526020018280546119f2906132a8565b8015611a3f5780601f10611a1457610100808354040283529160200191611a3f565b820191906000526020600020905b815481529060010190602001808311611a2257829003601f168201915b5050505050816001600f8110611a6557634e487b7160e01b600052603260045260246000fd5b602002018190525060405180606001604052806027815260200161352e60279139604082810191909152600084815260136020522054600d80549091610100900460ff16908110611ac657634e487b7160e01b600052603260045260246000fd5b906000526020600020018054611adb906132a8565b80601f0160208091040260200160405190810160405280929190818152602001828054611b07906132a8565b8015611b545780601f10611b2957610100808354040283529160200191611b54565b820191906000526020600020905b815481529060010190602001808311611b3757829003601f168201915b5050505050816003600f8110611b7a57634e487b7160e01b600052603260045260246000fd5b6020020181905250604051806060016040528060278152602001613662602791396080820152600083815260136020526040902054600e8054909162010000900460ff16908110611bdb57634e487b7160e01b600052603260045260246000fd5b906000526020600020018054611bf0906132a8565b80601f0160208091040260200160405190810160405280929190818152602001828054611c1c906132a8565b8015611c695780601f10611c3e57610100808354040283529160200191611c69565b820191906000526020600020905b815481529060010190602001808311611c4c57829003601f168201915b5050505050816005600f8110611c8f57634e487b7160e01b600052603260045260246000fd5b60200201819052506040518060600160405280602781526020016133986027913960c0820152600083815260136020526040902054600f805490916301000000900460ff16908110611cf157634e487b7160e01b600052603260045260246000fd5b906000526020600020018054611d06906132a8565b80601f0160208091040260200160405190810160405280929190818152602001828054611d32906132a8565b8015611d7f5780601f10611d5457610100808354040283529160200191611d7f565b820191906000526020600020905b815481529060010190602001808311611d6257829003601f168201915b5050505050816007600f8110611da557634e487b7160e01b600052603260045260246000fd5b602002018190525060405180606001604052806028815260200161368960289139610100820152600083815260136020526040902054601080549091640100000000900460ff16908110611e0957634e487b7160e01b600052603260045260246000fd5b906000526020600020018054611e1e906132a8565b80601f0160208091040260200160405190810160405280929190818152602001828054611e4a906132a8565b8015611e975780601f10611e6c57610100808354040283529160200191611e97565b820191906000526020600020905b815481529060010190602001808311611e7a57829003601f168201915b5050505050816009600f8110611ebd57634e487b7160e01b600052603260045260246000fd5b60200201819052506040518060600160405280602881526020016135556028913961014082015260008381526013602052604090205460118054909165010000000000900460ff16908110611f2257634e487b7160e01b600052603260045260246000fd5b906000526020600020018054611f37906132a8565b80601f0160208091040260200160405190810160405280929190818152602001828054611f63906132a8565b8015611fb05780601f10611f8557610100808354040283529160200191611fb0565b820191906000526020600020905b815481529060010190602001808311611f9357829003601f168201915b505050505081600b600f8110611fd657634e487b7160e01b600052603260045260246000fd5b60200201819052506040518060600160405280602881526020016135e660289139610180820152600083815260136020526040902054601280549091600160301b900460ff1690811061203957634e487b7160e01b600052603260045260246000fd5b90600052602060002001805461204e906132a8565b80601f016020809104026020016040519081016040528092919081815260200182805461207a906132a8565b80156120c75780601f1061209c576101008083540402835291602001916120c7565b820191906000526020600020905b8154815290600101906020018083116120aa57829003601f168201915b505050505081600d600f81106120ed57634e487b7160e01b600052603260045260246000fd5b60200201819052506040518060400160405280600d81526020016c1e17ba32bc3a1f1e17b9bb339f60991b81525081600e600f811061213c57634e487b7160e01b600052603260045260246000fd5b602002015292915050565b61214f612ae9565b612157612ae9565b6040518060600160405280602381526020016133bf6023913981526020838101518183015260408051606081019091526029808252909161357d9083013960408083019190915260608085015181840152815190810190915260268082526135086020830139608082015260a080840151908201526040805160608101909152602b80825261360e602083013960c082015260e0808401519082015260408051606081019091526029808252613639602083013961010082015261012080840151908201526040805160608101909152602d80825261336b60208301396101408201526101608084015190820152604080516060810190915260288082526134e060208301396101808201526101a0808401519082015260408051808201909152600481526322207d5d60e01b602082015281600e61213c565b6060816122b55750506040805180820190915260018152600360fc1b602082015290565b8160005b81156122df57806122c9816132e3565b91506122d89050600a83613232565b91506122b9565b60008167ffffffffffffffff81111561230857634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612332576020820181803683370190505b5090505b8415610fd957612347600183613265565b9150612354600a866132fe565b61235f90603061321a565b60f81b81838151811061238257634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a9053506123a4600a86613232565b9450612336565b60608151600014156123cb57505060408051602081019091526000815290565b60006040518060600160405280604081526020016135a660409139905060006003845160026123fa919061321a565b6124049190613232565b61240f906004613246565b9050600061241e82602061321a565b67ffffffffffffffff81111561244457634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f19166020018201604052801561246e576020820181803683370190505b509050818152600183018586518101602084015b818310156124dc5760039283018051603f601282901c811687015160f890811b8552600c83901c8216880151811b6001860152600683901c8216880151811b60028601529116860151901b93820193909352600401612482565b6003895106600181146124f6576002811461250757612513565b613d3d60f01b600119830152612513565b603d60f81b6000198301525b509398975050505050505050565b60006001600160e01b031982166380ac58cd60e01b148061255257506001600160e01b03198216635b5e139f60e01b145b8061033557506301ffc9a760e01b6001600160e01b0319831614610335565b61056b838383612701565b60608161258884612291565b424460405160200161259d9493929190612ef2565b604051602081830303815290604052905092915050565b60006111988383516127b9565b6125cb83836127f0565b6125d860008484846125f4565b61056b5760405162461bcd60e51b81526004016104359061310b565b60006001600160a01b0384163b156126f657604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906126389033908990889088906004016130c5565b602060405180830381600087803b15801561265257600080fd5b505af1925050508015612682575060408051601f3d908101601f1916820190925261267f91810190612d08565b60015b6126dc573d8080156126b0576040519150601f19603f3d011682016040523d82523d6000602084013e6126b5565b606091505b5080516126d45760405162461bcd60e51b81526004016104359061310b565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050610fd9565b506001949350505050565b6001600160a01b03831661275c5761275781600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b61277f565b816001600160a01b0316836001600160a01b03161461277f5761277f838261292f565b6001600160a01b0382166127965761056b816129cc565b826001600160a01b0316826001600160a01b03161461056b5761056b8282612aa5565b600081836040516020016127cd9190612d84565b6040516020818303038152906040528051906020012060001c61119891906132fe565b6001600160a01b0382166128465760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610435565b61284f81610e6c565b1561289c5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610435565b6128a860008383612571565b6001600160a01b03821660009081526003602052604081208054600192906128d190849061321a565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6000600161293c84610860565b6129469190613265565b600083815260076020526040902054909150808214612999576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b6008546000906129de90600190613265565b60008381526009602052604081205460088054939450909284908110612a1457634e487b7160e01b600052603260045260246000fd5b906000526020600020015490508060088381548110612a4357634e487b7160e01b600052603260045260246000fd5b6000918252602080832090910192909255828152600990915260408082208490558582528120556008805480612a8957634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b6000612ab083610860565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b604051806101e00160405280600f905b6060815260200190600190039081612af95790505090565b80356001600160a01b0381168114612b2857600080fd5b919050565b600060208284031215612b3e578081fd5b61119882612b11565b60008060408385031215612b59578081fd5b612b6283612b11565b9150612b7060208401612b11565b90509250929050565b600080600060608486031215612b8d578081fd5b612b9684612b11565b9250612ba460208501612b11565b9150604084013590509250925092565b60008060008060808587031215612bc9578081fd5b612bd285612b11565b9350612be060208601612b11565b925060408501359150606085013567ffffffffffffffff80821115612c03578283fd5b818701915087601f830112612c16578283fd5b813581811115612c2857612c2861333e565b604051601f8201601f19908116603f01168101908382118183101715612c5057612c5061333e565b816040528281528a6020848701011115612c68578586fd5b82602086016020830137918201602001949094529598949750929550505050565b60008060408385031215612c9b578182fd5b612ca483612b11565b915060208301358015158114612cb8578182fd5b809150509250929050565b60008060408385031215612cd5578182fd5b612cde83612b11565b946020939093013593505050565b600060208284031215612cfd578081fd5b813561119881613354565b600060208284031215612d19578081fd5b815161119881613354565b600060208284031215612d35578081fd5b5035919050565b60008151808452612d5481602086016020860161327c565b601f01601f19169290920160200192915050565b60008151612d7a81856020860161327c565b9290920192915050565b60008251612d9681846020870161327c565b9190910192915050565b600088516020612db38285838e0161327c565b895191840191612dc68184848e0161327c565b8951920191612dd88184848d0161327c565b8851920191612dea8184848c0161327c565b8751920191612dfc8184848b0161327c565b8651920191612e0e8184848a0161327c565b8551920191612e20818484890161327c565b919091019a9950505050505050505050565b60008a51612e44818460208f0161327c565b8a51612e568183860160208f0161327c565b8a519184010190612e6b818360208e0161327c565b8951612e7d8183850160208e0161327c565b8951929091010190612e93818360208c0161327c565b8751910190612ea6818360208b0161327c565b8651612eb88183850160208b0161327c565b8651929091010190612ece81836020890161327c565b8451612ee0818385016020890161327c565b9101019b9a5050505050505050505050565b60008551612f04818460208a0161327c565b855190830190612f18818360208a0161327c565b019384525050602082015260400192915050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c000000815260008251612f6481601d85016020870161327c565b91909101601d0192915050565b757b226e616d65223a2022536574746c656d656e74202360501b81528351600090612fa381601685016020890161327c565b7f222c20226465736372697074696f6e223a2022536574746c656d656e747320616016918401918201527f72652061207475726e20626173656420636976696c69736174696f6e2073696d60368201527f756c61746f722073746f72656420656e746972656c79206f6e20636861696e2c60568201527f20676f20666f72746820616e6420636f6e717565722e222c2022696d6167652260768201527f3a2022646174613a696d6167652f7376672b786d6c3b6261736536342c000000609682015284516130788160b384016020890161327c565b601160f91b60b392909101918201526d161130ba3a3934b13aba32b9911d60911b60b48201526130bb6130ae60c2830186612d68565b607d60f81b815260010190565b9695505050505050565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906130bb90830184612d3c565b6020815260006111986020830184612d3c565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b6000821982111561322d5761322d613312565b500190565b60008261324157613241613328565b500490565b600081600019048311821515161561326057613260613312565b500290565b60008282101561327757613277613312565b500390565b60005b8381101561329757818101518382015260200161327f565b83811115610aca5750506000910152565b600181811c908216806132bc57607f821691505b602082108114156132dd57634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156132f7576132f7613312565b5060010190565b60008261330d5761330d613328565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b031981168114610d8857600080fdfe22207d2c207b202274726169745f74797065223a2022476f7665726e6d656e74222c202276616c7565223a20223c2f746578743e3c7465787420783d2231302220793d2238302220636c6173733d22747874223e5b7b202274726169745f74797065223a202253697a65222c202276616c7565223a20223c73766720786d6c6e733d22687474703a2f2f7777772e77332e6f72672f323030302f73766722207072657365727665417370656374526174696f3d22784d696e594d696e206d656574222076696577426f783d223020302033353020333530223e3c7374796c653e2e747874207b2066696c6c3a20626c61636b3b20666f6e742d66616d696c793a206d6f6e6f73706163653b20666f6e742d73697a653a20313270783b7d3c2f7374796c653e3c726563742077696474683d223130302522206865696768743d2231303025222066696c6c3d22776869746522202f3e3c7465787420783d2231302220793d2232302220636c6173733d22747874223e22207d2c207b202274726169745f74797065223a20225265616c6d222c202276616c7565223a202222207d2c207b202274726169745f74797065223a2022416765222c202276616c7565223a20223c2f746578743e3c7465787420783d2231302220793d2234302220636c6173733d22747874223e3c2f746578743e3c7465787420783d2231302220793d223132302220636c6173733d22747874223e22207d2c207b202274726169745f74797065223a2022537069726974222c202276616c7565223a20224142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2f3c2f746578743e3c7465787420783d2231302220793d223134302220636c6173733d22747874223e22207d2c207b202274726169745f74797065223a20225265736f75726365222c202276616c7565223a202222207d2c207b202274726169745f74797065223a20224d6f72616c65222c202276616c7565223a20223c2f746578743e3c7465787420783d2231302220793d2236302220636c6173733d22747874223e3c2f746578743e3c7465787420783d2231302220793d223130302220636c6173733d22747874223ea26469706673582212201e4367a70ffec5b9f3516430520a0dbb3a225a72ea341a357253ac50f1657a5d64736f6c63430008040033

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101425760003560e01c806370a08231116100b8578063a22cb4651161007c578063a22cb4651461028f578063b88d4fde146102a2578063c87b56dd146102b5578063e985e9c5146102c8578063f2fde38b14610304578063fbf606a81461031757600080fd5b806370a0823114610248578063715018a61461025b5780638da5cb5b146102635780638df828001461027457806395d89b411461028757600080fd5b806323b872dd1161010a57806323b872dd146101d65780632f745c59146101e957806342842e0e146101fc5780634f6ccce71461020f5780636352211e1461022257806364449c9c1461023557600080fd5b806301ffc9a71461014757806306fdde031461016f578063081812fc14610184578063095ea7b3146101af57806318160ddd146101c4575b600080fd5b61015a610155366004612cec565b61032a565b60405190151581526020015b60405180910390f35b61017761033b565b60405161016691906130f8565b610197610192366004612d24565b6103cd565b6040516001600160a01b039091168152602001610166565b6101c26101bd366004612cc3565b61045a565b005b6008545b604051908152602001610166565b6101c26101e4366004612b79565b610570565b6101c86101f7366004612cc3565b6105a1565b6101c261020a366004612b79565b610637565b6101c861021d366004612d24565b610652565b610197610230366004612d24565b6106f3565b6101c2610243366004612d24565b61076a565b6101c8610256366004612b2d565b610860565b6101c26108e7565b600b546001600160a01b0316610197565b6101c2610282366004612d24565b61091d565b6101776109c4565b6101c261029d366004612c89565b6109d3565b6101c26102b0366004612bb4565b610a98565b6101776102c3366004612d24565b610ad0565b61015a6102d6366004612b47565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b6101c2610312366004612b2d565b610cf0565b6101c2610325366004612d24565b610d8b565b600061033582610e47565b92915050565b60606000805461034a906132a8565b80601f0160208091040260200160405190810160405280929190818152602001828054610376906132a8565b80156103c35780601f10610398576101008083540402835291602001916103c3565b820191906000526020600020905b8154815290600101906020018083116103a657829003601f168201915b5050505050905090565b60006103d882610e6c565b61043e5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b6000610465826106f3565b9050806001600160a01b0316836001600160a01b031614156104d35760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610435565b336001600160a01b03821614806104ef57506104ef81336102d6565b6105615760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610435565b61056b8383610e89565b505050565b61057a3382610ef7565b6105965760405162461bcd60e51b815260040161043590613192565b61056b838383610fe1565b60006105ac83610860565b821061060e5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610435565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b61056b83838360405180602001604052806000815250610a98565b600061065d60085490565b82106106c05760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610435565b600882815481106106e157634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b6000818152600260205260408120546001600160a01b0316806103355760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610435565b6002600a54141561078d5760405162461bcd60e51b8152600401610435906131e3565b6002600a5561079b81610e6c565b80156107c057506107ab816106f3565b6001600160a01b0316336001600160a01b0316145b80156107e557506000818152601360205260409020546005600160301b90910460ff16105b6108295760405162461bcd60e51b815260206004820152601560248201527429b2ba3a3632b6b2b73a103a3ab937399037bb32b960591b6044820152606401610435565b60008181526013602052604090205461085890829061085390600160301b900460ff16600161118c565b61119f565b506001600a55565b60006001600160a01b0382166108cb5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610435565b506001600160a01b031660009081526003602052604090205490565b600b546001600160a01b031633146109115760405162461bcd60e51b81526004016104359061315d565b61091b60006118ad565b565b6002600a5414156109405760405162461bcd60e51b8152600401610435906131e3565b6002600a5561094e81610e6c565b15801561095b5750600081115b801561096857506126ad81105b6109af5760405162461bcd60e51b815260206004820152601860248201527714d95d1d1b195b595b9d081a59081a5cc81a5b9d985b1a5960421b6044820152606401610435565b6109ba81600061119f565b61085833826118ff565b60606001805461034a906132a8565b6001600160a01b038216331415610a2c5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610435565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b610aa23383610ef7565b610abe5760405162461bcd60e51b815260040161043590613192565b610aca8484848461191d565b50505050565b6060610adb82610e6c565b610b275760405162461bcd60e51b815260206004820152601960248201527f536574746c656d656e7420646f6573206e6f74206578697374000000000000006044820152606401610435565b6000610b3283611950565b90506000610b3f82612147565b82516020808501516040808701516060880151608089015160a08a015160c08b015160e08c01516101008d015196519a9b5060009a610b8b9a9996979596949593949293919201612e32565b60408051808303601f19018152908290526101208501516101408601516101608701516101808801516101a08901516101c08a0151959750610bd296889690602001612da0565b60408051808303601f190181528282528451602080870151938701516060880151608089015160a08a015160c08b015160e08c01516101008d0151989b5060009a610c2c9a98999697959694959394929391929101612e32565b60408051808303601f19018152908290526101208501516101408601516101608701516101808801516101a08901516101c08a0151959750610c7396889690602001612da0565b60405160208183030381529060405290506000610cc2610c9288612291565b610c9b856123ab565b84604051602001610cae93929190612f71565b6040516020818303038152906040526123ab565b905080604051602001610cd59190612f2c565b60408051601f19818403018152919052979650505050505050565b600b546001600160a01b03163314610d1a5760405162461bcd60e51b81526004016104359061315d565b6001600160a01b038116610d7f5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610435565b610d88816118ad565b50565b6002600a541415610dae5760405162461bcd60e51b8152600401610435906131e3565b6002600a55600b546001600160a01b03163314610ddd5760405162461bcd60e51b81526004016104359061315d565b610de681610e6c565b158015610df457506126ac81115b8015610968575061271181106109af5760405162461bcd60e51b815260206004820152601860248201527714d95d1d1b195b595b9d081a59081a5cc81a5b9d985b1a5960421b6044820152606401610435565b60006001600160e01b0319821663780e9d6360e01b1480610335575061033582612521565b6000908152600260205260409020546001600160a01b0316151590565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190610ebe826106f3565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000610f0282610e6c565b610f635760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610435565b6000610f6e836106f3565b9050806001600160a01b0316846001600160a01b03161480610fa95750836001600160a01b0316610f9e846103cd565b6001600160a01b0316145b80610fd957506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b0316610ff4826106f3565b6001600160a01b03161461105c5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610435565b6001600160a01b0382166110be5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610435565b6110c9838383612571565b6110d4600082610e89565b6001600160a01b03831660009081526003602052604081208054600192906110fd908490613265565b90915550506001600160a01b038216600090815260036020526040812080546001929061112b90849061321a565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6000611198828461321a565b9392505050565b61129f6111c8836040518060400160405280600481526020016373697a6560e01b81525061257c565b600c805480602002602001604051908101604052809291908181526020016000905b82821015611296578382906000526020600020018054611209906132a8565b80601f0160208091040260200160405190810160405280929190818152602001828054611235906132a8565b80156112825780601f1061125757610100808354040283529160200191611282565b820191906000526020600020905b81548152906001019060200180831161126557829003601f168201915b5050505050815260200190600101906111ea565b505050506125b4565b6013600084815260200190815260200160002060000160006101000a81548160ff021916908360ff1602179055506113c66112f883604051806040016040528060068152602001651cdc1a5c9a5d60d21b81525061257c565b600d805480602002602001604051908101604052809291908181526020016000905b82821015611296578382906000526020600020018054611339906132a8565b80601f0160208091040260200160405190810160405280929190818152602001828054611365906132a8565b80156113b25780601f10611387576101008083540402835291602001916113b2565b820191906000526020600020905b81548152906001019060200180831161139557829003601f168201915b50505050508152602001906001019061131a565b6013600084815260200190815260200160002060000160016101000a81548160ff021916908360ff1602179055506114ea61141c836040518060400160405280600381526020016261676560e81b81525061257c565b600e805480602002602001604051908101604052809291908181526020016000905b8282101561129657838290600052602060002001805461145d906132a8565b80601f0160208091040260200160405190810160405280929190818152602001828054611489906132a8565b80156114d65780601f106114ab576101008083540402835291602001916114d6565b820191906000526020600020905b8154815290600101906020018083116114b957829003601f168201915b50505050508152602001906001019061143e565b6013600084815260200190815260200160002060000160026101000a81548160ff021916908360ff16021790555061161361154583604051806040016040528060088152602001677265736f7572636560c01b81525061257c565b600f805480602002602001604051908101604052809291908181526020016000905b82821015611296578382906000526020600020018054611586906132a8565b80601f01602080910402602001604051908101604052809291908181526020018280546115b2906132a8565b80156115ff5780601f106115d4576101008083540402835291602001916115ff565b820191906000526020600020905b8154815290600101906020018083116115e257829003601f168201915b505050505081526020019060010190611567565b6013600084815260200190815260200160002060000160036101000a81548160ff021916908360ff16021790555061173a61166c83604051806040016040528060068152602001656d6f72616c6560d01b81525061257c565b6010805480602002602001604051908101604052809291908181526020016000905b828210156112965783829060005260206000200180546116ad906132a8565b80601f01602080910402602001604051908101604052809291908181526020018280546116d9906132a8565b80156117265780601f106116fb57610100808354040283529160200191611726565b820191906000526020600020905b81548152906001019060200180831161170957829003601f168201915b50505050508152602001906001019061168e565b6013600084815260200190815260200160002060000160046101000a81548160ff021916908360ff160217905550611865611797836040518060400160405280600a81526020016919dbdd995c9b9b595b9d60b21b81525061257c565b6011805480602002602001604051908101604052809291908181526020016000905b828210156112965783829060005260206000200180546117d8906132a8565b80601f0160208091040260200160405190810160405280929190818152602001828054611804906132a8565b80156118515780601f1061182657610100808354040283529160200191611851565b820191906000526020600020905b81548152906001019060200180831161183457829003601f168201915b5050505050815260200190600101906117b9565b600092835260136020526040909220805466ffff000000000019166501000000000060ff9485160266ff000000000000191617600160301b9290931691909102919091179055565b600b80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6119198282604051806020016040528060008152506125c1565b5050565b611928848484610fe1565b611934848484846125f4565b610aca5760405162461bcd60e51b81526004016104359061310b565b611958612ae9565b611960612ae9565b60405180610120016040528060fe81526020016133e260fe91398152600083815260136020526040902054600c8054909160ff169081106119b157634e487b7160e01b600052603260045260246000fd5b9060005260206000200180546119c6906132a8565b80601f01602080910402602001604051908101604052809291908181526020018280546119f2906132a8565b8015611a3f5780601f10611a1457610100808354040283529160200191611a3f565b820191906000526020600020905b815481529060010190602001808311611a2257829003601f168201915b5050505050816001600f8110611a6557634e487b7160e01b600052603260045260246000fd5b602002018190525060405180606001604052806027815260200161352e60279139604082810191909152600084815260136020522054600d80549091610100900460ff16908110611ac657634e487b7160e01b600052603260045260246000fd5b906000526020600020018054611adb906132a8565b80601f0160208091040260200160405190810160405280929190818152602001828054611b07906132a8565b8015611b545780601f10611b2957610100808354040283529160200191611b54565b820191906000526020600020905b815481529060010190602001808311611b3757829003601f168201915b5050505050816003600f8110611b7a57634e487b7160e01b600052603260045260246000fd5b6020020181905250604051806060016040528060278152602001613662602791396080820152600083815260136020526040902054600e8054909162010000900460ff16908110611bdb57634e487b7160e01b600052603260045260246000fd5b906000526020600020018054611bf0906132a8565b80601f0160208091040260200160405190810160405280929190818152602001828054611c1c906132a8565b8015611c695780601f10611c3e57610100808354040283529160200191611c69565b820191906000526020600020905b815481529060010190602001808311611c4c57829003601f168201915b5050505050816005600f8110611c8f57634e487b7160e01b600052603260045260246000fd5b60200201819052506040518060600160405280602781526020016133986027913960c0820152600083815260136020526040902054600f805490916301000000900460ff16908110611cf157634e487b7160e01b600052603260045260246000fd5b906000526020600020018054611d06906132a8565b80601f0160208091040260200160405190810160405280929190818152602001828054611d32906132a8565b8015611d7f5780601f10611d5457610100808354040283529160200191611d7f565b820191906000526020600020905b815481529060010190602001808311611d6257829003601f168201915b5050505050816007600f8110611da557634e487b7160e01b600052603260045260246000fd5b602002018190525060405180606001604052806028815260200161368960289139610100820152600083815260136020526040902054601080549091640100000000900460ff16908110611e0957634e487b7160e01b600052603260045260246000fd5b906000526020600020018054611e1e906132a8565b80601f0160208091040260200160405190810160405280929190818152602001828054611e4a906132a8565b8015611e975780601f10611e6c57610100808354040283529160200191611e97565b820191906000526020600020905b815481529060010190602001808311611e7a57829003601f168201915b5050505050816009600f8110611ebd57634e487b7160e01b600052603260045260246000fd5b60200201819052506040518060600160405280602881526020016135556028913961014082015260008381526013602052604090205460118054909165010000000000900460ff16908110611f2257634e487b7160e01b600052603260045260246000fd5b906000526020600020018054611f37906132a8565b80601f0160208091040260200160405190810160405280929190818152602001828054611f63906132a8565b8015611fb05780601f10611f8557610100808354040283529160200191611fb0565b820191906000526020600020905b815481529060010190602001808311611f9357829003601f168201915b505050505081600b600f8110611fd657634e487b7160e01b600052603260045260246000fd5b60200201819052506040518060600160405280602881526020016135e660289139610180820152600083815260136020526040902054601280549091600160301b900460ff1690811061203957634e487b7160e01b600052603260045260246000fd5b90600052602060002001805461204e906132a8565b80601f016020809104026020016040519081016040528092919081815260200182805461207a906132a8565b80156120c75780601f1061209c576101008083540402835291602001916120c7565b820191906000526020600020905b8154815290600101906020018083116120aa57829003601f168201915b505050505081600d600f81106120ed57634e487b7160e01b600052603260045260246000fd5b60200201819052506040518060400160405280600d81526020016c1e17ba32bc3a1f1e17b9bb339f60991b81525081600e600f811061213c57634e487b7160e01b600052603260045260246000fd5b602002015292915050565b61214f612ae9565b612157612ae9565b6040518060600160405280602381526020016133bf6023913981526020838101518183015260408051606081019091526029808252909161357d9083013960408083019190915260608085015181840152815190810190915260268082526135086020830139608082015260a080840151908201526040805160608101909152602b80825261360e602083013960c082015260e0808401519082015260408051606081019091526029808252613639602083013961010082015261012080840151908201526040805160608101909152602d80825261336b60208301396101408201526101608084015190820152604080516060810190915260288082526134e060208301396101808201526101a0808401519082015260408051808201909152600481526322207d5d60e01b602082015281600e61213c565b6060816122b55750506040805180820190915260018152600360fc1b602082015290565b8160005b81156122df57806122c9816132e3565b91506122d89050600a83613232565b91506122b9565b60008167ffffffffffffffff81111561230857634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612332576020820181803683370190505b5090505b8415610fd957612347600183613265565b9150612354600a866132fe565b61235f90603061321a565b60f81b81838151811061238257634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a9053506123a4600a86613232565b9450612336565b60608151600014156123cb57505060408051602081019091526000815290565b60006040518060600160405280604081526020016135a660409139905060006003845160026123fa919061321a565b6124049190613232565b61240f906004613246565b9050600061241e82602061321a565b67ffffffffffffffff81111561244457634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f19166020018201604052801561246e576020820181803683370190505b509050818152600183018586518101602084015b818310156124dc5760039283018051603f601282901c811687015160f890811b8552600c83901c8216880151811b6001860152600683901c8216880151811b60028601529116860151901b93820193909352600401612482565b6003895106600181146124f6576002811461250757612513565b613d3d60f01b600119830152612513565b603d60f81b6000198301525b509398975050505050505050565b60006001600160e01b031982166380ac58cd60e01b148061255257506001600160e01b03198216635b5e139f60e01b145b8061033557506301ffc9a760e01b6001600160e01b0319831614610335565b61056b838383612701565b60608161258884612291565b424460405160200161259d9493929190612ef2565b604051602081830303815290604052905092915050565b60006111988383516127b9565b6125cb83836127f0565b6125d860008484846125f4565b61056b5760405162461bcd60e51b81526004016104359061310b565b60006001600160a01b0384163b156126f657604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906126389033908990889088906004016130c5565b602060405180830381600087803b15801561265257600080fd5b505af1925050508015612682575060408051601f3d908101601f1916820190925261267f91810190612d08565b60015b6126dc573d8080156126b0576040519150601f19603f3d011682016040523d82523d6000602084013e6126b5565b606091505b5080516126d45760405162461bcd60e51b81526004016104359061310b565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050610fd9565b506001949350505050565b6001600160a01b03831661275c5761275781600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b61277f565b816001600160a01b0316836001600160a01b03161461277f5761277f838261292f565b6001600160a01b0382166127965761056b816129cc565b826001600160a01b0316826001600160a01b03161461056b5761056b8282612aa5565b600081836040516020016127cd9190612d84565b6040516020818303038152906040528051906020012060001c61119891906132fe565b6001600160a01b0382166128465760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610435565b61284f81610e6c565b1561289c5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610435565b6128a860008383612571565b6001600160a01b03821660009081526003602052604081208054600192906128d190849061321a565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6000600161293c84610860565b6129469190613265565b600083815260076020526040902054909150808214612999576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b6008546000906129de90600190613265565b60008381526009602052604081205460088054939450909284908110612a1457634e487b7160e01b600052603260045260246000fd5b906000526020600020015490508060088381548110612a4357634e487b7160e01b600052603260045260246000fd5b6000918252602080832090910192909255828152600990915260408082208490558582528120556008805480612a8957634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b6000612ab083610860565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b604051806101e00160405280600f905b6060815260200190600190039081612af95790505090565b80356001600160a01b0381168114612b2857600080fd5b919050565b600060208284031215612b3e578081fd5b61119882612b11565b60008060408385031215612b59578081fd5b612b6283612b11565b9150612b7060208401612b11565b90509250929050565b600080600060608486031215612b8d578081fd5b612b9684612b11565b9250612ba460208501612b11565b9150604084013590509250925092565b60008060008060808587031215612bc9578081fd5b612bd285612b11565b9350612be060208601612b11565b925060408501359150606085013567ffffffffffffffff80821115612c03578283fd5b818701915087601f830112612c16578283fd5b813581811115612c2857612c2861333e565b604051601f8201601f19908116603f01168101908382118183101715612c5057612c5061333e565b816040528281528a6020848701011115612c68578586fd5b82602086016020830137918201602001949094529598949750929550505050565b60008060408385031215612c9b578182fd5b612ca483612b11565b915060208301358015158114612cb8578182fd5b809150509250929050565b60008060408385031215612cd5578182fd5b612cde83612b11565b946020939093013593505050565b600060208284031215612cfd578081fd5b813561119881613354565b600060208284031215612d19578081fd5b815161119881613354565b600060208284031215612d35578081fd5b5035919050565b60008151808452612d5481602086016020860161327c565b601f01601f19169290920160200192915050565b60008151612d7a81856020860161327c565b9290920192915050565b60008251612d9681846020870161327c565b9190910192915050565b600088516020612db38285838e0161327c565b895191840191612dc68184848e0161327c565b8951920191612dd88184848d0161327c565b8851920191612dea8184848c0161327c565b8751920191612dfc8184848b0161327c565b8651920191612e0e8184848a0161327c565b8551920191612e20818484890161327c565b919091019a9950505050505050505050565b60008a51612e44818460208f0161327c565b8a51612e568183860160208f0161327c565b8a519184010190612e6b818360208e0161327c565b8951612e7d8183850160208e0161327c565b8951929091010190612e93818360208c0161327c565b8751910190612ea6818360208b0161327c565b8651612eb88183850160208b0161327c565b8651929091010190612ece81836020890161327c565b8451612ee0818385016020890161327c565b9101019b9a5050505050505050505050565b60008551612f04818460208a0161327c565b855190830190612f18818360208a0161327c565b019384525050602082015260400192915050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c000000815260008251612f6481601d85016020870161327c565b91909101601d0192915050565b757b226e616d65223a2022536574746c656d656e74202360501b81528351600090612fa381601685016020890161327c565b7f222c20226465736372697074696f6e223a2022536574746c656d656e747320616016918401918201527f72652061207475726e20626173656420636976696c69736174696f6e2073696d60368201527f756c61746f722073746f72656420656e746972656c79206f6e20636861696e2c60568201527f20676f20666f72746820616e6420636f6e717565722e222c2022696d6167652260768201527f3a2022646174613a696d6167652f7376672b786d6c3b6261736536342c000000609682015284516130788160b384016020890161327c565b601160f91b60b392909101918201526d161130ba3a3934b13aba32b9911d60911b60b48201526130bb6130ae60c2830186612d68565b607d60f81b815260010190565b9695505050505050565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906130bb90830184612d3c565b6020815260006111986020830184612d3c565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b6000821982111561322d5761322d613312565b500190565b60008261324157613241613328565b500490565b600081600019048311821515161561326057613260613312565b500290565b60008282101561327757613277613312565b500390565b60005b8381101561329757818101518382015260200161327f565b83811115610aca5750506000910152565b600181811c908216806132bc57607f821691505b602082108114156132dd57634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156132f7576132f7613312565b5060010190565b60008261330d5761330d613328565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b031981168114610d8857600080fdfe22207d2c207b202274726169745f74797065223a2022476f7665726e6d656e74222c202276616c7565223a20223c2f746578743e3c7465787420783d2231302220793d2238302220636c6173733d22747874223e5b7b202274726169745f74797065223a202253697a65222c202276616c7565223a20223c73766720786d6c6e733d22687474703a2f2f7777772e77332e6f72672f323030302f73766722207072657365727665417370656374526174696f3d22784d696e594d696e206d656574222076696577426f783d223020302033353020333530223e3c7374796c653e2e747874207b2066696c6c3a20626c61636b3b20666f6e742d66616d696c793a206d6f6e6f73706163653b20666f6e742d73697a653a20313270783b7d3c2f7374796c653e3c726563742077696474683d223130302522206865696768743d2231303025222066696c6c3d22776869746522202f3e3c7465787420783d2231302220793d2232302220636c6173733d22747874223e22207d2c207b202274726169745f74797065223a20225265616c6d222c202276616c7565223a202222207d2c207b202274726169745f74797065223a2022416765222c202276616c7565223a20223c2f746578743e3c7465787420783d2231302220793d2234302220636c6173733d22747874223e3c2f746578743e3c7465787420783d2231302220793d223132302220636c6173733d22747874223e22207d2c207b202274726169745f74797065223a2022537069726974222c202276616c7565223a20224142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2f3c2f746578743e3c7465787420783d2231302220793d223134302220636c6173733d22747874223e22207d2c207b202274726169745f74797065223a20225265736f75726365222c202276616c7565223a202222207d2c207b202274726169745f74797065223a20224d6f72616c65222c202276616c7565223a20223c2f746578743e3c7465787420783d2231302220793d2236302220636c6173733d22747874223e3c2f746578743e3c7465787420783d2231302220793d223130302220636c6173733d22747874223ea26469706673582212201e4367a70ffec5b9f3516430520a0dbb3a225a72ea341a357253ac50f1657a5d64736f6c63430008040033

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

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