ETH Price: $3,395.39 (+1.33%)

Contract

0x1D9317911CF1003B42a965574c29f18a87A2858c
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Set Approval For...183937472023-10-20 19:53:35433 days ago1697831615IN
0x1D931791...a87A2858c
0 ETH0.0008976719.44581332
Transfer From175517992023-06-24 20:38:35551 days ago1687639115IN
0x1D931791...a87A2858c
0 ETH0.0007667113.34955606
Safe Transfer Fr...174756382023-06-14 3:52:11562 days ago1686714731IN
0x1D931791...a87A2858c
0 ETH0.0010353215.91112585
Mint Season Pass...172218872023-05-09 9:04:47598 days ago1683623087IN
0x1D931791...a87A2858c
0.02477 ETH0.004824852.54293701
Mint Season Pass...172218722023-05-09 9:01:47598 days ago1683622907IN
0x1D931791...a87A2858c
0.02477 ETH0.0051366155.93858065
Mint Season Pass...170441232023-04-14 8:02:23623 days ago1681459343IN
0x1D931791...a87A2858c
0.02477 ETH0.0022977530.74908949
Mint Season Pass...170441202023-04-14 8:01:47623 days ago1681459307IN
0x1D931791...a87A2858c
0.02477 ETH0.0025701934.39493966
Safe Transfer Fr...169459152023-03-31 8:11:35637 days ago1680250295IN
0x1D931791...a87A2858c
0 ETH0.0016080824.48703527
Safe Transfer Fr...169458782023-03-31 8:03:59637 days ago1680249839IN
0x1D931791...a87A2858c
0 ETH0.0015467223.5526353
Safe Transfer Fr...168548292023-03-18 13:06:23650 days ago1679144783IN
0x1D931791...a87A2858c
0 ETH0.0009651114.69623432
Safe Transfer Fr...168544752023-03-18 11:55:11650 days ago1679140511IN
0x1D931791...a87A2858c
0 ETH0.0007064914.54560967
Safe Transfer Fr...168544662023-03-18 11:53:23650 days ago1679140403IN
0x1D931791...a87A2858c
0 ETH0.0004231613.91177203
Safe Transfer Fr...168544622023-03-18 11:52:35650 days ago1679140355IN
0x1D931791...a87A2858c
0 ETH0.0010212115.55044326
Mint Season Pass...168480242023-03-17 14:07:59650 days ago1679062079IN
0x1D931791...a87A2858c
0.02477 ETH0.003616138.33629273
Transfer From167732772023-03-07 1:51:11661 days ago1678153871IN
0x1D931791...a87A2858c
0 ETH0.0013122732.54488971
Transfer From167732762023-03-07 1:50:59661 days ago1678153859IN
0x1D931791...a87A2858c
0 ETH0.0020533633.00054766
Safe Transfer Fr...167660382023-03-06 1:25:59662 days ago1678065959IN
0x1D931791...a87A2858c
0 ETH0.0020090733.0054205
Safe Transfer Fr...167563942023-03-04 16:54:59663 days ago1677948899IN
0x1D931791...a87A2858c
0 ETH0.0006831623.59555824
Safe Transfer Fr...167563942023-03-04 16:54:59663 days ago1677948899IN
0x1D931791...a87A2858c
0 ETH0.0006831623.59555824
Safe Transfer Fr...167563942023-03-04 16:54:59663 days ago1677948899IN
0x1D931791...a87A2858c
0 ETH0.0007300324
Safe Transfer Fr...167563922023-03-04 16:54:35663 days ago1677948875IN
0x1D931791...a87A2858c
0 ETH0.0016134326.50583444
Register As Refe...167263512023-02-28 11:26:23668 days ago1677583583IN
0x1D931791...a87A2858c
0 ETH0.0009350818.64345708
Mint Season Pass...167263472023-02-28 11:25:35668 days ago1677583535IN
0x1D931791...a87A2858c
0.02477 ETH0.0017833518.90625677
Mint Season Pass...167220232023-02-27 20:51:11668 days ago1677531071IN
0x1D931791...a87A2858c
0.2477 ETH0.0079160423.87327116
Mint Season Pass...167220182023-02-27 20:50:11668 days ago1677531011IN
0x1D931791...a87A2858c
0.02477 ETH0.0021593123.51533083
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block
From
To
172218872023-05-09 9:04:47598 days ago1683623087
0x1D931791...a87A2858c
0.02477 ETH
172218722023-05-09 9:01:47598 days ago1683622907
0x1D931791...a87A2858c
0.02477 ETH
170441232023-04-14 8:02:23623 days ago1681459343
0x1D931791...a87A2858c
0.02477 ETH
170441202023-04-14 8:01:47623 days ago1681459307
0x1D931791...a87A2858c
0.02477 ETH
168480242023-03-17 14:07:59650 days ago1679062079
0x1D931791...a87A2858c
0.02477 ETH
167263472023-02-28 11:25:35668 days ago1677583535
0x1D931791...a87A2858c
0.02477 ETH
167220232023-02-27 20:51:11668 days ago1677531071
0x1D931791...a87A2858c
0.2477 ETH
167220182023-02-27 20:50:11668 days ago1677531011
0x1D931791...a87A2858c
0.02477 ETH
167060852023-02-25 15:07:47670 days ago1677337667
0x1D931791...a87A2858c
0.02477 ETH
166837942023-02-22 11:49:59674 days ago1677066599
0x1D931791...a87A2858c
0.04954 ETH
166508362023-02-17 20:36:47678 days ago1676666207
0x1D931791...a87A2858c
0.02477 ETH
166508342023-02-17 20:36:23678 days ago1676666183
0x1D931791...a87A2858c
0.02477 ETH
166508332023-02-17 20:36:11678 days ago1676666171
0x1D931791...a87A2858c
0.02477 ETH
166508312023-02-17 20:35:47678 days ago1676666147
0x1D931791...a87A2858c
0.02477 ETH
166508292023-02-17 20:35:23678 days ago1676666123
0x1D931791...a87A2858c
0.02477 ETH
166508272023-02-17 20:34:59678 days ago1676666099
0x1D931791...a87A2858c
0.02477 ETH
166508252023-02-17 20:34:35678 days ago1676666075
0x1D931791...a87A2858c
0.02477 ETH
166508232023-02-17 20:34:11678 days ago1676666051
0x1D931791...a87A2858c
0.02477 ETH
166508212023-02-17 20:33:47678 days ago1676666027
0x1D931791...a87A2858c
0.02477 ETH
166438212023-02-16 20:57:11679 days ago1676581031
0x1D931791...a87A2858c
0.02477 ETH
165701052023-02-06 13:40:35689 days ago1675690835
0x1D931791...a87A2858c
0.02477 ETH
165588422023-02-04 23:56:59691 days ago1675555019
0x1D931791...a87A2858c
0.02477 ETH
165566282023-02-04 16:32:23691 days ago1675528343
0x1D931791...a87A2858c
0.02477 ETH
165426872023-02-02 17:44:35693 days ago1675359875
0x1D931791...a87A2858c
0.02477 ETH
165192482023-01-30 11:09:35697 days ago1675076975
0x1D931791...a87A2858c
0.02477 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
SeasonPassNFT

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 16 : SeasonPassNFT.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Royalty.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/contracts/access/Ownable.sol";

contract SeasonPassNFT is ERC721URIStorage, ERC721Royalty, Ownable {
    using Counters for Counters.Counter;
    Counters.Counter private _tokenIds;

    Counters.Counter private _seasonPassTokenCount;
    Counters.Counter private _referralIds;

    mapping (uint256 => string) private _tokenURIs;

    uint256 public constant MAX_SEASONPASS = 10000;

    uint256 public constant MAX_TX_MINT_SEASONPASS = 10;

    // Set to 10000 so commission percentage are expressed in basis points
    uint256 public constant COMMISSION_DENOMINATOR = 10000;
    
    uint256 public COMMISSION_PERCENTAGE = 1000; // 10 %

    uint256 public PRICE_SEASONPASS = 20 * 10**15; // .020 eth

    address payable target = payable(0x30A7bC1AB0765223a221BDDD2394d9eDE74a7d69);

    mapping (uint256 => address) private _referrers;

    struct Referee {
        address referee;
        uint256 count;
    }

    event CreateSeasonPassNFT(uint256 indexed id);
    event RegisterAsReferrer(address indexed referrerAddress, uint256 indexed referralId);
    event MintByReferral(uint256 indexed referralId, address indexed referee, uint256 count, uint256 commissionAmount);

    constructor() ERC721("LaLigaLand Season Pass", "LLL") {}

    // Base URI
    string private _baseURIext;

    function _totalSupply() internal view returns (uint) {
        return _tokenIds.current();
    }
    function setBaseURI(string memory baseURI_) external onlyOwner() {
        _baseURIext = baseURI_;
    }

    function updateTargetAddress(address _newtarget) public onlyOwner {
        target = payable(_newtarget);
    }

    function getTargetAddress() public view returns(address) {
        return target;
    }


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

    function _setTokenURI(uint256 tokenId, string memory _tokenURI) internal virtual override {
        require(_exists(tokenId), "Cannot set tokenURI for nonexistent token");
        _tokenURIs[tokenId] = _tokenURI;
    }

    function tokenURI(uint256 tokenId) public view override(ERC721URIStorage, ERC721) returns (string memory) {
        require(_exists(tokenId), "URI query for nonexistent token");

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

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

    function registerAsReferrer() public {
        _referralIds.increment();
        uint256 referralId = _referralIds.current();
        address referrerAddress = msg.sender;
        _referrers[referralId] = referrerAddress;
        emit RegisterAsReferrer(referrerAddress, referralId);
    }

    // CALLED FROM PUBLIC SITE
    function mintSeasonPassNFTByReferral(address recipient, uint256 _count, uint256 _referralId)
    public virtual payable
    {
        require(_referralId > 0, "SeasonPassNFT: Invalid Referral Id");
        require(_referralId <= _referralIds.current(), "SeasonPassNFT: Referral Id Not Registered");

        require(msg.value >= priceSeasonPass(_count), "SeasonPassNFT: Not enough ETH sent");
        _mintSeasonPassNFT(recipient, _count);

        uint256 commissionAmount = (priceSeasonPass(_count) * COMMISSION_PERCENTAGE) / COMMISSION_DENOMINATOR ;
        payable(_referrers[_referralId]).transfer(commissionAmount);
        target.transfer(msg.value - commissionAmount);

        emit MintByReferral(_referralId, recipient, _count, commissionAmount);
    }

    // CALLED FROM PUBLIC SITE
    function mintSeasonPassNFT(address recipient, uint256 _count)
    public virtual payable
        //   returns (uint256)
    {
        // TODO: restrict non allow list users to after the pre-sale period
        require(msg.value >= priceSeasonPass(_count), "SeasonPassNFT: Not enough ETH sent");

        _mintSeasonPassNFT(recipient, _count);

        target.transfer(msg.value);
    }

    function _mintSeasonPassNFT(address recipient, uint256 _count) internal {
        require(_count > 0, "SeasonPassNFT: Must mint 1 or more per transaction");
        require(_count <= MAX_TX_MINT_SEASONPASS, "SeasonPassNFT: Exceeds max mint number per transaction");
        require(_seasonPassTokenCount.current() <= MAX_SEASONPASS, "SeasonPassNFT: Member tokens sold out");
        require(_seasonPassTokenCount.current() + _count <= MAX_SEASONPASS, "SeasonPassNFT: Exceeds the number remaining. Try again, requesting a smaller number.");
        for (uint256 i = 0; i < _count; i++) {
            _seasonPassTokenCount.increment();
            _tokenIds.increment();

            uint256 newItemId = _tokenIds.current();
            _mint(recipient, newItemId);

            emit CreateSeasonPassNFT(newItemId);
        }


    }

    function setSeasonPassPrice(uint256 _price) public onlyOwner {
        PRICE_SEASONPASS = _price;
    }

    function setSeasonPassCommission(uint256 _commissionRate) public onlyOwner {
        COMMISSION_PERCENTAGE = _commissionRate;
    }

    function priceSeasonPass(uint256 _count) public view returns (uint256) {
        return PRICE_SEASONPASS * _count;
    }

    function setDefaultRoyalty(address receiver, uint96 feeNumerator) public onlyOwner{
        super._setDefaultRoyalty(receiver, feeNumerator);
    }

    function setTokenRoyalty(uint256 tokenId, address receiver, uint96 feeNumerator) public onlyOwner{
        super._setTokenRoyalty(tokenId, receiver, feeNumerator);
    }

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

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

File 2 of 16 : Counters.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Counters.sol)

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 3 of 16 : ERC721URIStorage.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/extensions/ERC721URIStorage.sol)

pragma solidity ^0.8.0;

import "../ERC721.sol";

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

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

    /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        _requireMinted(tokenId);

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

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

        return super.tokenURI(tokenId);
    }

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

    /**
     * @dev See {ERC721-_burn}. This override additionally checks to see if a
     * token-specific URI was set for the token, and if so, it deletes the token URI from
     * the storage mapping.
     */
    function _burn(uint256 tokenId) internal virtual override {
        super._burn(tokenId);

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

File 4 of 16 : ERC721Royalty.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/ERC721Royalty.sol)

pragma solidity ^0.8.0;

import "../ERC721.sol";
import "../../common/ERC2981.sol";
import "../../../utils/introspection/ERC165.sol";

/**
 * @dev Extension of ERC721 with the ERC2981 NFT Royalty Standard, a standardized way to retrieve royalty payment
 * information.
 *
 * Royalty information can be specified globally for all token ids via {_setDefaultRoyalty}, and/or individually for
 * specific token ids via {_setTokenRoyalty}. The latter takes precedence over the first.
 *
 * IMPORTANT: ERC-2981 only specifies a way to signal royalty information and does not enforce its payment. See
 * https://eips.ethereum.org/EIPS/eip-2981#optional-royalty-payments[Rationale] in the EIP. Marketplaces are expected to
 * voluntarily pay royalties together with sales, but note that this standard is not yet widely supported.
 *
 * _Available since v4.5._
 */
abstract contract ERC721Royalty is ERC2981, ERC721 {
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override(ERC721, ERC2981) returns (bool) {
        return super.supportsInterface(interfaceId);
    }

    /**
     * @dev See {ERC721-_burn}. This override additionally clears the royalty information for the token.
     */
    function _burn(uint256 tokenId) internal virtual override {
        super._burn(tokenId);
        _resetTokenRoyalty(tokenId);
    }
}

File 5 of 16 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)

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() {
        _transferOwnership(_msgSender());
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

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

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        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 {
        _transferOwnership(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");
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 6 of 16 : ERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/ERC721.sol)

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: address zero is not a valid owner");
        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: invalid token ID");
        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) {
        _requireMinted(tokenId);

        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 overridden 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 token owner nor approved for all"
        );

        _approve(to, tokenId);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view virtual override returns (address) {
        _requireMinted(tokenId);

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        _setApprovalForAll(_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: caller is not token 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: caller is not token 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) {
        address owner = ERC721.ownerOf(tokenId);
        return (spender == owner || isApprovedForAll(owner, spender) || getApproved(tokenId) == 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);

        _afterTokenTransfer(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);

        _afterTokenTransfer(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 from incorrect owner");
        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);

        _afterTokenTransfer(from, to, tokenId);
    }

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

    /**
     * @dev Approve `operator` to operate on all of `owner` tokens
     *
     * Emits an {ApprovalForAll} event.
     */
    function _setApprovalForAll(
        address owner,
        address operator,
        bool approved
    ) internal virtual {
        require(owner != operator, "ERC721: approve to caller");
        _operatorApprovals[owner][operator] = approved;
        emit ApprovalForAll(owner, operator, approved);
    }

    /**
     * @dev Reverts if the `tokenId` has not been minted yet.
     */
    function _requireMinted(uint256 tokenId) internal view virtual {
        require(_exists(tokenId), "ERC721: invalid token ID");
    }

    /**
     * @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 {
                    /// @solidity memory-safe-assembly
                    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 {}

    /**
     * @dev Hook that is called after any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {}
}

File 7 of 16 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

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 8 of 16 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

    /**
     * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation.
     */
    function toHexString(address addr) internal pure returns (string memory) {
        return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH);
    }
}

File 9 of 16 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @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
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 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
                /// @solidity memory-safe-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

File 10 of 16 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol)

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 `IERC721Receiver.onERC721Received.selector`.
     */
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

File 11 of 16 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/IERC721.sol)

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

    /**
     * @dev 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 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 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 the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) external view returns (address operator);

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

File 12 of 16 : ERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)

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 13 of 16 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol)

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 14 of 16 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

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

File 15 of 16 : ERC2981.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/common/ERC2981.sol)

pragma solidity ^0.8.0;

import "../../interfaces/IERC2981.sol";
import "../../utils/introspection/ERC165.sol";

/**
 * @dev Implementation of the NFT Royalty Standard, a standardized way to retrieve royalty payment information.
 *
 * Royalty information can be specified globally for all token ids via {_setDefaultRoyalty}, and/or individually for
 * specific token ids via {_setTokenRoyalty}. The latter takes precedence over the first.
 *
 * Royalty is specified as a fraction of sale price. {_feeDenominator} is overridable but defaults to 10000, meaning the
 * fee is specified in basis points by default.
 *
 * IMPORTANT: ERC-2981 only specifies a way to signal royalty information and does not enforce its payment. See
 * https://eips.ethereum.org/EIPS/eip-2981#optional-royalty-payments[Rationale] in the EIP. Marketplaces are expected to
 * voluntarily pay royalties together with sales, but note that this standard is not yet widely supported.
 *
 * _Available since v4.5._
 */
abstract contract ERC2981 is IERC2981, ERC165 {
    struct RoyaltyInfo {
        address receiver;
        uint96 royaltyFraction;
    }

    RoyaltyInfo private _defaultRoyaltyInfo;
    mapping(uint256 => RoyaltyInfo) private _tokenRoyaltyInfo;

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

    /**
     * @inheritdoc IERC2981
     */
    function royaltyInfo(uint256 _tokenId, uint256 _salePrice) public view virtual override returns (address, uint256) {
        RoyaltyInfo memory royalty = _tokenRoyaltyInfo[_tokenId];

        if (royalty.receiver == address(0)) {
            royalty = _defaultRoyaltyInfo;
        }

        uint256 royaltyAmount = (_salePrice * royalty.royaltyFraction) / _feeDenominator();

        return (royalty.receiver, royaltyAmount);
    }

    /**
     * @dev The denominator with which to interpret the fee set in {_setTokenRoyalty} and {_setDefaultRoyalty} as a
     * fraction of the sale price. Defaults to 10000 so fees are expressed in basis points, but may be customized by an
     * override.
     */
    function _feeDenominator() internal pure virtual returns (uint96) {
        return 10000;
    }

    /**
     * @dev Sets the royalty information that all ids in this contract will default to.
     *
     * Requirements:
     *
     * - `receiver` cannot be the zero address.
     * - `feeNumerator` cannot be greater than the fee denominator.
     */
    function _setDefaultRoyalty(address receiver, uint96 feeNumerator) internal virtual {
        require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice");
        require(receiver != address(0), "ERC2981: invalid receiver");

        _defaultRoyaltyInfo = RoyaltyInfo(receiver, feeNumerator);
    }

    /**
     * @dev Removes default royalty information.
     */
    function _deleteDefaultRoyalty() internal virtual {
        delete _defaultRoyaltyInfo;
    }

    /**
     * @dev Sets the royalty information for a specific token id, overriding the global default.
     *
     * Requirements:
     *
     * - `receiver` cannot be the zero address.
     * - `feeNumerator` cannot be greater than the fee denominator.
     */
    function _setTokenRoyalty(
        uint256 tokenId,
        address receiver,
        uint96 feeNumerator
    ) internal virtual {
        require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice");
        require(receiver != address(0), "ERC2981: Invalid parameters");

        _tokenRoyaltyInfo[tokenId] = RoyaltyInfo(receiver, feeNumerator);
    }

    /**
     * @dev Resets royalty information for the token id back to the global default.
     */
    function _resetTokenRoyalty(uint256 tokenId) internal virtual {
        delete _tokenRoyaltyInfo[tokenId];
    }
}

File 16 of 16 : IERC2981.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (interfaces/IERC2981.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev Interface for the NFT Royalty Standard.
 *
 * A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal
 * support for royalty payments across all NFT marketplaces and ecosystem participants.
 *
 * _Available since v4.5._
 */
interface IERC2981 is IERC165 {
    /**
     * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of
     * exchange. The royalty amount is denominated and should be paid in that same unit of exchange.
     */
    function royaltyInfo(uint256 tokenId, uint256 salePrice)
        external
        view
        returns (address receiver, uint256 royaltyAmount);
}

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

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"CreateSeasonPassNFT","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"referralId","type":"uint256"},{"indexed":true,"internalType":"address","name":"referee","type":"address"},{"indexed":false,"internalType":"uint256","name":"count","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"commissionAmount","type":"uint256"}],"name":"MintByReferral","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":"referrerAddress","type":"address"},{"indexed":true,"internalType":"uint256","name":"referralId","type":"uint256"}],"name":"RegisterAsReferrer","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":"COMMISSION_DENOMINATOR","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"COMMISSION_PERCENTAGE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_SEASONPASS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_TX_MINT_SEASONPASS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRICE_SEASONPASS","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":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTargetAddress","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":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"_count","type":"uint256"}],"name":"mintSeasonPassNFT","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"_count","type":"uint256"},{"internalType":"uint256","name":"_referralId","type":"uint256"}],"name":"mintSeasonPassNFTByReferral","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":[{"internalType":"uint256","name":"_count","type":"uint256"}],"name":"priceSeasonPass","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"registerAsReferrer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"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":"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":"baseURI_","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint96","name":"feeNumerator","type":"uint96"}],"name":"setDefaultRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_commissionRate","type":"uint256"}],"name":"setSeasonPassCommission","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"setSeasonPassPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint96","name":"feeNumerator","type":"uint96"}],"name":"setTokenRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"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":[{"internalType":"address","name":"_newtarget","type":"address"}],"name":"updateTargetAddress","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040526103e8600e5566470de4df820000600f55601080546001600160a01b0319167330a7bc1ab0765223a221bddd2394d9ede74a7d691790553480156200004857600080fd5b50604080518082018252601681527f4c614c6967614c616e6420536561736f6e20506173730000000000000000000060208083019182528351808501909452600384526213131360ea1b908401528151919291620000a99160029162000138565b508051620000bf90600390602084019062000138565b505050620000dc620000d6620000e260201b60201c565b620000e6565b6200021b565b3390565b600980546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8280546200014690620001de565b90600052602060002090601f0160209004810192826200016a5760008555620001b5565b82601f106200018557805160ff1916838001178555620001b5565b82800160010185558215620001b5579182015b82811115620001b557825182559160200191906001019062000198565b50620001c3929150620001c7565b5090565b5b80821115620001c35760008155600101620001c8565b600181811c90821680620001f357607f821691505b602082108114156200021557634e487b7160e01b600052602260045260246000fd5b50919050565b612486806200022b6000396000f3fe6080604052600436106101ee5760003560e01c80635944c7531161010d578063930da43c116100a0578063b88d4fde1161006f578063b88d4fde14610569578063c87b56dd14610589578063d2ce45a21461038d578063e985e9c5146105a9578063f2fde38b146105f257600080fd5b8063930da43c146104ff57806395d89b4114610514578063a22cb46514610529578063b2ef03351461054957600080fd5b806370a08231116100dc57806370a082311461048c578063715018a6146104ac5780637603efb9146104c15780638da5cb5b146104e157600080fd5b80635944c753146104185780636352211e1461043857806365476ab3146104585780636f338a221461046e57600080fd5b806322bac26f1161018557806341f7534d1161015457806341f7534d146103a357806342842e0e146103b8578063438b528c146103d857806355f804b3146103f857600080fd5b806322bac26f1461030e57806323b872dd1461032e5780632a55205a1461034e5780633b1dbfcc1461038d57600080fd5b8063081812fc116101c1578063081812fc1461027f578063095ea7b3146102b75780631bf1de9b146102d7578063223f184f146102fb57600080fd5b806301ffc9a7146101f35780630209c6b71461022857806304634d8d1461023d57806306fdde031461025d575b600080fd5b3480156101ff57600080fd5b5061021361020e366004612037565b610612565b60405190151581526020015b60405180910390f35b61023b610236366004611fb3565b610623565b005b34801561024957600080fd5b5061023b61025836600461200e565b61069c565b34801561026957600080fd5b506102726106b2565b60405161021f91906121c1565b34801561028b57600080fd5b5061029f61029a3660046120b5565b610744565b6040516001600160a01b03909116815260200161021f565b3480156102c357600080fd5b5061023b6102d2366004611fb3565b61076b565b3480156102e357600080fd5b506102ed600e5481565b60405190815260200161021f565b61023b610309366004611fdc565b61087c565b34801561031a57600080fd5b506102ed6103293660046120b5565b610a67565b34801561033a57600080fd5b5061023b610349366004611ec5565b610a77565b34801561035a57600080fd5b5061036e610369366004612108565b610aa8565b604080516001600160a01b03909316835260208301919091520161021f565b34801561039957600080fd5b506102ed61271081565b3480156103af57600080fd5b506102ed600a81565b3480156103c457600080fd5b5061023b6103d3366004611ec5565b610b54565b3480156103e457600080fd5b5061023b6103f33660046120b5565b610b6f565b34801561040457600080fd5b5061023b61041336600461206f565b610b7c565b34801561042457600080fd5b5061023b6104333660046120cd565b610b97565b34801561044457600080fd5b5061029f6104533660046120b5565b610baa565b34801561046457600080fd5b506102ed600f5481565b34801561047a57600080fd5b506010546001600160a01b031661029f565b34801561049857600080fd5b506102ed6104a7366004611e79565b610c0a565b3480156104b857600080fd5b5061023b610c90565b3480156104cd57600080fd5b5061023b6104dc366004611e79565b610ca4565b3480156104ed57600080fd5b506009546001600160a01b031661029f565b34801561050b57600080fd5b5061023b610cce565b34801561052057600080fd5b50610272610d3b565b34801561053557600080fd5b5061023b610544366004611f79565b610d4a565b34801561055557600080fd5b5061023b6105643660046120b5565b610d55565b34801561057557600080fd5b5061023b610584366004611f00565b610d62565b34801561059557600080fd5b506102726105a43660046120b5565b610d9a565b3480156105b557600080fd5b506102136105c4366004611e93565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b3480156105fe57600080fd5b5061023b61060d366004611e79565b610efa565b600061061d82610f73565b92915050565b61062c81610a67565b3410156106545760405162461bcd60e51b815260040161064b90612226565b60405180910390fd5b61065e8282610f7e565b6010546040516001600160a01b03909116903480156108fc02916000818181858888f19350505050158015610697573d6000803e3d6000fd5b505050565b6106a46111e5565b6106ae828261123f565b5050565b6060600280546106c19061238e565b80601f01602080910402602001604051908101604052809291908181526020018280546106ed9061238e565b801561073a5780601f1061070f5761010080835404028352916020019161073a565b820191906000526020600020905b81548152906001019060200180831161071d57829003601f168201915b5050505050905090565b600061074f826112f9565b506000908152600660205260409020546001600160a01b031690565b600061077682610baa565b9050806001600160a01b0316836001600160a01b031614156107e45760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b606482015260840161064b565b336001600160a01b0382161480610800575061080081336105c4565b6108725760405162461bcd60e51b815260206004820152603e60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c0000606482015260840161064b565b6106978383611358565b600081116108d75760405162461bcd60e51b815260206004820152602260248201527f536561736f6e506173734e46543a20496e76616c696420526566657272616c20604482015261125960f21b606482015260840161064b565b600c5481111561093b5760405162461bcd60e51b815260206004820152602960248201527f536561736f6e506173734e46543a20526566657272616c204964204e6f7420526044820152681959da5cdd195c995960ba1b606482015260840161064b565b61094482610a67565b3410156109635760405162461bcd60e51b815260040161064b90612226565b61096d8383610f7e565b6000612710600e5461097e85610a67565b610988919061232c565b6109929190612318565b6000838152601160205260408082205490519293506001600160a01b03169183156108fc0291849190818181858888f193505050501580156109d8573d6000803e3d6000fd5b506010546001600160a01b03166108fc6109f2833461234b565b6040518115909202916000818181858888f19350505050158015610a1a573d6000803e3d6000fd5b5060408051848152602081018390526001600160a01b0386169184917fe017654fc4e6eba56682921b5acc5ffd9efdc764a1d12bb2e67952071dc18023910160405180910390a350505050565b600081600f5461061d919061232c565b610a8133826113c6565b610a9d5760405162461bcd60e51b815260040161064b906122b2565b610697838383611444565b60008281526001602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b0316928201929092528291610b1d5750604080518082019091526000546001600160a01b0381168252600160a01b90046001600160601b031660208201525b602081015160009061271090610b3c906001600160601b03168761232c565b610b469190612318565b915196919550909350505050565b61069783838360405180602001604052806000815250610d62565b610b776111e5565b600e55565b610b846111e5565b80516106ae906012906020840190611d37565b610b9f6111e5565b6106978383836115e0565b6000818152600460205260408120546001600160a01b03168061061d5760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b604482015260640161064b565b60006001600160a01b038216610c745760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b606482015260840161064b565b506001600160a01b031660009081526005602052604090205490565b610c986111e5565b610ca260006116ab565b565b610cac6111e5565b601080546001600160a01b0319166001600160a01b0392909216919091179055565b610cdc600c80546001019055565b6000610ce7600c5490565b60008181526011602052604080822080546001600160a01b03191633908117909155905192935091839183917f1726c1d2b46b8c9c84ae936763ad9f1251465277114430f88637fa26e8b4eaa29190a35050565b6060600380546106c19061238e565b6106ae3383836116fd565b610d5d6111e5565b600f55565b610d6c33836113c6565b610d885760405162461bcd60e51b815260040161064b906122b2565b610d94848484846117cc565b50505050565b6000818152600460205260409020546060906001600160a01b0316610e015760405162461bcd60e51b815260206004820152601f60248201527f55524920717565727920666f72206e6f6e6578697374656e7420746f6b656e00604482015260640161064b565b6000828152600d602052604081208054610e1a9061238e565b80601f0160208091040260200160405190810160405280929190818152602001828054610e469061238e565b8015610e935780601f10610e6857610100808354040283529160200191610e93565b820191906000526020600020905b815481529060010190602001808311610e7657829003601f168201915b505050505090506000610ea46117ff565b9050805160001415610eb7575092915050565b815115610ee9578082604051602001610ed1929190612155565b60405160208183030381529060405292505050919050565b610ef28461180e565b949350505050565b610f026111e5565b6001600160a01b038116610f675760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161064b565b610f70816116ab565b50565b600061061d826118f2565b60008111610fe95760405162461bcd60e51b815260206004820152603260248201527f536561736f6e506173734e46543a204d757374206d696e742031206f72206d6f6044820152713932903832b9103a3930b739b0b1ba34b7b760711b606482015260840161064b565b600a8111156110595760405162461bcd60e51b815260206004820152603660248201527f536561736f6e506173734e46543a2045786365656473206d6178206d696e7420604482015275373ab6b132b9103832b9103a3930b739b0b1ba34b7b760511b606482015260840161064b565b612710611065600b5490565b11156110c15760405162461bcd60e51b815260206004820152602560248201527f536561736f6e506173734e46543a204d656d62657220746f6b656e7320736f6c60448201526419081bdd5d60da1b606482015260840161064b565b612710816110ce600b5490565b6110d89190612300565b11156111695760405162461bcd60e51b815260206004820152605460248201527f536561736f6e506173734e46543a204578636565647320746865206e756d626560448201527f722072656d61696e696e672e2054727920616761696e2c207265717565737469606482015273373390309039b6b0b63632b910373ab6b132b91760611b608482015260a40161064b565b60005b8181101561069757611182600b80546001019055565b611190600a80546001019055565b600061119b600a5490565b90506111a78482611932565b60405181907f97cccaeb7b41d00b4a9109298669b22f02408587f5b2ab3e360137d7342c971390600090a250806111dd816123c9565b91505061116c565b6009546001600160a01b03163314610ca25760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161064b565b6127106001600160601b038216111561126a5760405162461bcd60e51b815260040161064b90612268565b6001600160a01b0382166112c05760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c696420726563656976657200000000000000604482015260640161064b565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600055565b6000818152600460205260409020546001600160a01b0316610f705760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b604482015260640161064b565b600081815260066020526040902080546001600160a01b0319166001600160a01b038416908117909155819061138d82610baa565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000806113d283610baa565b9050806001600160a01b0316846001600160a01b0316148061141957506001600160a01b0380821660009081526007602090815260408083209388168352929052205460ff165b80610ef25750836001600160a01b031661143284610744565b6001600160a01b031614949350505050565b826001600160a01b031661145782610baa565b6001600160a01b0316146114bb5760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b606482015260840161064b565b6001600160a01b03821661151d5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b606482015260840161064b565b611528600082611358565b6001600160a01b038316600090815260056020526040812080546001929061155190849061234b565b90915550506001600160a01b038216600090815260056020526040812080546001929061157f908490612300565b909155505060008181526004602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6127106001600160601b038216111561160b5760405162461bcd60e51b815260040161064b90612268565b6001600160a01b0382166116615760405162461bcd60e51b815260206004820152601b60248201527f455243323938313a20496e76616c696420706172616d65746572730000000000604482015260640161064b565b6040805180820182526001600160a01b0393841681526001600160601b0392831660208083019182526000968752600190529190942093519051909116600160a01b029116179055565b600980546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b0316141561175f5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015260640161064b565b6001600160a01b03838116600081815260076020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6117d7848484611444565b6117e384848484611a74565b610d945760405162461bcd60e51b815260040161064b906121d4565b6060601280546106c19061238e565b6060611819826112f9565b600082815260086020526040812080546118329061238e565b80601f016020809104026020016040519081016040528092919081815260200182805461185e9061238e565b80156118ab5780601f10611880576101008083540402835291602001916118ab565b820191906000526020600020905b81548152906001019060200180831161188e57829003601f168201915b5050505050905060006118bc6117ff565b90508051600014156118cf575092915050565b8151156118e9578082604051602001610ed1929190612155565b610ef284611b81565b60006001600160e01b031982166380ac58cd60e01b148061192357506001600160e01b03198216635b5e139f60e01b145b8061061d575061061d82611be8565b6001600160a01b0382166119885760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015260640161064b565b6000818152600460205260409020546001600160a01b0316156119ed5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015260640161064b565b6001600160a01b0382166000908152600560205260408120805460019290611a16908490612300565b909155505060008181526004602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60006001600160a01b0384163b15611b7657604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611ab8903390899088908890600401612184565b602060405180830381600087803b158015611ad257600080fd5b505af1925050508015611b02575060408051601f3d908101601f19168201909252611aff91810190612053565b60015b611b5c573d808015611b30576040519150601f19603f3d011682016040523d82523d6000602084013e611b35565b606091505b508051611b545760405162461bcd60e51b815260040161064b906121d4565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050610ef2565b506001949350505050565b6060611b8c826112f9565b6000611b966117ff565b90506000815111611bb65760405180602001604052806000815250611be1565b80611bc084611c1d565b604051602001611bd1929190612155565b6040516020818303038152906040525b9392505050565b60006001600160e01b0319821663152a902d60e11b148061061d57506301ffc9a760e01b6001600160e01b031983161461061d565b606081611c415750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611c6b5780611c55816123c9565b9150611c649050600a83612318565b9150611c45565b60008167ffffffffffffffff811115611c9457634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611cbe576020820181803683370190505b5090505b8415610ef257611cd360018361234b565b9150611ce0600a866123e4565b611ceb906030612300565b60f81b818381518110611d0e57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350611d30600a86612318565b9450611cc2565b828054611d439061238e565b90600052602060002090601f016020900481019282611d655760008555611dab565b82601f10611d7e57805160ff1916838001178555611dab565b82800160010185558215611dab579182015b82811115611dab578251825591602001919060010190611d90565b50611db7929150611dbb565b5090565b5b80821115611db75760008155600101611dbc565b600067ffffffffffffffff80841115611deb57611deb612424565b604051601f8501601f19908116603f01168101908282118183101715611e1357611e13612424565b81604052809350858152868686011115611e2c57600080fd5b858560208301376000602087830101525050509392505050565b80356001600160a01b0381168114611e5d57600080fd5b919050565b80356001600160601b0381168114611e5d57600080fd5b600060208284031215611e8a578081fd5b611be182611e46565b60008060408385031215611ea5578081fd5b611eae83611e46565b9150611ebc60208401611e46565b90509250929050565b600080600060608486031215611ed9578081fd5b611ee284611e46565b9250611ef060208501611e46565b9150604084013590509250925092565b60008060008060808587031215611f15578081fd5b611f1e85611e46565b9350611f2c60208601611e46565b925060408501359150606085013567ffffffffffffffff811115611f4e578182fd5b8501601f81018713611f5e578182fd5b611f6d87823560208401611dd0565b91505092959194509250565b60008060408385031215611f8b578182fd5b611f9483611e46565b915060208301358015158114611fa8578182fd5b809150509250929050565b60008060408385031215611fc5578182fd5b611fce83611e46565b946020939093013593505050565b600080600060608486031215611ff0578283fd5b611ff984611e46565b95602085013595506040909401359392505050565b60008060408385031215612020578182fd5b61202983611e46565b9150611ebc60208401611e62565b600060208284031215612048578081fd5b8135611be18161243a565b600060208284031215612064578081fd5b8151611be18161243a565b600060208284031215612080578081fd5b813567ffffffffffffffff811115612096578182fd5b8201601f810184136120a6578182fd5b610ef284823560208401611dd0565b6000602082840312156120c6578081fd5b5035919050565b6000806000606084860312156120e1578283fd5b833592506120f160208501611e46565b91506120ff60408501611e62565b90509250925092565b6000806040838503121561211a578182fd5b50508035926020909101359150565b60008151808452612141816020860160208601612362565b601f01601f19169290920160200192915050565b60008351612167818460208801612362565b83519083019061217b818360208801612362565b01949350505050565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906121b790830184612129565b9695505050505050565b602081526000611be16020830184612129565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526022908201527f536561736f6e506173734e46543a204e6f7420656e6f756768204554482073656040820152611b9d60f21b606082015260800190565b6020808252602a908201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646040820152692073616c65507269636560b01b606082015260800190565b6020808252602e908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526d1c881b9bdc88185c1c1c9bdd995960921b606082015260800190565b60008219821115612313576123136123f8565b500190565b6000826123275761232761240e565b500490565b6000816000190483118215151615612346576123466123f8565b500290565b60008282101561235d5761235d6123f8565b500390565b60005b8381101561237d578181015183820152602001612365565b83811115610d945750506000910152565b600181811c908216806123a257607f821691505b602082108114156123c357634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156123dd576123dd6123f8565b5060010190565b6000826123f3576123f361240e565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b031981168114610f7057600080fdfea26469706673582212202b7e58374795b44400fe7a9ce3673c2ecc6e585bacbd03da5dd2c262547df7ae64736f6c63430008040033

Deployed Bytecode

0x6080604052600436106101ee5760003560e01c80635944c7531161010d578063930da43c116100a0578063b88d4fde1161006f578063b88d4fde14610569578063c87b56dd14610589578063d2ce45a21461038d578063e985e9c5146105a9578063f2fde38b146105f257600080fd5b8063930da43c146104ff57806395d89b4114610514578063a22cb46514610529578063b2ef03351461054957600080fd5b806370a08231116100dc57806370a082311461048c578063715018a6146104ac5780637603efb9146104c15780638da5cb5b146104e157600080fd5b80635944c753146104185780636352211e1461043857806365476ab3146104585780636f338a221461046e57600080fd5b806322bac26f1161018557806341f7534d1161015457806341f7534d146103a357806342842e0e146103b8578063438b528c146103d857806355f804b3146103f857600080fd5b806322bac26f1461030e57806323b872dd1461032e5780632a55205a1461034e5780633b1dbfcc1461038d57600080fd5b8063081812fc116101c1578063081812fc1461027f578063095ea7b3146102b75780631bf1de9b146102d7578063223f184f146102fb57600080fd5b806301ffc9a7146101f35780630209c6b71461022857806304634d8d1461023d57806306fdde031461025d575b600080fd5b3480156101ff57600080fd5b5061021361020e366004612037565b610612565b60405190151581526020015b60405180910390f35b61023b610236366004611fb3565b610623565b005b34801561024957600080fd5b5061023b61025836600461200e565b61069c565b34801561026957600080fd5b506102726106b2565b60405161021f91906121c1565b34801561028b57600080fd5b5061029f61029a3660046120b5565b610744565b6040516001600160a01b03909116815260200161021f565b3480156102c357600080fd5b5061023b6102d2366004611fb3565b61076b565b3480156102e357600080fd5b506102ed600e5481565b60405190815260200161021f565b61023b610309366004611fdc565b61087c565b34801561031a57600080fd5b506102ed6103293660046120b5565b610a67565b34801561033a57600080fd5b5061023b610349366004611ec5565b610a77565b34801561035a57600080fd5b5061036e610369366004612108565b610aa8565b604080516001600160a01b03909316835260208301919091520161021f565b34801561039957600080fd5b506102ed61271081565b3480156103af57600080fd5b506102ed600a81565b3480156103c457600080fd5b5061023b6103d3366004611ec5565b610b54565b3480156103e457600080fd5b5061023b6103f33660046120b5565b610b6f565b34801561040457600080fd5b5061023b61041336600461206f565b610b7c565b34801561042457600080fd5b5061023b6104333660046120cd565b610b97565b34801561044457600080fd5b5061029f6104533660046120b5565b610baa565b34801561046457600080fd5b506102ed600f5481565b34801561047a57600080fd5b506010546001600160a01b031661029f565b34801561049857600080fd5b506102ed6104a7366004611e79565b610c0a565b3480156104b857600080fd5b5061023b610c90565b3480156104cd57600080fd5b5061023b6104dc366004611e79565b610ca4565b3480156104ed57600080fd5b506009546001600160a01b031661029f565b34801561050b57600080fd5b5061023b610cce565b34801561052057600080fd5b50610272610d3b565b34801561053557600080fd5b5061023b610544366004611f79565b610d4a565b34801561055557600080fd5b5061023b6105643660046120b5565b610d55565b34801561057557600080fd5b5061023b610584366004611f00565b610d62565b34801561059557600080fd5b506102726105a43660046120b5565b610d9a565b3480156105b557600080fd5b506102136105c4366004611e93565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b3480156105fe57600080fd5b5061023b61060d366004611e79565b610efa565b600061061d82610f73565b92915050565b61062c81610a67565b3410156106545760405162461bcd60e51b815260040161064b90612226565b60405180910390fd5b61065e8282610f7e565b6010546040516001600160a01b03909116903480156108fc02916000818181858888f19350505050158015610697573d6000803e3d6000fd5b505050565b6106a46111e5565b6106ae828261123f565b5050565b6060600280546106c19061238e565b80601f01602080910402602001604051908101604052809291908181526020018280546106ed9061238e565b801561073a5780601f1061070f5761010080835404028352916020019161073a565b820191906000526020600020905b81548152906001019060200180831161071d57829003601f168201915b5050505050905090565b600061074f826112f9565b506000908152600660205260409020546001600160a01b031690565b600061077682610baa565b9050806001600160a01b0316836001600160a01b031614156107e45760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b606482015260840161064b565b336001600160a01b0382161480610800575061080081336105c4565b6108725760405162461bcd60e51b815260206004820152603e60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c0000606482015260840161064b565b6106978383611358565b600081116108d75760405162461bcd60e51b815260206004820152602260248201527f536561736f6e506173734e46543a20496e76616c696420526566657272616c20604482015261125960f21b606482015260840161064b565b600c5481111561093b5760405162461bcd60e51b815260206004820152602960248201527f536561736f6e506173734e46543a20526566657272616c204964204e6f7420526044820152681959da5cdd195c995960ba1b606482015260840161064b565b61094482610a67565b3410156109635760405162461bcd60e51b815260040161064b90612226565b61096d8383610f7e565b6000612710600e5461097e85610a67565b610988919061232c565b6109929190612318565b6000838152601160205260408082205490519293506001600160a01b03169183156108fc0291849190818181858888f193505050501580156109d8573d6000803e3d6000fd5b506010546001600160a01b03166108fc6109f2833461234b565b6040518115909202916000818181858888f19350505050158015610a1a573d6000803e3d6000fd5b5060408051848152602081018390526001600160a01b0386169184917fe017654fc4e6eba56682921b5acc5ffd9efdc764a1d12bb2e67952071dc18023910160405180910390a350505050565b600081600f5461061d919061232c565b610a8133826113c6565b610a9d5760405162461bcd60e51b815260040161064b906122b2565b610697838383611444565b60008281526001602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b0316928201929092528291610b1d5750604080518082019091526000546001600160a01b0381168252600160a01b90046001600160601b031660208201525b602081015160009061271090610b3c906001600160601b03168761232c565b610b469190612318565b915196919550909350505050565b61069783838360405180602001604052806000815250610d62565b610b776111e5565b600e55565b610b846111e5565b80516106ae906012906020840190611d37565b610b9f6111e5565b6106978383836115e0565b6000818152600460205260408120546001600160a01b03168061061d5760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b604482015260640161064b565b60006001600160a01b038216610c745760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b606482015260840161064b565b506001600160a01b031660009081526005602052604090205490565b610c986111e5565b610ca260006116ab565b565b610cac6111e5565b601080546001600160a01b0319166001600160a01b0392909216919091179055565b610cdc600c80546001019055565b6000610ce7600c5490565b60008181526011602052604080822080546001600160a01b03191633908117909155905192935091839183917f1726c1d2b46b8c9c84ae936763ad9f1251465277114430f88637fa26e8b4eaa29190a35050565b6060600380546106c19061238e565b6106ae3383836116fd565b610d5d6111e5565b600f55565b610d6c33836113c6565b610d885760405162461bcd60e51b815260040161064b906122b2565b610d94848484846117cc565b50505050565b6000818152600460205260409020546060906001600160a01b0316610e015760405162461bcd60e51b815260206004820152601f60248201527f55524920717565727920666f72206e6f6e6578697374656e7420746f6b656e00604482015260640161064b565b6000828152600d602052604081208054610e1a9061238e565b80601f0160208091040260200160405190810160405280929190818152602001828054610e469061238e565b8015610e935780601f10610e6857610100808354040283529160200191610e93565b820191906000526020600020905b815481529060010190602001808311610e7657829003601f168201915b505050505090506000610ea46117ff565b9050805160001415610eb7575092915050565b815115610ee9578082604051602001610ed1929190612155565b60405160208183030381529060405292505050919050565b610ef28461180e565b949350505050565b610f026111e5565b6001600160a01b038116610f675760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161064b565b610f70816116ab565b50565b600061061d826118f2565b60008111610fe95760405162461bcd60e51b815260206004820152603260248201527f536561736f6e506173734e46543a204d757374206d696e742031206f72206d6f6044820152713932903832b9103a3930b739b0b1ba34b7b760711b606482015260840161064b565b600a8111156110595760405162461bcd60e51b815260206004820152603660248201527f536561736f6e506173734e46543a2045786365656473206d6178206d696e7420604482015275373ab6b132b9103832b9103a3930b739b0b1ba34b7b760511b606482015260840161064b565b612710611065600b5490565b11156110c15760405162461bcd60e51b815260206004820152602560248201527f536561736f6e506173734e46543a204d656d62657220746f6b656e7320736f6c60448201526419081bdd5d60da1b606482015260840161064b565b612710816110ce600b5490565b6110d89190612300565b11156111695760405162461bcd60e51b815260206004820152605460248201527f536561736f6e506173734e46543a204578636565647320746865206e756d626560448201527f722072656d61696e696e672e2054727920616761696e2c207265717565737469606482015273373390309039b6b0b63632b910373ab6b132b91760611b608482015260a40161064b565b60005b8181101561069757611182600b80546001019055565b611190600a80546001019055565b600061119b600a5490565b90506111a78482611932565b60405181907f97cccaeb7b41d00b4a9109298669b22f02408587f5b2ab3e360137d7342c971390600090a250806111dd816123c9565b91505061116c565b6009546001600160a01b03163314610ca25760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161064b565b6127106001600160601b038216111561126a5760405162461bcd60e51b815260040161064b90612268565b6001600160a01b0382166112c05760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c696420726563656976657200000000000000604482015260640161064b565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600055565b6000818152600460205260409020546001600160a01b0316610f705760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b604482015260640161064b565b600081815260066020526040902080546001600160a01b0319166001600160a01b038416908117909155819061138d82610baa565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000806113d283610baa565b9050806001600160a01b0316846001600160a01b0316148061141957506001600160a01b0380821660009081526007602090815260408083209388168352929052205460ff165b80610ef25750836001600160a01b031661143284610744565b6001600160a01b031614949350505050565b826001600160a01b031661145782610baa565b6001600160a01b0316146114bb5760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b606482015260840161064b565b6001600160a01b03821661151d5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b606482015260840161064b565b611528600082611358565b6001600160a01b038316600090815260056020526040812080546001929061155190849061234b565b90915550506001600160a01b038216600090815260056020526040812080546001929061157f908490612300565b909155505060008181526004602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6127106001600160601b038216111561160b5760405162461bcd60e51b815260040161064b90612268565b6001600160a01b0382166116615760405162461bcd60e51b815260206004820152601b60248201527f455243323938313a20496e76616c696420706172616d65746572730000000000604482015260640161064b565b6040805180820182526001600160a01b0393841681526001600160601b0392831660208083019182526000968752600190529190942093519051909116600160a01b029116179055565b600980546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b0316141561175f5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015260640161064b565b6001600160a01b03838116600081815260076020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6117d7848484611444565b6117e384848484611a74565b610d945760405162461bcd60e51b815260040161064b906121d4565b6060601280546106c19061238e565b6060611819826112f9565b600082815260086020526040812080546118329061238e565b80601f016020809104026020016040519081016040528092919081815260200182805461185e9061238e565b80156118ab5780601f10611880576101008083540402835291602001916118ab565b820191906000526020600020905b81548152906001019060200180831161188e57829003601f168201915b5050505050905060006118bc6117ff565b90508051600014156118cf575092915050565b8151156118e9578082604051602001610ed1929190612155565b610ef284611b81565b60006001600160e01b031982166380ac58cd60e01b148061192357506001600160e01b03198216635b5e139f60e01b145b8061061d575061061d82611be8565b6001600160a01b0382166119885760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015260640161064b565b6000818152600460205260409020546001600160a01b0316156119ed5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015260640161064b565b6001600160a01b0382166000908152600560205260408120805460019290611a16908490612300565b909155505060008181526004602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60006001600160a01b0384163b15611b7657604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611ab8903390899088908890600401612184565b602060405180830381600087803b158015611ad257600080fd5b505af1925050508015611b02575060408051601f3d908101601f19168201909252611aff91810190612053565b60015b611b5c573d808015611b30576040519150601f19603f3d011682016040523d82523d6000602084013e611b35565b606091505b508051611b545760405162461bcd60e51b815260040161064b906121d4565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050610ef2565b506001949350505050565b6060611b8c826112f9565b6000611b966117ff565b90506000815111611bb65760405180602001604052806000815250611be1565b80611bc084611c1d565b604051602001611bd1929190612155565b6040516020818303038152906040525b9392505050565b60006001600160e01b0319821663152a902d60e11b148061061d57506301ffc9a760e01b6001600160e01b031983161461061d565b606081611c415750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611c6b5780611c55816123c9565b9150611c649050600a83612318565b9150611c45565b60008167ffffffffffffffff811115611c9457634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611cbe576020820181803683370190505b5090505b8415610ef257611cd360018361234b565b9150611ce0600a866123e4565b611ceb906030612300565b60f81b818381518110611d0e57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350611d30600a86612318565b9450611cc2565b828054611d439061238e565b90600052602060002090601f016020900481019282611d655760008555611dab565b82601f10611d7e57805160ff1916838001178555611dab565b82800160010185558215611dab579182015b82811115611dab578251825591602001919060010190611d90565b50611db7929150611dbb565b5090565b5b80821115611db75760008155600101611dbc565b600067ffffffffffffffff80841115611deb57611deb612424565b604051601f8501601f19908116603f01168101908282118183101715611e1357611e13612424565b81604052809350858152868686011115611e2c57600080fd5b858560208301376000602087830101525050509392505050565b80356001600160a01b0381168114611e5d57600080fd5b919050565b80356001600160601b0381168114611e5d57600080fd5b600060208284031215611e8a578081fd5b611be182611e46565b60008060408385031215611ea5578081fd5b611eae83611e46565b9150611ebc60208401611e46565b90509250929050565b600080600060608486031215611ed9578081fd5b611ee284611e46565b9250611ef060208501611e46565b9150604084013590509250925092565b60008060008060808587031215611f15578081fd5b611f1e85611e46565b9350611f2c60208601611e46565b925060408501359150606085013567ffffffffffffffff811115611f4e578182fd5b8501601f81018713611f5e578182fd5b611f6d87823560208401611dd0565b91505092959194509250565b60008060408385031215611f8b578182fd5b611f9483611e46565b915060208301358015158114611fa8578182fd5b809150509250929050565b60008060408385031215611fc5578182fd5b611fce83611e46565b946020939093013593505050565b600080600060608486031215611ff0578283fd5b611ff984611e46565b95602085013595506040909401359392505050565b60008060408385031215612020578182fd5b61202983611e46565b9150611ebc60208401611e62565b600060208284031215612048578081fd5b8135611be18161243a565b600060208284031215612064578081fd5b8151611be18161243a565b600060208284031215612080578081fd5b813567ffffffffffffffff811115612096578182fd5b8201601f810184136120a6578182fd5b610ef284823560208401611dd0565b6000602082840312156120c6578081fd5b5035919050565b6000806000606084860312156120e1578283fd5b833592506120f160208501611e46565b91506120ff60408501611e62565b90509250925092565b6000806040838503121561211a578182fd5b50508035926020909101359150565b60008151808452612141816020860160208601612362565b601f01601f19169290920160200192915050565b60008351612167818460208801612362565b83519083019061217b818360208801612362565b01949350505050565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906121b790830184612129565b9695505050505050565b602081526000611be16020830184612129565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526022908201527f536561736f6e506173734e46543a204e6f7420656e6f756768204554482073656040820152611b9d60f21b606082015260800190565b6020808252602a908201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646040820152692073616c65507269636560b01b606082015260800190565b6020808252602e908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526d1c881b9bdc88185c1c1c9bdd995960921b606082015260800190565b60008219821115612313576123136123f8565b500190565b6000826123275761232761240e565b500490565b6000816000190483118215151615612346576123466123f8565b500290565b60008282101561235d5761235d6123f8565b500390565b60005b8381101561237d578181015183820152602001612365565b83811115610d945750506000910152565b600181811c908216806123a257607f821691505b602082108114156123c357634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156123dd576123dd6123f8565b5060010190565b6000826123f3576123f361240e565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b031981168114610f7057600080fdfea26469706673582212202b7e58374795b44400fe7a9ce3673c2ecc6e585bacbd03da5dd2c262547df7ae64736f6c63430008040033

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.