ETH Price: $2,626.30 (+7.65%)
 

Overview

Max Total Supply

212 H01D

Holders

72

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A

Other Info

Filtered by Token Holder
tomb.eth
Balance
2 H01D
0xC8B810Fe39952AA65CA5A9387a3546B9b6bF5780
Loading...
Loading
Loading...
Loading
Loading...
Loading

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

Contract Source Code Verified (Exact Match)

Contract Name:
H01dEm

Compiler Version
v0.8.6+commit.11564f7e

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 16 : H01dEm.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.6;
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "base64-sol/base64.sol";
import "./Cards.sol";
import "./Render.sol";

//
//                                  -::::::::::::::::-
//                           .::::- -                = -::::
//                       .:::.     =-                =-     .:::.
//                   ::::          .-                =           :::.
//                ::.               -               -                :::
//              : -                 -       11     -.                 .: :
//            :: ::+                -      111    :.                .=:. ::
//          .-     .=         000   -        1   :.         d       :-.     -.
//         -.        -       00 00  -       111 :.      ddddd     ::         .-
//       ::           -       000   -          .:       d ddd  .:.             ::
//     ::              -            -         .:        ddd  ::                  -.
//    -.            H   -           -        .:           .::                     .-
//   -.          H HHH   -          -       .-          ::.        (::::)           .-
//    .::         HHH HH .-         -       ::        ::            :::::         ::
//       ::         H     .:        ...-=-::::-:::. ::            ::  ::)       .::
//         ::.             .:      ::::            ::=:                     ::.
//            ::            :: ::-=                    -.                 ::
//              ::.           . -.                      .-             .::
//                .::         ::                          ::         ::.
//                   ::     .-                              -.     ::
//                     ::. -.                                .- .:.
//
//   Run It Wild + PrimeFlare

contract H01dEm is ERC721Enumerable, Ownable {
    constructor() ERC721("H01dEm", "H01D") {}

    uint16 public constant MAX_HAND = 10000;
    uint256 public constant BUY_PRICE = 0.052 ether;
    uint32 public constant MAX_VARIATION = 311875200;

    uint32[] private handList;
    bool private active = false;

    function claim() external payable returns (uint) {
        require(active, 'We are not yet open.');
        require(msg.value >= BUY_PRICE, "Minimum buy in is required to play.");
        require(handList.length < MAX_HAND, "All 10,000 hands are dealt.");
        require(tx.origin == msg.sender, "Can not be called using a contract.");

        uint32 hand = getHandSeed();
        uint curTokenId = handList.length;
        _safeMint(msg.sender, curTokenId);
        handList.push(hand);

        return curTokenId;
    }

    function devClaim() external onlyOwner returns (uint) {
        require(handList.length < 82, "Can only claim first 82");

        uint32 hand = getHandSeed();
        uint curTokenId;

        for(uint16 i = 0; i < 82; i++){
          curTokenId = handList.length;
          _safeMint(msg.sender, curTokenId);
          hand = getHandSeed();
          handList.push(hand);
        }

        return curTokenId;
    }

    function getHandSeed() private view returns (uint32) {
        return uint32(uint256(keccak256(abi.encodePacked(block.difficulty, block.coinbase, msg.sender, handList.length, address(this)))) % MAX_VARIATION);
    }

    function toggleActive() external onlyOwner  {
        active = !active;
    }

    function getHand(uint32 handId) private pure returns (uint8[10] memory) {
        uint256 rand = uint256(keccak256(abi.encodePacked(Strings.toString(handId))));
        uint8[52] memory cards = [0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51];
        uint8[10] memory hand;

        for (uint8 i = 0; i < 5; i++) {
            uint8 index = uint8(rand%(52-i));
            hand[i*2] = cards[index]%13;
            hand[i*2+1] = uint8(cards[index]/13);
            cards[index] = cards[cards.length-1-i];
            rand = uint256(keccak256(abi.encodePacked(Strings.toString(rand))));
        }
        return hand;
    }

    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        require(tokenId < handList.length, "Hand not yet claimed.");
        uint8[10] memory hand = getHand(handList[tokenId]);

        bytes memory card1Image = Render.getCardImage(hand[0], hand[1], 1);
        bytes memory card2Image = Render.getCardImage(hand[2], hand[3], 2);
        bytes memory card3Image = Render.getCardImage(hand[4], hand[5], 3);
        bytes memory card4Image = Render.getCardImage(hand[6], hand[7], 4);
        bytes memory card5Image = Render.getCardImage(hand[8], hand[9], 5);

        string memory trait = Cards.getTrait(hand);

        bytes memory brandText = Render.getBrandImage(tokenId);

        bytes memory handImage = abi.encodePacked(
            Render.getHeader(),
            card1Image,
            card2Image,
            card3Image,
            card4Image,
            card5Image,
            brandText);

        bytes memory image = abi.encodePacked(
            "data:image/svg+xml;base64,",
            Base64.encode(bytes(handImage))
        );

        return string(abi.encodePacked("data:application/json;base64,",
            Base64.encode(bytes(abi.encodePacked(
                '{"name":"H01d\'Em S1 Hand #',Strings.toString(tokenId),
                '","external_url":"https://h01dem.com","image":"',image,
                '","description":"H01d\'Em Genesis Series. The first official H01d\'Em tournament, shuffled and dealt 0n-Chain. 52 card deck. 0ne mint = 0ne shuffle. Five card draw. 10,000 hands. 311,875,200 possibilities. 0ne Champion. \'May the best hand win.\'","attributes":[{"trait_type":"Hand","value":"',trait,'"}]}'
            )))));
    }

    function withdraw() public onlyOwner {
        uint balance = address(this).balance;
        address payable owner = payable(msg.sender);
        owner.transfer(balance);
    }
}

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

pragma solidity ^0.8.0;

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

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

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

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

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

        _transfer(from, to, tokenId);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfer(from, to, tokenId);

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

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

        emit Transfer(from, to, tokenId);
    }

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

    /**
     * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address.
     * The call is not executed if the target address is not a contract.
     *
     * @param from address representing the previous owner of the given token ID
     * @param to target address that will receive the tokens
     * @param tokenId uint256 ID of the token to be transferred
     * @param _data bytes optional data to send along with the call
     * @return bool whether the call correctly returned the expected magic value
     */
    function _checkOnERC721Received(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) private returns (bool) {
        if (to.isContract()) {
            try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) {
                return retval == IERC721Receiver(to).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 16 : ERC721Enumerable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

File 6 of 16 : base64.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.6;
/// @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 7 of 16 : Cards.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.6;
library Cards {
    function getTrait(uint8[10] memory hand) internal pure returns (string memory) {
        for(uint8 i = 0; i < 10; i+=2) { // implement custom sorting
            for(uint8 j = i+2; j < 10; j+=2) {
                if(hand[i] > hand[j]) {
                    uint8 temp = hand[i];
                    uint8 tempSuit = hand[i+1];
                    hand[i] = hand[j];
                    hand[j] = temp;
                    hand[i+1] = hand[j+1];
                    hand[j+1] = tempSuit;
                }
            }
        }

        uint8 card1 = hand[0];
        uint8 card2 = hand[2];
        uint8 card3 = hand[4];
        uint8 card4 = hand[6];
        uint8 card5 = hand[8];

        uint8 suit1 = hand[1];
        uint8 suit2 = hand[3];
        uint8 suit3 = hand[5];
        uint8 suit4 = hand[7];
        uint8 suit5 = hand[9];

        if ((card1 == card2 && card2 == card3 && card3 == card4) ||
            (card2 == card3 && card3 == card4 && card4 == card5)) {
          return 'Four of a Kind';
        }
        else if (card1 == card2 && card2 == card3) {
          if (card4 == card5) {
            return 'Full House';
          }
          return 'Three of a Kind';
        }
        else if (card3 == card4 && card4 == card5) {
          if (card1 == card2) {
            return 'Full House';
          }
          return 'Three of a Kind';
        }
        else if (card2 == card3 && card3 == card4) {
          return 'Three of a Kind';
        }
        else if ((card1 == card2 && card3 == card4) ||
                 (card1 == card2 && card4 == card5) ||
                 (card2 == card3 && card4 == card5)) {
          return 'Two Pair';
        }
        else if ((card1 == card2) ||
            (card2 == card3) ||
            (card3 == card4) ||
            (card4 == card5)) {
          return 'One Pair';
        }
        else if (card2+1 == card3 && card3+1 == card4 && card4+1 == card5 && card5 == 12 && card1 == 0 &&
                 suit1 == suit2 && suit2 == suit3 && suit3 == suit4 && suit4 == suit5) {
          return 'Royal Flush';
        }
        else if (card1+1 == card2 && card2+1 == card3 && card3+1 == card4 && card4+1 == card5 &&
                 suit1 == suit2 && suit2 == suit3 && suit3 == suit4 && suit4 == suit5) {
          return 'Straight Flush';
        }
        else if ((card1+1 == card2 && card2+1 == card3 && card3+1 == card4 && card4+1 == card5) ||
                 (card2+1 == card3 && card3+1 == card4 && card4+1 == card5 && card5 == 12 && card1 == 0)) {
          return 'Straight';
        }
        else if (suit1 == suit2 && suit2 == suit3 && suit3 == suit4 && suit4 == suit5) {
          return 'Flush';
        }
        return 'High Card';
    }
}

File 8 of 16 : Render.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.6;
library Render {
  function getCardImage(uint8 cardNumber, uint8 suitIndex, uint8 handIndex) internal pure returns (bytes memory) {
      string[4] memory suits = ["&#9829;","&#9824;","&#9827;","&#9830;"];
      string[4] memory suitColors = ["ec5300","000","000","ec5300"];
      string memory card;
      string memory suit = suits[suitIndex];
      string memory suitColor = suitColors[suitIndex];

      if (cardNumber == 0) { card = 'A'; }
      else if (cardNumber == 12) { card = 'K'; }
      else if (cardNumber == 11) { card = 'Q'; }
      else if (cardNumber == 10) { card = 'J'; }
      else { card = toString(cardNumber+1); }

      string memory cardTransform;
      if (handIndex == 1) {
        cardTransform = '<g transform="translate(-135,70) rotate(-50 250 229)"><rect x="200" y="150" height="158" width="100" rx="5" ry="5" class="ace" /><text x="290" y="181" text-anchor="end" style="fill: #C2BD88;">';
      }
      else if (handIndex == 2) {
        cardTransform = '</text></g><g transform="translate(-75,20) rotate(-25 250 229)"><rect x="200" y="150" height="158" width="100" rx="5" ry="5" class="ace" /><text x="290" y="181" text-anchor="end" style="fill: #C2BD88;">';
      }
      else if (handIndex == 3) {
        cardTransform = '</text></g><g><rect x="200" y="150" height="158" width="100" rx="5" ry="5" class="ace" /><text x="290" y="181" text-anchor="end" style="fill: #C2BD88;">';
      }
      else if (handIndex == 4) {
        cardTransform = '</text></g><g transform="translate(75,20) rotate(25 250 229)"><rect x="200" y="150" height="158" width="100" rx="5" ry="5" class="ace" /><text x="290" y="181" text-anchor="end" style="fill: #C2BD88;">';
      }
      else if (handIndex == 5) {
        cardTransform = '</text></g><g transform="translate(135,70) rotate(50 250 229)"><rect x="200" y="150" height="158" width="100" rx="5" ry="5" class="ace" /><text x="290" y="181" text-anchor="end" style="fill: #C2BD88;">';
      }

      return abi.encodePacked(
        cardTransform,
        card,
        '</text><text x="250" y="227.5" alignment-baseline="middle" text-anchor="middle" class="king">',
        suit,
        '</text><text x="250" y="228" alignment-baseline="middle" text-anchor="middle" style="fill: #', suitColor, '; font-size:1.4em">',
        suit,
        '</text><text x="350" y="297" text-anchor="end" style="fill: #C2BD88;" transform="rotate(180 280 288)">',
        card);
  }

  function getBrandImage(uint256 tokenId) internal pure returns (bytes memory) {
    return abi.encodePacked(
      '</text></g><text x="250" y="83" style="fill: #C2BD88;font-size:0.85em" text-anchor="middle">H01d\'Em</text><text x="250" y="100" style="fill: #FF5A00;font-size:0.5em;font-style:italic" text-anchor="middle">Genesis Series</text><text x="250" y="387" style="fill: #C2BD88;font-size:0.65em;font-style:italic" text-anchor="middle">#',
      toString(tokenId),
      '</text><text x="250" y="403" style="fill: #C2BD88;font-size:0.4em;font-style:italic" text-anchor="middle">\'May the best hand win\'</text><text x="100" y="100" style="fill: #C2BD88;"><textPath startOffset="-100%" xlink:href="#pokey" style="font-size:0.6em;">You Can\'t Bluff the Blockchain.<animate additive="sum" attributeName="startOffset" from="100%" to="0%" begin="0s" dur="25s" repeatCount="indefinite" /></textPath><textPath startOffset="5.475%" xlink:href="#pokey" style="font-size:0.6em;">You Can\'t Bluff the Blockchain.<animate additive="sum" attributeName="startOffset" from="100%" to="0%" begin="0s" dur="25s" repeatCount="indefinite" /></textPath><textPath startOffset="-45%" xlink:href="#pokey" style="font-size:0.6em;">Losers F01d\'Em, Winners H01d\'Em.<animate additive="sum" attributeName="startOffset" from="100%" to="0%" begin="0s" dur="25s" repeatCount="indefinite" /></textPath><textPath startOffset="55%" xlink:href="#pokey" style="font-size:0.6em;">Losers F01d\'Em, Winners H01d\'Em.<animate additive="sum" attributeName="startOffset" from="100%" to="0%" begin="0s" dur="25s" repeatCount="indefinite" /></textPath></text></svg>'
      );
  }

  function getHeader() internal pure returns (bytes memory) {
    return '<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 500 500" preserveAspectRatio="xMidYMid meet" style="font:300 1.8em sans-serif"><path id="pokey" d="M38,18 h424 a20,20 0 0 1 20,20 v424 a20,20 0 0 1 -20,20 h-424 a20,20 0 0 1 -20,-20 v-424 a20,20 0 0 1 20,-20 z" /><rect width="500" height="500" fill="#034C29" /><style type="text/css"><![CDATA[.ace{stroke:#C2BD88;stroke-width:2.25;fill:#034C29} .king{fill:#C2BD88;font-size:1.5em;stroke:#C2BD88;stroke-width:3}]]></style>';
  }

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    function _verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) private pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

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

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

pragma solidity ^0.8.0;

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

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

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

pragma solidity ^0.8.0;

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

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

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

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":[],"name":"BUY_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_HAND","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_VARIATION","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claim","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"devClaim","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"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":"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":[],"name":"toggleActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6080604052600c805460ff191690553480156200001b57600080fd5b50604080518082018252600681526548303164456d60d01b602080830191825283518085019094526004845263120c0c5160e21b9084015281519192916200006691600091620000f5565b5080516200007c906001906020840190620000f5565b50505062000099620000936200009f60201b60201c565b620000a3565b620001d8565b3390565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b82805462000103906200019b565b90600052602060002090601f01602090048101928262000127576000855562000172565b82601f106200014257805160ff191683800117855562000172565b8280016001018555821562000172579182015b828111156200017257825182559160200191906001019062000155565b506200018092915062000184565b5090565b5b8082111562000180576000815560010162000185565b600181811c90821680620001b057607f821691505b60208210811415620001d257634e487b7160e01b600052602260045260246000fd5b50919050565b6145bc80620001e86000396000f3fe6080604052600436106101815760003560e01c80636352211e116100d157806395d89b411161008a578063b88d4fde11610064578063b88d4fde14610436578063c87b56dd14610456578063e985e9c514610476578063f2fde38b146104bf57600080fd5b806395d89b41146103ec578063a22cb46514610401578063ae979ae61461042157600080fd5b80636352211e14610335578063705fe4be1461035557806370a0823114610370578063715018a61461039057806375a56c7a146103a55780638da5cb5b146103ce57600080fd5b806329c68dc11161013e57806342842e0e1161011857806342842e0e146102c05780634e71d92d146102e05780634f16e3be146102e85780634f6ccce71461031557600080fd5b806329c68dc1146102765780632f745c591461028b5780633ccfd60b146102ab57600080fd5b806301ffc9a71461018657806306fdde03146101bb578063081812fc146101dd578063095ea7b31461021557806318160ddd1461023757806323b872dd14610256575b600080fd5b34801561019257600080fd5b506101a66101a1366004612efd565b6104df565b60405190151581526020015b60405180910390f35b3480156101c757600080fd5b506101d061050a565b6040516101b29190613c30565b3480156101e957600080fd5b506101fd6101f8366004612f37565b61059c565b6040516001600160a01b0390911681526020016101b2565b34801561022157600080fd5b50610235610230366004612ed3565b610636565b005b34801561024357600080fd5b506008545b6040519081526020016101b2565b34801561026257600080fd5b50610235610271366004612d7f565b61074c565b34801561028257600080fd5b5061023561077d565b34801561029757600080fd5b506102486102a6366004612ed3565b6107bb565b3480156102b757600080fd5b50610235610851565b3480156102cc57600080fd5b506102356102db366004612d7f565b6108ac565b6102486108c7565b3480156102f457600080fd5b50610300631296d68081565b60405163ffffffff90911681526020016101b2565b34801561032157600080fd5b50610248610330366004612f37565b610aa2565b34801561034157600080fd5b506101fd610350366004612f37565b610b35565b34801561036157600080fd5b5061024866b8bdb97852000081565b34801561037c57600080fd5b5061024861038b366004612d2a565b610bac565b34801561039c57600080fd5b50610235610c33565b3480156103b157600080fd5b506103bb61271081565b60405161ffff90911681526020016101b2565b3480156103da57600080fd5b50600a546001600160a01b03166101fd565b3480156103f857600080fd5b506101d0610c69565b34801561040d57600080fd5b5061023561041c366004612e97565b610c78565b34801561042d57600080fd5b50610248610d3d565b34801561044257600080fd5b50610235610451366004612dbb565b610e65565b34801561046257600080fd5b506101d0610471366004612f37565b610e9d565b34801561048257600080fd5b506101a6610491366004612d4c565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b3480156104cb57600080fd5b506102356104da366004612d2a565b6110a0565b60006001600160e01b0319821663780e9d6360e01b148061050457506105048261113b565b92915050565b60606000805461051990613e3c565b80601f016020809104026020016040519081016040528092919081815260200182805461054590613e3c565b80156105925780601f1061056757610100808354040283529160200191610592565b820191906000526020600020905b81548152906001019060200180831161057557829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b031661061a5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b600061064182610b35565b9050806001600160a01b0316836001600160a01b031614156106af5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610611565b336001600160a01b03821614806106cb57506106cb8133610491565b61073d5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610611565b610747838361118b565b505050565b61075633826111f9565b6107725760405162461bcd60e51b815260040161061190613cca565b6107478383836112f0565b600a546001600160a01b031633146107a75760405162461bcd60e51b815260040161061190613c95565b600c805460ff19811660ff90911615179055565b60006107c683610bac565b82106108285760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610611565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b600a546001600160a01b0316331461087b5760405162461bcd60e51b815260040161061190613c95565b60405147903390819083156108fc029084906000818181858888f19350505050158015610747573d6000803e3d6000fd5b61074783838360405180602001604052806000815250610e65565b600c5460009060ff166109135760405162461bcd60e51b81526020600482015260146024820152732bb29030b932903737ba103cb2ba1037b832b71760611b6044820152606401610611565b66b8bdb9785200003410156109765760405162461bcd60e51b815260206004820152602360248201527f4d696e696d756d2062757920696e20697320726571756972656420746f20706c60448201526230bc9760e91b6064820152608401610611565b600b54612710116109c95760405162461bcd60e51b815260206004820152601b60248201527f416c6c2031302c3030302068616e647320617265206465616c742e00000000006044820152606401610611565b323314610a245760405162461bcd60e51b815260206004820152602360248201527f43616e206e6f742062652063616c6c6564207573696e67206120636f6e74726160448201526231ba1760e91b6064820152608401610611565b6000610a2e61149b565b600b54909150610a3e3382611516565b600b80546001810182556000919091527f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01db96008820401805460079092166004026101000a63ffffffff81810219909316949092169190910292909217909155919050565b6000610aad60085490565b8210610b105760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610611565b60088281548110610b2357610b23613f4c565b90600052602060002001549050919050565b6000818152600260205260408120546001600160a01b0316806105045760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610611565b60006001600160a01b038216610c175760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610611565b506001600160a01b031660009081526003602052604090205490565b600a546001600160a01b03163314610c5d5760405162461bcd60e51b815260040161061190613c95565b610c676000611534565b565b60606001805461051990613e3c565b6001600160a01b038216331415610cd15760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610611565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b600a546000906001600160a01b03163314610d6a5760405162461bcd60e51b815260040161061190613c95565b600b54605211610dbc5760405162461bcd60e51b815260206004820152601760248201527f43616e206f6e6c7920636c61696d2066697273742038320000000000000000006044820152606401610611565b6000610dc661149b565b90506000805b60528161ffff161015610e5e57600b549150610de83383611516565b610df061149b565b600b80546001810182556000919091527f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01db96008820401805460079092166004026101000a63ffffffff8181021990931692841602919091179055925080610e5681613e77565b915050610dcc565b5091505090565b610e6f33836111f9565b610e8b5760405162461bcd60e51b815260040161061190613cca565b610e9784848484611586565b50505050565b600b546060908210610ee95760405162461bcd60e51b81526020600482015260156024820152742430b732103737ba103cb2ba1031b630b4b6b2b21760591b6044820152606401610611565b6000610f2c600b8481548110610f0157610f01613f4c565b90600052602060002090600891828204019190066004029054906101000a900463ffffffff166115b9565b80516020820151919250600091610f4591906001611922565b90506000610f63836002602002015184600360200201516002611922565b90506000610f81846004602002015185600560200201516003611922565b90506000610f9f856006602002015186600760200201516004611922565b90506000610fbd866008602002015187600960200201516005611922565b90506000610fca87611c3a565b90506000610fd78a612461565b90506000610fe3612492565b888888888887604051602001610fff9796959493929190612f98565b6040516020818303038152906040529050600061101b826124b5565b60405160200161102b9190613bb8565b60405160208183030381529060405290506110706110488d61261d565b828660405160200161105c9392919061324d565b6040516020818303038152906040526124b5565b6040516020016110809190613463565b6040516020818303038152906040529a5050505050505050505050919050565b600a546001600160a01b031633146110ca5760405162461bcd60e51b815260040161061190613c95565b6001600160a01b03811661112f5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610611565b61113881611534565b50565b60006001600160e01b031982166380ac58cd60e01b148061116c57506001600160e01b03198216635b5e139f60e01b145b8061050457506301ffc9a760e01b6001600160e01b0319831614610504565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906111c082610b35565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b03166112725760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610611565b600061127d83610b35565b9050806001600160a01b0316846001600160a01b031614806112b85750836001600160a01b03166112ad8461059c565b6001600160a01b0316145b806112e857506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b031661130382610b35565b6001600160a01b03161461136b5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610611565b6001600160a01b0382166113cd5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610611565b6113d883838361271b565b6113e360008261118b565b6001600160a01b038316600090815260036020526040812080546001929061140c908490613dd6565b90915550506001600160a01b038216600090815260036020526040812080546001929061143a908490613d1b565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600b546040805144602082015241606090811b6bffffffffffffffffffffffff199081169383019390935233811b8316605483015260688201939093523090921b166088820152600090631296d68090609c016040516020818303038152906040528051906020012060001c6115119190613ed4565b905090565b6115308282604051806020016040528060008152506127d3565b5050565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6115918484846112f0565b61159d84848484612806565b610e975760405162461bcd60e51b815260040161061190613c43565b6115c1612cef565b60006115d28363ffffffff1661261d565b6040516020016115e2919061302a565b60408051601f19818403018152828252805160209182012061068084018352600084526001848301526002928401929092526003606084015260046080840152600560a0840152600660c0840152600760e084015260086101008401526009610120840152600a610140840152600b610160840152600c610180840152600d6101a0840152600e6101c0840152600f6101e08401526010610200840152601161022084015260126102408401526013610260840152601461028084015260156102a084015260166102c084015260176102e084015260186103008401526019610320840152601a610340840152601b610360840152601c610380840152601d6103a0840152601e6103c0840152601f6103e0840152610400830152602161042083015260226104408301526023610460830152602461048083015260256104a083015260266104c083015260276104e083015260286105008301526029610520830152602a610540830152602b610560830152602c610580830152602d6105a0830152602e6105c0830152602f6105e08301526030610600830152603161062083015260326106408301526033610660830152915061179f612cef565b60005b60058160ff1610156119195760006117bb826034613ded565b6117c89060ff1686613ed4565b9050600d848260ff16603481106117e1576117e1613f4c565b60200201516117f09190613ee8565b836117fc846002613dad565b60ff16600a811061180f5761180f613f4c565b602002019060ff16908160ff1681525050600d848260ff166034811061183757611837613f4c565b60200201516118469190613d6c565b83611852846002613dad565b61185d906001613d33565b60ff16600a811061187057611870613f4c565b60ff92831660209190910291909101528490831661189060016034613dd6565b61189a9190613dd6565b603481106118aa576118aa613f4c565b6020020151848260ff16603481106118c4576118c4613f4c565b60ff90921660209290920201526118da8561261d565b6040516020016118ea919061302a565b6040516020818303038152906040528051906020012060001c945050808061191190613eb4565b9150506117a2565b50949350505050565b6040805160c0808201835260076080808401828152662623393832393b60c81b60a08087019190915290855285518087018752838152662623393832343b60c81b6020828101919091528087019190915286518088018852848152662623393832373b60c81b818301528688015286518088018852938452662623393833303b60c81b848201526060868101949094528651948501875260069285018381526506563353330360d41b92860183905285528651808801885260038082526203030360ec1b828401819052878401929092528851808a018a529081528083019190915285880152865180880190975291865290850152818101939093528260008360ff881660048110611a3657611a36613f4c565b602002015190506000838860ff1660048110611a5457611a54613f4c565b6020020151905060ff8916611a8457604051806040016040528060018152602001604160f81b8152509250611b24565b8860ff16600c1415611ab157604051806040016040528060018152602001604b60f81b8152509250611b24565b8860ff16600b1415611ade57604051806040016040528060018152602001605160f81b8152509250611b24565b8860ff16600a1415611b0b57604051806040016040528060018152602001602560f91b8152509250611b24565b611b21611b198a6001613d33565b60ff16612913565b92505b60608760ff1660011415611b52576040518060e0016040528060c08152602001613f8f60c091399050611c01565b8760ff1660021415611b7f5760405180610100016040528060ca815260200161432c60ca91399050611c01565b8760ff1660031415611bab576040518060c0016040528060988152602001614254609891399050611c01565b8760ff1660041415611bd85760405180610100016040528060c881526020016143f660c891399050611c01565b8760ff1660051415611c015760405180610100016040528060c981526020016144be60c9913990505b808484848688604051602001611c1c96959493929190613046565b60405160208183030381529060405296505050505050509392505050565b606060005b600a8160ff161015611df5576000611c58826002613d33565b90505b600a8160ff161015611de257838160ff16600a8110611c7c57611c7c613f4c565b602002015160ff16848360ff16600a8110611c9957611c99613f4c565b602002015160ff161115611dd0576000848360ff16600a8110611cbe57611cbe613f4c565b60200201519050600085611cd3856001613d33565b60ff16600a8110611ce657611ce6613f4c565b60200201519050858360ff16600a8110611d0257611d02613f4c565b6020020151868560ff16600a8110611d1c57611d1c613f4c565b602002019060ff16908160ff168152505081868460ff16600a8110611d4357611d43613f4c565b60ff909216602092909202015285611d5c846001613d33565b60ff16600a8110611d6f57611d6f613f4c565b602002015186611d80866001613d33565b60ff16600a8110611d9357611d93613f4c565b60ff90921660209290920201528086611dad856001613d33565b60ff16600a8110611dc057611dc0613f4c565b60ff909216602092909202015250505b611ddb600282613d33565b9050611c5b565b50611dee600282613d33565b9050611c3f565b5081516040830151608084015160c08501516101008601516020870151606088015160a089015160e08a01516101208b015160ff808b16908a16148015611e4157508760ff168960ff16145b8015611e5257508660ff168860ff16145b80611e8357508760ff168960ff16148015611e7257508660ff168860ff16145b8015611e8357508560ff168760ff16145b15611ebd57505060408051808201909152600e81526d119bdd5c881bd988184812da5b9960921b60208201529a9950505050505050505050565b8860ff168a60ff16148015611ed757508760ff168960ff16145b15611f51578560ff168760ff161415611f1b57505060408051808201909152600a81526946756c6c20486f75736560b01b60208201529a9950505050505050505050565b505060408051808201909152600f81526e151a1c9959481bd988184812da5b99608a1b60208201529a9950505050505050505050565b8660ff168860ff16148015611f6b57508560ff168760ff16145b15611faf578860ff168a60ff161415611f1b57505060408051808201909152600a81526946756c6c20486f75736560b01b60208201529a9950505050505050505050565b8760ff168960ff16148015611fc957508660ff168860ff16145b1561200457505060408051808201909152600f81526e151a1c9959481bd988184812da5b99608a1b60208201529a9950505050505050505050565b8860ff168a60ff1614801561201e57508660ff168860ff16145b8061203e57508860ff168a60ff1614801561203e57508560ff168760ff16145b8061205e57508760ff168960ff1614801561205e57508560ff168760ff16145b156120925750506040805180820190915260088152672a3bb7902830b4b960c11b60208201529a9950505050505050505050565b8860ff168a60ff1614806120ab57508760ff168960ff16145b806120bb57508660ff168860ff16145b806120cb57508560ff168760ff16145b156120ff57505060408051808201909152600881526727b732902830b4b960c11b60208201529a9950505050505050505050565b60ff881661210e8a6001613d33565b60ff1614801561212d575060ff8716612128896001613d33565b60ff16145b8015612148575060ff8616612143886001613d33565b60ff16145b801561215757508560ff16600c145b8015612164575060ff8a16155b801561217557508360ff168560ff16145b801561218657508260ff168460ff16145b801561219757508160ff168360ff16145b80156121a857508060ff168260ff16145b156121df57505060408051808201909152600b81526a0a4def2c2d8408cd8eae6d60ab1b60208201529a9950505050505050505050565b60ff89166121ee8b6001613d33565b60ff1614801561220d575060ff88166122088a6001613d33565b60ff16145b8015612228575060ff8716612223896001613d33565b60ff16145b8015612243575060ff861661223e886001613d33565b60ff16145b801561225457508360ff168560ff16145b801561226557508260ff168460ff16145b801561227657508160ff168360ff16145b801561228757508060ff168260ff16145b156122c157505060408051808201909152600e81526d0a6e8e4c2d2ced0e8408cd8eae6d60931b60208201529a9950505050505050505050565b60ff89166122d08b6001613d33565b60ff161480156122ef575060ff88166122ea8a6001613d33565b60ff16145b801561230a575060ff8716612305896001613d33565b60ff16145b8015612325575060ff8616612320886001613d33565b60ff16145b80612390575060ff881661233a8a6001613d33565b60ff16148015612359575060ff8716612354896001613d33565b60ff16145b8015612374575060ff861661236f886001613d33565b60ff16145b801561238357508560ff16600c145b8015612390575060ff8a16155b156123c457505060408051808201909152600881526714dd1c985a59da1d60c21b60208201529a9950505050505050505050565b8360ff168560ff161480156123de57508260ff168460ff16145b80156123ef57508160ff168360ff16145b801561240057508060ff168260ff16145b1561243157505060408051808201909152600581526408cd8eae6d60db1b60208201529a9950505050505050505050565b5050604080518082019091526009815268121a59da0810d85c9960ba1b60208201529a9950505050505050505050565b606061246c82612913565b60405160200161247c91906134a8565b6040516020818303038152906040529050919050565b6060604051806102400160405280610205815260200161404f6102059139905090565b60608151600014156124d557505060408051602081019091526000815290565b60006040518060600160405280604081526020016142ec60409139905060006003845160026125049190613d1b565b61250e9190613d58565b612519906004613d8e565b90506000612528826020613d1b565b67ffffffffffffffff81111561254057612540613f62565b6040519080825280601f01601f19166020018201604052801561256a576020820181803683370190505b509050818152600183018586518101602084015b818310156125d85760039283018051603f601282901c811687015160f890811b8552600c83901c8216880151811b6001860152600683901c8216880151811b60028601529116860151901b9382019390935260040161257e565b6003895106600181146125f257600281146126035761260f565b613d3d60f01b60011983015261260f565b603d60f81b6000198301525b509398975050505050505050565b6060816126415750506040805180820190915260018152600360fc1b602082015290565b8160005b811561266b578061265581613e99565b91506126649050600a83613d58565b9150612645565b60008167ffffffffffffffff81111561268657612686613f62565b6040519080825280601f01601f1916602001820160405280156126b0576020820181803683370190505b5090505b84156112e8576126c5600183613dd6565b91506126d2600a86613ed4565b6126dd906030613d1b565b60f81b8183815181106126f2576126f2613f4c565b60200101906001600160f81b031916908160001a905350612714600a86613d58565b94506126b4565b6001600160a01b0383166127765761277181600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b612799565b816001600160a01b0316836001600160a01b031614612799576127998382612a11565b6001600160a01b0382166127b05761074781612aae565b826001600160a01b0316826001600160a01b031614610747576107478282612b5d565b6127dd8383612ba1565b6127ea6000848484612806565b6107475760405162461bcd60e51b815260040161061190613c43565b60006001600160a01b0384163b1561290857604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061284a903390899088908890600401613bfd565b602060405180830381600087803b15801561286457600080fd5b505af1925050508015612894575060408051601f3d908101601f1916820190925261289191810190612f1a565b60015b6128ee573d8080156128c2576040519150601f19603f3d011682016040523d82523d6000602084013e6128c7565b606091505b5080516128e65760405162461bcd60e51b815260040161061190613c43565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506112e8565b506001949350505050565b6060816129375750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612961578061294b81613e99565b915061295a9050600a83613d58565b915061293b565b60008167ffffffffffffffff81111561297c5761297c613f62565b6040519080825280601f01601f1916602001820160405280156129a6576020820181803683370190505b5090505b84156112e8576129bb600183613dd6565b91506129c8600a86613ed4565b6129d3906030613d1b565b60f81b8183815181106129e8576129e8613f4c565b60200101906001600160f81b031916908160001a905350612a0a600a86613d58565b94506129aa565b60006001612a1e84610bac565b612a289190613dd6565b600083815260076020526040902054909150808214612a7b576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b600854600090612ac090600190613dd6565b60008381526009602052604081205460088054939450909284908110612ae857612ae8613f4c565b906000526020600020015490508060088381548110612b0957612b09613f4c565b6000918252602080832090910192909255828152600990915260408082208490558582528120556008805480612b4157612b41613f36565b6001900381819060005260206000200160009055905550505050565b6000612b6883610bac565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b6001600160a01b038216612bf75760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610611565b6000818152600260205260409020546001600160a01b031615612c5c5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610611565b612c686000838361271b565b6001600160a01b0382166000908152600360205260408120805460019290612c91908490613d1b565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b604051806101400160405280600a906020820280368337509192915050565b80356001600160a01b0381168114612d2557600080fd5b919050565b600060208284031215612d3c57600080fd5b612d4582612d0e565b9392505050565b60008060408385031215612d5f57600080fd5b612d6883612d0e565b9150612d7660208401612d0e565b90509250929050565b600080600060608486031215612d9457600080fd5b612d9d84612d0e565b9250612dab60208501612d0e565b9150604084013590509250925092565b60008060008060808587031215612dd157600080fd5b612dda85612d0e565b9350612de860208601612d0e565b925060408501359150606085013567ffffffffffffffff80821115612e0c57600080fd5b818701915087601f830112612e2057600080fd5b813581811115612e3257612e32613f62565b604051601f8201601f19908116603f01168101908382118183101715612e5a57612e5a613f62565b816040528281528a6020848701011115612e7357600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b60008060408385031215612eaa57600080fd5b612eb383612d0e565b915060208301358015158114612ec857600080fd5b809150509250929050565b60008060408385031215612ee657600080fd5b612eef83612d0e565b946020939093013593505050565b600060208284031215612f0f57600080fd5b8135612d4581613f78565b600060208284031215612f2c57600080fd5b8151612d4581613f78565b600060208284031215612f4957600080fd5b5035919050565b60008151808452612f68816020860160208601613e10565b601f01601f19169290920160200192915050565b60008151612f8e818560208601613e10565b9290920192915050565b600088516020612fab8285838e01613e10565b895191840191612fbe8184848e01613e10565b8951920191612fd08184848d01613e10565b8851920191612fe28184848c01613e10565b8751920191612ff48184848b01613e10565b86519201916130068184848a01613e10565b85519201916130188184848901613e10565b919091019a9950505050505050505050565b6000825161303c818460208701613e10565b9190910192915050565b60008751613058818460208c01613e10565b87519083019061306c818360208c01613e10565b8082019150507f3c2f746578743e3c7465787420783d223235302220793d223232372e3522206181527f6c69676e6d656e742d626173656c696e653d226d6964646c652220746578742d60208201527f616e63686f723d226d6964646c652220636c6173733d226b696e67223e000000604082015286516130f481605d840160208b01613e10565b7f3c2f746578743e3c7465787420783d223235302220793d223232382220616c69605d92909101918201527f676e6d656e742d626173656c696e653d226d6964646c652220746578742d616e607d8201527f63686f723d226d6964646c6522207374796c653d2266696c6c3a202300000000609d820152855161317e8160b9840160208a01613e10565b61323f6132396131b56131af60b985870101721d903337b73a16b9b4bd329d18971a32b6911f60691b815260130190565b89612f7c565b7f3c2f746578743e3c7465787420783d223335302220793d22323937222074657881527f742d616e63686f723d22656e6422207374796c653d2266696c6c3a202343324260208201527f4438383b22207472616e73666f726d3d22726f74617465283138302032383020604082015265191c1c14911f60d11b606082015260660190565b86612f7c565b9a9950505050505050505050565b7f7b226e616d65223a224830316427456d2053312048616e64202300000000000081526000845161328581601a850160208901613e10565b7f222c2265787465726e616c5f75726c223a2268747470733a2f2f68303164656d601a918401918201526e1731b7b691161134b6b0b3b2911d1160891b603a82015284516132da816049840160208901613e10565b7f222c226465736372697074696f6e223a224830316427456d2047656e65736973604992909101918201527f205365726965732e20546865206669727374206f6666696369616c204830316460698201527f27456d20746f75726e616d656e742c2073687566666c656420616e642064656160898201527f6c7420306e2d436861696e2e2035322063617264206465636b2e20306e65206d60a98201527f696e74203d20306e652073687566666c652e204669766520636172642064726160c98201527f772e2031302c3030302068616e64732e203331312c3837352c32303020706f7360e98201527f736962696c69746965732e20306e65204368616d70696f6e2e20274d617920746101098201527f686520626573742068616e642077696e2e27222c2261747472696275746573226101298201527f3a5b7b2274726169745f74797065223a2248616e64222c2276616c7565223a22610149820152613459613449610169830186612f7c565b63227d5d7d60e01b815260040190565b9695505050505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c00000081526000825161349b81601d850160208701613e10565b91909101601d0192915050565b7f3c2f746578743e3c2f673e3c7465787420783d223235302220793d223833222081527f7374796c653d2266696c6c3a20234332424438383b666f6e742d73697a653a3060208201527f2e3835656d2220746578742d616e63686f723d226d6964646c65223e4830316460408201527f27456d3c2f746578743e3c7465787420783d223235302220793d22313030222060608201527f7374796c653d2266696c6c3a20234646354130303b666f6e742d73697a653a3060808201527f2e35656d3b666f6e742d7374796c653a6974616c69632220746578742d616e6360a08201527f686f723d226d6964646c65223e47656e65736973205365726965733c2f74657860c08201527f743e3c7465787420783d223235302220793d2233383722207374796c653d226660e08201527f696c6c3a20234332424438383b666f6e742d73697a653a302e3635656d3b666f6101008201527f6e742d7374796c653a6974616c69632220746578742d616e63686f723d226d696101208201526664646c65223e2360c81b6101408201526000612d45613647610147840185612f7c565b7f3c2f746578743e3c7465787420783d223235302220793d22343033222073747981527f6c653d2266696c6c3a20234332424438383b666f6e742d73697a653a302e346560208201527f6d3b666f6e742d7374796c653a6974616c69632220746578742d616e63686f7260408201527f3d226d6964646c65223e274d61792074686520626573742068616e642077696e60608201527f273c2f746578743e3c7465787420783d223130302220793d223130302220737460808201527f796c653d2266696c6c3a20234332424438383b223e3c7465787450617468207360a08201527f746172744f66667365743d222d313030252220786c696e6b3a687265663d222360c08201527f706f6b657922207374796c653d22666f6e742d73697a653a302e36656d3b223e60e08201527f596f752043616e277420426c7566662074686520426c6f636b636861696e2e3c6101008201527f616e696d6174652061646469746976653d2273756d22206174747269627574656101208201527f4e616d653d2273746172744f6666736574222066726f6d3d22313030252220746101408201527f6f3d2230252220626567696e3d22307322206475723d223235732220726570656101608201527f6174436f756e743d22696e646566696e69746522202f3e3c2f746578745061746101808201527f683e3c74657874506174682073746172744f66667365743d22352e34373525226101a08201527f20786c696e6b3a687265663d2223706f6b657922207374796c653d22666f6e746101c08201527f2d73697a653a302e36656d3b223e596f752043616e277420426c7566662074686101e08201527f6520426c6f636b636861696e2e3c616e696d6174652061646469746976653d226102008201527f73756d22206174747269627574654e616d653d2273746172744f6666736574226102208201527f2066726f6d3d22313030252220746f3d2230252220626567696e3d22307322206102408201527f6475723d223235732220726570656174436f756e743d22696e646566696e69746102608201527f6522202f3e3c2f74657874506174683e3c74657874506174682073746172744f6102808201527f66667365743d222d3435252220786c696e6b3a687265663d2223706f6b6579226102a08201527f207374796c653d22666f6e742d73697a653a302e36656d3b223e4c6f736572736102c08201527f204630316427456d2c2057696e6e657273204830316427456d2e3c616e696d616102e08201527f74652061646469746976653d2273756d22206174747269627574654e616d653d6103008201527f2273746172744f6666736574222066726f6d3d22313030252220746f3d2230256103208201527f2220626567696e3d22307322206475723d223235732220726570656174436f756103408201527f6e743d22696e646566696e69746522202f3e3c2f74657874506174683e3c74656103608201527f7874506174682073746172744f66667365743d223535252220786c696e6b3a686103808201527f7265663d2223706f6b657922207374796c653d22666f6e742d73697a653a302e6103a08201527f36656d3b223e4c6f73657273204630316427456d2c2057696e6e6572732048306103c08201527f316427456d2e3c616e696d6174652061646469746976653d2273756d222061746103e08201527f747269627574654e616d653d2273746172744f6666736574222066726f6d3d226104008201527f313030252220746f3d2230252220626567696e3d22307322206475723d2232356104208201527f732220726570656174436f756e743d22696e646566696e69746522202f3e3c2f610440820152753a32bc3a2830ba341f1e17ba32bc3a1f1e17b9bb339f60511b6104608201526104760190565b7f646174613a696d6167652f7376672b786d6c3b6261736536342c000000000000815260008251613bf081601a850160208701613e10565b91909101601a0192915050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061345990830184612f50565b602081526000612d456020830184612f50565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b60008219821115613d2e57613d2e613f0a565b500190565b600060ff821660ff84168060ff03821115613d5057613d50613f0a565b019392505050565b600082613d6757613d67613f20565b500490565b600060ff831680613d7f57613d7f613f20565b8060ff84160491505092915050565b6000816000190483118215151615613da857613da8613f0a565b500290565b600060ff821660ff84168160ff0481118215151615613dce57613dce613f0a565b029392505050565b600082821015613de857613de8613f0a565b500390565b600060ff821660ff841680821015613e0757613e07613f0a565b90039392505050565b60005b83811015613e2b578181015183820152602001613e13565b83811115610e975750506000910152565b600181811c90821680613e5057607f821691505b60208210811415613e7157634e487b7160e01b600052602260045260246000fd5b50919050565b600061ffff80831681811415613e8f57613e8f613f0a565b6001019392505050565b6000600019821415613ead57613ead613f0a565b5060010190565b600060ff821660ff811415613ecb57613ecb613f0a565b60010192915050565b600082613ee357613ee3613f20565b500690565b600060ff831680613efb57613efb613f20565b8060ff84160691505092915050565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b03198116811461113857600080fdfe3c67207472616e73666f726d3d227472616e736c617465282d3133352c37302920726f74617465282d3530203235302032323929223e3c7265637420783d223230302220793d2231353022206865696768743d22313538222077696474683d22313030222072783d2235222072793d22352220636c6173733d2261636522202f3e3c7465787420783d223239302220793d223138312220746578742d616e63686f723d22656e6422207374796c653d2266696c6c3a20234332424438383b223e3c73766720786d6c6e733d22687474703a2f2f7777772e77332e6f72672f323030302f7376672220786d6c6e733a786c696e6b3d22687474703a2f2f7777772e77332e6f72672f313939392f786c696e6b222076696577426f783d22302030203530302035303022207072657365727665417370656374526174696f3d22784d6964594d6964206d65657422207374796c653d22666f6e743a33303020312e38656d2073616e732d7365726966223e3c706174682069643d22706f6b65792220643d224d33382c31382068343234206132302c32302030203020312032302c32302076343234206132302c3230203020302031202d32302c323020682d343234206132302c3230203020302031202d32302c2d323020762d343234206132302c32302030203020312032302c2d3230207a22202f3e3c726563742077696474683d2235303022206865696768743d22353030222066696c6c3d222330333443323922202f3e3c7374796c6520747970653d22746578742f637373223e3c215b43444154415b2e6163657b7374726f6b653a234332424438383b7374726f6b652d77696474683a322e32353b66696c6c3a233033344332397d202e6b696e677b66696c6c3a234332424438383b666f6e742d73697a653a312e35656d3b7374726f6b653a234332424438383b7374726f6b652d77696474683a337d5d5d3e3c2f7374796c653e3c2f746578743e3c2f673e3c673e3c7265637420783d223230302220793d2231353022206865696768743d22313538222077696474683d22313030222072783d2235222072793d22352220636c6173733d2261636522202f3e3c7465787420783d223239302220793d223138312220746578742d616e63686f723d22656e6422207374796c653d2266696c6c3a20234332424438383b223e4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2f3c2f746578743e3c2f673e3c67207472616e73666f726d3d227472616e736c617465282d37352c32302920726f74617465282d3235203235302032323929223e3c7265637420783d223230302220793d2231353022206865696768743d22313538222077696474683d22313030222072783d2235222072793d22352220636c6173733d2261636522202f3e3c7465787420783d223239302220793d223138312220746578742d616e63686f723d22656e6422207374796c653d2266696c6c3a20234332424438383b223e3c2f746578743e3c2f673e3c67207472616e73666f726d3d227472616e736c6174652837352c32302920726f74617465283235203235302032323929223e3c7265637420783d223230302220793d2231353022206865696768743d22313538222077696474683d22313030222072783d2235222072793d22352220636c6173733d2261636522202f3e3c7465787420783d223239302220793d223138312220746578742d616e63686f723d22656e6422207374796c653d2266696c6c3a20234332424438383b223e3c2f746578743e3c2f673e3c67207472616e73666f726d3d227472616e736c617465283133352c37302920726f74617465283530203235302032323929223e3c7265637420783d223230302220793d2231353022206865696768743d22313538222077696474683d22313030222072783d2235222072793d22352220636c6173733d2261636522202f3e3c7465787420783d223239302220793d223138312220746578742d616e63686f723d22656e6422207374796c653d2266696c6c3a20234332424438383b223ea26469706673582212203d3d9275e377e65820e3184c30e41eacdc998d364b48606d4a5c2851265c24c464736f6c63430008060033

Deployed Bytecode

0x6080604052600436106101815760003560e01c80636352211e116100d157806395d89b411161008a578063b88d4fde11610064578063b88d4fde14610436578063c87b56dd14610456578063e985e9c514610476578063f2fde38b146104bf57600080fd5b806395d89b41146103ec578063a22cb46514610401578063ae979ae61461042157600080fd5b80636352211e14610335578063705fe4be1461035557806370a0823114610370578063715018a61461039057806375a56c7a146103a55780638da5cb5b146103ce57600080fd5b806329c68dc11161013e57806342842e0e1161011857806342842e0e146102c05780634e71d92d146102e05780634f16e3be146102e85780634f6ccce71461031557600080fd5b806329c68dc1146102765780632f745c591461028b5780633ccfd60b146102ab57600080fd5b806301ffc9a71461018657806306fdde03146101bb578063081812fc146101dd578063095ea7b31461021557806318160ddd1461023757806323b872dd14610256575b600080fd5b34801561019257600080fd5b506101a66101a1366004612efd565b6104df565b60405190151581526020015b60405180910390f35b3480156101c757600080fd5b506101d061050a565b6040516101b29190613c30565b3480156101e957600080fd5b506101fd6101f8366004612f37565b61059c565b6040516001600160a01b0390911681526020016101b2565b34801561022157600080fd5b50610235610230366004612ed3565b610636565b005b34801561024357600080fd5b506008545b6040519081526020016101b2565b34801561026257600080fd5b50610235610271366004612d7f565b61074c565b34801561028257600080fd5b5061023561077d565b34801561029757600080fd5b506102486102a6366004612ed3565b6107bb565b3480156102b757600080fd5b50610235610851565b3480156102cc57600080fd5b506102356102db366004612d7f565b6108ac565b6102486108c7565b3480156102f457600080fd5b50610300631296d68081565b60405163ffffffff90911681526020016101b2565b34801561032157600080fd5b50610248610330366004612f37565b610aa2565b34801561034157600080fd5b506101fd610350366004612f37565b610b35565b34801561036157600080fd5b5061024866b8bdb97852000081565b34801561037c57600080fd5b5061024861038b366004612d2a565b610bac565b34801561039c57600080fd5b50610235610c33565b3480156103b157600080fd5b506103bb61271081565b60405161ffff90911681526020016101b2565b3480156103da57600080fd5b50600a546001600160a01b03166101fd565b3480156103f857600080fd5b506101d0610c69565b34801561040d57600080fd5b5061023561041c366004612e97565b610c78565b34801561042d57600080fd5b50610248610d3d565b34801561044257600080fd5b50610235610451366004612dbb565b610e65565b34801561046257600080fd5b506101d0610471366004612f37565b610e9d565b34801561048257600080fd5b506101a6610491366004612d4c565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b3480156104cb57600080fd5b506102356104da366004612d2a565b6110a0565b60006001600160e01b0319821663780e9d6360e01b148061050457506105048261113b565b92915050565b60606000805461051990613e3c565b80601f016020809104026020016040519081016040528092919081815260200182805461054590613e3c565b80156105925780601f1061056757610100808354040283529160200191610592565b820191906000526020600020905b81548152906001019060200180831161057557829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b031661061a5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b600061064182610b35565b9050806001600160a01b0316836001600160a01b031614156106af5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610611565b336001600160a01b03821614806106cb57506106cb8133610491565b61073d5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610611565b610747838361118b565b505050565b61075633826111f9565b6107725760405162461bcd60e51b815260040161061190613cca565b6107478383836112f0565b600a546001600160a01b031633146107a75760405162461bcd60e51b815260040161061190613c95565b600c805460ff19811660ff90911615179055565b60006107c683610bac565b82106108285760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610611565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b600a546001600160a01b0316331461087b5760405162461bcd60e51b815260040161061190613c95565b60405147903390819083156108fc029084906000818181858888f19350505050158015610747573d6000803e3d6000fd5b61074783838360405180602001604052806000815250610e65565b600c5460009060ff166109135760405162461bcd60e51b81526020600482015260146024820152732bb29030b932903737ba103cb2ba1037b832b71760611b6044820152606401610611565b66b8bdb9785200003410156109765760405162461bcd60e51b815260206004820152602360248201527f4d696e696d756d2062757920696e20697320726571756972656420746f20706c60448201526230bc9760e91b6064820152608401610611565b600b54612710116109c95760405162461bcd60e51b815260206004820152601b60248201527f416c6c2031302c3030302068616e647320617265206465616c742e00000000006044820152606401610611565b323314610a245760405162461bcd60e51b815260206004820152602360248201527f43616e206e6f742062652063616c6c6564207573696e67206120636f6e74726160448201526231ba1760e91b6064820152608401610611565b6000610a2e61149b565b600b54909150610a3e3382611516565b600b80546001810182556000919091527f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01db96008820401805460079092166004026101000a63ffffffff81810219909316949092169190910292909217909155919050565b6000610aad60085490565b8210610b105760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610611565b60088281548110610b2357610b23613f4c565b90600052602060002001549050919050565b6000818152600260205260408120546001600160a01b0316806105045760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610611565b60006001600160a01b038216610c175760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610611565b506001600160a01b031660009081526003602052604090205490565b600a546001600160a01b03163314610c5d5760405162461bcd60e51b815260040161061190613c95565b610c676000611534565b565b60606001805461051990613e3c565b6001600160a01b038216331415610cd15760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610611565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b600a546000906001600160a01b03163314610d6a5760405162461bcd60e51b815260040161061190613c95565b600b54605211610dbc5760405162461bcd60e51b815260206004820152601760248201527f43616e206f6e6c7920636c61696d2066697273742038320000000000000000006044820152606401610611565b6000610dc661149b565b90506000805b60528161ffff161015610e5e57600b549150610de83383611516565b610df061149b565b600b80546001810182556000919091527f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01db96008820401805460079092166004026101000a63ffffffff8181021990931692841602919091179055925080610e5681613e77565b915050610dcc565b5091505090565b610e6f33836111f9565b610e8b5760405162461bcd60e51b815260040161061190613cca565b610e9784848484611586565b50505050565b600b546060908210610ee95760405162461bcd60e51b81526020600482015260156024820152742430b732103737ba103cb2ba1031b630b4b6b2b21760591b6044820152606401610611565b6000610f2c600b8481548110610f0157610f01613f4c565b90600052602060002090600891828204019190066004029054906101000a900463ffffffff166115b9565b80516020820151919250600091610f4591906001611922565b90506000610f63836002602002015184600360200201516002611922565b90506000610f81846004602002015185600560200201516003611922565b90506000610f9f856006602002015186600760200201516004611922565b90506000610fbd866008602002015187600960200201516005611922565b90506000610fca87611c3a565b90506000610fd78a612461565b90506000610fe3612492565b888888888887604051602001610fff9796959493929190612f98565b6040516020818303038152906040529050600061101b826124b5565b60405160200161102b9190613bb8565b60405160208183030381529060405290506110706110488d61261d565b828660405160200161105c9392919061324d565b6040516020818303038152906040526124b5565b6040516020016110809190613463565b6040516020818303038152906040529a5050505050505050505050919050565b600a546001600160a01b031633146110ca5760405162461bcd60e51b815260040161061190613c95565b6001600160a01b03811661112f5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610611565b61113881611534565b50565b60006001600160e01b031982166380ac58cd60e01b148061116c57506001600160e01b03198216635b5e139f60e01b145b8061050457506301ffc9a760e01b6001600160e01b0319831614610504565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906111c082610b35565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b03166112725760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610611565b600061127d83610b35565b9050806001600160a01b0316846001600160a01b031614806112b85750836001600160a01b03166112ad8461059c565b6001600160a01b0316145b806112e857506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b031661130382610b35565b6001600160a01b03161461136b5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610611565b6001600160a01b0382166113cd5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610611565b6113d883838361271b565b6113e360008261118b565b6001600160a01b038316600090815260036020526040812080546001929061140c908490613dd6565b90915550506001600160a01b038216600090815260036020526040812080546001929061143a908490613d1b565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600b546040805144602082015241606090811b6bffffffffffffffffffffffff199081169383019390935233811b8316605483015260688201939093523090921b166088820152600090631296d68090609c016040516020818303038152906040528051906020012060001c6115119190613ed4565b905090565b6115308282604051806020016040528060008152506127d3565b5050565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6115918484846112f0565b61159d84848484612806565b610e975760405162461bcd60e51b815260040161061190613c43565b6115c1612cef565b60006115d28363ffffffff1661261d565b6040516020016115e2919061302a565b60408051601f19818403018152828252805160209182012061068084018352600084526001848301526002928401929092526003606084015260046080840152600560a0840152600660c0840152600760e084015260086101008401526009610120840152600a610140840152600b610160840152600c610180840152600d6101a0840152600e6101c0840152600f6101e08401526010610200840152601161022084015260126102408401526013610260840152601461028084015260156102a084015260166102c084015260176102e084015260186103008401526019610320840152601a610340840152601b610360840152601c610380840152601d6103a0840152601e6103c0840152601f6103e0840152610400830152602161042083015260226104408301526023610460830152602461048083015260256104a083015260266104c083015260276104e083015260286105008301526029610520830152602a610540830152602b610560830152602c610580830152602d6105a0830152602e6105c0830152602f6105e08301526030610600830152603161062083015260326106408301526033610660830152915061179f612cef565b60005b60058160ff1610156119195760006117bb826034613ded565b6117c89060ff1686613ed4565b9050600d848260ff16603481106117e1576117e1613f4c565b60200201516117f09190613ee8565b836117fc846002613dad565b60ff16600a811061180f5761180f613f4c565b602002019060ff16908160ff1681525050600d848260ff166034811061183757611837613f4c565b60200201516118469190613d6c565b83611852846002613dad565b61185d906001613d33565b60ff16600a811061187057611870613f4c565b60ff92831660209190910291909101528490831661189060016034613dd6565b61189a9190613dd6565b603481106118aa576118aa613f4c565b6020020151848260ff16603481106118c4576118c4613f4c565b60ff90921660209290920201526118da8561261d565b6040516020016118ea919061302a565b6040516020818303038152906040528051906020012060001c945050808061191190613eb4565b9150506117a2565b50949350505050565b6040805160c0808201835260076080808401828152662623393832393b60c81b60a08087019190915290855285518087018752838152662623393832343b60c81b6020828101919091528087019190915286518088018852848152662623393832373b60c81b818301528688015286518088018852938452662623393833303b60c81b848201526060868101949094528651948501875260069285018381526506563353330360d41b92860183905285528651808801885260038082526203030360ec1b828401819052878401929092528851808a018a529081528083019190915285880152865180880190975291865290850152818101939093528260008360ff881660048110611a3657611a36613f4c565b602002015190506000838860ff1660048110611a5457611a54613f4c565b6020020151905060ff8916611a8457604051806040016040528060018152602001604160f81b8152509250611b24565b8860ff16600c1415611ab157604051806040016040528060018152602001604b60f81b8152509250611b24565b8860ff16600b1415611ade57604051806040016040528060018152602001605160f81b8152509250611b24565b8860ff16600a1415611b0b57604051806040016040528060018152602001602560f91b8152509250611b24565b611b21611b198a6001613d33565b60ff16612913565b92505b60608760ff1660011415611b52576040518060e0016040528060c08152602001613f8f60c091399050611c01565b8760ff1660021415611b7f5760405180610100016040528060ca815260200161432c60ca91399050611c01565b8760ff1660031415611bab576040518060c0016040528060988152602001614254609891399050611c01565b8760ff1660041415611bd85760405180610100016040528060c881526020016143f660c891399050611c01565b8760ff1660051415611c015760405180610100016040528060c981526020016144be60c9913990505b808484848688604051602001611c1c96959493929190613046565b60405160208183030381529060405296505050505050509392505050565b606060005b600a8160ff161015611df5576000611c58826002613d33565b90505b600a8160ff161015611de257838160ff16600a8110611c7c57611c7c613f4c565b602002015160ff16848360ff16600a8110611c9957611c99613f4c565b602002015160ff161115611dd0576000848360ff16600a8110611cbe57611cbe613f4c565b60200201519050600085611cd3856001613d33565b60ff16600a8110611ce657611ce6613f4c565b60200201519050858360ff16600a8110611d0257611d02613f4c565b6020020151868560ff16600a8110611d1c57611d1c613f4c565b602002019060ff16908160ff168152505081868460ff16600a8110611d4357611d43613f4c565b60ff909216602092909202015285611d5c846001613d33565b60ff16600a8110611d6f57611d6f613f4c565b602002015186611d80866001613d33565b60ff16600a8110611d9357611d93613f4c565b60ff90921660209290920201528086611dad856001613d33565b60ff16600a8110611dc057611dc0613f4c565b60ff909216602092909202015250505b611ddb600282613d33565b9050611c5b565b50611dee600282613d33565b9050611c3f565b5081516040830151608084015160c08501516101008601516020870151606088015160a089015160e08a01516101208b015160ff808b16908a16148015611e4157508760ff168960ff16145b8015611e5257508660ff168860ff16145b80611e8357508760ff168960ff16148015611e7257508660ff168860ff16145b8015611e8357508560ff168760ff16145b15611ebd57505060408051808201909152600e81526d119bdd5c881bd988184812da5b9960921b60208201529a9950505050505050505050565b8860ff168a60ff16148015611ed757508760ff168960ff16145b15611f51578560ff168760ff161415611f1b57505060408051808201909152600a81526946756c6c20486f75736560b01b60208201529a9950505050505050505050565b505060408051808201909152600f81526e151a1c9959481bd988184812da5b99608a1b60208201529a9950505050505050505050565b8660ff168860ff16148015611f6b57508560ff168760ff16145b15611faf578860ff168a60ff161415611f1b57505060408051808201909152600a81526946756c6c20486f75736560b01b60208201529a9950505050505050505050565b8760ff168960ff16148015611fc957508660ff168860ff16145b1561200457505060408051808201909152600f81526e151a1c9959481bd988184812da5b99608a1b60208201529a9950505050505050505050565b8860ff168a60ff1614801561201e57508660ff168860ff16145b8061203e57508860ff168a60ff1614801561203e57508560ff168760ff16145b8061205e57508760ff168960ff1614801561205e57508560ff168760ff16145b156120925750506040805180820190915260088152672a3bb7902830b4b960c11b60208201529a9950505050505050505050565b8860ff168a60ff1614806120ab57508760ff168960ff16145b806120bb57508660ff168860ff16145b806120cb57508560ff168760ff16145b156120ff57505060408051808201909152600881526727b732902830b4b960c11b60208201529a9950505050505050505050565b60ff881661210e8a6001613d33565b60ff1614801561212d575060ff8716612128896001613d33565b60ff16145b8015612148575060ff8616612143886001613d33565b60ff16145b801561215757508560ff16600c145b8015612164575060ff8a16155b801561217557508360ff168560ff16145b801561218657508260ff168460ff16145b801561219757508160ff168360ff16145b80156121a857508060ff168260ff16145b156121df57505060408051808201909152600b81526a0a4def2c2d8408cd8eae6d60ab1b60208201529a9950505050505050505050565b60ff89166121ee8b6001613d33565b60ff1614801561220d575060ff88166122088a6001613d33565b60ff16145b8015612228575060ff8716612223896001613d33565b60ff16145b8015612243575060ff861661223e886001613d33565b60ff16145b801561225457508360ff168560ff16145b801561226557508260ff168460ff16145b801561227657508160ff168360ff16145b801561228757508060ff168260ff16145b156122c157505060408051808201909152600e81526d0a6e8e4c2d2ced0e8408cd8eae6d60931b60208201529a9950505050505050505050565b60ff89166122d08b6001613d33565b60ff161480156122ef575060ff88166122ea8a6001613d33565b60ff16145b801561230a575060ff8716612305896001613d33565b60ff16145b8015612325575060ff8616612320886001613d33565b60ff16145b80612390575060ff881661233a8a6001613d33565b60ff16148015612359575060ff8716612354896001613d33565b60ff16145b8015612374575060ff861661236f886001613d33565b60ff16145b801561238357508560ff16600c145b8015612390575060ff8a16155b156123c457505060408051808201909152600881526714dd1c985a59da1d60c21b60208201529a9950505050505050505050565b8360ff168560ff161480156123de57508260ff168460ff16145b80156123ef57508160ff168360ff16145b801561240057508060ff168260ff16145b1561243157505060408051808201909152600581526408cd8eae6d60db1b60208201529a9950505050505050505050565b5050604080518082019091526009815268121a59da0810d85c9960ba1b60208201529a9950505050505050505050565b606061246c82612913565b60405160200161247c91906134a8565b6040516020818303038152906040529050919050565b6060604051806102400160405280610205815260200161404f6102059139905090565b60608151600014156124d557505060408051602081019091526000815290565b60006040518060600160405280604081526020016142ec60409139905060006003845160026125049190613d1b565b61250e9190613d58565b612519906004613d8e565b90506000612528826020613d1b565b67ffffffffffffffff81111561254057612540613f62565b6040519080825280601f01601f19166020018201604052801561256a576020820181803683370190505b509050818152600183018586518101602084015b818310156125d85760039283018051603f601282901c811687015160f890811b8552600c83901c8216880151811b6001860152600683901c8216880151811b60028601529116860151901b9382019390935260040161257e565b6003895106600181146125f257600281146126035761260f565b613d3d60f01b60011983015261260f565b603d60f81b6000198301525b509398975050505050505050565b6060816126415750506040805180820190915260018152600360fc1b602082015290565b8160005b811561266b578061265581613e99565b91506126649050600a83613d58565b9150612645565b60008167ffffffffffffffff81111561268657612686613f62565b6040519080825280601f01601f1916602001820160405280156126b0576020820181803683370190505b5090505b84156112e8576126c5600183613dd6565b91506126d2600a86613ed4565b6126dd906030613d1b565b60f81b8183815181106126f2576126f2613f4c565b60200101906001600160f81b031916908160001a905350612714600a86613d58565b94506126b4565b6001600160a01b0383166127765761277181600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b612799565b816001600160a01b0316836001600160a01b031614612799576127998382612a11565b6001600160a01b0382166127b05761074781612aae565b826001600160a01b0316826001600160a01b031614610747576107478282612b5d565b6127dd8383612ba1565b6127ea6000848484612806565b6107475760405162461bcd60e51b815260040161061190613c43565b60006001600160a01b0384163b1561290857604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061284a903390899088908890600401613bfd565b602060405180830381600087803b15801561286457600080fd5b505af1925050508015612894575060408051601f3d908101601f1916820190925261289191810190612f1a565b60015b6128ee573d8080156128c2576040519150601f19603f3d011682016040523d82523d6000602084013e6128c7565b606091505b5080516128e65760405162461bcd60e51b815260040161061190613c43565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506112e8565b506001949350505050565b6060816129375750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612961578061294b81613e99565b915061295a9050600a83613d58565b915061293b565b60008167ffffffffffffffff81111561297c5761297c613f62565b6040519080825280601f01601f1916602001820160405280156129a6576020820181803683370190505b5090505b84156112e8576129bb600183613dd6565b91506129c8600a86613ed4565b6129d3906030613d1b565b60f81b8183815181106129e8576129e8613f4c565b60200101906001600160f81b031916908160001a905350612a0a600a86613d58565b94506129aa565b60006001612a1e84610bac565b612a289190613dd6565b600083815260076020526040902054909150808214612a7b576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b600854600090612ac090600190613dd6565b60008381526009602052604081205460088054939450909284908110612ae857612ae8613f4c565b906000526020600020015490508060088381548110612b0957612b09613f4c565b6000918252602080832090910192909255828152600990915260408082208490558582528120556008805480612b4157612b41613f36565b6001900381819060005260206000200160009055905550505050565b6000612b6883610bac565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b6001600160a01b038216612bf75760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610611565b6000818152600260205260409020546001600160a01b031615612c5c5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610611565b612c686000838361271b565b6001600160a01b0382166000908152600360205260408120805460019290612c91908490613d1b565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b604051806101400160405280600a906020820280368337509192915050565b80356001600160a01b0381168114612d2557600080fd5b919050565b600060208284031215612d3c57600080fd5b612d4582612d0e565b9392505050565b60008060408385031215612d5f57600080fd5b612d6883612d0e565b9150612d7660208401612d0e565b90509250929050565b600080600060608486031215612d9457600080fd5b612d9d84612d0e565b9250612dab60208501612d0e565b9150604084013590509250925092565b60008060008060808587031215612dd157600080fd5b612dda85612d0e565b9350612de860208601612d0e565b925060408501359150606085013567ffffffffffffffff80821115612e0c57600080fd5b818701915087601f830112612e2057600080fd5b813581811115612e3257612e32613f62565b604051601f8201601f19908116603f01168101908382118183101715612e5a57612e5a613f62565b816040528281528a6020848701011115612e7357600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b60008060408385031215612eaa57600080fd5b612eb383612d0e565b915060208301358015158114612ec857600080fd5b809150509250929050565b60008060408385031215612ee657600080fd5b612eef83612d0e565b946020939093013593505050565b600060208284031215612f0f57600080fd5b8135612d4581613f78565b600060208284031215612f2c57600080fd5b8151612d4581613f78565b600060208284031215612f4957600080fd5b5035919050565b60008151808452612f68816020860160208601613e10565b601f01601f19169290920160200192915050565b60008151612f8e818560208601613e10565b9290920192915050565b600088516020612fab8285838e01613e10565b895191840191612fbe8184848e01613e10565b8951920191612fd08184848d01613e10565b8851920191612fe28184848c01613e10565b8751920191612ff48184848b01613e10565b86519201916130068184848a01613e10565b85519201916130188184848901613e10565b919091019a9950505050505050505050565b6000825161303c818460208701613e10565b9190910192915050565b60008751613058818460208c01613e10565b87519083019061306c818360208c01613e10565b8082019150507f3c2f746578743e3c7465787420783d223235302220793d223232372e3522206181527f6c69676e6d656e742d626173656c696e653d226d6964646c652220746578742d60208201527f616e63686f723d226d6964646c652220636c6173733d226b696e67223e000000604082015286516130f481605d840160208b01613e10565b7f3c2f746578743e3c7465787420783d223235302220793d223232382220616c69605d92909101918201527f676e6d656e742d626173656c696e653d226d6964646c652220746578742d616e607d8201527f63686f723d226d6964646c6522207374796c653d2266696c6c3a202300000000609d820152855161317e8160b9840160208a01613e10565b61323f6132396131b56131af60b985870101721d903337b73a16b9b4bd329d18971a32b6911f60691b815260130190565b89612f7c565b7f3c2f746578743e3c7465787420783d223335302220793d22323937222074657881527f742d616e63686f723d22656e6422207374796c653d2266696c6c3a202343324260208201527f4438383b22207472616e73666f726d3d22726f74617465283138302032383020604082015265191c1c14911f60d11b606082015260660190565b86612f7c565b9a9950505050505050505050565b7f7b226e616d65223a224830316427456d2053312048616e64202300000000000081526000845161328581601a850160208901613e10565b7f222c2265787465726e616c5f75726c223a2268747470733a2f2f68303164656d601a918401918201526e1731b7b691161134b6b0b3b2911d1160891b603a82015284516132da816049840160208901613e10565b7f222c226465736372697074696f6e223a224830316427456d2047656e65736973604992909101918201527f205365726965732e20546865206669727374206f6666696369616c204830316460698201527f27456d20746f75726e616d656e742c2073687566666c656420616e642064656160898201527f6c7420306e2d436861696e2e2035322063617264206465636b2e20306e65206d60a98201527f696e74203d20306e652073687566666c652e204669766520636172642064726160c98201527f772e2031302c3030302068616e64732e203331312c3837352c32303020706f7360e98201527f736962696c69746965732e20306e65204368616d70696f6e2e20274d617920746101098201527f686520626573742068616e642077696e2e27222c2261747472696275746573226101298201527f3a5b7b2274726169745f74797065223a2248616e64222c2276616c7565223a22610149820152613459613449610169830186612f7c565b63227d5d7d60e01b815260040190565b9695505050505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c00000081526000825161349b81601d850160208701613e10565b91909101601d0192915050565b7f3c2f746578743e3c2f673e3c7465787420783d223235302220793d223833222081527f7374796c653d2266696c6c3a20234332424438383b666f6e742d73697a653a3060208201527f2e3835656d2220746578742d616e63686f723d226d6964646c65223e4830316460408201527f27456d3c2f746578743e3c7465787420783d223235302220793d22313030222060608201527f7374796c653d2266696c6c3a20234646354130303b666f6e742d73697a653a3060808201527f2e35656d3b666f6e742d7374796c653a6974616c69632220746578742d616e6360a08201527f686f723d226d6964646c65223e47656e65736973205365726965733c2f74657860c08201527f743e3c7465787420783d223235302220793d2233383722207374796c653d226660e08201527f696c6c3a20234332424438383b666f6e742d73697a653a302e3635656d3b666f6101008201527f6e742d7374796c653a6974616c69632220746578742d616e63686f723d226d696101208201526664646c65223e2360c81b6101408201526000612d45613647610147840185612f7c565b7f3c2f746578743e3c7465787420783d223235302220793d22343033222073747981527f6c653d2266696c6c3a20234332424438383b666f6e742d73697a653a302e346560208201527f6d3b666f6e742d7374796c653a6974616c69632220746578742d616e63686f7260408201527f3d226d6964646c65223e274d61792074686520626573742068616e642077696e60608201527f273c2f746578743e3c7465787420783d223130302220793d223130302220737460808201527f796c653d2266696c6c3a20234332424438383b223e3c7465787450617468207360a08201527f746172744f66667365743d222d313030252220786c696e6b3a687265663d222360c08201527f706f6b657922207374796c653d22666f6e742d73697a653a302e36656d3b223e60e08201527f596f752043616e277420426c7566662074686520426c6f636b636861696e2e3c6101008201527f616e696d6174652061646469746976653d2273756d22206174747269627574656101208201527f4e616d653d2273746172744f6666736574222066726f6d3d22313030252220746101408201527f6f3d2230252220626567696e3d22307322206475723d223235732220726570656101608201527f6174436f756e743d22696e646566696e69746522202f3e3c2f746578745061746101808201527f683e3c74657874506174682073746172744f66667365743d22352e34373525226101a08201527f20786c696e6b3a687265663d2223706f6b657922207374796c653d22666f6e746101c08201527f2d73697a653a302e36656d3b223e596f752043616e277420426c7566662074686101e08201527f6520426c6f636b636861696e2e3c616e696d6174652061646469746976653d226102008201527f73756d22206174747269627574654e616d653d2273746172744f6666736574226102208201527f2066726f6d3d22313030252220746f3d2230252220626567696e3d22307322206102408201527f6475723d223235732220726570656174436f756e743d22696e646566696e69746102608201527f6522202f3e3c2f74657874506174683e3c74657874506174682073746172744f6102808201527f66667365743d222d3435252220786c696e6b3a687265663d2223706f6b6579226102a08201527f207374796c653d22666f6e742d73697a653a302e36656d3b223e4c6f736572736102c08201527f204630316427456d2c2057696e6e657273204830316427456d2e3c616e696d616102e08201527f74652061646469746976653d2273756d22206174747269627574654e616d653d6103008201527f2273746172744f6666736574222066726f6d3d22313030252220746f3d2230256103208201527f2220626567696e3d22307322206475723d223235732220726570656174436f756103408201527f6e743d22696e646566696e69746522202f3e3c2f74657874506174683e3c74656103608201527f7874506174682073746172744f66667365743d223535252220786c696e6b3a686103808201527f7265663d2223706f6b657922207374796c653d22666f6e742d73697a653a302e6103a08201527f36656d3b223e4c6f73657273204630316427456d2c2057696e6e6572732048306103c08201527f316427456d2e3c616e696d6174652061646469746976653d2273756d222061746103e08201527f747269627574654e616d653d2273746172744f6666736574222066726f6d3d226104008201527f313030252220746f3d2230252220626567696e3d22307322206475723d2232356104208201527f732220726570656174436f756e743d22696e646566696e69746522202f3e3c2f610440820152753a32bc3a2830ba341f1e17ba32bc3a1f1e17b9bb339f60511b6104608201526104760190565b7f646174613a696d6167652f7376672b786d6c3b6261736536342c000000000000815260008251613bf081601a850160208701613e10565b91909101601a0192915050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061345990830184612f50565b602081526000612d456020830184612f50565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b60008219821115613d2e57613d2e613f0a565b500190565b600060ff821660ff84168060ff03821115613d5057613d50613f0a565b019392505050565b600082613d6757613d67613f20565b500490565b600060ff831680613d7f57613d7f613f20565b8060ff84160491505092915050565b6000816000190483118215151615613da857613da8613f0a565b500290565b600060ff821660ff84168160ff0481118215151615613dce57613dce613f0a565b029392505050565b600082821015613de857613de8613f0a565b500390565b600060ff821660ff841680821015613e0757613e07613f0a565b90039392505050565b60005b83811015613e2b578181015183820152602001613e13565b83811115610e975750506000910152565b600181811c90821680613e5057607f821691505b60208210811415613e7157634e487b7160e01b600052602260045260246000fd5b50919050565b600061ffff80831681811415613e8f57613e8f613f0a565b6001019392505050565b6000600019821415613ead57613ead613f0a565b5060010190565b600060ff821660ff811415613ecb57613ecb613f0a565b60010192915050565b600082613ee357613ee3613f20565b500690565b600060ff831680613efb57613efb613f20565b8060ff84160691505092915050565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b03198116811461113857600080fdfe3c67207472616e73666f726d3d227472616e736c617465282d3133352c37302920726f74617465282d3530203235302032323929223e3c7265637420783d223230302220793d2231353022206865696768743d22313538222077696474683d22313030222072783d2235222072793d22352220636c6173733d2261636522202f3e3c7465787420783d223239302220793d223138312220746578742d616e63686f723d22656e6422207374796c653d2266696c6c3a20234332424438383b223e3c73766720786d6c6e733d22687474703a2f2f7777772e77332e6f72672f323030302f7376672220786d6c6e733a786c696e6b3d22687474703a2f2f7777772e77332e6f72672f313939392f786c696e6b222076696577426f783d22302030203530302035303022207072657365727665417370656374526174696f3d22784d6964594d6964206d65657422207374796c653d22666f6e743a33303020312e38656d2073616e732d7365726966223e3c706174682069643d22706f6b65792220643d224d33382c31382068343234206132302c32302030203020312032302c32302076343234206132302c3230203020302031202d32302c323020682d343234206132302c3230203020302031202d32302c2d323020762d343234206132302c32302030203020312032302c2d3230207a22202f3e3c726563742077696474683d2235303022206865696768743d22353030222066696c6c3d222330333443323922202f3e3c7374796c6520747970653d22746578742f637373223e3c215b43444154415b2e6163657b7374726f6b653a234332424438383b7374726f6b652d77696474683a322e32353b66696c6c3a233033344332397d202e6b696e677b66696c6c3a234332424438383b666f6e742d73697a653a312e35656d3b7374726f6b653a234332424438383b7374726f6b652d77696474683a337d5d5d3e3c2f7374796c653e3c2f746578743e3c2f673e3c673e3c7265637420783d223230302220793d2231353022206865696768743d22313538222077696474683d22313030222072783d2235222072793d22352220636c6173733d2261636522202f3e3c7465787420783d223239302220793d223138312220746578742d616e63686f723d22656e6422207374796c653d2266696c6c3a20234332424438383b223e4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2f3c2f746578743e3c2f673e3c67207472616e73666f726d3d227472616e736c617465282d37352c32302920726f74617465282d3235203235302032323929223e3c7265637420783d223230302220793d2231353022206865696768743d22313538222077696474683d22313030222072783d2235222072793d22352220636c6173733d2261636522202f3e3c7465787420783d223239302220793d223138312220746578742d616e63686f723d22656e6422207374796c653d2266696c6c3a20234332424438383b223e3c2f746578743e3c2f673e3c67207472616e73666f726d3d227472616e736c6174652837352c32302920726f74617465283235203235302032323929223e3c7265637420783d223230302220793d2231353022206865696768743d22313538222077696474683d22313030222072783d2235222072793d22352220636c6173733d2261636522202f3e3c7465787420783d223239302220793d223138312220746578742d616e63686f723d22656e6422207374796c653d2266696c6c3a20234332424438383b223e3c2f746578743e3c2f673e3c67207472616e73666f726d3d227472616e736c617465283133352c37302920726f74617465283530203235302032323929223e3c7265637420783d223230302220793d2231353022206865696768743d22313538222077696474683d22313030222072783d2235222072793d22352220636c6173733d2261636522202f3e3c7465787420783d223239302220793d223138312220746578742d616e63686f723d22656e6422207374796c653d2266696c6c3a20234332424438383b223ea26469706673582212203d3d9275e377e65820e3184c30e41eacdc998d364b48606d4a5c2851265c24c464736f6c63430008060033

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.