ETH Price: $3,123.80 (+1.91%)

Contract

0x963B9E20321CaB408F3b35520f0Fe3F54148F508
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

1 address found via
Transaction Hash
Method
Block
From
To
Set Approval For...211543052024-11-10 2:33:356 days ago1731206015IN
0x963B9E20...54148F508
0 ETH0.000434279.42377989
Set Approval For...208484672024-09-28 10:14:3548 days ago1727518475IN
0x963B9E20...54148F508
0 ETH0.000325667.0632994
Set Approval For...189068312023-12-31 17:05:35320 days ago1704042335IN
0x963B9E20...54148F508
0 ETH0.0007796116.88693205
Set Approval For...188770092023-12-27 12:30:35324 days ago1703680235IN
0x963B9E20...54148F508
0 ETH0.0012118826.25008127
Set Approval For...188041302023-12-17 7:00:59334 days ago1702796459IN
0x963B9E20...54148F508
0 ETH0.0007858932.40146035
Set Approval For...184484782023-10-28 11:44:23384 days ago1698493463IN
0x963B9E20...54148F508
0 ETH0.0006568614.25388479
Set Approval For...182495842023-09-30 16:02:23412 days ago1696089743IN
0x963B9E20...54148F508
0 ETH0.000883119.16340481
Set Approval For...182402222023-09-29 8:36:11413 days ago1695976571IN
0x963B9E20...54148F508
0 ETH0.000216338.95002727
Set Approval For...182017402023-09-23 23:17:47419 days ago1695511067IN
0x963B9E20...54148F508
0 ETH0.000323647.02303655
Set Approval For...181628292023-09-18 12:29:11424 days ago1695040151IN
0x963B9E20...54148F508
0 ETH0.0005415111.75080179
Set Approval For...180960912023-09-09 3:14:47434 days ago1694229287IN
0x963B9E20...54148F508
0 ETH0.000444389.64318521
Transfer From179799962023-08-23 21:08:35450 days ago1692824915IN
0x963B9E20...54148F508
0 ETH0.0014800136.49493642
Transfer From179799742023-08-23 21:04:11450 days ago1692824651IN
0x963B9E20...54148F508
0 ETH0.0017355230.09620365
Set Approval For...177815052023-07-27 2:43:35478 days ago1690425815IN
0x963B9E20...54148F508
0 ETH0.0010159122.04530971
Set Approval For...176024022023-07-01 23:16:11503 days ago1688253371IN
0x963B9E20...54148F508
0 ETH0.0006320313.71523105
Set Approval For...175899492023-06-30 5:14:11505 days ago1688102051IN
0x963B9E20...54148F508
0 ETH0.0010162222.05201963
Transfer From174631712023-06-12 9:45:11522 days ago1686563111IN
0x963B9E20...54148F508
0 ETH0.000810514.05515511
Set Approval For...174445512023-06-09 18:49:59525 days ago1686336599IN
0x963B9E20...54148F508
0 ETH0.0008741318.96877366
Set Approval For...173329742023-05-25 1:43:59541 days ago1684979039IN
0x963B9E20...54148F508
0 ETH0.0012502127.12962847
Set Approval For...172488792023-05-13 5:05:47553 days ago1683954347IN
0x963B9E20...54148F508
0 ETH0.001937842.0502737
Set Approval For...170957302023-04-21 15:44:47574 days ago1682091887IN
0x963B9E20...54148F508
0 ETH0.0022746449.35980847
Transfer From170701452023-04-18 0:50:35578 days ago1681779035IN
0x963B9E20...54148F508
0 ETH0.0019861734.44269263
Set Approval For...170228712023-04-11 5:45:11585 days ago1681191911IN
0x963B9E20...54148F508
0 ETH0.0004818419.93473174
Set Approval For...169632932023-04-02 18:51:47593 days ago1680461507IN
0x963B9E20...54148F508
0 ETH0.0009907621.49959791
Set Approval For...169247062023-03-28 8:39:59598 days ago1679992799IN
0x963B9E20...54148F508
0 ETH0.0011351624.63310097
View all transactions

Latest 2 internal transactions

Advanced mode:
Parent Transaction Hash Block From To
137072482021-11-29 7:20:291082 days ago1638170429
0x963B9E20...54148F508
142.64 ETH
136791102021-11-24 19:41:351087 days ago1637782895
0x963B9E20...54148F508
0.08 ETH
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
RareShoe

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
Yes with 200 runs

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

import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/contracts/utils/cryptography/draft-EIP712.sol";

contract RareShoe is ERC721, EIP712, Ownable {
    using Counters for Counters.Counter;

    Counters.Counter private _tokenIdCounter;
    string _baseUri;
    address _signerAddress;
    
    uint public constant MAX_SUPPLY = 4444;
    uint public price = 0.08 ether;
    bool public isSalesActive = false;
    bool public isPreSalesActive = false;
    mapping(address => uint) public _addressToMintedFreeTokens;
    
    modifier validSignature(uint freeMints, bytes calldata signature) {
        require(_signerAddress == recoverAddress(msg.sender, freeMints, signature), "user cannot mint");
        _;
    }

    constructor() ERC721("Rare Shoe", "RSHOE") EIP712("RSHOE", "1.0.0") {
        _signerAddress = 0x3115fEF0931aF890bd4E600fd5f19591430663c1;
    }

    function _baseURI() internal view override returns (string memory) {
        return _baseUri;
    }
    
    function mint(uint quantity) external payable {
        require(isSalesActive, "sale is not active");
        require(totalSupply() + quantity <= MAX_SUPPLY, "not enought supply remaining");
        require(msg.value >= price * quantity, "ether sent is under price");
        
        for (uint i = 0; i < quantity; i++) {
            safeMint(msg.sender);
        }
    }
    
    function freeMint(uint quantity, uint freeMints, bytes calldata signature) external validSignature(freeMints, signature) {
        require(isSalesActive, "sale is not active");
        require(totalSupply() + quantity <= MAX_SUPPLY, "not enought supply remaining");
        require(_addressToMintedFreeTokens[msg.sender] + quantity <= freeMints, "account allowance exceeded");
        
        _addressToMintedFreeTokens[msg.sender] += quantity;
        for (uint i = 0; i < quantity; i++) {
            safeMint(msg.sender);
        }
    }
    
    function mintPreSale(uint quantity, uint freeMints, bytes calldata signature) external payable validSignature(freeMints, signature) {
        require(isPreSalesActive, "pre sale is not active");
        require(totalSupply() + quantity <= MAX_SUPPLY, "not enought supply remaining");
        require(msg.value >= price * quantity, "ether sent is under price");
        
        for (uint i = 0; i < quantity; i++) {
            safeMint(msg.sender);
        }
    }

    function safeMint(address to) internal {
        uint256 tokenId = _tokenIdCounter.current();
        _tokenIdCounter.increment();
        _safeMint(to, tokenId);
    }
    
    function _hash(address account, uint freeMints) internal view returns (bytes32) {
        return
            _hashTypedDataV4(
                keccak256(
                    abi.encode(
                        keccak256("NFT(uint256 freeMints,address account)"),
                        freeMints,
                        account
                    )
                )
            );
    }

    function recoverAddress(address account, uint freeMints, bytes calldata signature) public view returns(address) {
        return ECDSA.recover(_hash(account, freeMints), signature);
    }
    
    function totalSupply() public view returns (uint) {
        return _tokenIdCounter.current();
    }
    
    function setBaseURI(string memory newBaseURI) external onlyOwner {
        _baseUri = newBaseURI;
    }
    
    function toggleSales() external onlyOwner {
        isSalesActive = !isSalesActive;
    }
    
    function togglePreSales() external onlyOwner {
        isPreSalesActive = !isPreSalesActive;
    }
    
    function setPrice(uint newPrice) external onlyOwner {
        price = newPrice;
    }
    
    function setSignerAddress(address signerAddress) external onlyOwner {
        _signerAddress = signerAddress;
    }
    
    function withdrawAll() external onlyOwner {
        require(payable(msg.sender).send(address(this).balance));
    }
}

File 2 of 14 : draft-EIP712.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./ECDSA.sol";

/**
 * @dev https://eips.ethereum.org/EIPS/eip-712[EIP 712] is a standard for hashing and signing of typed structured data.
 *
 * The encoding specified in the EIP is very generic, and such a generic implementation in Solidity is not feasible,
 * thus this contract does not implement the encoding itself. Protocols need to implement the type-specific encoding
 * they need in their contracts using a combination of `abi.encode` and `keccak256`.
 *
 * This contract implements the EIP 712 domain separator ({_domainSeparatorV4}) that is used as part of the encoding
 * scheme, and the final step of the encoding to obtain the message digest that is then signed via ECDSA
 * ({_hashTypedDataV4}).
 *
 * The implementation of the domain separator was designed to be as efficient as possible while still properly updating
 * the chain id to protect against replay attacks on an eventual fork of the chain.
 *
 * NOTE: This contract implements the version of the encoding known as "v4", as implemented by the JSON RPC method
 * https://docs.metamask.io/guide/signing-data.html[`eth_signTypedDataV4` in MetaMask].
 *
 * _Available since v3.4._
 */
abstract contract EIP712 {
    /* solhint-disable var-name-mixedcase */
    // Cache the domain separator as an immutable value, but also store the chain id that it corresponds to, in order to
    // invalidate the cached domain separator if the chain id changes.
    bytes32 private immutable _CACHED_DOMAIN_SEPARATOR;
    uint256 private immutable _CACHED_CHAIN_ID;

    bytes32 private immutable _HASHED_NAME;
    bytes32 private immutable _HASHED_VERSION;
    bytes32 private immutable _TYPE_HASH;

    /* solhint-enable var-name-mixedcase */

    /**
     * @dev Initializes the domain separator and parameter caches.
     *
     * The meaning of `name` and `version` is specified in
     * https://eips.ethereum.org/EIPS/eip-712#definition-of-domainseparator[EIP 712]:
     *
     * - `name`: the user readable name of the signing domain, i.e. the name of the DApp or the protocol.
     * - `version`: the current major version of the signing domain.
     *
     * NOTE: These parameters cannot be changed except through a xref:learn::upgrading-smart-contracts.adoc[smart
     * contract upgrade].
     */
    constructor(string memory name, string memory version) {
        bytes32 hashedName = keccak256(bytes(name));
        bytes32 hashedVersion = keccak256(bytes(version));
        bytes32 typeHash = keccak256(
            "EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)"
        );
        _HASHED_NAME = hashedName;
        _HASHED_VERSION = hashedVersion;
        _CACHED_CHAIN_ID = block.chainid;
        _CACHED_DOMAIN_SEPARATOR = _buildDomainSeparator(typeHash, hashedName, hashedVersion);
        _TYPE_HASH = typeHash;
    }

    /**
     * @dev Returns the domain separator for the current chain.
     */
    function _domainSeparatorV4() internal view returns (bytes32) {
        if (block.chainid == _CACHED_CHAIN_ID) {
            return _CACHED_DOMAIN_SEPARATOR;
        } else {
            return _buildDomainSeparator(_TYPE_HASH, _HASHED_NAME, _HASHED_VERSION);
        }
    }

    function _buildDomainSeparator(
        bytes32 typeHash,
        bytes32 nameHash,
        bytes32 versionHash
    ) private view returns (bytes32) {
        return keccak256(abi.encode(typeHash, nameHash, versionHash, block.chainid, address(this)));
    }

    /**
     * @dev Given an already https://eips.ethereum.org/EIPS/eip-712#definition-of-hashstruct[hashed struct], this
     * function returns the hash of the fully encoded EIP712 message for this domain.
     *
     * This hash can be used together with {ECDSA-recover} to obtain the signer of a message. For example:
     *
     * ```solidity
     * bytes32 digest = _hashTypedDataV4(keccak256(abi.encode(
     *     keccak256("Mail(address to,string contents)"),
     *     mailTo,
     *     keccak256(bytes(mailContents))
     * )));
     * address signer = ECDSA.recover(digest, signature);
     * ```
     */
    function _hashTypedDataV4(bytes32 structHash) internal view virtual returns (bytes32) {
        return ECDSA.toTypedDataHash(_domainSeparatorV4(), structHash);
    }
}

File 3 of 14 : Counters.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

File 5 of 14 : ERC721.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

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

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

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

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

        _transfer(from, to, tokenId);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfer(from, to, tokenId);

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

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

        emit Transfer(from, to, tokenId);
    }

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

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

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

File 6 of 14 : ECDSA.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.
 *
 * These functions can be used to verify that a message was signed by the holder
 * of the private keys of a given address.
 */
library ECDSA {
    enum RecoverError {
        NoError,
        InvalidSignature,
        InvalidSignatureLength,
        InvalidSignatureS,
        InvalidSignatureV
    }

    function _throwError(RecoverError error) private pure {
        if (error == RecoverError.NoError) {
            return; // no error: do nothing
        } else if (error == RecoverError.InvalidSignature) {
            revert("ECDSA: invalid signature");
        } else if (error == RecoverError.InvalidSignatureLength) {
            revert("ECDSA: invalid signature length");
        } else if (error == RecoverError.InvalidSignatureS) {
            revert("ECDSA: invalid signature 's' value");
        } else if (error == RecoverError.InvalidSignatureV) {
            revert("ECDSA: invalid signature 'v' value");
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature` or error string. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     *
     * Documentation for signature generation:
     * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js]
     * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers]
     *
     * _Available since v4.3._
     */
    function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) {
        // Check the signature length
        // - case 65: r,s,v signature (standard)
        // - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._
        if (signature.length == 65) {
            bytes32 r;
            bytes32 s;
            uint8 v;
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            assembly {
                r := mload(add(signature, 0x20))
                s := mload(add(signature, 0x40))
                v := byte(0, mload(add(signature, 0x60)))
            }
            return tryRecover(hash, v, r, s);
        } else if (signature.length == 64) {
            bytes32 r;
            bytes32 vs;
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            assembly {
                r := mload(add(signature, 0x20))
                vs := mload(add(signature, 0x40))
            }
            return tryRecover(hash, r, vs);
        } else {
            return (address(0), RecoverError.InvalidSignatureLength);
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature`. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     */
    function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, signature);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately.
     *
     * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures]
     *
     * _Available since v4.3._
     */
    function tryRecover(
        bytes32 hash,
        bytes32 r,
        bytes32 vs
    ) internal pure returns (address, RecoverError) {
        bytes32 s;
        uint8 v;
        assembly {
            s := and(vs, 0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff)
            v := add(shr(255, vs), 27)
        }
        return tryRecover(hash, v, r, s);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately.
     *
     * _Available since v4.2._
     */
    function recover(
        bytes32 hash,
        bytes32 r,
        bytes32 vs
    ) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, r, vs);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `v`,
     * `r` and `s` signature fields separately.
     *
     * _Available since v4.3._
     */
    function tryRecover(
        bytes32 hash,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal pure returns (address, RecoverError) {
        // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature
        // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines
        // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most
        // signatures from current libraries generate a unique signature with an s-value in the lower half order.
        //
        // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value
        // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or
        // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept
        // these malleable signatures as well.
        if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) {
            return (address(0), RecoverError.InvalidSignatureS);
        }
        if (v != 27 && v != 28) {
            return (address(0), RecoverError.InvalidSignatureV);
        }

        // If the signature is valid (and not malleable), return the signer address
        address signer = ecrecover(hash, v, r, s);
        if (signer == address(0)) {
            return (address(0), RecoverError.InvalidSignature);
        }

        return (signer, RecoverError.NoError);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `v`,
     * `r` and `s` signature fields separately.
     */
    function recover(
        bytes32 hash,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, v, r, s);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from a `hash`. This
     * produces hash corresponding to the one signed with the
     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
     * JSON-RPC method as part of EIP-191.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) {
        // 32 is the length in bytes of hash,
        // enforced by the type signature above
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash));
    }

    /**
     * @dev Returns an Ethereum Signed Typed Data, created from a
     * `domainSeparator` and a `structHash`. This produces hash corresponding
     * to the one signed with the
     * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`]
     * JSON-RPC method as part of EIP-712.
     *
     * See {recover}.
     */
    function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash));
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

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

pragma solidity ^0.8.0;

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

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

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"_addressToMintedFreeTokens","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"},{"internalType":"uint256","name":"freeMints","type":"uint256"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"freeMint","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":"isPreSalesActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isSalesActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"},{"internalType":"uint256","name":"freeMints","type":"uint256"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"mintPreSale","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"freeMints","type":"uint256"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"recoverAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newBaseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newPrice","type":"uint256"}],"name":"setPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"signerAddress","type":"address"}],"name":"setSignerAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"togglePreSales","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"toggleSales","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawAll","outputs":[],"stateMutability":"nonpayable","type":"function"}]

61012060405267011c37937e080000600a55600b805461ffff191690553480156200002957600080fd5b50604051806040016040528060058152602001645253484f4560d81b815250604051806040016040528060058152602001640312e302e360dc1b81525060405180604001604052806009815260200168526172652053686f6560b81b815250604051806040016040528060058152602001645253484f4560d81b8152508160009080519060200190620000be929190620001e9565b508051620000d4906001906020840190620001e9565b5050825160209384012082519284019290922060c083815260e08290524660a0818152604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f818a0181905281830198909852606081019590955260808086019390935230858301528051808603909201825293909201909252805194019390932090925261010052506200016b3362000197565b600980546001600160a01b031916733115fef0931af890bd4e600fd5f19591430663c1179055620002cc565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b828054620001f7906200028f565b90600052602060002090601f0160209004810192826200021b576000855562000266565b82601f106200023657805160ff191683800117855562000266565b8280016001018555821562000266579182015b828111156200026657825182559160200191906001019062000249565b506200027492915062000278565b5090565b5b8082111562000274576000815560010162000279565b600181811c90821680620002a457607f821691505b60208210811415620002c657634e487b7160e01b600052602260045260246000fd5b50919050565b60805160a05160c05160e0516101005161263f620003116000396000611bce01526000611c1d01526000611bf801526000611b7c01526000611ba5015261263f6000f3fe6080604052600436106101e25760003560e01c806370a0823111610102578063a0712d6811610095578063daa81cdd11610064578063daa81cdd1461054b578063dbd30ae014610565578063e985e9c51461057a578063f2fde38b146105c357600080fd5b8063a0712d68146104d8578063a22cb465146104eb578063b88d4fde1461050b578063c87b56dd1461052b57600080fd5b806390044e28116100d157806390044e281461047a57806391b7f5ed1461048d57806395d89b41146104ad578063a035b1fe146104c257600080fd5b806370a0823114610412578063715018a614610432578063853828b6146104475780638da5cb5b1461045c57600080fd5b806318160ddd1161017a57806342842e0e1161014957806342842e0e1461039257806355f804b3146103b25780636352211e146103d25780637055831a146103f257600080fd5b806318160ddd14610327578063207f32421461033c57806323b872dd1461035c57806332cb6b0c1461037c57600080fd5b8063081812fc116101b6578063081812fc14610275578063095ea7b3146102ad5780630b6283e4146102cd57806313529180146102ec57600080fd5b80621c93d1146101e757806301ffc9a7146101fe578063046dc1661461023357806306fdde0314610253575b600080fd5b3480156101f357600080fd5b506101fc6105e3565b005b34801561020a57600080fd5b5061021e6102193660046121fc565b610633565b60405190151581526020015b60405180910390f35b34801561023f57600080fd5b506101fc61024e366004612036565b610685565b34801561025f57600080fd5b506102686106d1565b60405161022a919061236b565b34801561028157600080fd5b5061029561029036600461227f565b610763565b6040516001600160a01b03909116815260200161022a565b3480156102b957600080fd5b506101fc6102c8366004612178565b6107f8565b3480156102d957600080fd5b50600b5461021e90610100900460ff1681565b3480156102f857600080fd5b50610319610307366004612036565b600c6020526000908152604090205481565b60405190815260200161022a565b34801561033357600080fd5b5061031961090e565b34801561034857600080fd5b506101fc610357366004612298565b61091e565b34801561036857600080fd5b506101fc610377366004612084565b610ab8565b34801561038857600080fd5b5061031961115c81565b34801561039e57600080fd5b506101fc6103ad366004612084565b610ae9565b3480156103be57600080fd5b506101fc6103cd366004612236565b610b04565b3480156103de57600080fd5b506102956103ed36600461227f565b610b45565b3480156103fe57600080fd5b5061029561040d3660046121a2565b610bbc565b34801561041e57600080fd5b5061031961042d366004612036565b610c12565b34801561043e57600080fd5b506101fc610c99565b34801561045357600080fd5b506101fc610ccf565b34801561046857600080fd5b506006546001600160a01b0316610295565b6101fc610488366004612298565b610d1d565b34801561049957600080fd5b506101fc6104a836600461227f565b610e7f565b3480156104b957600080fd5b50610268610eae565b3480156104ce57600080fd5b50610319600a5481565b6101fc6104e636600461227f565b610ebd565b3480156104f757600080fd5b506101fc61050636600461213c565b610fb7565b34801561051757600080fd5b506101fc6105263660046120c0565b61107c565b34801561053757600080fd5b5061026861054636600461227f565b6110b4565b34801561055757600080fd5b50600b5461021e9060ff1681565b34801561057157600080fd5b506101fc61118f565b34801561058657600080fd5b5061021e610595366004612051565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b3480156105cf57600080fd5b506101fc6105de366004612036565b6111cd565b6006546001600160a01b031633146106165760405162461bcd60e51b815260040161060d906123d0565b60405180910390fd5b600b805461ff001981166101009182900460ff1615909102179055565b60006001600160e01b031982166380ac58cd60e01b148061066457506001600160e01b03198216635b5e139f60e01b145b8061067f57506301ffc9a760e01b6001600160e01b03198316145b92915050565b6006546001600160a01b031633146106af5760405162461bcd60e51b815260040161060d906123d0565b600980546001600160a01b0319166001600160a01b0392909216919091179055565b6060600080546106e09061251b565b80601f016020809104026020016040519081016040528092919081815260200182805461070c9061251b565b80156107595780601f1061072e57610100808354040283529160200191610759565b820191906000526020600020905b81548152906001019060200180831161073c57829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b03166107dc5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b606482015260840161060d565b506000908152600460205260409020546001600160a01b031690565b600061080382610b45565b9050806001600160a01b0316836001600160a01b031614156108715760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b606482015260840161060d565b336001600160a01b038216148061088d575061088d8133610595565b6108ff5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606482015260840161060d565b6109098383611268565b505050565b600061091960075490565b905090565b82828261092d33848484610bbc565b6009546001600160a01b0390811691161461097d5760405162461bcd60e51b815260206004820152601060248201526f1d5cd95c8818d85b9b9bdd081b5a5b9d60821b604482015260640161060d565b600b5460ff166109c45760405162461bcd60e51b815260206004820152601260248201527173616c65206973206e6f742061637469766560701b604482015260640161060d565b61115c876109d061090e565b6109da919061248d565b11156109f85760405162461bcd60e51b815260040161060d90612405565b336000908152600c60205260409020548690610a1590899061248d565b1115610a635760405162461bcd60e51b815260206004820152601a60248201527f6163636f756e7420616c6c6f77616e6365206578636565646564000000000000604482015260640161060d565b336000908152600c602052604081208054899290610a8290849061248d565b90915550600090505b87811015610aae57610a9c336112d6565b80610aa681612556565b915050610a8b565b5050505050505050565b610ac233826112fb565b610ade5760405162461bcd60e51b815260040161060d9061243c565b6109098383836113ee565b6109098383836040518060200160405280600081525061107c565b6006546001600160a01b03163314610b2e5760405162461bcd60e51b815260040161060d906123d0565b8051610b41906008906020840190611ec9565b5050565b6000818152600260205260408120546001600160a01b03168061067f5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b606482015260840161060d565b6000610c07610bcb868661158e565b84848080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506115f292505050565b90505b949350505050565b60006001600160a01b038216610c7d5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b606482015260840161060d565b506001600160a01b031660009081526003602052604090205490565b6006546001600160a01b03163314610cc35760405162461bcd60e51b815260040161060d906123d0565b610ccd6000611616565b565b6006546001600160a01b03163314610cf95760405162461bcd60e51b815260040161060d906123d0565b60405133904780156108fc02916000818181858888f19350505050610ccd57600080fd5b828282610d2c33848484610bbc565b6009546001600160a01b03908116911614610d7c5760405162461bcd60e51b815260206004820152601060248201526f1d5cd95c8818d85b9b9bdd081b5a5b9d60821b604482015260640161060d565b600b54610100900460ff16610dcc5760405162461bcd60e51b81526020600482015260166024820152757072652073616c65206973206e6f742061637469766560501b604482015260640161060d565b61115c87610dd861090e565b610de2919061248d565b1115610e005760405162461bcd60e51b815260040161060d90612405565b86600a54610e0e91906124b9565b341015610e595760405162461bcd60e51b815260206004820152601960248201527865746865722073656e7420697320756e64657220707269636560381b604482015260640161060d565b60005b87811015610aae57610e6d336112d6565b80610e7781612556565b915050610e5c565b6006546001600160a01b03163314610ea95760405162461bcd60e51b815260040161060d906123d0565b600a55565b6060600180546106e09061251b565b600b5460ff16610f045760405162461bcd60e51b815260206004820152601260248201527173616c65206973206e6f742061637469766560701b604482015260640161060d565b61115c81610f1061090e565b610f1a919061248d565b1115610f385760405162461bcd60e51b815260040161060d90612405565b80600a54610f4691906124b9565b341015610f915760405162461bcd60e51b815260206004820152601960248201527865746865722073656e7420697320756e64657220707269636560381b604482015260640161060d565b60005b81811015610b4157610fa5336112d6565b80610faf81612556565b915050610f94565b6001600160a01b0382163314156110105760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015260640161060d565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b61108633836112fb565b6110a25760405162461bcd60e51b815260040161060d9061243c565b6110ae84848484611668565b50505050565b6000818152600260205260409020546060906001600160a01b03166111335760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b606482015260840161060d565b600061113d61169b565b9050600081511161115d5760405180602001604052806000815250611188565b80611167846116aa565b6040516020016111789291906122ff565b6040516020818303038152906040525b9392505050565b6006546001600160a01b031633146111b95760405162461bcd60e51b815260040161060d906123d0565b600b805460ff19811660ff90911615179055565b6006546001600160a01b031633146111f75760405162461bcd60e51b815260040161060d906123d0565b6001600160a01b03811661125c5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161060d565b61126581611616565b50565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061129d82610b45565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006112e160075490565b90506112f1600780546001019055565b610b4182826117a8565b6000818152600260205260408120546001600160a01b03166113745760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b606482015260840161060d565b600061137f83610b45565b9050806001600160a01b0316846001600160a01b031614806113ba5750836001600160a01b03166113af84610763565b6001600160a01b0316145b80610c0a57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff16610c0a565b826001600160a01b031661140182610b45565b6001600160a01b0316146114695760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b606482015260840161060d565b6001600160a01b0382166114cb5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b606482015260840161060d565b6114d6600082611268565b6001600160a01b03831660009081526003602052604081208054600192906114ff9084906124d8565b90915550506001600160a01b038216600090815260036020526040812080546001929061152d90849061248d565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b604080517fa9012fe7837d5c61c5dc2312819ce7b543f6d65fe1ff16023a7e3e0599554b7560208201529081018290526001600160a01b038316606082015260009061118890608001604051602081830303815290604052805190602001206117c2565b60008060006116018585611810565b9150915061160e81611880565b509392505050565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6116738484846113ee565b61167f84848484611a3b565b6110ae5760405162461bcd60e51b815260040161060d9061237e565b6060600880546106e09061251b565b6060816116ce5750506040805180820190915260018152600360fc1b602082015290565b8160005b81156116f857806116e281612556565b91506116f19050600a836124a5565b91506116d2565b60008167ffffffffffffffff811115611713576117136125dd565b6040519080825280601f01601f19166020018201604052801561173d576020820181803683370190505b5090505b8415610c0a576117526001836124d8565b915061175f600a86612571565b61176a90603061248d565b60f81b81838151811061177f5761177f6125c7565b60200101906001600160f81b031916908160001a9053506117a1600a866124a5565b9450611741565b610b41828260405180602001604052806000815250611b45565b600061067f6117cf611b78565b8360405161190160f01b6020820152602281018390526042810182905260009060620160405160208183030381529060405280519060200120905092915050565b6000808251604114156118475760208301516040840151606085015160001a61183b87828585611c6b565b94509450505050611879565b8251604014156118715760208301516040840151611866868383611d58565b935093505050611879565b506000905060025b9250929050565b6000816004811115611894576118946125b1565b141561189d5750565b60018160048111156118b1576118b16125b1565b14156118ff5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e61747572650000000000000000604482015260640161060d565b6002816004811115611913576119136125b1565b14156119615760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e67746800604482015260640161060d565b6003816004811115611975576119756125b1565b14156119ce5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b606482015260840161060d565b60048160048111156119e2576119e26125b1565b14156112655760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b606482015260840161060d565b60006001600160a01b0384163b15611b3d57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611a7f90339089908890889060040161232e565b602060405180830381600087803b158015611a9957600080fd5b505af1925050508015611ac9575060408051601f3d908101601f19168201909252611ac691810190612219565b60015b611b23573d808015611af7576040519150601f19603f3d011682016040523d82523d6000602084013e611afc565b606091505b508051611b1b5760405162461bcd60e51b815260040161060d9061237e565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050610c0a565b506001610c0a565b611b4f8383611d87565b611b5c6000848484611a3b565b6109095760405162461bcd60e51b815260040161060d9061237e565b60007f0000000000000000000000000000000000000000000000000000000000000000461415611bc757507f000000000000000000000000000000000000000000000000000000000000000090565b50604080517f00000000000000000000000000000000000000000000000000000000000000006020808301919091527f0000000000000000000000000000000000000000000000000000000000000000828401527f000000000000000000000000000000000000000000000000000000000000000060608301524660808301523060a0808401919091528351808403909101815260c0909201909252805191012090565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115611ca25750600090506003611d4f565b8460ff16601b14158015611cba57508460ff16601c14155b15611ccb5750600090506004611d4f565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015611d1f573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116611d4857600060019250925050611d4f565b9150600090505b94509492505050565b6000806001600160ff1b03831660ff84901c601b01611d7987828885611c6b565b935093505050935093915050565b6001600160a01b038216611ddd5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015260640161060d565b6000818152600260205260409020546001600160a01b031615611e425760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015260640161060d565b6001600160a01b0382166000908152600360205260408120805460019290611e6b90849061248d565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b828054611ed59061251b565b90600052602060002090601f016020900481019282611ef75760008555611f3d565b82601f10611f1057805160ff1916838001178555611f3d565b82800160010185558215611f3d579182015b82811115611f3d578251825591602001919060010190611f22565b50611f49929150611f4d565b5090565b5b80821115611f495760008155600101611f4e565b600067ffffffffffffffff80841115611f7d57611f7d6125dd565b604051601f8501601f19908116603f01168101908282118183101715611fa557611fa56125dd565b81604052809350858152868686011115611fbe57600080fd5b858560208301376000602087830101525050509392505050565b80356001600160a01b0381168114611fef57600080fd5b919050565b60008083601f84011261200657600080fd5b50813567ffffffffffffffff81111561201e57600080fd5b60208301915083602082850101111561187957600080fd5b60006020828403121561204857600080fd5b61118882611fd8565b6000806040838503121561206457600080fd5b61206d83611fd8565b915061207b60208401611fd8565b90509250929050565b60008060006060848603121561209957600080fd5b6120a284611fd8565b92506120b060208501611fd8565b9150604084013590509250925092565b600080600080608085870312156120d657600080fd5b6120df85611fd8565b93506120ed60208601611fd8565b925060408501359150606085013567ffffffffffffffff81111561211057600080fd5b8501601f8101871361212157600080fd5b61213087823560208401611f62565b91505092959194509250565b6000806040838503121561214f57600080fd5b61215883611fd8565b91506020830135801515811461216d57600080fd5b809150509250929050565b6000806040838503121561218b57600080fd5b61219483611fd8565b946020939093013593505050565b600080600080606085870312156121b857600080fd5b6121c185611fd8565b935060208501359250604085013567ffffffffffffffff8111156121e457600080fd5b6121f087828801611ff4565b95989497509550505050565b60006020828403121561220e57600080fd5b8135611188816125f3565b60006020828403121561222b57600080fd5b8151611188816125f3565b60006020828403121561224857600080fd5b813567ffffffffffffffff81111561225f57600080fd5b8201601f8101841361227057600080fd5b610c0a84823560208401611f62565b60006020828403121561229157600080fd5b5035919050565b600080600080606085870312156122ae57600080fd5b8435935060208501359250604085013567ffffffffffffffff8111156121e457600080fd5b600081518084526122eb8160208601602086016124ef565b601f01601f19169290920160200192915050565b600083516123118184602088016124ef565b8351908301906123258183602088016124ef565b01949350505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612361908301846122d3565b9695505050505050565b60208152600061118860208301846122d3565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252601c908201527f6e6f7420656e6f7567687420737570706c792072656d61696e696e6700000000604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b600082198211156124a0576124a0612585565b500190565b6000826124b4576124b461259b565b500490565b60008160001904831182151516156124d3576124d3612585565b500290565b6000828210156124ea576124ea612585565b500390565b60005b8381101561250a5781810151838201526020016124f2565b838111156110ae5750506000910152565b600181811c9082168061252f57607f821691505b6020821081141561255057634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141561256a5761256a612585565b5060010190565b6000826125805761258061259b565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052602160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b03198116811461126557600080fdfea26469706673582212205a9d62a178c7e6790ba1d2898fcaa88f72faf541e5564cb58367064b46a8a07764736f6c63430008070033

Deployed Bytecode

0x6080604052600436106101e25760003560e01c806370a0823111610102578063a0712d6811610095578063daa81cdd11610064578063daa81cdd1461054b578063dbd30ae014610565578063e985e9c51461057a578063f2fde38b146105c357600080fd5b8063a0712d68146104d8578063a22cb465146104eb578063b88d4fde1461050b578063c87b56dd1461052b57600080fd5b806390044e28116100d157806390044e281461047a57806391b7f5ed1461048d57806395d89b41146104ad578063a035b1fe146104c257600080fd5b806370a0823114610412578063715018a614610432578063853828b6146104475780638da5cb5b1461045c57600080fd5b806318160ddd1161017a57806342842e0e1161014957806342842e0e1461039257806355f804b3146103b25780636352211e146103d25780637055831a146103f257600080fd5b806318160ddd14610327578063207f32421461033c57806323b872dd1461035c57806332cb6b0c1461037c57600080fd5b8063081812fc116101b6578063081812fc14610275578063095ea7b3146102ad5780630b6283e4146102cd57806313529180146102ec57600080fd5b80621c93d1146101e757806301ffc9a7146101fe578063046dc1661461023357806306fdde0314610253575b600080fd5b3480156101f357600080fd5b506101fc6105e3565b005b34801561020a57600080fd5b5061021e6102193660046121fc565b610633565b60405190151581526020015b60405180910390f35b34801561023f57600080fd5b506101fc61024e366004612036565b610685565b34801561025f57600080fd5b506102686106d1565b60405161022a919061236b565b34801561028157600080fd5b5061029561029036600461227f565b610763565b6040516001600160a01b03909116815260200161022a565b3480156102b957600080fd5b506101fc6102c8366004612178565b6107f8565b3480156102d957600080fd5b50600b5461021e90610100900460ff1681565b3480156102f857600080fd5b50610319610307366004612036565b600c6020526000908152604090205481565b60405190815260200161022a565b34801561033357600080fd5b5061031961090e565b34801561034857600080fd5b506101fc610357366004612298565b61091e565b34801561036857600080fd5b506101fc610377366004612084565b610ab8565b34801561038857600080fd5b5061031961115c81565b34801561039e57600080fd5b506101fc6103ad366004612084565b610ae9565b3480156103be57600080fd5b506101fc6103cd366004612236565b610b04565b3480156103de57600080fd5b506102956103ed36600461227f565b610b45565b3480156103fe57600080fd5b5061029561040d3660046121a2565b610bbc565b34801561041e57600080fd5b5061031961042d366004612036565b610c12565b34801561043e57600080fd5b506101fc610c99565b34801561045357600080fd5b506101fc610ccf565b34801561046857600080fd5b506006546001600160a01b0316610295565b6101fc610488366004612298565b610d1d565b34801561049957600080fd5b506101fc6104a836600461227f565b610e7f565b3480156104b957600080fd5b50610268610eae565b3480156104ce57600080fd5b50610319600a5481565b6101fc6104e636600461227f565b610ebd565b3480156104f757600080fd5b506101fc61050636600461213c565b610fb7565b34801561051757600080fd5b506101fc6105263660046120c0565b61107c565b34801561053757600080fd5b5061026861054636600461227f565b6110b4565b34801561055757600080fd5b50600b5461021e9060ff1681565b34801561057157600080fd5b506101fc61118f565b34801561058657600080fd5b5061021e610595366004612051565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b3480156105cf57600080fd5b506101fc6105de366004612036565b6111cd565b6006546001600160a01b031633146106165760405162461bcd60e51b815260040161060d906123d0565b60405180910390fd5b600b805461ff001981166101009182900460ff1615909102179055565b60006001600160e01b031982166380ac58cd60e01b148061066457506001600160e01b03198216635b5e139f60e01b145b8061067f57506301ffc9a760e01b6001600160e01b03198316145b92915050565b6006546001600160a01b031633146106af5760405162461bcd60e51b815260040161060d906123d0565b600980546001600160a01b0319166001600160a01b0392909216919091179055565b6060600080546106e09061251b565b80601f016020809104026020016040519081016040528092919081815260200182805461070c9061251b565b80156107595780601f1061072e57610100808354040283529160200191610759565b820191906000526020600020905b81548152906001019060200180831161073c57829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b03166107dc5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b606482015260840161060d565b506000908152600460205260409020546001600160a01b031690565b600061080382610b45565b9050806001600160a01b0316836001600160a01b031614156108715760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b606482015260840161060d565b336001600160a01b038216148061088d575061088d8133610595565b6108ff5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606482015260840161060d565b6109098383611268565b505050565b600061091960075490565b905090565b82828261092d33848484610bbc565b6009546001600160a01b0390811691161461097d5760405162461bcd60e51b815260206004820152601060248201526f1d5cd95c8818d85b9b9bdd081b5a5b9d60821b604482015260640161060d565b600b5460ff166109c45760405162461bcd60e51b815260206004820152601260248201527173616c65206973206e6f742061637469766560701b604482015260640161060d565b61115c876109d061090e565b6109da919061248d565b11156109f85760405162461bcd60e51b815260040161060d90612405565b336000908152600c60205260409020548690610a1590899061248d565b1115610a635760405162461bcd60e51b815260206004820152601a60248201527f6163636f756e7420616c6c6f77616e6365206578636565646564000000000000604482015260640161060d565b336000908152600c602052604081208054899290610a8290849061248d565b90915550600090505b87811015610aae57610a9c336112d6565b80610aa681612556565b915050610a8b565b5050505050505050565b610ac233826112fb565b610ade5760405162461bcd60e51b815260040161060d9061243c565b6109098383836113ee565b6109098383836040518060200160405280600081525061107c565b6006546001600160a01b03163314610b2e5760405162461bcd60e51b815260040161060d906123d0565b8051610b41906008906020840190611ec9565b5050565b6000818152600260205260408120546001600160a01b03168061067f5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b606482015260840161060d565b6000610c07610bcb868661158e565b84848080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506115f292505050565b90505b949350505050565b60006001600160a01b038216610c7d5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b606482015260840161060d565b506001600160a01b031660009081526003602052604090205490565b6006546001600160a01b03163314610cc35760405162461bcd60e51b815260040161060d906123d0565b610ccd6000611616565b565b6006546001600160a01b03163314610cf95760405162461bcd60e51b815260040161060d906123d0565b60405133904780156108fc02916000818181858888f19350505050610ccd57600080fd5b828282610d2c33848484610bbc565b6009546001600160a01b03908116911614610d7c5760405162461bcd60e51b815260206004820152601060248201526f1d5cd95c8818d85b9b9bdd081b5a5b9d60821b604482015260640161060d565b600b54610100900460ff16610dcc5760405162461bcd60e51b81526020600482015260166024820152757072652073616c65206973206e6f742061637469766560501b604482015260640161060d565b61115c87610dd861090e565b610de2919061248d565b1115610e005760405162461bcd60e51b815260040161060d90612405565b86600a54610e0e91906124b9565b341015610e595760405162461bcd60e51b815260206004820152601960248201527865746865722073656e7420697320756e64657220707269636560381b604482015260640161060d565b60005b87811015610aae57610e6d336112d6565b80610e7781612556565b915050610e5c565b6006546001600160a01b03163314610ea95760405162461bcd60e51b815260040161060d906123d0565b600a55565b6060600180546106e09061251b565b600b5460ff16610f045760405162461bcd60e51b815260206004820152601260248201527173616c65206973206e6f742061637469766560701b604482015260640161060d565b61115c81610f1061090e565b610f1a919061248d565b1115610f385760405162461bcd60e51b815260040161060d90612405565b80600a54610f4691906124b9565b341015610f915760405162461bcd60e51b815260206004820152601960248201527865746865722073656e7420697320756e64657220707269636560381b604482015260640161060d565b60005b81811015610b4157610fa5336112d6565b80610faf81612556565b915050610f94565b6001600160a01b0382163314156110105760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015260640161060d565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b61108633836112fb565b6110a25760405162461bcd60e51b815260040161060d9061243c565b6110ae84848484611668565b50505050565b6000818152600260205260409020546060906001600160a01b03166111335760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b606482015260840161060d565b600061113d61169b565b9050600081511161115d5760405180602001604052806000815250611188565b80611167846116aa565b6040516020016111789291906122ff565b6040516020818303038152906040525b9392505050565b6006546001600160a01b031633146111b95760405162461bcd60e51b815260040161060d906123d0565b600b805460ff19811660ff90911615179055565b6006546001600160a01b031633146111f75760405162461bcd60e51b815260040161060d906123d0565b6001600160a01b03811661125c5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161060d565b61126581611616565b50565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061129d82610b45565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006112e160075490565b90506112f1600780546001019055565b610b4182826117a8565b6000818152600260205260408120546001600160a01b03166113745760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b606482015260840161060d565b600061137f83610b45565b9050806001600160a01b0316846001600160a01b031614806113ba5750836001600160a01b03166113af84610763565b6001600160a01b0316145b80610c0a57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff16610c0a565b826001600160a01b031661140182610b45565b6001600160a01b0316146114695760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b606482015260840161060d565b6001600160a01b0382166114cb5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b606482015260840161060d565b6114d6600082611268565b6001600160a01b03831660009081526003602052604081208054600192906114ff9084906124d8565b90915550506001600160a01b038216600090815260036020526040812080546001929061152d90849061248d565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b604080517fa9012fe7837d5c61c5dc2312819ce7b543f6d65fe1ff16023a7e3e0599554b7560208201529081018290526001600160a01b038316606082015260009061118890608001604051602081830303815290604052805190602001206117c2565b60008060006116018585611810565b9150915061160e81611880565b509392505050565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6116738484846113ee565b61167f84848484611a3b565b6110ae5760405162461bcd60e51b815260040161060d9061237e565b6060600880546106e09061251b565b6060816116ce5750506040805180820190915260018152600360fc1b602082015290565b8160005b81156116f857806116e281612556565b91506116f19050600a836124a5565b91506116d2565b60008167ffffffffffffffff811115611713576117136125dd565b6040519080825280601f01601f19166020018201604052801561173d576020820181803683370190505b5090505b8415610c0a576117526001836124d8565b915061175f600a86612571565b61176a90603061248d565b60f81b81838151811061177f5761177f6125c7565b60200101906001600160f81b031916908160001a9053506117a1600a866124a5565b9450611741565b610b41828260405180602001604052806000815250611b45565b600061067f6117cf611b78565b8360405161190160f01b6020820152602281018390526042810182905260009060620160405160208183030381529060405280519060200120905092915050565b6000808251604114156118475760208301516040840151606085015160001a61183b87828585611c6b565b94509450505050611879565b8251604014156118715760208301516040840151611866868383611d58565b935093505050611879565b506000905060025b9250929050565b6000816004811115611894576118946125b1565b141561189d5750565b60018160048111156118b1576118b16125b1565b14156118ff5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e61747572650000000000000000604482015260640161060d565b6002816004811115611913576119136125b1565b14156119615760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e67746800604482015260640161060d565b6003816004811115611975576119756125b1565b14156119ce5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b606482015260840161060d565b60048160048111156119e2576119e26125b1565b14156112655760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b606482015260840161060d565b60006001600160a01b0384163b15611b3d57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611a7f90339089908890889060040161232e565b602060405180830381600087803b158015611a9957600080fd5b505af1925050508015611ac9575060408051601f3d908101601f19168201909252611ac691810190612219565b60015b611b23573d808015611af7576040519150601f19603f3d011682016040523d82523d6000602084013e611afc565b606091505b508051611b1b5760405162461bcd60e51b815260040161060d9061237e565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050610c0a565b506001610c0a565b611b4f8383611d87565b611b5c6000848484611a3b565b6109095760405162461bcd60e51b815260040161060d9061237e565b60007f0000000000000000000000000000000000000000000000000000000000000001461415611bc757507f0787edb0bca75483bf45b3063317b8927dee4b841fe7cd968bfc12b2935f05bd90565b50604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f6020808301919091527f4caa28948447686556fef1480339fbeb94824fce9e8f5bac579c84b5e9a45080828401527f06c015bd22b4c69690933c1058878ebdfef31f9aaae40bbe86d8a09fe1b2972c60608301524660808301523060a0808401919091528351808403909101815260c0909201909252805191012090565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115611ca25750600090506003611d4f565b8460ff16601b14158015611cba57508460ff16601c14155b15611ccb5750600090506004611d4f565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015611d1f573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116611d4857600060019250925050611d4f565b9150600090505b94509492505050565b6000806001600160ff1b03831660ff84901c601b01611d7987828885611c6b565b935093505050935093915050565b6001600160a01b038216611ddd5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015260640161060d565b6000818152600260205260409020546001600160a01b031615611e425760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015260640161060d565b6001600160a01b0382166000908152600360205260408120805460019290611e6b90849061248d565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b828054611ed59061251b565b90600052602060002090601f016020900481019282611ef75760008555611f3d565b82601f10611f1057805160ff1916838001178555611f3d565b82800160010185558215611f3d579182015b82811115611f3d578251825591602001919060010190611f22565b50611f49929150611f4d565b5090565b5b80821115611f495760008155600101611f4e565b600067ffffffffffffffff80841115611f7d57611f7d6125dd565b604051601f8501601f19908116603f01168101908282118183101715611fa557611fa56125dd565b81604052809350858152868686011115611fbe57600080fd5b858560208301376000602087830101525050509392505050565b80356001600160a01b0381168114611fef57600080fd5b919050565b60008083601f84011261200657600080fd5b50813567ffffffffffffffff81111561201e57600080fd5b60208301915083602082850101111561187957600080fd5b60006020828403121561204857600080fd5b61118882611fd8565b6000806040838503121561206457600080fd5b61206d83611fd8565b915061207b60208401611fd8565b90509250929050565b60008060006060848603121561209957600080fd5b6120a284611fd8565b92506120b060208501611fd8565b9150604084013590509250925092565b600080600080608085870312156120d657600080fd5b6120df85611fd8565b93506120ed60208601611fd8565b925060408501359150606085013567ffffffffffffffff81111561211057600080fd5b8501601f8101871361212157600080fd5b61213087823560208401611f62565b91505092959194509250565b6000806040838503121561214f57600080fd5b61215883611fd8565b91506020830135801515811461216d57600080fd5b809150509250929050565b6000806040838503121561218b57600080fd5b61219483611fd8565b946020939093013593505050565b600080600080606085870312156121b857600080fd5b6121c185611fd8565b935060208501359250604085013567ffffffffffffffff8111156121e457600080fd5b6121f087828801611ff4565b95989497509550505050565b60006020828403121561220e57600080fd5b8135611188816125f3565b60006020828403121561222b57600080fd5b8151611188816125f3565b60006020828403121561224857600080fd5b813567ffffffffffffffff81111561225f57600080fd5b8201601f8101841361227057600080fd5b610c0a84823560208401611f62565b60006020828403121561229157600080fd5b5035919050565b600080600080606085870312156122ae57600080fd5b8435935060208501359250604085013567ffffffffffffffff8111156121e457600080fd5b600081518084526122eb8160208601602086016124ef565b601f01601f19169290920160200192915050565b600083516123118184602088016124ef565b8351908301906123258183602088016124ef565b01949350505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612361908301846122d3565b9695505050505050565b60208152600061118860208301846122d3565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252601c908201527f6e6f7420656e6f7567687420737570706c792072656d61696e696e6700000000604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b600082198211156124a0576124a0612585565b500190565b6000826124b4576124b461259b565b500490565b60008160001904831182151516156124d3576124d3612585565b500290565b6000828210156124ea576124ea612585565b500390565b60005b8381101561250a5781810151838201526020016124f2565b838111156110ae5750506000910152565b600181811c9082168061252f57607f821691505b6020821081141561255057634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141561256a5761256a612585565b5060010190565b6000826125805761258061259b565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052602160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b03198116811461126557600080fdfea26469706673582212205a9d62a178c7e6790ba1d2898fcaa88f72faf541e5564cb58367064b46a8a07764736f6c63430008070033

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

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.