Contract 0x59Ec8e68D9cAa87f6B5BC4013172c20E85ccdaD0 2

 

Contract Overview

Lion Club: SLC Token
Balance:
0 Ether

EtherValue:
$0.00

Token:
 
Txn Hash
Method
Block
From
To
Value
0xdec359200e34245b7058b9381807be19bb5b9b9cdec7703ef328d110007075f9Set Approval For...156091682022-09-25 8:23:3518 hrs 42 mins ago0x9cd303f297981a91e8220f91c7eec00d48ef3933 IN  Lion Club: SLC Token0 Ether0.00025376 5.43569569
0x36c9bf4b4feb0cb22b9a4a2334b195f904e15c7bac6589ca9791fec6578ad475Set Approval For...156032352022-09-24 12:31:351 day 14 hrs ago0x088892a5e65b03a37e7864f7c17e54f6a0f5a1ee IN  Lion Club: SLC Token0 Ether0.000258 5.51804777
0xf6ff0e2ff83bd13d1aa670f1aa373689007067c98abf6e0a5ac505c0c9d0870cSet Approval For...156031042022-09-24 12:05:231 day 15 hrs ago0x17c9dd4a4028cef016a72f642b63443380809e4f IN  Lion Club: SLC Token0 Ether0.00025751 5.51590532
0x4b0f65127155017534e46de485825a2d80f0ba92752a45d6a0d71edb6e58f758Set Approval For...156005682022-09-24 3:36:111 day 23 hrs ago0x1f3a901882b17b4ab6e48edde70de3bedff6e32d IN  Lion Club: SLC Token0 Ether0.00036466 7.8111044
0x9e93fa75e2c12d31edead1439205e262c455a826833e966f5af4a7c26c3fc7e7Set Approval For...155934122022-09-23 3:39:112 days 23 hrs ago0x6a9a8e67dbe22af0bb55ea0fa44df8212b175a1d IN  Lion Club: SLC Token0 Ether0.00034988 7.49465485
0xc0e46a6d5bc5c51c9a5e3c8373252dd265b46d3c461a7966369c5594bf8c6246Set Approval For...155866372022-09-22 4:56:353 days 22 hrs ago0x46592385f22b16b3b6598079750e2bcea9c69d35 IN  Lion Club: SLC Token0 Ether0.00020313 4.35117428
0x6ef5c2800eae492b2886566092eb94d65e1e4613a16056ee246bdf9ac67d468fSet Approval For...155818362022-09-21 12:45:354 days 14 hrs ago0x000f8f3f45b951f5857d9e3fc7aa2d921a7a2d7b IN  Lion Club: SLC Token0 Ether0.00021335 7.94040603
0x918eba73e1e54e737eaf26ec6e6f06cd45d0a7838212659c1aca9e7d2059b424Set Approval For...155818352022-09-21 12:45:234 days 14 hrs ago0x000f8f3f45b951f5857d9e3fc7aa2d921a7a2d7b IN  Lion Club: SLC Token0 Ether0.00034962 7.47547471
0xbf3962aad1e009a3a6d75e47525065b1e25a6e4d71dc9755e3b89fd80d2a6c11Set Approval For...155664492022-09-19 8:43:236 days 18 hrs ago0x420c44a78408105a639db060ee932b675b48c7e0 IN  Lion Club: SLC Token0 Ether0.00031106 6.65289786
0x6715f4ff057bb13ced41fe0116830739e56bcad9b4f1e9f9a5453cd696293078Set Approval For...155631762022-09-18 21:42:117 days 5 hrs ago0x8ed37113ed3bc93c84bec3c38b878398796eabc2 IN  Lion Club: SLC Token0 Ether0.0009769 20.92549732
0x43b87e9871560742a721fba4bae242684ee140647b9c2fbef79ea3cd8d1c4e43Set Approval For...155604082022-09-18 12:23:357 days 14 hrs ago0x150e90bc93e1527b6d45df5b802d83d575b76126 IN  Lion Club: SLC Token0 Ether0.00015246 5.69200456
0x33e8f0c269dedda3dabe7476fe40748ed9c1b2cd1335ffdb44bff27bffdbee4dSet Approval For...155604072022-09-18 12:23:237 days 14 hrs ago0x150e90bc93e1527b6d45df5b802d83d575b76126 IN  Lion Club: SLC Token0 Ether0.00029272 6.27021766
0x4f869580de5cb5693bff429ee7c4ba08f5393d6b4c38a9192e0366299d59fe73Set Approval For...155569282022-09-18 0:40:598 days 2 hrs ago0x26f157dd9e3ad2a68d94f6225d6a8d1cad4a850d IN  Lion Club: SLC Token0 Ether0.00016767 3.59155676
0x5343d18ef428f65f854dfec17c7de3c8853ceae43e835790ab7676a347d520ebSet Approval For...155532902022-09-17 12:26:118 days 14 hrs ago0x4c894300dace47361f6d8c084f7295a2c26e094d IN  Lion Club: SLC Token0 Ether0.00031605 6.75770045
0x8c2a4867e3bdf393320d4e572a2bc8b7a90820744b7b28617f84560c97f9f35eSet Approval For...155532882022-09-17 12:25:478 days 14 hrs ago0x4c894300dace47361f6d8c084f7295a2c26e094d IN  Lion Club: SLC Token0 Ether0.00028032 6.00457836
0x6da59e2a2707895f9dca161406ea0087ba0cf263e91d68a023413b47a0f815deSet Approval For...155532852022-09-17 12:25:118 days 14 hrs ago0x4c894300dace47361f6d8c084f7295a2c26e094d IN  Lion Club: SLC Token0 Ether0.00030525 6.52864714
0xc9ee063b6a50e3c2f33748ed8fd44c892dc6d79e63fca7b61bab78964788b72cSet Approval For...155502932022-09-17 2:20:239 days 45 mins agoENS Name boxpie.eth IN  Lion Club: SLC Token0 Ether0.0002165 4.63767276
0xd70d82f5979d77dcffabbb96406cd1daf7f36b697c8cc666443124587ac873c7Set Approval For...155461302022-09-16 12:18:599 days 14 hrs agoENS Name tztztz.eth IN  Lion Club: SLC Token0 Ether0.00063114 13.51928193
0x0dde9c8ba2caacf1377462906cc90f73203a3f7ad63c9f6567fc269516db63b5Safe Transfer Fr...155361782022-09-15 1:38:3911 days 1 hr agoENS Name northstarstrong.eth IN  Lion Club: SLC Token0 Ether0.00138759 15.29686692
0x26957a67d9bd9b5b614aed8ca0c906637f4354c2c4a6f3a91ae8dbe3baef6abdSafe Transfer Fr...155361772022-09-15 1:38:3311 days 1 hr agoENS Name northstarstrong.eth IN  Lion Club: SLC Token0 Ether0.0012273 15.65216422
0xd6e4664d599f94aac86c5fdf30f4f8ed7874b667811698d13c74c5d314a2ab68Safe Transfer Fr...155361762022-09-15 1:38:2511 days 1 hr agoENS Name northstarstrong.eth IN  Lion Club: SLC Token0 Ether0.00131494 16.76994796
0x521956deffe7f66873b977c9de65f25cb93be5f0298c3c5645aecd8c574171f4Safe Transfer Fr...155361742022-09-15 1:37:2011 days 1 hr agoENS Name northstarstrong.eth IN  Lion Club: SLC Token0 Ether0.00145137 16
0x24c5229480280eb32845ac5a51cf26def4cf1a7c63f96f53874bea0b066528a4Set Approval For...155360152022-09-15 0:56:2411 days 2 hrs agoENS Name tsoler.eth IN  Lion Club: SLC Token0 Ether0.00031306 12.59467807
0xd4174bf59f878e759d8f13ac5a11e126720c3d3443b44a58d6e5c3b43f954d5dSet Approval For...155352122022-09-14 21:40:4411 days 5 hrs agoENS Name amine.eth IN  Lion Club: SLC Token0 Ether0.0002958 11.04356932
0x105bf3d3c61d5cd7c803406e865203b95ff7f8350e0b00f7462f430b823d931dSet Approval For...155352082022-09-14 21:39:1511 days 5 hrs agoENS Name amine.eth IN  Lion Club: SLC Token0 Ether0.0005204 11.1470832
[ Download CSV Export 

OVERVIEW

Connect with your sporting heroes through NFTs.

Latest 1 internal transaction
Parent Txn Hash Block From To Value
0x948f942c1d58296c089a102348edd4956908c3dfcfe5ce41ea469f55c1d9aff7130945162021-08-25 12:15:26396 days 14 hrs ago Lion Club: SLC TokenLion Club: Deployer353.56 Ether
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
SportsIconLionClub

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 15 : SportsIconLionClub.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.2;

import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";

contract SportsIconLionClub is
    ERC721,
    ERC721Enumerable,
    ERC721URIStorage,
    Ownable
{
    using SafeMath for uint256;

    // Lion price 0.04 ETH
    uint256 public constant lionPrice = 40000000000000000;

    // Maximum purchase at once
    uint256 public constant maxPurchase = 20;

    // Maximum supply
    uint256 public constant maxLions = 9000;

    // Reserve max 350 tokens for founding NFT owners, giveaways, partners, marketing and team
    uint256 public reserve = 350;

    // Sale state
    bool public saleIsActive = false;

    // Provenance hash
    string public provenanceHash = "";

    // Limit single reserve amount
    uint256 private reserveLimit = 30;

    // Base URI
    string private baseURI;

    // Events
    event AssetMinted(address indexed to, uint256 indexed tokenId);

    constructor() ERC721("SportsIcon Lion Club", "SLC") {}

    function flipSaleState() public onlyOwner {
        saleIsActive = !saleIsActive;
    }

    function setBaseURI(string memory baseURI_) public onlyOwner {
        baseURI = baseURI_;
    }

    function mintLion(uint256 numberOfTokens) public payable {
        require(saleIsActive, "Sale must be active to mint lions");
        require(numberOfTokens > 0, "At least one lion must be minted");
        require(
            numberOfTokens <= maxPurchase,
            "Maximum 20 lions can be minted at once"
        );
        require(
            totalSupply().add(numberOfTokens) <= maxLions,
            "Purchase would exceed the max supply of lions"
        );
        require(
            msg.value >= lionPrice.mul(numberOfTokens),
            "ETH value sent is not correct"
        );

        for (uint256 i = 0; i < numberOfTokens; i++) {
            uint256 mintIndex = totalSupply();

            if (mintIndex < maxLions) {
                _safeMint(msg.sender, mintIndex);
                emit AssetMinted(msg.sender, mintIndex);
            }
        }
    }

    function reserveLions(address to, uint256 numberOfTokens) public onlyOwner {
        uint256 supply = totalSupply();

        require(numberOfTokens > 0, "At least one lion must be reserved");
        require(
            numberOfTokens <= reserve,
            "There's not enough lions left in reserve"
        );
        require(
            numberOfTokens <= reserveLimit,
            "Only maximum 30 lions can be reserved at once"
        );

        for (uint256 i = 0; i < numberOfTokens; i++) {
            _safeMint(to, supply + i);
        }

        reserve = reserve.sub(numberOfTokens);
    }

    function withdraw() public onlyOwner {
        address payable to = payable(msg.sender);
        uint256 balance = address(this).balance;

        to.transfer(balance);
    }

    function setProvenanceHash(string memory provenance) public onlyOwner {
        provenanceHash = provenance;
    }

    function tokensOfOwner(address _owner)
        external
        view
        returns (uint256[] memory)
    {
        uint256 tokenCount = balanceOf(_owner);

        if (tokenCount > 0) {
            uint256[] memory result = new uint256[](tokenCount);
            uint256 index;

            for (index = 0; index < tokenCount; index++) {
                result[index] = tokenOfOwnerByIndex(_owner, index);
            }

            return result;
        }

        return new uint256[](0);
    }

    function _baseURI() internal view override returns (string memory) {
        return baseURI;
    }

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

    function _burn(uint256 tokenId)
        internal
        override(ERC721, ERC721URIStorage)
    {
        super._burn(tokenId);
    }

    function tokenURI(uint256 tokenId)
        public
        view
        override(ERC721, ERC721URIStorage)
        returns (string memory)
    {
        return super.tokenURI(tokenId);
    }

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

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

pragma solidity ^0.8.0;

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

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

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

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

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

        _transfer(from, to, tokenId);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfer(from, to, tokenId);

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

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

        emit Transfer(from, to, tokenId);
    }

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

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

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

File 3 of 15 : ERC721Enumerable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 4 of 15 : ERC721URIStorage.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../ERC721.sol";

/**
 * @dev ERC721 token with storage based token URI management.
 */
abstract contract ERC721URIStorage is ERC721 {
    using Strings for uint256;

    // Optional mapping for token URIs
    mapping(uint256 => string) private _tokenURIs;

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

        string memory _tokenURI = _tokenURIs[tokenId];
        string memory base = _baseURI();

        // If there is no base URI, return the token URI.
        if (bytes(base).length == 0) {
            return _tokenURI;
        }
        // If both are set, concatenate the baseURI and tokenURI (via abi.encodePacked).
        if (bytes(_tokenURI).length > 0) {
            return string(abi.encodePacked(base, _tokenURI));
        }

        return super.tokenURI(tokenId);
    }

    /**
     * @dev Sets `_tokenURI` as the tokenURI of `tokenId`.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function _setTokenURI(uint256 tokenId, string memory _tokenURI) internal virtual {
        require(_exists(tokenId), "ERC721URIStorage: URI set of nonexistent token");
        _tokenURIs[tokenId] = _tokenURI;
    }

    /**
     * @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 override {
        super._burn(tokenId);

        if (bytes(_tokenURIs[tokenId]).length != 0) {
            delete _tokenURIs[tokenId];
        }
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

File 6 of 15 : SafeMath.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 7 of 15 : IERC721.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

File 8 of 15 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

File 10 of 15 : Address.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 11 of 15 : Context.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

File 12 of 15 : Strings.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

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

pragma solidity ^0.8.0;

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

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

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

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

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"AssetMinted","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":[],"name":"flipSaleState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"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":"lionPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxLions","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxPurchase","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"numberOfTokens","type":"uint256"}],"name":"mintLion","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":"provenanceHash","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"reserve","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"numberOfTokens","type":"uint256"}],"name":"reserveLions","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":[],"name":"saleIsActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI_","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"provenance","type":"string"}],"name":"setProvenanceHash","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":[{"internalType":"address","name":"_owner","type":"address"}],"name":"tokensOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"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"}]

608060405261015e600c556000600d60006101000a81548160ff02191690831515021790555060405180602001604052806000815250600e90805190602001906200004c929190620001f4565b50601e600f553480156200005f57600080fd5b506040518060400160405280601481526020017f53706f72747349636f6e204c696f6e20436c75620000000000000000000000008152506040518060400160405280600381526020017f534c4300000000000000000000000000000000000000000000000000000000008152508160009080519060200190620000e4929190620001f4565b508060019080519060200190620000fd929190620001f4565b50505062000120620001146200012660201b60201c565b6200012e60201b60201c565b62000309565b600033905090565b6000600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8280546200020290620002a4565b90600052602060002090601f01602090048101928262000226576000855562000272565b82601f106200024157805160ff191683800117855562000272565b8280016001018555821562000272579182015b828111156200027157825182559160200191906001019062000254565b5b50905062000281919062000285565b5090565b5b80821115620002a057600081600090555060010162000286565b5090565b60006002820490506001821680620002bd57607f821691505b60208210811415620002d457620002d3620002da565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6148e580620003196000396000f3fe6080604052600436106101e35760003560e01c80636352211e11610102578063b88d4fde11610095578063e985e9c511610064578063e985e9c5146106d3578063eb8d244414610710578063f2fde38b1461073b578063feae03c914610764576101e3565b8063b88d4fde14610617578063c6ab67a314610640578063c87b56dd1461066b578063cd3293de146106a8576101e3565b80638da5cb5b116100d15780638da5cb5b1461056d57806395d89b4114610598578063977b055b146105c3578063a22cb465146105ee576101e3565b80636352211e1461049f57806370a08231146104dc578063715018a6146105195780638462151c14610530576101e3565b80632f745c591161017a5780634368dcfc116101495780634368dcfc146103f25780634f6ccce71461041d578063536936ca1461045a57806355f804b314610476576101e3565b80632f745c591461035e57806334918dfd1461039b5780633ccfd60b146103b257806342842e0e146103c9576101e3565b806310969523116101b657806310969523146102b657806318160ddd146102df57806323b872dd1461030a5780632b5ce9e114610333576101e3565b806301ffc9a7146101e857806306fdde0314610225578063081812fc14610250578063095ea7b31461028d575b600080fd5b3480156101f457600080fd5b5061020f600480360381019061020a9190613243565b61078d565b60405161021c91906138b2565b60405180910390f35b34801561023157600080fd5b5061023a61079f565b60405161024791906138cd565b60405180910390f35b34801561025c57600080fd5b50610277600480360381019061027291906132d6565b610831565b6040516102849190613829565b60405180910390f35b34801561029957600080fd5b506102b460048036038101906102af9190613207565b6108b6565b005b3480156102c257600080fd5b506102dd60048036038101906102d89190613295565b6109ce565b005b3480156102eb57600080fd5b506102f4610a64565b6040516103019190613c4f565b60405180910390f35b34801561031657600080fd5b50610331600480360381019061032c9190613101565b610a71565b005b34801561033f57600080fd5b50610348610ad1565b6040516103559190613c4f565b60405180910390f35b34801561036a57600080fd5b5061038560048036038101906103809190613207565b610ad7565b6040516103929190613c4f565b60405180910390f35b3480156103a757600080fd5b506103b0610b7c565b005b3480156103be57600080fd5b506103c7610c24565b005b3480156103d557600080fd5b506103f060048036038101906103eb9190613101565b610cf5565b005b3480156103fe57600080fd5b50610407610d15565b6040516104149190613c4f565b60405180910390f35b34801561042957600080fd5b50610444600480360381019061043f91906132d6565b610d20565b6040516104519190613c4f565b60405180910390f35b610474600480360381019061046f91906132d6565b610db7565b005b34801561048257600080fd5b5061049d60048036038101906104989190613295565b610fcf565b005b3480156104ab57600080fd5b506104c660048036038101906104c191906132d6565b611065565b6040516104d39190613829565b60405180910390f35b3480156104e857600080fd5b5061050360048036038101906104fe919061309c565b611117565b6040516105109190613c4f565b60405180910390f35b34801561052557600080fd5b5061052e6111cf565b005b34801561053c57600080fd5b506105576004803603810190610552919061309c565b611257565b6040516105649190613890565b60405180910390f35b34801561057957600080fd5b506105826113d3565b60405161058f9190613829565b60405180910390f35b3480156105a457600080fd5b506105ad6113fd565b6040516105ba91906138cd565b60405180910390f35b3480156105cf57600080fd5b506105d861148f565b6040516105e59190613c4f565b60405180910390f35b3480156105fa57600080fd5b50610615600480360381019061061091906131cb565b611494565b005b34801561062357600080fd5b5061063e60048036038101906106399190613150565b611615565b005b34801561064c57600080fd5b50610655611677565b60405161066291906138cd565b60405180910390f35b34801561067757600080fd5b50610692600480360381019061068d91906132d6565b611705565b60405161069f91906138cd565b60405180910390f35b3480156106b457600080fd5b506106bd611717565b6040516106ca9190613c4f565b60405180910390f35b3480156106df57600080fd5b506106fa60048036038101906106f591906130c5565b61171d565b60405161070791906138b2565b60405180910390f35b34801561071c57600080fd5b506107256117b1565b60405161073291906138b2565b60405180910390f35b34801561074757600080fd5b50610762600480360381019061075d919061309c565b6117c4565b005b34801561077057600080fd5b5061078b60048036038101906107869190613207565b6118bc565b005b600061079882611a65565b9050919050565b6060600080546107ae90613f38565b80601f01602080910402602001604051908101604052809291908181526020018280546107da90613f38565b80156108275780601f106107fc57610100808354040283529160200191610827565b820191906000526020600020905b81548152906001019060200180831161080a57829003601f168201915b5050505050905090565b600061083c82611adf565b61087b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161087290613b0f565b60405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b60006108c182611065565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610932576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161092990613baf565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610951611b4b565b73ffffffffffffffffffffffffffffffffffffffff161480610980575061097f8161097a611b4b565b61171d565b5b6109bf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109b690613a2f565b60405180910390fd5b6109c98383611b53565b505050565b6109d6611b4b565b73ffffffffffffffffffffffffffffffffffffffff166109f46113d3565b73ffffffffffffffffffffffffffffffffffffffff1614610a4a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a4190613b2f565b60405180910390fd5b80600e9080519060200190610a60929190612ec0565b5050565b6000600880549050905090565b610a82610a7c611b4b565b82611c0c565b610ac1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ab890613bef565b60405180910390fd5b610acc838383611cea565b505050565b61232881565b6000610ae283611117565b8210610b23576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b1a9061390f565b60405180910390fd5b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b610b84611b4b565b73ffffffffffffffffffffffffffffffffffffffff16610ba26113d3565b73ffffffffffffffffffffffffffffffffffffffff1614610bf8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bef90613b2f565b60405180910390fd5b600d60009054906101000a900460ff1615600d60006101000a81548160ff021916908315150217905550565b610c2c611b4b565b73ffffffffffffffffffffffffffffffffffffffff16610c4a6113d3565b73ffffffffffffffffffffffffffffffffffffffff1614610ca0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c9790613b2f565b60405180910390fd5b600033905060004790508173ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050158015610cf0573d6000803e3d6000fd5b505050565b610d1083838360405180602001604052806000815250611615565b505050565b668e1bc9bf04000081565b6000610d2a610a64565b8210610d6b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d6290613c0f565b60405180910390fd5b60088281548110610da5577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002001549050919050565b600d60009054906101000a900460ff16610e06576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dfd90613bcf565b60405180910390fd5b60008111610e49576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e4090613aaf565b60405180910390fd5b6014811115610e8d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e84906139af565b60405180910390fd5b612328610eaa82610e9c610a64565b611f4690919063ffffffff16565b1115610eeb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ee29061398f565b60405180910390fd5b610f0581668e1bc9bf040000611f5c90919063ffffffff16565b341015610f47576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f3e90613c2f565b60405180910390fd5b60005b81811015610fcb576000610f5c610a64565b9050612328811015610fb757610f723382611f72565b803373ffffffffffffffffffffffffffffffffffffffff167f8d1457c1d60a6987eabbac898a50d8d7c81ba604c563663d2807027a4b07905460405160405180910390a35b508080610fc390613f9b565b915050610f4a565b5050565b610fd7611b4b565b73ffffffffffffffffffffffffffffffffffffffff16610ff56113d3565b73ffffffffffffffffffffffffffffffffffffffff161461104b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161104290613b2f565b60405180910390fd5b8060109080519060200190611061929190612ec0565b5050565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561110e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161110590613a8f565b60405180910390fd5b80915050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611188576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161117f90613a6f565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6111d7611b4b565b73ffffffffffffffffffffffffffffffffffffffff166111f56113d3565b73ffffffffffffffffffffffffffffffffffffffff161461124b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161124290613b2f565b60405180910390fd5b6112556000611f90565b565b6060600061126483611117565b9050600081111561135a5760008167ffffffffffffffff8111156112b1577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280602002602001820160405280156112df5781602001602082028036833780820191505090505b50905060005b8281101561134f576112f78582610ad7565b828281518110611330577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001018181525050808061134790613f9b565b9150506112e5565b8193505050506113ce565b600067ffffffffffffffff81111561139b577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280602002602001820160405280156113c95781602001602082028036833780820191505090505b509150505b919050565b6000600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60606001805461140c90613f38565b80601f016020809104026020016040519081016040528092919081815260200182805461143890613f38565b80156114855780601f1061145a57610100808354040283529160200191611485565b820191906000526020600020905b81548152906001019060200180831161146857829003601f168201915b5050505050905090565b601481565b61149c611b4b565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561150a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611501906139ef565b60405180910390fd5b8060056000611517611b4b565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff166115c4611b4b565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161160991906138b2565b60405180910390a35050565b611626611620611b4b565b83611c0c565b611665576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161165c90613bef565b60405180910390fd5b61167184848484612056565b50505050565b600e805461168490613f38565b80601f01602080910402602001604051908101604052809291908181526020018280546116b090613f38565b80156116fd5780601f106116d2576101008083540402835291602001916116fd565b820191906000526020600020905b8154815290600101906020018083116116e057829003601f168201915b505050505081565b6060611710826120b2565b9050919050565b600c5481565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600d60009054906101000a900460ff1681565b6117cc611b4b565b73ffffffffffffffffffffffffffffffffffffffff166117ea6113d3565b73ffffffffffffffffffffffffffffffffffffffff1614611840576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161183790613b2f565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156118b0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118a79061394f565b60405180910390fd5b6118b981611f90565b50565b6118c4611b4b565b73ffffffffffffffffffffffffffffffffffffffff166118e26113d3565b73ffffffffffffffffffffffffffffffffffffffff1614611938576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161192f90613b2f565b60405180910390fd5b6000611942610a64565b905060008211611987576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161197e906138ef565b60405180910390fd5b600c548211156119cc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119c390613b8f565b60405180910390fd5b600f54821115611a11576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a0890613a4f565b60405180910390fd5b60005b82811015611a4457611a31848284611a2c9190613d6d565b611f72565b8080611a3c90613f9b565b915050611a14565b50611a5a82600c5461220490919063ffffffff16565b600c81905550505050565b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611ad85750611ad78261221a565b5b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16611bc683611065565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000611c1782611adf565b611c56576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c4d90613a0f565b60405180910390fd5b6000611c6183611065565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480611cd057508373ffffffffffffffffffffffffffffffffffffffff16611cb884610831565b73ffffffffffffffffffffffffffffffffffffffff16145b80611ce15750611ce0818561171d565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff16611d0a82611065565b73ffffffffffffffffffffffffffffffffffffffff1614611d60576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d5790613b4f565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611dd0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611dc7906139cf565b60405180910390fd5b611ddb8383836122fc565b611de6600082611b53565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611e369190613e4e565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611e8d9190613d6d565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b60008183611f549190613d6d565b905092915050565b60008183611f6a9190613df4565b905092915050565b611f8c82826040518060200160405280600081525061230c565b5050565b6000600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b612061848484611cea565b61206d84848484612367565b6120ac576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120a39061392f565b60405180910390fd5b50505050565b60606120bd82611adf565b6120fc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120f390613aef565b60405180910390fd5b6000600a6000848152602001908152602001600020805461211c90613f38565b80601f016020809104026020016040519081016040528092919081815260200182805461214890613f38565b80156121955780601f1061216a57610100808354040283529160200191612195565b820191906000526020600020905b81548152906001019060200180831161217857829003601f168201915b5050505050905060006121a66124fe565b90506000815114156121bc5781925050506121ff565b6000825111156121f15780826040516020016121d9929190613805565b604051602081830303815290604052925050506121ff565b6121fa84612590565b925050505b919050565b600081836122129190613e4e565b905092915050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806122e557507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806122f557506122f482612637565b5b9050919050565b6123078383836126a1565b505050565b61231683836127b5565b6123236000848484612367565b612362576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123599061392f565b60405180910390fd5b505050565b60006123888473ffffffffffffffffffffffffffffffffffffffff16612983565b156124f1578373ffffffffffffffffffffffffffffffffffffffff1663150b7a026123b1611b4b565b8786866040518563ffffffff1660e01b81526004016123d39493929190613844565b602060405180830381600087803b1580156123ed57600080fd5b505af192505050801561241e57506040513d601f19601f8201168201806040525081019061241b919061326c565b60015b6124a1573d806000811461244e576040519150601f19603f3d011682016040523d82523d6000602084013e612453565b606091505b50600081511415612499576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124909061392f565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149150506124f6565b600190505b949350505050565b60606010805461250d90613f38565b80601f016020809104026020016040519081016040528092919081815260200182805461253990613f38565b80156125865780601f1061255b57610100808354040283529160200191612586565b820191906000526020600020905b81548152906001019060200180831161256957829003601f168201915b5050505050905090565b606061259b82611adf565b6125da576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125d190613b6f565b60405180910390fd5b60006125e46124fe565b90506000815111612604576040518060200160405280600081525061262f565b8061260e84612996565b60405160200161261f929190613805565b6040516020818303038152906040525b915050919050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6126ac838383612b43565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156126ef576126ea81612b48565b61272e565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161461272d5761272c8382612b91565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156127715761276c81612cfe565b6127b0565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16146127af576127ae8282612e41565b5b5b505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612825576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161281c90613acf565b60405180910390fd5b61282e81611adf565b1561286e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128659061396f565b60405180910390fd5b61287a600083836122fc565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546128ca9190613d6d565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b600080823b905060008111915050919050565b606060008214156129de576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050612b3e565b600082905060005b60008214612a105780806129f990613f9b565b915050600a82612a099190613dc3565b91506129e6565b60008167ffffffffffffffff811115612a52577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612a845781602001600182028036833780820191505090505b5090505b60008514612b3757600182612a9d9190613e4e565b9150600a85612aac9190613fe4565b6030612ab89190613d6d565b60f81b818381518110612af4577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85612b309190613dc3565b9450612a88565b8093505050505b919050565b505050565b6008805490506009600083815260200190815260200160002081905550600881908060018154018082558091505060019003906000526020600020016000909190919091505550565b60006001612b9e84611117565b612ba89190613e4e565b9050600060076000848152602001908152602001600020549050818114612c8d576000600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816007600083815260200190815260200160002081905550505b6007600084815260200190815260200160002060009055600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b60006001600880549050612d129190613e4e565b9050600060096000848152602001908152602001600020549050600060088381548110612d68577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b906000526020600020015490508060088381548110612db0577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b906000526020600020018190555081600960008381526020019081526020016000208190555060096000858152602001908152602001600020600090556008805480612e25577f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b6000612e4c83611117565b905081600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806007600084815260200190815260200160002081905550505050565b828054612ecc90613f38565b90600052602060002090601f016020900481019282612eee5760008555612f35565b82601f10612f0757805160ff1916838001178555612f35565b82800160010185558215612f35579182015b82811115612f34578251825591602001919060010190612f19565b5b509050612f429190612f46565b5090565b5b80821115612f5f576000816000905550600101612f47565b5090565b6000612f76612f7184613c8f565b613c6a565b905082815260208101848484011115612f8e57600080fd5b612f99848285613ef6565b509392505050565b6000612fb4612faf84613cc0565b613c6a565b905082815260208101848484011115612fcc57600080fd5b612fd7848285613ef6565b509392505050565b600081359050612fee81614853565b92915050565b6000813590506130038161486a565b92915050565b60008135905061301881614881565b92915050565b60008151905061302d81614881565b92915050565b600082601f83011261304457600080fd5b8135613054848260208601612f63565b91505092915050565b600082601f83011261306e57600080fd5b813561307e848260208601612fa1565b91505092915050565b60008135905061309681614898565b92915050565b6000602082840312156130ae57600080fd5b60006130bc84828501612fdf565b91505092915050565b600080604083850312156130d857600080fd5b60006130e685828601612fdf565b92505060206130f785828601612fdf565b9150509250929050565b60008060006060848603121561311657600080fd5b600061312486828701612fdf565b935050602061313586828701612fdf565b925050604061314686828701613087565b9150509250925092565b6000806000806080858703121561316657600080fd5b600061317487828801612fdf565b945050602061318587828801612fdf565b935050604061319687828801613087565b925050606085013567ffffffffffffffff8111156131b357600080fd5b6131bf87828801613033565b91505092959194509250565b600080604083850312156131de57600080fd5b60006131ec85828601612fdf565b92505060206131fd85828601612ff4565b9150509250929050565b6000806040838503121561321a57600080fd5b600061322885828601612fdf565b925050602061323985828601613087565b9150509250929050565b60006020828403121561325557600080fd5b600061326384828501613009565b91505092915050565b60006020828403121561327e57600080fd5b600061328c8482850161301e565b91505092915050565b6000602082840312156132a757600080fd5b600082013567ffffffffffffffff8111156132c157600080fd5b6132cd8482850161305d565b91505092915050565b6000602082840312156132e857600080fd5b60006132f684828501613087565b91505092915050565b600061330b83836137e7565b60208301905092915050565b61332081613e82565b82525050565b600061333182613d01565b61333b8185613d2f565b935061334683613cf1565b8060005b8381101561337757815161335e88826132ff565b975061336983613d22565b92505060018101905061334a565b5085935050505092915050565b61338d81613e94565b82525050565b600061339e82613d0c565b6133a88185613d40565b93506133b8818560208601613f05565b6133c1816140d1565b840191505092915050565b60006133d782613d17565b6133e18185613d51565b93506133f1818560208601613f05565b6133fa816140d1565b840191505092915050565b600061341082613d17565b61341a8185613d62565b935061342a818560208601613f05565b80840191505092915050565b6000613443602283613d51565b915061344e826140e2565b604082019050919050565b6000613466602b83613d51565b915061347182614131565b604082019050919050565b6000613489603283613d51565b915061349482614180565b604082019050919050565b60006134ac602683613d51565b91506134b7826141cf565b604082019050919050565b60006134cf601c83613d51565b91506134da8261421e565b602082019050919050565b60006134f2602d83613d51565b91506134fd82614247565b604082019050919050565b6000613515602683613d51565b915061352082614296565b604082019050919050565b6000613538602483613d51565b9150613543826142e5565b604082019050919050565b600061355b601983613d51565b915061356682614334565b602082019050919050565b600061357e602c83613d51565b91506135898261435d565b604082019050919050565b60006135a1603883613d51565b91506135ac826143ac565b604082019050919050565b60006135c4602d83613d51565b91506135cf826143fb565b604082019050919050565b60006135e7602a83613d51565b91506135f28261444a565b604082019050919050565b600061360a602983613d51565b915061361582614499565b604082019050919050565b600061362d602083613d51565b9150613638826144e8565b602082019050919050565b6000613650602083613d51565b915061365b82614511565b602082019050919050565b6000613673603183613d51565b915061367e8261453a565b604082019050919050565b6000613696602c83613d51565b91506136a182614589565b604082019050919050565b60006136b9602083613d51565b91506136c4826145d8565b602082019050919050565b60006136dc602983613d51565b91506136e782614601565b604082019050919050565b60006136ff602f83613d51565b915061370a82614650565b604082019050919050565b6000613722602883613d51565b915061372d8261469f565b604082019050919050565b6000613745602183613d51565b9150613750826146ee565b604082019050919050565b6000613768602183613d51565b91506137738261473d565b604082019050919050565b600061378b603183613d51565b91506137968261478c565b604082019050919050565b60006137ae602c83613d51565b91506137b9826147db565b604082019050919050565b60006137d1601d83613d51565b91506137dc8261482a565b602082019050919050565b6137f081613eec565b82525050565b6137ff81613eec565b82525050565b60006138118285613405565b915061381d8284613405565b91508190509392505050565b600060208201905061383e6000830184613317565b92915050565b60006080820190506138596000830187613317565b6138666020830186613317565b61387360408301856137f6565b81810360608301526138858184613393565b905095945050505050565b600060208201905081810360008301526138aa8184613326565b905092915050565b60006020820190506138c76000830184613384565b92915050565b600060208201905081810360008301526138e781846133cc565b905092915050565b6000602082019050818103600083015261390881613436565b9050919050565b6000602082019050818103600083015261392881613459565b9050919050565b600060208201905081810360008301526139488161347c565b9050919050565b600060208201905081810360008301526139688161349f565b9050919050565b60006020820190508181036000830152613988816134c2565b9050919050565b600060208201905081810360008301526139a8816134e5565b9050919050565b600060208201905081810360008301526139c881613508565b9050919050565b600060208201905081810360008301526139e88161352b565b9050919050565b60006020820190508181036000830152613a088161354e565b9050919050565b60006020820190508181036000830152613a2881613571565b9050919050565b60006020820190508181036000830152613a4881613594565b9050919050565b60006020820190508181036000830152613a68816135b7565b9050919050565b60006020820190508181036000830152613a88816135da565b9050919050565b60006020820190508181036000830152613aa8816135fd565b9050919050565b60006020820190508181036000830152613ac881613620565b9050919050565b60006020820190508181036000830152613ae881613643565b9050919050565b60006020820190508181036000830152613b0881613666565b9050919050565b60006020820190508181036000830152613b2881613689565b9050919050565b60006020820190508181036000830152613b48816136ac565b9050919050565b60006020820190508181036000830152613b68816136cf565b9050919050565b60006020820190508181036000830152613b88816136f2565b9050919050565b60006020820190508181036000830152613ba881613715565b9050919050565b60006020820190508181036000830152613bc881613738565b9050919050565b60006020820190508181036000830152613be88161375b565b9050919050565b60006020820190508181036000830152613c088161377e565b9050919050565b60006020820190508181036000830152613c28816137a1565b9050919050565b60006020820190508181036000830152613c48816137c4565b9050919050565b6000602082019050613c6460008301846137f6565b92915050565b6000613c74613c85565b9050613c808282613f6a565b919050565b6000604051905090565b600067ffffffffffffffff821115613caa57613ca96140a2565b5b613cb3826140d1565b9050602081019050919050565b600067ffffffffffffffff821115613cdb57613cda6140a2565b5b613ce4826140d1565b9050602081019050919050565b6000819050602082019050919050565b600081519050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b6000613d7882613eec565b9150613d8383613eec565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115613db857613db7614015565b5b828201905092915050565b6000613dce82613eec565b9150613dd983613eec565b925082613de957613de8614044565b5b828204905092915050565b6000613dff82613eec565b9150613e0a83613eec565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615613e4357613e42614015565b5b828202905092915050565b6000613e5982613eec565b9150613e6483613eec565b925082821015613e7757613e76614015565b5b828203905092915050565b6000613e8d82613ecc565b9050919050565b60008115159050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b82818337600083830152505050565b60005b83811015613f23578082015181840152602081019050613f08565b83811115613f32576000848401525b50505050565b60006002820490506001821680613f5057607f821691505b60208210811415613f6457613f63614073565b5b50919050565b613f73826140d1565b810181811067ffffffffffffffff82111715613f9257613f916140a2565b5b80604052505050565b6000613fa682613eec565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415613fd957613fd8614015565b5b600182019050919050565b6000613fef82613eec565b9150613ffa83613eec565b92508261400a57614009614044565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b7f4174206c65617374206f6e65206c696f6e206d7573742062652072657365727660008201527f6564000000000000000000000000000000000000000000000000000000000000602082015250565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008201527f74206f6620626f756e6473000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b7f507572636861736520776f756c642065786365656420746865206d617820737560008201527f70706c79206f66206c696f6e7300000000000000000000000000000000000000602082015250565b7f4d6178696d756d203230206c696f6e732063616e206265206d696e746564206160008201527f74206f6e63650000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b7f4f6e6c79206d6178696d756d203330206c696f6e732063616e2062652072657360008201527f6572766564206174206f6e636500000000000000000000000000000000000000602082015250565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b7f4174206c65617374206f6e65206c696f6e206d757374206265206d696e746564600082015250565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b7f45524337323155524953746f726167653a2055524920717565727920666f722060008201527f6e6f6e6578697374656e7420746f6b656e000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960008201527f73206e6f74206f776e0000000000000000000000000000000000000000000000602082015250565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b7f54686572652773206e6f7420656e6f756768206c696f6e73206c65667420696e60008201527f2072657365727665000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b7f53616c65206d7573742062652061637469766520746f206d696e74206c696f6e60008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008201527f7574206f6620626f756e64730000000000000000000000000000000000000000602082015250565b7f4554482076616c75652073656e74206973206e6f7420636f7272656374000000600082015250565b61485c81613e82565b811461486757600080fd5b50565b61487381613e94565b811461487e57600080fd5b50565b61488a81613ea0565b811461489557600080fd5b50565b6148a181613eec565b81146148ac57600080fd5b5056fea2646970667358221220ea42c5f57e2575c36f19fd7c4a97e8978760c3d34e4ebf55857d913b3f90eb6a64736f6c63430008040033

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.