Contract 0x7403AC30DE7309a0bF019cdA8EeC034a5507cbB3 1

 

Contract Overview

Balance:
0 Ether

EtherValue:
$0.00

Token:
 
Txn Hash
Method
Block
From
To
Value
0x5203862e63e2e8436ded7abe1c3306fff3cf4b177a36c8a8a560d2ef7debc828Set Approval For...153184372022-08-11 3:50:193 days 22 hrs agoENS Name eomsh.eth IN  0x7403ac30de7309a0bf019cda8eec034a5507cbb30 Ether0.‍00042208 17.‍24113955
0x2c1a89680c3f39a8dd23c9e50a2fe028c3d8f0e133031c2de6b51ffde7580796Set Approval For...153044652022-08-08 23:11:366 days 2 hrs ago0xd5458a3506f21c583d7728e548f7c3f2fec49663 IN  0x7403ac30de7309a0bf019cda8eec034a5507cbb30 Ether0.‍0004234 17.‍29543244
0x0c640516f3635589ae7e0ba251c4b83cabf90ab202c01371a493712f3bd088c1Set Approval For...152840372022-08-05 18:48:229 days 7 hrs ago0x653497a172af8952800aa4c7166afc89d5b9d7ef IN  0x7403ac30de7309a0bf019cda8eec034a5507cbb30 Ether0.‍00027677 11.‍30556223
0x6d24828b76006f1a3ed38566e2d0cac6434acab531db6a9c9ff29fdcfce6fd8dSet Approval For...152706192022-08-03 16:51:1811 days 9 hrs ago0x5ae093357636e1823e258c4280586ba69331e803 IN  0x7403ac30de7309a0bf019cda8eec034a5507cbb30 Ether0.‍00066161 14.‍28705135
0x010ba58b23585d2b812ed9128312b41844999040acd99113cc9129b6cf1b1e1aSet Approval For...152622002022-08-02 9:12:4712 days 16 hrs ago0x31c679c7c37e9cfcc3edd5a2d79881efd6cc7739 IN  0x7403ac30de7309a0bf019cda8eec034a5507cbb30 Ether0.‍00011898 4.‍86039077
0xc1394b8b198ab52cd05523c36c8265446165cc84951a8a5ad3b8845bf71a1bfdSet Approval For...152136832022-07-25 19:49:2320 days 6 hrs agoENS Name onlychans.eth IN  0x7403ac30de7309a0bf019cda8eec034a5507cbb30 Ether0.‍00087987 19
0xea0075dd5f89e1af13e7d7386c5a7043c860ff1bb4c540fb5b509d6065651fffSet Approval For...151915242022-07-22 9:24:4523 days 16 hrs agoENS Name petitcaillou.eth IN  0x7403ac30de7309a0bf019cda8eec034a5507cbb30 Ether0.‍00033422 13.‍65241443
0x1e99b9d5b3eb18aadf8bdcfeb1776abd0029ece3a8cfd514f87cfbaeb8ca4bd9Set Approval For...151884372022-07-21 21:39:0324 days 4 hrs agoENS Name gwnft.eth IN  0x7403ac30de7309a0bf019cda8eec034a5507cbb30 Ether0.‍0004468 18.‍25121575
0xd7c9f3698bd362cceaacc654a505cd2fcc01ab2e343e12ee8350afdc3c104eb9Set Approval For...151790752022-07-20 10:58:5125 days 14 hrs agoENS Name aimoney.eth IN  0x7403ac30de7309a0bf019cda8eec034a5507cbb30 Ether0.‍00091444 19.‍71075401
0xdfde911732d1485832da097415badcdcdf2d9440653d65071260b59f82de3ce9Set Approval For...151771872022-07-20 3:41:5325 days 22 hrs ago0x4090748e91d07e43ba44efb6613ef9004b4ab25c IN  0x7403ac30de7309a0bf019cda8eec034a5507cbb30 Ether0.‍00069469 14.‍97421636
0x9b11ca7f208dd4b25d2676dc4da7a47dbfe9b46b8e52639d5cc72b71e0001afeSet Approval For...151735882022-07-19 14:27:2226 days 11 hrs agoENS Name apely.eth IN  0x7403ac30de7309a0bf019cda8eec034a5507cbb30 Ether0.‍00263769 56.‍85544692
0x5328cedb0c29b46c6133be902c920697b4d3cb709d892e2cbe6f0dfecee63dcdSet Approval For...151594752022-07-17 9:52:5328 days 16 hrs ago0xe7cdd6583b674af8d10b89899b134c41846da0bf IN  0x7403ac30de7309a0bf019cda8eec034a5507cbb30 Ether0.‍00016671 6.‍80977879
0xdcb1fce1bf8f2157b11d2a2266a71e357d4aac3aaec4ba76725b25a706606389Set Approval For...151526182022-07-16 8:19:3429 days 17 hrs agoENS Name jrcom.eth IN  0x7403ac30de7309a0bf019cda8eec034a5507cbb30 Ether0.‍00051869 11.‍1803706
0x0c008cc5c09e93fd406fc6397b51eb3d620a3d644cd5a824741aa18ea6a33a96Set Approval For...151299792022-07-12 20:22:3433 days 5 hrs ago0x40caad07785a2914cf4ea6fc493350a051405ddf IN  0x7403ac30de7309a0bf019cda8eec034a5507cbb30 Ether0.‍00123497 26.‍61975415
0x8e1f78f7e9b672ff8ba0cea206a185483b4fa9dd969fa42a8ba0ddfb3a6fae38Set Approval For...151202032022-07-11 8:16:0934 days 17 hrs ago0x124201db0b4e057d9b3ab22124cdb2cb0c1558ca IN  0x7403ac30de7309a0bf019cda8eec034a5507cbb30 Ether0.‍00086763 18.‍70193582
0xedb7e04005ff9ff54bc5e00344cab39904e4007ea9d251ed88efd8ae7eaedb8fSet Approval For...151117502022-07-10 0:54:1936 days 1 hr agoENS Name colinm.eth IN  0x7403ac30de7309a0bf019cda8eec034a5507cbb30 Ether0.‍00088727 19.‍1599386
0x4af4f5629aed68aef9957cd2d45dc049b71661b15af7be1c924d683702a5b0b4Set Approval For...151022612022-07-08 13:50:1237 days 12 hrs ago0xe52c4b4bc2a3114a0c418df84811e05e0fd1ea57 IN  0x7403ac30de7309a0bf019cda8eec034a5507cbb30 Ether0.‍00152937 33.‍02543832
0x79e22fa2a12c6581a9fb870a0b2869158f0cdc317573a3e02fd8bbb0072e780eSet Approval For...151012912022-07-08 10:11:0637 days 15 hrs ago0x87dda695776d77931acae0188f31908824e08af5 IN  0x7403ac30de7309a0bf019cda8eec034a5507cbb30 Ether0.‍00060544 13.‍07393198
0xb54aa0a3ac441428519be55989b3b8d30cf586ebf1fa732f015f902043cccd36Safe Transfer Fr...151009582022-07-08 8:55:3837 days 17 hrs ago0x0c86e2236d906306c3285b0007687def48dde6a2 IN  0x7403ac30de7309a0bf019cda8eec034a5507cbb30 Ether0.‍00246513 28.‍44309054
0xfea3e473849794ed75ecdabc4835fc86fedd37518747f06f250fffffdc542436Set Approval For...150719252022-07-03 21:08:3042 days 4 hrs ago0x1eac5345e9f0dd3a581823adae2bba3bc189dd23 IN  0x7403ac30de7309a0bf019cda8eec034a5507cbb30 Ether0.‍00149366 61.‍01311618
0x918c50a6084c870a595d226cee98d838bc4e35bf862d993cbff5d5680030ea22Set Approval For...150498202022-06-30 10:06:0945 days 15 hrs agoENS Name stonksy.eth IN  0x7403ac30de7309a0bf019cda8eec034a5507cbb30 Ether0.‍00166876 35.‍97941544
0xa11a792454afa389badbbecf82ce27ff3b83657eb6780144995f09d07cc070cdSet Approval For...150475342022-06-29 23:39:5946 days 2 hrs agoENS Name pingouse.eth IN  0x7403ac30de7309a0bf019cda8eec034a5507cbb30 Ether0.‍00085978 35.‍1203555
0x9c9f026a359171fb67d319f998b2fe2c7414cfc0e3e50d0619c379f4daf7c6a2Set Approval For...150402752022-06-28 15:10:4547 days 10 hrs ago0xdaf8ffc46acc14f9ba210739a63e6874509b2261 IN  0x7403ac30de7309a0bf019cda8eec034a5507cbb30 Ether0.‍00190199 40.‍99748661
0xd93915d4b4a7b039f79ed0022432fbd75f50447097147fea3dfa6247519f3f98Transfer From150396932022-06-28 12:38:0847 days 13 hrs agoENS Name thisotterbegood.eth IN  0x7403ac30de7309a0bf019cda8eec034a5507cbb30 Ether0.‍00365538 42.‍21490127
0x28fa06e9b13bc308a60b310f0d71a992d7b4a62b8cea1ef5bfd9b301dcec7f09Transfer From150394862022-06-28 11:42:5547 days 14 hrs agoENS Name thisotterbegood.eth IN  0x7403ac30de7309a0bf019cda8eec034a5507cbb30 Ether0.‍00121077 16.‍93634764
[ Download CSV Export 
Latest 8 internal transactions
Parent Txn Hash Block From To Value
0x0cdffd71425bd06306c5224d75bcc232ef975a19f808ffd9d6f73f2cbb8307ff145651072022-04-11 15:04:49125 days 10 hrs ago 0x7403ac30de7309a0bf019cda8eec034a5507cbb3 0x2d609d872935bac67ff10a98029f1ce6ddfceb9c5.‍47983 Ether
0x401c20ba4b3e063bf7281724c9bde8977fbf427c45f057713fb56cccb238dcee131368192021-09-01 1:28:31348 days 27 mins ago 0x7403ac30de7309a0bf019cda8eec034a5507cbb3 0x2d609d872935bac67ff10a98029f1ce6ddfceb9c86.‍501 Ether
0xadea8c924052cb4267d26f9f3c611f57fc6d813384c908b028528b8925776b8c131366242021-09-01 0:46:41348 days 1 hr ago 0x7403ac30de7309a0bf019cda8eec034a5507cbb3 0x2d609d872935bac67ff10a98029f1ce6ddfceb9c84.‍391 Ether
0x22e1622a8f8374cf4ab7f4109c3837f9ee64e451a4d566785784bb4cf147844d131365762021-09-01 0:36:05348 days 1 hr ago 0x7403ac30de7309a0bf019cda8eec034a5507cbb3 0x2d609d872935bac67ff10a98029f1ce6ddfceb9c63.‍621 Ether
0xf4114ba0df0b17fd861b005d57e0602773f0790ba82a56e290bc8c9a3376c5d5131365712021-09-01 0:34:31348 days 1 hr ago 0x7403ac30de7309a0bf019cda8eec034a5507cbb3 0x2d609d872935bac67ff10a98029f1ce6ddfceb9c59.‍621 Ether
0x00e3cb19b7ae527b8371912393f1c80694618c967b4ab892f6bb21e3a246229d131364892021-09-01 0:17:01348 days 1 hr ago 0x7ece54814110f5b5b161106fc24333338156d249 0x7403ac30de7309a0bf019cda8eec034a5507cbb30.‍02 Ether
0x76beb0fb0ae1e040f9363122239b54df5e4d35e2c9d9125e959b2d7477112af9131364722021-09-01 0:12:08348 days 1 hr ago 0x7ece54814110f5b5b161106fc24333338156d249 0x7403ac30de7309a0bf019cda8eec034a5507cbb30.‍02 Ether
0x35c449465129d8e48367297f9ad4a660bc858e6217ab6c5417f506560de229bb131364632021-09-01 0:09:09348 days 1 hr ago 0x7ece54814110f5b5b161106fc24333338156d249 0x7403ac30de7309a0bf019cda8eec034a5507cbb30.‍02 Ether
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Characters

Compiler Version
v0.8.0+commit.c7dfd78e

Optimization Enabled:
Yes with 800 runs

Other Settings:
default evmVersion
File 1 of 1 : Characters.sol
/**
 *Submitted for verification at Etherscan.io on 2021-08-27
 */

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

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

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

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

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

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

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

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

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

        _;

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

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

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

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

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

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

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

/**
 * @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();
    }
}

interface LootInterface {
    function ownerOf(uint256 tokenId) external view returns (address owner);
}

contract Characters is ERC721Enumerable, ReentrancyGuard, Ownable {
    uint256 public price = 20000000000000000; //0.02 ETH

    //Loot Contract
    address public lootAddress = 0xFF9C1b15B16263C61d017ee9F65C50e4AE0113D7;
    LootInterface public lootContract = LootInterface(lootAddress);

    string[] private race = [
        "Human",
        "Dwarf",
        "Elf",
        "Vampire",
        "Undead",
        "Goblin",
        "Demon",
        "Troll",
        "Ork",
        "Catfolk",
        "Angel",
        "Fairy",
        "Halfling",
        "Giant",
        "Lizardfolk",
        "Nymph"
    ];

    string[] private profession = [
        "Warrior",
        "Thief",
        "Ranger",
        "Wizard",
        "Paladin",
        "Knight",
        "Necromancer",
        "Shapeshifter",
        "Assassin",
        "Priest",
        "Warlock",
        "Berserker",
        "Hunter"
    ];

    string[] private strength = [
        "Strength 1",
        "Strength 2",
        "Strength 3",
        "Strength 4",
        "Strength 5",
        "Strength 6",
        "Strength 7",
        "Strength 8",
        "Strength 9",
        "Strength 10"
    ];

    string[] private dexterity = [
        "Dexterity 1",
        "Dexterity 2",
        "Dexterity 3",
        "Dexterity 4",
        "Dexterity 5",
        "Dexterity 6",
        "Dexterity 7",
        "Dexterity 8",
        "Dexterity 9",
        "Dexterity 10"
    ];

    string[] private intelligence = [
        "Intelligence 1",
        "Intelligence 2",
        "Intelligence 3",
        "Intelligence 4",
        "Intelligence 5",
        "Intelligence 6",
        "Intelligence 7",
        "Intelligence 8",
        "Intelligence 9",
        "Intelligence 10"
    ];

    string[] private vitality = [
        "Vitality 1",
        "Vitality 2",
        "Vitality 3",
        "Vitality 4",
        "Vitality 5",
        "Vitality 6",
        "Vitality 7",
        "Vitality 8",
        "Vitality 9",
        "Vitality 10"
    ];

    string[] private luck = [
        "Luck 1",
        "Luck 2",
        "Luck 3",
        "Luck 4",
        "Luck 5",
        "Luck 6",
        "Luck 7",
        "Luck 8",
        "Luck 9",
        "Luck 10"
    ];

    string[] private faith = [
        "Faith 1",
        "Faith 2",
        "Faith 3",
        "Faith 4",
        "Faith 5",
        "Faith 6",
        "Faith 7",
        "Faith 8",
        "Faith 9",
        "Faith 10"
    ];

    string[] private suffixes = [
        "the Widow Maker",
        "the Child Eater",
        "the Forgotten One",
        "the Beast Rider",
        "the Dragon Slayer",
        "the Giant Slayer",
        "the Demon Hunter",
        "the Great Protector",
        "the Guardian of the Weak",
        "the Holy Virgin",
        "the Savior of the Lost",
        "the Omen of Destruction",
        "the Keeper of the Light",
        "the Searched Criminal",
        "the Explorer of the Void",
        "the Son of the Arch Angel",
        "the Prophet of Enlightment",
        "the Killer of Angels",
        "the Bringer of Darkness",
        "the Bringer of Doom",
        "the Lord of Wrath",
        "the Keeper of Peace"
    ];

    string[] private namePrefixes = [
        "The Bloodthirsty",
        "The Great",
        "The Holy",
        "The Unholy",
        "The Mysterious",
        "The Royal",
        "The Forsaken",
        "The Lucky",
        "The Unforgiving",
        "The Merciless",
        "The Forgiving",
        "The Weak",
        "The Corwardly",
        "The Royal",
        "The Lost",
        "The Seeking",
        "The Chosen",
        "The Unique",
        "The Stupid",
        "The Smart",
        "The Fat",
        "The Beautiful",
        "The Ugly",
        "The Feared",
        "The Ambitious",
        "The Astonishing",
        "The Voiceless",
        "The Coward",
        "Unstable",
        "The Ancient",
        "Newborn",
        "Dying",
        "Crippled",
        "The Blessed",
        "The Righteous",
        "The Conqueror",
        "The Violent",
        "The Quick"
    ];

    string[] private nameSuffixes = [
        "of House Osraige",
        "of House Laois",
        "of House Muma",
        "of House Larmuman",
        "of the Desmumu",
        "of the Traders Guild",
        "of the Hunters of Fiana ",
        "last of his Name",
        "of the Tuadmumu",
        "of the Hy Many",
        "of the Guild of Gadai",
        ", Heir of Fir Bolg",
        "of the Church of Khaanesh",
        "of the Church of Nurne",
        "of the Church of Tzorne",
        "of the Cabal of Pain",
        ", follower of the Church of Enlightenment",
        ", follower of the Cult of Rebirth",
        "of Devine Strength"
    ];

    function random(string memory input) internal pure returns (uint256) {
        return uint256(keccak256(abi.encodePacked(input)));
    }

    function getRace(uint256 tokenId) public view returns (string memory) {
        return pluck(tokenId, "RACE", race);
    }

    function getProfession(uint256 tokenId) public view returns (string memory) {
        return pluck(tokenId, "PROFESSION", profession);
    }

    function getStrength(uint256 tokenId) public view returns (string memory) {
        return pluck(tokenId, "HEAD", strength);
    }

    function getDexterity(uint256 tokenId) public view returns (string memory) {
        return pluck(tokenId, "WAIST", dexterity);
    }

    function getIntelligence(uint256 tokenId) public view returns (string memory) {
        return pluck(tokenId, "FOOT", intelligence);
    }

    function getVitality(uint256 tokenId) public view returns (string memory) {
        return pluck(tokenId, "HAND", vitality);
    }

    function getLuck(uint256 tokenId) public view returns (string memory) {
        return pluck(tokenId, "NECK", luck);
    }

    function getFaith(uint256 tokenId) public view returns (string memory) {
        return pluck(tokenId, "RING", faith);
    }

    function pluck(
        uint256 tokenId,
        string memory keyPrefix,
        string[] memory sourceArray
    ) internal view returns (string memory) {
        uint256 rand = random(string(abi.encodePacked(keyPrefix, toString(tokenId))));
        string memory output = sourceArray[rand % sourceArray.length];
        uint256 greatness = rand % 21;

        if (keccak256(abi.encodePacked(keyPrefix)) == keccak256("RACE") && greatness > 14) {
            output = string(abi.encodePacked(output, " ", suffixes[rand % suffixes.length]));
        }
        if (keccak256(abi.encodePacked(keyPrefix)) == keccak256("PROFESSION") && greatness >= 19) {
            string[2] memory name;
            name[0] = namePrefixes[rand % namePrefixes.length];
            name[1] = nameSuffixes[rand % nameSuffixes.length];
            output = string(abi.encodePacked(name[0], " ", output, " ", name[1]));
        }
        return output;
    }

    function tokenURI(uint256 tokenId) public view override returns (string memory) {
        string[17] memory parts;
        parts[
            0
        ] = '<svg xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="xMinYMin meet" viewBox="0 0 350 350"><style>.base { fill: white; font-family: serif; font-size: 14px; }</style><rect width="100%" height="100%" fill="black" /><text x="10" y="20" class="base">';

        parts[1] = getRace(tokenId);

        parts[2] = '</text><text x="10" y="40" class="base">';

        parts[3] = getProfession(tokenId);

        parts[4] = '</text><text x="10" y="60" class="base">';

        parts[5] = getStrength(tokenId);

        parts[6] = '</text><text x="10" y="80" class="base">';

        parts[7] = getDexterity(tokenId);

        parts[8] = '</text><text x="10" y="100" class="base">';

        parts[9] = getIntelligence(tokenId);

        parts[10] = '</text><text x="10" y="120" class="base">';

        parts[11] = getVitality(tokenId);

        parts[12] = '</text><text x="10" y="140" class="base">';

        parts[13] = getLuck(tokenId);

        parts[14] = '</text><text x="10" y="160" class="base">';

        parts[15] = getFaith(tokenId);

        parts[16] = "</text></svg>";

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

        string memory json = Base64.encode(
            bytes(
                string(
                    abi.encodePacked(
                        '{"name": "Character #',
                        toString(tokenId),
                        '", "description": "Characters are randomized generated and stored on chain. Images and other functionality are intentionally omitted for others to interpret. Feel free to use characters in any way you want. Inspired and compatible with Loot (for Adventurers)", "image": "data:image/svg+xml;base64,',
                        Base64.encode(bytes(output)),
                        '"}'
                    )
                )
            )
        );
        output = string(abi.encodePacked("data:application/json;base64,", json));

        return output;
    }

    function mint(uint256 tokenId) public payable nonReentrant {
        require(tokenId > 8000 && tokenId <= 12000, "Token ID invalid");
        require(price <= msg.value, "Ether value sent is not correct");
        _safeMint(_msgSender(), tokenId);
    }

    function multiMint(uint256[] memory tokenIds) public payable nonReentrant {
        require((price * tokenIds.length) <= msg.value, "Ether value sent is not correct");
        for (uint256 i = 0; i < tokenIds.length; i++) {
            require(tokenIds[i] > 8000 && tokenIds[i] < 12000, "Token ID invalid");
            _safeMint(msg.sender, tokenIds[i]);
        }
    }

    function mintWithLoot(uint256 lootId) public payable nonReentrant {
        require(lootId > 0 && lootId <= 8000, "Token ID invalid");
        require(lootContract.ownerOf(lootId) == msg.sender, "Not the owner of this loot");
        _safeMint(_msgSender(), lootId);
    }

    function multiMintWithLoot(uint256[] memory lootIds) public payable nonReentrant {
        for (uint256 i = 0; i < lootIds.length; i++) {
            require(lootContract.ownerOf(lootIds[i]) == msg.sender, "Not the owner of this loot");
            _safeMint(_msgSender(), lootIds[i]);
        }
    }

    function withdraw() public onlyOwner {
        payable(0x2D609D872935bac67FF10a98029F1ce6DDfceB9C).transfer(address(this).balance);
    }

    function toString(uint256 value) internal pure returns (string memory) {
        // Inspired by OraclizeAPI's implementation - MIT license
        // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol

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

    constructor() ERC721("Characters", "CHAR") Ownable() {}
}

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

    /// @notice Encodes some bytes to the base64 representation
    function encode(bytes memory data) internal pure returns (string memory) {
        uint256 len = data.length;
        if (len == 0) return "";

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

        // Add some extra buffer at the end
        bytes memory result = new bytes(encodedLen + 32);

        bytes memory table = TABLE;

        assembly {
            let tablePtr := add(table, 1)
            let resultPtr := add(result, 32)

            for {
                let i := 0
            } lt(i, len) {

            } {
                i := add(i, 3)
                let input := and(mload(add(data, i)), 0xffffff)

                let out := mload(add(tablePtr, and(shr(18, input), 0x3F)))
                out := shl(8, out)
                out := add(out, and(mload(add(tablePtr, and(shr(12, input), 0x3F))), 0xFF))
                out := shl(8, out)
                out := add(out, and(mload(add(tablePtr, and(shr(6, input), 0x3F))), 0xFF))
                out := shl(8, out)
                out := add(out, and(mload(add(tablePtr, and(input, 0x3F))), 0xFF))
                out := shl(224, out)

                mstore(resultPtr, out)

                resultPtr := add(resultPtr, 4)
            }

            switch mod(len, 3)
            case 1 {
                mstore(sub(resultPtr, 2), shl(240, 0x3d3d))
            }
            case 2 {
                mstore(sub(resultPtr, 1), shl(248, 0x3d))
            }

            mstore(result, encodedLen)
        }

        return string(result);
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getDexterity","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getFaith","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getIntelligence","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getLuck","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getProfession","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getRace","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getStrength","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getVitality","outputs":[{"internalType":"string","name":"","type":"string"}],"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":"lootAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lootContract","outputs":[{"internalType":"contract LootInterface","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"lootId","type":"uint256"}],"name":"mintWithLoot","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"multiMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"lootIds","type":"uint256[]"}],"name":"multiMintWithLoot","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

66470de4df820000600c55600d80546001600160a01b031990811673ff9c1b15b16263c61d017ee9f65c50e4ae0113d71791829055600e80549091166001600160a01b0392909216919091179055600561028081815264243ab6b0b760d91b6102a05260809081526102c082815264223bb0b93360d91b6102e05260a05260036103008181526222b63360e91b6103205260c05260076103408181526656616d7069726560c81b6103605260e052600661038081815265155b9919585960d21b6103a052610100526103c09081526523b7b13634b760d11b6103e05261012052610400848152642232b6b7b760d91b610420526101405261044084815264151c9bdb1b60da1b6104605261016052610480918252624f726b60e81b6104a052610180919091526104c090815266436174666f6c6b60c81b6104e0526101a05261050082815264105b99d95b60da1b610520526101c05261054082815264466169727960d81b610560526101e05260086105809081526748616c666c696e6760c01b6105a052610200526105c08281526411da585b9d60da1b6105e05261022052600a610600908152694c697a617264666f6c6b60b01b61062052610240526106806040526106409182526409cf2dae0d60db1b6106605261026091909152620001ed90600f90601062001a88565b50604080516101e08101825260076101a08201818152662bb0b93934b7b960c91b6101c084015282528251808401845260058152642a3434b2b360d91b60208281019190915280840191909152835180850185526006808252652930b733b2b960d11b8284015284860191909152845180860186528181526515da5e985c9960d21b81840152606085015284518086018652838152662830b630b234b760c91b818401526080850152845180860186528181526512db9a59da1d60d21b8184015260a085015284518086018652600b81526a2732b1b937b6b0b731b2b960a91b8184015260c085015284518086018652600c81526b29b430b832b9b434b33a32b960a11b8184015260e085015284518086018652600881526720b9b9b0b9b9b4b760c11b818401526101008501528451808601865281815265141c9a595cdd60d21b8184015261012085015284518086018652928352665761726c6f636b60c81b838301526101408401929092528351808501855260098152682132b939b2b935b2b960b91b81830152610160840152835180850190945290835265243ab73a32b960d11b90830152610180810191909152620003af90601090600d62001aec565b506040805161018081018252600a610140820181815269537472656e677468203160b01b6101608401528252825180840184528181526929ba3932b733ba34101960b11b602082810191909152808401919091528351808501855282815269537472656e677468203360b01b8183015283850152835180850185528281526914dd1c995b99dd1a080d60b21b8183015260608401528351808501855282815269537472656e677468203560b01b818301526080840152835180850185528281526929ba3932b733ba34101b60b11b8183015260a08401528351808501855282815269537472656e677468203760b01b8183015260c084015283518085018552828152690a6e8e4cadccee8d040760b31b8183015260e08401528351808501855282815269537472656e677468203960b01b818301526101008401528351808501909452600b84526a0537472656e6774682031360ac1b9084015261012082019290925262000521916011919062001b3e565b506040805161018081018252600b61014082018181526a446578746572697479203160a81b6101608401528252825180840184528181526a2232bc3a32b934ba3c901960a91b60208281019190915280840191909152835180850185528281526a446578746572697479203360a81b8183015283850152835180850185528281526a11195e1d195c9a5d1e480d60aa1b818301526060840152835180850185528281526a446578746572697479203560a81b818301526080840152835180850185528281526a2232bc3a32b934ba3c901b60a91b8183015260a0840152835180850185528281526a446578746572697479203760a81b8183015260c0840152835180850185528281526a088caf0e8cae4d2e8f240760ab1b8183015260e0840152835180850185529182526a446578746572697479203960a81b828201526101008301919091528251808401909352600c83526b04465787465726974792031360a41b90830152610120810191909152620006a190601290600a62001b3e565b506040805161018081018252600e61014082018181526d496e74656c6c6967656e6365203160901b6101608401528252825180840184528181526d24b73a32b63634b3b2b731b2901960911b60208281019190915280840191909152835180850185528281526d496e74656c6c6967656e6365203360901b8183015283850152835180850185528281526d125b9d195b1b1a59d95b98d9480d60921b818301526060840152835180850185528281526d496e74656c6c6967656e6365203560901b818301526080840152835180850185528281526d24b73a32b63634b3b2b731b2901b60911b8183015260a0840152835180850185528281526d496e74656c6c6967656e6365203760901b8183015260c0840152835180850185528281526d092dce8cad8d8d2cecadcc6ca40760931b8183015260e0840152835180850185529182526d496e74656c6c6967656e6365203960901b828201526101008301919091528251808401909352600f83526e0496e74656c6c6967656e636520313608c1b908301526101208101919091526200083f90601390600a62001b3e565b506040805161018081018252600a610140820181815269566974616c697479203160b01b610160840152825282518084018452818152692b34ba30b634ba3c901960b11b602082810191909152808401919091528351808501855282815269566974616c697479203360b01b81830152838501528351808501855282815269159a5d185b1a5d1e480d60b21b8183015260608401528351808501855282815269566974616c697479203560b01b81830152608084015283518085018552828152692b34ba30b634ba3c901b60b11b8183015260a08401528351808501855282815269566974616c697479203760b01b8183015260c084015283518085018552828152690acd2e8c2d8d2e8f240760b31b8183015260e08401528351808501855282815269566974616c697479203960b01b818301526101008401528351808501909452600b84526a0566974616c6974792031360ac1b90840152610120820192909252620009b1916014919062001b3e565b50604080516101808101825260066101408201818152654c75636b203160d01b61016084015282528251808401845281815265263ab1b5901960d11b6020828101919091528084019190915283518085018552828152654c75636b203360d01b81830152838501528351808501855282815265131d58dac80d60d21b81830152606084015283518085018552828152654c75636b203560d01b8183015260808401528351808501855282815265263ab1b5901b60d11b8183015260a084015283518085018552828152654c75636b203760d01b8183015260c08401528351808501855282815265098eac6d640760d31b8183015260e084015283518085018552918252654c75636b203960d01b828201526101008301919091528251808401909352600783526604c75636b2031360cc1b9083015261012081019190915262000aff90601590600a62001b3e565b50604080516101808101825260076101408201818152664661697468203160c81b610160840152825282518084018452818152662330b4ba34101960c91b6020828101919091528084019190915283518085018552828152664661697468203360c81b8183015283850152835180850185528281526611985a5d1a080d60ca1b81830152606084015283518085018552828152664661697468203560c81b81830152608084015283518085018552828152662330b4ba34101b60c91b8183015260a084015283518085018552828152664661697468203760c81b8183015260c0840152835180850185528281526608cc2d2e8d040760cb1b8183015260e084015283518085018552918252664661697468203960c81b8282015261010083019190915282518084019093526008835267046616974682031360c41b9083015261012081019190915262000c5790601690600a62001b3e565b506040805161030081018252600f6102c082018181526e3a3432902bb4b237bb9026b0b5b2b960891b6102e08401528252825180840184528181526e3a34329021b434b6321022b0ba32b960891b602082810191909152808401919091528351808501855260118082527074686520466f72676f7474656e204f6e6560781b8284015284860191909152845180860186528381526e3a3432902132b0b9ba102934b232b960891b81840152606085015284518086018652818152703a343290223930b3b7b71029b630bcb2b960791b8184015260808501528451808601865260108082526f3a34329023b4b0b73a1029b630bcb2b960811b8285015260a0860191909152855180870187529081526f3a3432902232b6b7b710243ab73a32b960811b8184015260c08501528451808601865260138082527f7468652047726561742050726f746563746f72000000000000000000000000008285015260e08601919091528551808701875260188082527f74686520477561726469616e206f6620746865205765616b000000000000000082860152610100870191909152865180880188529485526e3a3432902437b63c902b34b933b4b760891b858501526101208601949094528551808701875260168082527f74686520536176696f72206f6620746865204c6f737400000000000000000000828601526101408701919091528651808801885260178082527f746865204f6d656e206f66204465737472756374696f6e00000000000000000082870152610160880191909152875180890189528181527f746865204b6565706572206f6620746865204c696768740000000000000000008187015261018088015287518089018952601581527f746865205365617263686564204372696d696e616c0000000000000000000000818701526101a0880152875180890189529586527f746865204578706c6f726572206f662074686520566f69640000000000000000868601526101c087019590955286518088018852601981527f74686520536f6e206f6620746865204172636820416e67656c00000000000000818601526101e087015286518088018852601a81527f7468652050726f70686574206f6620456e6c696768746d656e740000000000008186015261020087015286518088018852601481527f746865204b696c6c6572206f6620416e67656c7300000000000000000000000081860152610220870152865180880188528581527f746865204272696e676572206f66204461726b6e65737300000000000000000081860152610240870152865180880188528281527f746865204272696e676572206f6620446f6f6d000000000000000000000000008186015261026087015286518088018852928352700e8d0ca4098dee4c840decc40aee4c2e8d607b1b83850152610280860192909252855180870190965285527f746865204b6565706572206f6620506561636500000000000000000000000000918501919091526102a0830193909352620010b79290919062001b90565b50604080516105008101825260106104c082019081526f54686520426c6f6f647468697273747960801b6104e0830152815281518083018352600980825268151a194811dc99585d60ba1b602083810191909152808401929092528351808501855260088082526754686520486f6c7960c01b828501528486019190915284518086018652600a8082526954686520556e686f6c7960b01b82860152606086019190915285518087018752600e81526d546865204d7973746572696f757360901b8186015260808601528551808701875283815268151a1948149bde585b60ba1b81860181905260a087019190915286518088018852600c81526b2a3432902337b939b0b5b2b760a11b8187015260c08701528651808801885284815268546865204c75636b7960b81b8187015260e087015286518088018852600f8082526e54686520556e666f72676976696e6760881b8288015261010088019190915287518089018952600d8082526c546865204d657263696c65737360981b828901526101208901919091528851808a018a528181526c54686520466f72676976696e6760981b818901526101408901528851808a018a5285815267546865205765616b60c01b818901526101608901528851808a018a528181526c54686520436f72776172646c7960981b818901526101808901528851808a018a52868152808801939093526101a08801929092528751808901895284815267151a1948131bdcdd60c21b818801526101c088015287518089018952600b8082526a546865205365656b696e6760a81b828901526101e08901919091528851808a018a52848152692a34329021b437b9b2b760b11b818901526102008901528851808a018a528481526954686520556e6971756560b01b818901526102208901528851808a018a5284815269151a194814dd1d5c1a5960b21b818901526102408901528851808a018a5286815268151a194814db585c9d60ba1b818901526102608901528851808a018a52600780825266151a194811985d60ca1b828a01526102808a01919091528951808b018b528481526c151a19481099585d5d1a599d5b609a1b818a01526102a08a01528951808b018b52868152675468652055676c7960c01b818a01526102c08a01528951808b018b5285815269151a19481199585c995960b21b818a01526102e08a01528951808b018b528481526c54686520416d626974696f757360981b818a01526103008a01528951808b018b529283526e546865204173746f6e697368696e6760881b838901526103208901929092528851808a018a528381526c54686520566f6963656c65737360981b818901526103408901528851808a018a5293845269151a194810dbddd85c9960b21b848801526103608801939093528751808901895284815267556e737461626c6560c01b81880152610380880152875180890189528381526a151a1948105b98da595b9d60aa1b818801526103a088015287518089018952908152662732bbb137b93760c91b818701526103c08701528651808801885260058152644479696e6760d81b818701526103e0870152865180880188529283526710dc9a5c1c1b195960c21b83860152610400860192909252855180870187528181526a151a1948109b195cdcd95960aa1b81860152610420860152855180870187528281526c546865205269676874656f757360981b81860152610440860152855180870187529182526c2a34329021b7b738bab2b937b960991b82850152610460850191909152845180860186529081526a151a1948159a5bdb195b9d60aa1b81840152610480840152835180850190945283526854686520517569636b60b81b908301526104a08101919091526200162190601890602662001be2565b50604080516102a081018252601061026082018181526f6f6620486f757365204f73726169676560801b610280840152825282518084018452600e8082526d6f6620486f757365204c616f697360901b6020838101919091528085019290925284518086018652600d81526c6f6620486f757365204d756d6160981b818401528486015284518086018652601181527037b3102437bab9b2902630b936bab6b0b760791b81840152606080860191909152855180870187528281526d6f6620746865204465736d756d7560901b8185015260808601528551808701875260148082527f6f66207468652054726164657273204775696c640000000000000000000000008286015260a087019190915286518088018852601881527f6f66207468652048756e74657273206f66204669616e612000000000000000008186015260c0870152865180880188529485526f6c617374206f6620686973204e616d6560801b8585015260e086019490945285518087018752600f81526e6f662074686520547561646d756d7560881b81850152610100860152855180870187529182526d6f6620746865204879204d616e7960901b8284015261012085019190915284518086018652601581527f6f6620746865204775696c64206f662047616461690000000000000000000000818401526101408501528451808601865260128152712c2048656972206f662046697220426f6c6760701b8184015261016085015284518086018652601981527f6f662074686520436875726368206f66204b6861616e657368000000000000008184015261018085015284518086018652601681527f6f662074686520436875726368206f66204e75726e6500000000000000000000818401526101a085015284518086018652601781527f6f662074686520436875726368206f6620547a6f726e65000000000000000000818401526101c0850152845180860186529283527f6f662074686520436162616c206f66205061696e000000000000000000000000838301526101e0840192909252835191820190935260298082529192610200840192906200592b9083013981526020016040518060600160405280602181526020016200590a602191398152602001604051806040016040528060128152602001710decc4088caecd2dcca40a6e8e4cadccee8d60731b81525081525060199060136200199d92919062001c34565b50348015620019ab57600080fd5b50604080518082018252600a8152694368617261637465727360b01b60208083019182528351808501909452600484526321a420a960e11b908401528151919291620019fa9160009162001c86565b50805162001a1090600190602084019062001c86565b50506001600a555062001a2c62001a2662001a32565b62001a36565b62001dcb565b3390565b600b80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b82805482825590600052602060002090810192821562001ada579160200282015b8281111562001ada578251805162001ac991849160209091019062001c86565b509160200191906001019062001aa9565b5062001ae892915062001d11565b5090565b82805482825590600052602060002090810192821562001ada579160200282015b8281111562001ada578251805162001b2d91849160209091019062001c86565b509160200191906001019062001b0d565b82805482825590600052602060002090810192821562001ada579160200282015b8281111562001ada578251805162001b7f91849160209091019062001c86565b509160200191906001019062001b5f565b82805482825590600052602060002090810192821562001ada579160200282015b8281111562001ada578251805162001bd191849160209091019062001c86565b509160200191906001019062001bb1565b82805482825590600052602060002090810192821562001ada579160200282015b8281111562001ada578251805162001c2391849160209091019062001c86565b509160200191906001019062001c03565b82805482825590600052602060002090810192821562001ada579160200282015b8281111562001ada578251805162001c7591849160209091019062001c86565b509160200191906001019062001c55565b82805462001c949062001d8e565b90600052602060002090601f01602090048101928262001cb8576000855562001d03565b82601f1062001cd357805160ff191683800117855562001d03565b8280016001018555821562001d03579182015b8281111562001d0357825182559160200191906001019062001ce6565b5062001ae892915062001d32565b8082111562001ae857600062001d28828262001d49565b5060010162001d11565b5b8082111562001ae8576000815560010162001d33565b50805462001d579062001d8e565b6000825580601f1062001d6b575062001d8b565b601f01602090049060005260206000209081019062001d8b919062001d32565b50565b60028104600182168062001da357607f821691505b6020821081141562001dc557634e487b7160e01b600052602260045260246000fd5b50919050565b613b2f8062001ddb6000396000f3fe6080604052600436106102345760003560e01c80636a7e377311610138578063b88d4fde116100b0578063e15f22551161007f578063e985e9c511610064578063e985e9c5146105ee578063f2fde38b1461060e578063fd12c9681461062e57610234565b8063e15f2255146105ae578063e53fbda6146105ce57610234565b8063b88d4fde1461052e578063baa5b27f1461054e578063c75115451461056e578063c87b56dd1461058e57610234565b806395d89b4111610107578063a035b1fe116100ec578063a035b1fe146104e6578063a0712d68146104fb578063a22cb4651461050e57610234565b806395d89b41146104be5780639a0e4ebb146104d357610234565b80636a7e37731461045457806370a0823114610474578063715018a6146104945780638da5cb5b146104a957610234565b806323b872dd116101cb57806342842e0e1161019a5780636352211e1161017f5780636352211e1461040157806367fd1a0f1461042157806369d1cc921461043457610234565b806342842e0e146103c15780634f6ccce7146103e157610234565b806323b872dd146103575780632f745c591461037757806335b48afd146103975780633ccfd60b146103ac57610234565b80630d71aba5116102075780630d71aba5146102e05780630e43932614610300578063120b4cc61461031557806318160ddd1461033557610234565b806301ffc9a71461023957806306fdde031461026f578063081812fc14610291578063095ea7b3146102be575b600080fd5b34801561024557600080fd5b50610259610254366004612bb9565b610641565b60405161026691906130f1565b60405180910390f35b34801561027b57600080fd5b5061028461066e565b60405161026691906130fc565b34801561029d57600080fd5b506102b16102ac366004612bf1565b610700565b60405161026691906130a1565b3480156102ca57600080fd5b506102de6102d9366004612ae7565b61074c565b005b3480156102ec57600080fd5b506102846102fb366004612bf1565b6107e4565b34801561030c57600080fd5b506102b16108de565b34801561032157600080fd5b50610284610330366004612bf1565b6108ed565b34801561034157600080fd5b5061034a6109de565b6040516102669190613725565b34801561036357600080fd5b506102de6103723660046129ba565b6109e4565b34801561038357600080fd5b5061034a610392366004612ae7565b610a1c565b3480156103a357600080fd5b506102b1610a6e565b3480156103b857600080fd5b506102de610a7d565b3480156103cd57600080fd5b506102de6103dc3660046129ba565b610aff565b3480156103ed57600080fd5b5061034a6103fc366004612bf1565b610b1a565b34801561040d57600080fd5b506102b161041c366004612bf1565b610b75565b6102de61042f366004612b12565b610baa565b34801561044057600080fd5b5061028461044f366004612bf1565b610d02565b34801561046057600080fd5b5061028461046f366004612bf1565b610df3565b34801561048057600080fd5b5061034a61048f366004612943565b610efd565b3480156104a057600080fd5b506102de610f41565b3480156104b557600080fd5b506102b1610f8c565b3480156104ca57600080fd5b50610284610f9b565b6102de6104e1366004612b12565b610faa565b3480156104f257600080fd5b5061034a6110be565b6102de610509366004612bf1565b6110c4565b34801561051a57600080fd5b506102de610529366004612ab6565b611156565b34801561053a57600080fd5b506102de6105493660046129fa565b611224565b34801561055a57600080fd5b50610284610569366004612bf1565b611263565b34801561057a57600080fd5b50610284610589366004612bf1565b611354565b34801561059a57600080fd5b506102846105a9366004612bf1565b611445565b3480156105ba57600080fd5b506102846105c9366004612bf1565b6116fd565b3480156105da57600080fd5b506102846105e9366004612bf1565b611807565b3480156105fa57600080fd5b50610259610609366004612982565b6118f8565b34801561061a57600080fd5b506102de610629366004612943565b611926565b6102de61063c366004612bf1565b611994565b60006001600160e01b0319821663780e9d6360e01b1480610666575061066682611a8f565b90505b919050565b60606000805461067d906137f2565b80601f01602080910402602001604051908101604052809291908181526020018280546106a9906137f2565b80156106f65780601f106106cb576101008083540402835291602001916106f6565b820191906000526020600020905b8154815290600101906020018083116106d957829003601f168201915b5050505050905090565b600061070b82611acf565b6107305760405162461bcd60e51b8152600401610727906134de565b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b600061075782610b75565b9050806001600160a01b0316836001600160a01b0316141561078b5760405162461bcd60e51b8152600401610727906135f3565b806001600160a01b031661079d611aec565b6001600160a01b031614806107b957506107b981610609611aec565b6107d55760405162461bcd60e51b815260040161072790613392565b6107df8383611af0565b505050565b606061066682604051806040016040528060048152602001635241434560e01b815250600f805480602002602001604051908101604052809291908181526020016000905b828210156108d5578382906000526020600020018054610848906137f2565b80601f0160208091040260200160405190810160405280929190818152602001828054610874906137f2565b80156108c15780601f10610896576101008083540402835291602001916108c1565b820191906000526020600020905b8154815290600101906020018083116108a457829003601f168201915b505050505081526020019060010190610829565b50505050611b5e565b600d546001600160a01b031681565b6060610666826040518060400160405280600481526020016352494e4760e01b8152506016805480602002602001604051908101604052809291908181526020016000905b828210156108d5578382906000526020600020018054610951906137f2565b80601f016020809104026020016040519081016040528092919081815260200182805461097d906137f2565b80156109ca5780601f1061099f576101008083540402835291602001916109ca565b820191906000526020600020905b8154815290600101906020018083116109ad57829003601f168201915b505050505081526020019060010190610932565b60085490565b6109f56109ef611aec565b82611f02565b610a115760405162461bcd60e51b815260040161072790613634565b6107df838383611f87565b6000610a2783610efd565b8210610a455760405162461bcd60e51b81526004016107279061310f565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b600e546001600160a01b031681565b610a85611aec565b6001600160a01b0316610a96610f8c565b6001600160a01b031614610abc5760405162461bcd60e51b81526004016107279061352a565b604051732d609d872935bac67ff10a98029f1ce6ddfceb9c904780156108fc02916000818181858888f19350505050158015610afc573d6000803e3d6000fd5b50565b6107df83838360405180602001604052806000815250611224565b6000610b246109de565b8210610b425760405162461bcd60e51b815260040161072790613691565b60088281548110610b6357634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b6000818152600260205260408120546001600160a01b0316806106665760405162461bcd60e51b81526004016107279061344c565b6002600a541415610bcd5760405162461bcd60e51b8152600401610727906136ee565b6002600a5560005b8151811015610cf957600e54825133916001600160a01b031690636352211e90859085908110610c1557634e487b7160e01b600052603260045260246000fd5b60200260200101516040518263ffffffff1660e01b8152600401610c399190613725565b60206040518083038186803b158015610c5157600080fd5b505afa158015610c65573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c899190612966565b6001600160a01b031614610caf5760405162461bcd60e51b81526004016107279061330f565b610ce7610cba611aec565b838381518110610cda57634e487b7160e01b600052603260045260246000fd5b60200260200101516120b4565b80610cf18161382d565b915050610bd5565b50506001600a55565b606061066682604051806040016040528060048152602001631210539160e21b8152506014805480602002602001604051908101604052809291908181526020016000905b828210156108d5578382906000526020600020018054610d66906137f2565b80601f0160208091040260200160405190810160405280929190818152602001828054610d92906137f2565b8015610ddf5780601f10610db457610100808354040283529160200191610ddf565b820191906000526020600020905b815481529060010190602001808311610dc257829003601f168201915b505050505081526020019060010190610d47565b6060610666826040518060400160405280600a81526020017f50524f46455353494f4e000000000000000000000000000000000000000000008152506010805480602002602001604051908101604052809291908181526020016000905b828210156108d5578382906000526020600020018054610e70906137f2565b80601f0160208091040260200160405190810160405280929190818152602001828054610e9c906137f2565b8015610ee95780601f10610ebe57610100808354040283529160200191610ee9565b820191906000526020600020905b815481529060010190602001808311610ecc57829003601f168201915b505050505081526020019060010190610e51565b60006001600160a01b038216610f255760405162461bcd60e51b8152600401610727906133ef565b506001600160a01b031660009081526003602052604090205490565b610f49611aec565b6001600160a01b0316610f5a610f8c565b6001600160a01b031614610f805760405162461bcd60e51b81526004016107279061352a565b610f8a60006120d2565b565b600b546001600160a01b031690565b60606001805461067d906137f2565b6002600a541415610fcd5760405162461bcd60e51b8152600401610727906136ee565b6002600a558051600c543491610fe291613790565b11156110005760405162461bcd60e51b8152600401610727906132d8565b60005b8151811015610cf957611f4082828151811061102f57634e487b7160e01b600052603260045260246000fd5b602002602001015111801561106c5750612ee082828151811061106257634e487b7160e01b600052603260045260246000fd5b6020026020010151105b6110885760405162461bcd60e51b81526004016107279061355f565b6110ac33838381518110610cda57634e487b7160e01b600052603260045260246000fd5b806110b68161382d565b915050611003565b600c5481565b6002600a5414156110e75760405162461bcd60e51b8152600401610727906136ee565b6002600a55611f40811180156110ff5750612ee08111155b61111b5760405162461bcd60e51b81526004016107279061355f565b34600c54111561113d5760405162461bcd60e51b8152600401610727906132d8565b61114e611148611aec565b826120b4565b506001600a55565b61115e611aec565b6001600160a01b0316826001600160a01b0316141561118f5760405162461bcd60e51b8152600401610727906132a1565b806005600061119c611aec565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff1916921515929092179091556111e0611aec565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161121891906130f1565b60405180910390a35050565b61123561122f611aec565b83611f02565b6112515760405162461bcd60e51b815260040161072790613634565b61125d84848484612124565b50505050565b606061066682604051806040016040528060048152602001631193d3d560e21b8152506013805480602002602001604051908101604052809291908181526020016000905b828210156108d55783829060005260206000200180546112c7906137f2565b80601f01602080910402602001604051908101604052809291908181526020018280546112f3906137f2565b80156113405780601f1061131557610100808354040283529160200191611340565b820191906000526020600020905b81548152906001019060200180831161132357829003601f168201915b5050505050815260200190600101906112a8565b606061066682604051806040016040528060048152602001634e45434b60e01b8152506015805480602002602001604051908101604052809291908181526020016000905b828210156108d55783829060005260206000200180546113b8906137f2565b80601f01602080910402602001604051908101604052809291908181526020018280546113e4906137f2565b80156114315780601f1061140657610100808354040283529160200191611431565b820191906000526020600020905b81548152906001019060200180831161141457829003601f168201915b505050505081526020019060010190611399565b606061144f612902565b60405180610120016040528060fd815260200161399560fd91398152611474836107e4565b8160016020020181905250604051806060016040528060288152602001613afb6028913960408201526114a683610df3565b60608083019190915260408051918201905260288082526138ca602083013960808201526114d383611807565b60a082015260408051606081019091526028808252613944602083013960c08201526114fe836116fd565b60e08201526040805160608101909152602980825261396c602083013961010082015261152a83611263565b6101208201526040805160608101909152602980825261391b602083013961014082015261155783610d02565b61016082015260408051606081019091526029808252613a92602083013961018082015261158483611354565b6101a0820152604080516060810190915260298082526138f260208301396101c08201526115b1836108ed565b6101e0820152604080518082018252600d81527f3c2f746578743e3c2f7376673e00000000000000000000000000000000000000602080830191909152610200840191909152825181840151838501516060860151608087015160a088015160c089015160e08a01516101008b0151995160009a6116319a909101612caa565b60408051808303601f19018152908290526101208401516101408501516101608601516101808701516101a08801516101c08901516101e08a01516102008b0151979950611684988a9890602001612caa565b604051602081830303815290604052905060006116d16116a386612157565b6116ac8461228a565b6040516020016116bd929190612e83565b60405160208183030381529060405261228a565b9050806040516020016116e4919061305c565b60408051808303601f1901815291905295945050505050565b6060610666826040518060400160405280600581526020017f57414953540000000000000000000000000000000000000000000000000000008152506012805480602002602001604051908101604052809291908181526020016000905b828210156108d557838290600052602060002001805461177a906137f2565b80601f01602080910402602001604051908101604052809291908181526020018280546117a6906137f2565b80156117f35780601f106117c8576101008083540402835291602001916117f3565b820191906000526020600020905b8154815290600101906020018083116117d657829003601f168201915b50505050508152602001906001019061175b565b606061066682604051806040016040528060048152602001631211505160e21b8152506011805480602002602001604051908101604052809291908181526020016000905b828210156108d557838290600052602060002001805461186b906137f2565b80601f0160208091040260200160405190810160405280929190818152602001828054611897906137f2565b80156118e45780601f106118b9576101008083540402835291602001916118e4565b820191906000526020600020905b8154815290600101906020018083116118c757829003601f168201915b50505050508152602001906001019061184c565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b61192e611aec565b6001600160a01b031661193f610f8c565b6001600160a01b0316146119655760405162461bcd60e51b81526004016107279061352a565b6001600160a01b03811661198b5760405162461bcd60e51b8152600401610727906131c9565b610afc816120d2565b6002600a5414156119b75760405162461bcd60e51b8152600401610727906136ee565b6002600a5580158015906119cd5750611f408111155b6119e95760405162461bcd60e51b81526004016107279061355f565b600e546040516331a9108f60e11b815233916001600160a01b031690636352211e90611a19908590600401613725565b60206040518083038186803b158015611a3157600080fd5b505afa158015611a45573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a699190612966565b6001600160a01b03161461113d5760405162461bcd60e51b81526004016107279061330f565b60006001600160e01b031982166380ac58cd60e01b1480611ac057506001600160e01b03198216635b5e139f60e01b145b806106665750610666826123fe565b6000908152600260205260409020546001600160a01b0316151590565b3390565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611b2582610b75565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60606000611b9484611b6f87612157565b604051602001611b80929190612c7b565b604051602081830303815290604052612417565b9050600083845183611ba69190613848565b81518110611bc457634e487b7160e01b600052603260045260246000fd5b602002602001015190506000601583611bdd9190613848565b90507fe035e8a799e05fcf2671d3f03425e5a2812ab383f09f6de2636ea0dcd2c1de6f86604051602001611c119190612c5f565b60405160208183030381529060405280519060200120148015611c345750600e81115b15611c955760178054839190611c4a9086613848565b81548110611c6857634e487b7160e01b600052603260045260246000fd5b90600052602060002001604051602001611c83929190612dc4565b60405160208183030381529060405291505b7f6b6dd0b7c6903e6b6e98d2ee16e26c716be4d9b3049b6a094fed99bcf99d764186604051602001611cc79190612c5f565b60405160208183030381529060405280519060200120148015611ceb575060138110155b15611ef857611cf861292a565b60188054611d069086613848565b81548110611d2457634e487b7160e01b600052603260045260246000fd5b906000526020600020018054611d39906137f2565b80601f0160208091040260200160405190810160405280929190818152602001828054611d65906137f2565b8015611db25780601f10611d8757610100808354040283529160200191611db2565b820191906000526020600020905b815481529060010190602001808311611d9557829003601f168201915b505050505081600060028110611dd857634e487b7160e01b600052603260045260246000fd5b602002015260198054611deb9086613848565b81548110611e0957634e487b7160e01b600052603260045260246000fd5b906000526020600020018054611e1e906137f2565b80601f0160208091040260200160405190810160405280929190818152602001828054611e4a906137f2565b8015611e975780601f10611e6c57610100808354040283529160200191611e97565b820191906000526020600020905b815481529060010190602001808311611e7a57829003601f168201915b505050505081600160028110611ebd57634e487b7160e01b600052603260045260246000fd5b60200201528060006020020151838260016020020151604051602001611ee593929190612d6a565b6040516020818303038152906040529250505b5095945050505050565b6000611f0d82611acf565b611f295760405162461bcd60e51b815260040161072790613346565b6000611f3483610b75565b9050806001600160a01b0316846001600160a01b03161480611f6f5750836001600160a01b0316611f6484610700565b6001600160a01b0316145b80611f7f5750611f7f81856118f8565b949350505050565b826001600160a01b0316611f9a82610b75565b6001600160a01b031614611fc05760405162461bcd60e51b815260040161072790613596565b6001600160a01b038216611fe65760405162461bcd60e51b81526004016107279061325d565b611ff1838383612448565b611ffc600082611af0565b6001600160a01b03831660009081526003602052604081208054600192906120259084906137af565b90915550506001600160a01b0382166000908152600360205260408120805460019290612053908490613764565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6120ce8282604051806020016040528060008152506124d1565b5050565b600b80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b61212f848484611f87565b61213b84848484612504565b61125d5760405162461bcd60e51b81526004016107279061316c565b60608161217c57506040805180820190915260018152600360fc1b6020820152610669565b8160005b81156121a657806121908161382d565b915061219f9050600a8361377c565b9150612180565b60008167ffffffffffffffff8111156121cf57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156121f9576020820181803683370190505b5090505b8415611f7f5761220e6001836137af565b915061221b600a86613848565b612226906030613764565b60f81b81838151811061224957634e487b7160e01b600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350612283600a8661377c565b94506121fd565b8051606090806122aa575050604080516020810190915260008152610669565b600060036122b9836002613764565b6122c3919061377c565b6122ce906004613790565b905060006122dd826020613764565b67ffffffffffffffff81111561230357634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f19166020018201604052801561232d576020820181803683370190505b5090506000604051806060016040528060408152602001613abb604091399050600181016020830160005b868110156123b9576003818a01810151603f601282901c8116860151600c83901c8216870151600684901c831688015192909316870151600891821b60ff94851601821b92841692909201901b91160160e01b835260049092019101612358565b5060038606600181146123d357600281146123e4576123f0565b613d3d60f01b6001198301526123f0565b603d60f81b6000198301525b505050918152949350505050565b6001600160e01b031981166301ffc9a760e01b14919050565b60008160405160200161242a9190612c5f565b60408051601f19818403018152919052805160209091012092915050565b6124538383836107df565b6001600160a01b03831661246f5761246a8161261f565b612492565b816001600160a01b0316836001600160a01b031614612492576124928382612663565b6001600160a01b0382166124ae576124a981612700565b6107df565b826001600160a01b0316826001600160a01b0316146107df576107df82826127d9565b6124db838361281d565b6124e86000848484612504565b6107df5760405162461bcd60e51b81526004016107279061316c565b6000612518846001600160a01b03166128fc565b1561261457836001600160a01b031663150b7a02612534611aec565b8786866040518563ffffffff1660e01b815260040161255694939291906130b5565b602060405180830381600087803b15801561257057600080fd5b505af19250505080156125a0575060408051601f3d908101601f1916820190925261259d91810190612bd5565b60015b6125fa573d8080156125ce576040519150601f19603f3d011682016040523d82523d6000602084013e6125d3565b606091505b5080516125f25760405162461bcd60e51b81526004016107279061316c565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611f7f565b506001949350505050565b600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b6000600161267084610efd565b61267a91906137af565b6000838152600760205260409020549091508082146126cd576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b600854600090612712906001906137af565b6000838152600960205260408120546008805493945090928490811061274857634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050806008838154811061277757634e487b7160e01b600052603260045260246000fd5b60009182526020808320909101929092558281526009909152604080822084905585825281205560088054806127bd57634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b60006127e483610efd565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b6001600160a01b0382166128435760405162461bcd60e51b8152600401610727906134a9565b61284c81611acf565b156128695760405162461bcd60e51b815260040161072790613226565b61287560008383612448565b6001600160a01b038216600090815260036020526040812080546001929061289e908490613764565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b3b151590565b6040518061022001604052806011905b60608152602001906001900390816129125790505090565b6040805180820190915260608152600160208201612912565b600060208284031215612954578081fd5b813561295f8161389e565b9392505050565b600060208284031215612977578081fd5b815161295f8161389e565b60008060408385031215612994578081fd5b823561299f8161389e565b915060208301356129af8161389e565b809150509250929050565b6000806000606084860312156129ce578081fd5b83356129d98161389e565b925060208401356129e98161389e565b929592945050506040919091013590565b60008060008060808587031215612a0f578081fd5b8435612a1a8161389e565b9350602085810135612a2b8161389e565b935060408601359250606086013567ffffffffffffffff80821115612a4e578384fd5b818801915088601f830112612a61578384fd5b813581811115612a7357612a73613888565b612a85601f8201601f1916850161372e565b91508082528984828501011115612a9a578485fd5b8084840185840137810190920192909252939692955090935050565b60008060408385031215612ac8578182fd5b8235612ad38161389e565b9150602083013580151581146129af578182fd5b60008060408385031215612af9578182fd5b8235612b048161389e565b946020939093013593505050565b60006020808385031215612b24578182fd5b823567ffffffffffffffff80821115612b3b578384fd5b818501915085601f830112612b4e578384fd5b813581811115612b6057612b60613888565b8381029150612b7084830161372e565b8181528481019084860184860187018a1015612b8a578788fd5b8795505b83861015612bac578035835260019590950194918601918601612b8e565b5098975050505050505050565b600060208284031215612bca578081fd5b813561295f816138b3565b600060208284031215612be6578081fd5b815161295f816138b3565b600060208284031215612c02578081fd5b5035919050565b60008151808452612c218160208601602086016137c6565b601f01601f19169290920160200192915050565b60008151612c478185602086016137c6565b9290920192915050565b61227d60f01b815260020190565b60008251612c718184602087016137c6565b9190910192915050565b60008351612c8d8184602088016137c6565b835190830190612ca18183602088016137c6565b01949350505050565b60008a51612cbc818460208f016137c6565b8a51612cce8183860160208f016137c6565b8a519184010190612ce3818360208e016137c6565b8951612cf58183850160208e016137c6565b8951929091010190612d0b818360208c016137c6565b8751910190612d1e818360208b016137c6565b8651612d308183850160208b016137c6565b8651929091010190612d468183602089016137c6565b8451612d5881838501602089016137c6565b9101019b9a5050505050505050505050565b60008451612d7c8184602089016137c6565b8083019050600160fd1b8082528551612d9c816001850160208a016137c6565b60019201918201528351612db78160028401602088016137c6565b0160020195945050505050565b600083516020612dd782858389016137c6565b600160fd1b918401918252845460019084906002810481841680612dfc57607f821691505b858210811415612e1a57634e487b7160e01b88526022600452602488fd5b808015612e2e5760018114612e4357612e73565b60ff1984168887015282880186019450612e73565b612e4c8b613758565b895b84811015612e695781548a8201890152908701908801612e4e565b5050858389010194505b50929a9950505050505050505050565b60007f7b226e616d65223a20224368617261637465722023000000000000000000000082528351612ebb8160158501602088016137c6565b7f222c20226465736372697074696f6e223a2022436861726163746572732061726015918401918201527f652072616e646f6d697a65642067656e65726174656420616e642073746f726560358201527f64206f6e20636861696e2e20496d6167657320616e64206f746865722066756e60558201527f6374696f6e616c6974792061726520696e74656e74696f6e616c6c79206f6d6960758201527f7474656420666f72206f746865727320746f20696e746572707265742e20466560958201527f656c206672656520746f20757365206368617261637465727320696e20616e7960b58201527f2077617920796f752077616e742e20496e73706972656420616e6420636f6d7060d58201527f617469626c652077697468204c6f6f742028666f7220416476656e747572657260f58201527f7329222c2022696d616765223a2022646174613a696d6167652f7376672b786d6101158201527f6c3b6261736536342c000000000000000000000000000000000000000000000061013582015261305361304e61013e830186612c35565b612c51565b95945050505050565b60007f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c0000008252825161309481601d8501602087016137c6565b91909101601d0192915050565b6001600160a01b0391909116815260200190565b60006001600160a01b038087168352808616602084015250836040830152608060608301526130e76080830184612c09565b9695505050505050565b901515815260200190565b60006020825261295f6020830184612c09565b6020808252602b908201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560408201527f74206f6620626f756e6473000000000000000000000000000000000000000000606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527f63656976657220696d706c656d656e7465720000000000000000000000000000606082015260800190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201527f6464726573730000000000000000000000000000000000000000000000000000606082015260800190565b6020808252601c908201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604082015260600190565b60208082526024908201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646040820152637265737360e01b606082015260800190565b60208082526019908201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604082015260600190565b6020808252601f908201527f45746865722076616c75652073656e74206973206e6f7420636f727265637400604082015260600190565b6020808252601a908201527f4e6f7420746865206f776e6572206f662074686973206c6f6f74000000000000604082015260600190565b6020808252602c908201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b60208082526038908201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760408201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606082015260800190565b6020808252602a908201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560408201527f726f206164647265737300000000000000000000000000000000000000000000606082015260800190565b60208082526029908201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460408201527f656e7420746f6b656e0000000000000000000000000000000000000000000000606082015260800190565b6020808252818101527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604082015260600190565b6020808252602c908201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526010908201527f546f6b656e20494420696e76616c696400000000000000000000000000000000604082015260600190565b60208082526029908201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960408201527f73206e6f74206f776e0000000000000000000000000000000000000000000000606082015260800190565b60208082526021908201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656040820152603960f91b606082015260800190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60408201527f776e6572206e6f7220617070726f766564000000000000000000000000000000606082015260800190565b6020808252602c908201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60408201527f7574206f6620626f756e64730000000000000000000000000000000000000000606082015260800190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b90815260200190565b60405181810167ffffffffffffffff8111828210171561375057613750613888565b604052919050565b60009081526020902090565b600082198211156137775761377761385c565b500190565b60008261378b5761378b613872565b500490565b60008160001904831182151516156137aa576137aa61385c565b500290565b6000828210156137c1576137c161385c565b500390565b60005b838110156137e15781810151838201526020016137c9565b8381111561125d5750506000910152565b60028104600182168061380657607f821691505b6020821081141561382757634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156138415761384161385c565b5060010190565b60008261385757613857613872565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114610afc57600080fd5b6001600160e01b031981168114610afc57600080fdfe3c2f746578743e3c7465787420783d2231302220793d2236302220636c6173733d2262617365223e3c2f746578743e3c7465787420783d2231302220793d223136302220636c6173733d2262617365223e3c2f746578743e3c7465787420783d2231302220793d223132302220636c6173733d2262617365223e3c2f746578743e3c7465787420783d2231302220793d2238302220636c6173733d2262617365223e3c2f746578743e3c7465787420783d2231302220793d223130302220636c6173733d2262617365223e3c73766720786d6c6e733d22687474703a2f2f7777772e77332e6f72672f323030302f73766722207072657365727665417370656374526174696f3d22784d696e594d696e206d656574222076696577426f783d223020302033353020333530223e3c7374796c653e2e62617365207b2066696c6c3a2077686974653b20666f6e742d66616d696c793a2073657269663b20666f6e742d73697a653a20313470783b207d3c2f7374796c653e3c726563742077696474683d223130302522206865696768743d2231303025222066696c6c3d22626c61636b22202f3e3c7465787420783d2231302220793d2232302220636c6173733d2262617365223e3c2f746578743e3c7465787420783d2231302220793d223134302220636c6173733d2262617365223e4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2f3c2f746578743e3c7465787420783d2231302220793d2234302220636c6173733d2262617365223ea164736f6c6343000800000a2c20666f6c6c6f776572206f66207468652043756c74206f6620526562697274682c20666f6c6c6f776572206f662074686520436875726368206f6620456e6c69676874656e6d656e74

Block Transaction Difficulty Gas Used Reward
Block Uncle Number Difficulty Gas Used Reward
Loading
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.