ETH Price: $3,714.29 (+4.76%)

Contract

0xf39aEC568494668A1b864B64de28ef4E660357Ed
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Amount:Between 1-100k
Reset Filter

Transaction Hash
Method
Block
From
To

There are no matching entries

Update your filters to view other transactions

Latest 1 internal transaction

Advanced mode:
Parent Transaction Hash Block From To
147188002022-05-05 18:31:00939 days ago1651775460
0xf39aEC56...E660357Ed
1.72 ETH
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
FourLetterWords

Compiler Version
v0.8.6+commit.11564f7e

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 17 : FourLetterWords.sol
// SPDX-License-Identifier: UNLICENSED
//
//
//  .----------------.  .----------------.  .----------------.  .----------------.                                         
// | .--------------. || .--------------. || .--------------. || .--------------. |                                        
// | |  _________   | || |     ____     | || | _____  _____ | || |  _______     | |                                        
// | | |_   ___  |  | || |   .'    `.   | || ||_   _||_   _|| || | |_   __ \    | |                                        
// | |   | |_  \_|  | || |  /  .--.  \  | || |  | |    | |  | || |   | |__) |   | |                                        
// | |   |  _|      | || |  | |    | |  | || |  | '    ' |  | || |   |  __ /    | |                                        
// | |  _| |_       | || |  \  `--'  /  | || |   \ `--' /   | || |  _| |  \ \_  | |                                        
// | | |_____|      | || |   `.____.'   | || |    `.__.'    | || | |____| |___| | |                                        
// | |              | || |              | || |              | || |              | |                                        
// | '--------------' || '--------------' || '--------------' || '--------------' |                                        
//  '----------------'  '----------------'  '----------------'  '----------------'                                         
//  .----------------.  .----------------.  .----------------.  .----------------.  .----------------.  .----------------. 
// | .--------------. || .--------------. || .--------------. || .--------------. || .--------------. || .--------------. |
// | |   _____      | || |  _________   | || |  _________   | || |  _________   | || |  _________   | || |  _______     | |
// | |  |_   _|     | || | |_   ___  |  | || | |  _   _  |  | || | |  _   _  |  | || | |_   ___  |  | || | |_   __ \    | |
// | |    | |       | || |   | |_  \_|  | || | |_/ | | \_|  | || | |_/ | | \_|  | || |   | |_  \_|  | || |   | |__) |   | |
// | |    | |   _   | || |   |  _|  _   | || |     | |      | || |     | |      | || |   |  _|  _   | || |   |  __ /    | |
// | |   _| |__/ |  | || |  _| |___/ |  | || |    _| |_     | || |    _| |_     | || |  _| |___/ |  | || |  _| |  \ \_  | |
// | |  |________|  | || | |_________|  | || |   |_____|    | || |   |_____|    | || | |_________|  | || | |____| |___| | |
// | |              | || |              | || |              | || |              | || |              | || |              | |
// | '--------------' || '--------------' || '--------------' || '--------------' || '--------------' || '--------------' |
//  '----------------'  '----------------'  '----------------'  '----------------'  '----------------'  '----------------' 
//  .----------------.  .----------------.  .----------------.  .----------------.  .----------------.                     
// | .--------------. || .--------------. || .--------------. || .--------------. || .--------------. |                    
// | | _____  _____ | || |     ____     | || |  _______     | || |  ________    | || |    _______   | |                    
// | ||_   _||_   _|| || |   .'    `.   | || | |_   __ \    | || | |_   ___ `.  | || |   /  ___  |  | |                    
// | |  | | /\ | |  | || |  /  .--.  \  | || |   | |__) |   | || |   | |   `. \ | || |  |  (__ \_|  | |                    
// | |  | |/  \| |  | || |  | |    | |  | || |   |  __ /    | || |   | |    | | | || |   '.___`-.   | |                    
// | |  |   /\   |  | || |  \  `--'  /  | || |  _| |  \ \_  | || |  _| |___.' / | || |  |`\____) |  | |                    
// | |  |__/  \__|  | || |   `.____.'   | || | |____| |___| | || | |________.'  | || |  |_______.'  | |                    
// | |              | || |              | || |              | || |              | || |              | |                    
// | '--------------' || '--------------' || '--------------' || '--------------' || '--------------' |                    
//  '----------------'  '----------------'  '----------------'  '----------------'  '----------------'                     
//
//

pragma solidity 0.8.6;

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";

import "erc721a/contracts/ERC721A.sol";

import "./Split.sol";

contract FourLetterWords is ERC721A, Ownable {

    using Strings for uint256;
    using SafeERC20 for IERC20;

    // Events
    event RoyaltiesSet(uint256 oldAmount, uint256 newAmount, address recipient);

    // Error messages
    string private constant WRONG_PRICE = "Cash Wrong";
    string private constant LIMIT_EXCEEDED = "Mint Less";
    string private constant UNAUTHORIZED = "Nada Bruh";
    string private constant WHITELIST_PAUSED = "Need Wait";
    string private constant PUBLIC_PAUSED = "Need Wait";
    string private constant DOES_NOT_EXIST = "Nada Word";
    string private constant FROZEN = "Mint Over";
    string private constant NOT_FROZEN = "Nada Mint Over";
    string private constant HASH_NOT_SET = "Nada Hash Over";
    string private constant HASH_MISMATCH = "This Hash Awry";
    string private constant ALREADY_REVEALED = "Show Over";
    string private constant NO_SPLIT = "Nada Split";
    string private constant NO_CONTRACTS = "Nada Bots";

    // Limits and pricing
    uint256 public constant WHITELIST_PRICE = 0.04 ether;
    uint256 public constant PUBLIC_PRICE = 0.04 ether;
    uint256 public constant TOTAL_LIMIT = 666;
    uint256 public constant RESERVED = 222;
    uint256 public constant PER_WALLET_MINT = 8;
    mapping (address => uint256) public minted;

    // Contract that takes care of payments
    address public split;

    // Pausing
    bool public whitelistMintPaused = true;
    bool public publicMintPaused = true;

    // Reveal flags
    bool public frozen;
    bool public revealed;
    bytes32 public revealHash;
    bytes32 public shift;

    // NFT metadata configuration
    string public uriConfig;
    mapping (uint256 => string) public oneOffs;

    // Royalties
    uint256 public royalty = 75;
    address public royaltyRecipient = 0xC385211ea8D454269139108748C129a50B63CCf1;
    bytes4 private constant _INTERFACE_ID_ERC2981 = 0x2a55205a;


    /**
     * Updates the shift, intended for minting methods
     */
    modifier updateShift(uint256 _back) {
        _;
        for (uint256 i = 0; i < _back; i++) {
            shift = keccak256(abi.encode(blockhash(block.number - i), shift));
        }
    }

    /**
     * Modifier for preventing smart contracts from participating
     * in the drop.
     */
    modifier onlyEOA() {
        require(msg.sender == tx.origin, NO_CONTRACTS);
        _;
    }

    /**
     * Constructor, no special features
     */
    constructor(string memory name_, string memory symbol_) ERC721A(name_, symbol_) updateShift(0) {
    }

    /**
     * A method for public mint. Expects to receive ETH for every NFT
     * to be minted. Updates the shift variable as a side effect.
     *
     * _number The number of NFTs to be minted to the msg.sender
     */
    function mintPublic(uint256 _number) public payable onlyEOA updateShift(1) {
        // check pause and freeze
        require(!frozen, FROZEN);
        require(!publicMintPaused, PUBLIC_PAUSED);

        // check the price and limits
        require(msg.value == _number * PUBLIC_PRICE, WRONG_PRICE);

        // mint the NFTs
        minted[msg.sender] += _number;
        _safeMint(msg.sender, _number);

        // check supply and limits
        require(totalSupply() <= TOTAL_LIMIT, LIMIT_EXCEEDED);
        require(minted[msg.sender] <= PER_WALLET_MINT, LIMIT_EXCEEDED);
    }

    /**
     * A method for the whitelist mint. Expects to receive ETH for
     * every NFT to be minted. Updates the shift variable as a side 
     * effect. Uses owner's signature to validate caller's presence
     * on the whitelist.
     *
     * _signature The hash of the msg.sender signed by the owner
     * _number The number of NFTs to be minted to the msg.sender
     */
    function mintWhitelist(bytes calldata _signature, uint256 _number) public payable onlyEOA updateShift(1) {
        // check pause and freeze
        require(!whitelistMintPaused, WHITELIST_PAUSED);
        require(!frozen, FROZEN);

        // check whitelist authorization first
        bytes32 authorizationDigest = getWhitelistDigest(msg.sender);
        bytes32 message = ECDSA.toEthSignedMessageHash(authorizationDigest);
        address authority = recoverSigner(message, _signature);
        require(authority == owner(), UNAUTHORIZED);

        // check the price and limits
        require(msg.value == _number * WHITELIST_PRICE, WRONG_PRICE);

        // mint the NFTs
        minted[msg.sender] += _number;
        _safeMint(msg.sender, _number);

        // check supply
        require(totalSupply() <= TOTAL_LIMIT, LIMIT_EXCEEDED);
        require(minted[msg.sender] <= PER_WALLET_MINT, LIMIT_EXCEEDED);
    }

    /**
     * A method for gift mints by the owner. No ETH needed, but still
     * subject to the overall limit on the number of NFTs minted.
     * Updates the shift variable as a side effect.
     *
     * _recipient The address to mint the NFTs to
     * _number How many NFTs should be minted
     */
    function mintGift(address _recipient, uint256 _number) public onlyOwner updateShift(1) {
        // check freeze
        require(!frozen, FROZEN);

        _safeMint(_recipient, _number);
        
        // check supply
        require(totalSupply() <= TOTAL_LIMIT, LIMIT_EXCEEDED);
    }

    /**
     * Returns the digest to be signed using `await web3.eth.sign(digest, signer);`.
     */
    function getWhitelistDigest(address minter) public pure returns (bytes32) {
        return keccak256(abi.encode(minter));
    }

    /**
     * Extracts the signer from a digest and the signature. Can be used 
     * together with the `getWhitelistDigest()` method and `await web3.eth.sign()`.
     */
    function recoverSigner(bytes32 digest, bytes calldata _signature) public pure returns (address) {
        return ECDSA.recover(digest, _signature);
    }

    /**
     * Returns the base URI for the NFTs. The override method used by the
     * contract dependencies.
     */
    function _baseURI() internal view override returns (string memory) {
        return uriConfig;
    }

    /**
     * Returns the token metadata URI. If the reveal did not happen yet,
     * returns the same base URI for all the tokens. If the reveal happened
     * already, returns base URI with the shifted token ID, unless the
     * token has a one-off URI defined by the owner.
     */
    function tokenURI(uint256 _tokenId) public view override returns (string memory) {
        require(_exists(_tokenId), DOES_NOT_EXIST);

        // If the drop is not revealed, returns the base URI for every NFT
        if (!revealed) {
            return _baseURI();
        }

        // If a custom URI is configured, return it
        if (bytes(oneOffs[_tokenId]).length > 0) {
            return oneOffs[_tokenId];
        }

        // Otherwise use the default behaviour, but skip the existence check
        string memory baseURI = _baseURI();
        uint256 shiftedId = shifted(_tokenId);
        return bytes(baseURI).length != 0 
            ? string(abi.encodePacked(baseURI, shiftedId.toString(), '.json')) 
            : '';
    }

    /**
     * Returns the shifted ID of the token. Shifting is frozen during the
     * reveal process and is intended to guarantee fairness in the distribution
     * of the NFTs.
     */
    function shifted(uint256 _tokenId) public view returns(uint256) {
        if (_tokenId < RESERVED) {
            return _tokenId;
        }
        uint256 mod = TOTAL_LIMIT - RESERVED;
        return (_tokenId + (uint256(shift) % mod)) % mod + RESERVED;
    }

    /**
     * An owner-only configuration method for setting the metadata URI for the
     * pre-reveal phase. In this phase, all the NFTs will have the same
     * metadata. The URI in this phase can be repeatedly changed by the owner.
     *
     * _uriConfig The metadata URI for the NFTs
     */
    function configurePrereveal(string calldata _uriConfig) public onlyOwner {
        require(!revealed, ALREADY_REVEALED);
        uriConfig = _uriConfig;
    }

    /**
     * The method for initiating the reveal process. It stores the hash of the
     * base URI that will be set for the NFT collection. The mint cannot be
     * frozen as freezing will again re-shuffle the metadata. However, the hash 
     * can be set repeatedly for the ability to correct errors.
     *
     * _hash The hash of the base URI for the NFT collection
     */
    function commitReveal(bytes32 _hash) public onlyOwner {
        require(!frozen, FROZEN);
        require(!revealed, ALREADY_REVEALED);
        revealHash = _hash;
    }

    /**
     * The method for freezing the minting process. Updates the shift one
     * last time based on the hashed in the past 32 blocks. No minting
     * will be possible after calling this method, and the shift will be
     * frozen as well. Hash of the base URI will be frozen too.
     */
    function freeze() public onlyOwner updateShift(32) {
        require(revealHash != bytes32(0), HASH_NOT_SET);
        frozen = true;
    }

    /**
     * A method for finalizing the reveal process. Sets the base URI that
     * matches the hash. The mint has to be frozen, otherwise the call
     * reverts.
     *
     * _uriConfig The base URI for the NFT collection
     */
    function reveal(string calldata _uriConfig) public onlyOwner {
        require(keccak256(abi.encodePacked(_uriConfig)) == revealHash, HASH_MISMATCH);
        require(frozen, NOT_FROZEN);
        require(!revealed, ALREADY_REVEALED);
        uriConfig = _uriConfig;
        revealed = true;
    }

    /**
     * Configures a custom metadata URI for a single token that the owner
     * owns. Allows the owner to create special gift and collaboration NFTs.
     *
     * _id The token ID to set the custom URI for
     * _customUri The URI for this NFT
     */
    function configureTokenURI(uint256 _id, string calldata _customUri) external onlyOwner {
        require(ownerOf(_id) == owner(), UNAUTHORIZED);

        oneOffs[_id] = _customUri;
    }

    /**
     * Pauses and unpauses the mint for the whitelist.
     */
    function pauseWhitelistMint(bool _pause) external onlyOwner {
        whitelistMintPaused = _pause;
    }

    /**
     * Pauses and unpauses the mint for the general public.
     */
    function pausePublicMint(bool _pause) external onlyOwner {
        publicMintPaused = _pause;
    }


    /**
     * Configures the payment smart contract. The contract
     * can be address(0).
     */
    function setSplit(address _split) public onlyOwner {
        split = _split;
    }

    /**
     * Sends funds to the payment smart contract.
     */
    function drain(address _token, uint256 _amount) public {
        require(split != address(0), NO_SPLIT);

        if (_token == address(0)) {
            Split(payable(split)).pay{value: _amount}(address(0), _amount);
        } else {
            IERC20(_token).safeApprove(split, 0);
            IERC20(_token).safeApprove(split, _amount);
            Split(payable(split)).pay(_token, _amount);
        }
    }

    /**
     * Sets royalties, with base 1000
     */
    function setRoyalties(uint256 _royalty, address _recipient) public onlyOwner {
        emit RoyaltiesSet(royalty, _royalty, _recipient);
        royalty = _royalty;
        royaltyRecipient = _recipient;
    }

    /**
     * EIP-2981 support, returns the royalty amount to be paid to this
     * address. Uses the splitter mechanism for distributing the funds
     * in order to save gas fees for the traders.
     */
    function royaltyInfo(uint256 _tokenId, uint256 _salePrice) external view 
    returns (address, uint256) {
        return (address(royaltyRecipient), _salePrice * royalty / 1000);
    }

    /**
     * Indicates the support for the ERC2981 interface, plus super
     */
    function supportsInterface(bytes4 _interfaceId) public override view returns (bool) {
        if (_interfaceId == _INTERFACE_ID_ERC2981) {
            return true;
        }
        return super.supportsInterface(_interfaceId);
    }
}

File 2 of 17 : Ownable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

File 3 of 17 : ERC721.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

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

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

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

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

        _transfer(from, to, tokenId);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfer(from, to, tokenId);

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

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

        emit Transfer(from, to, tokenId);
    }

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

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

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

File 4 of 17 : IERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `recipient`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address recipient, uint256 amount) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `sender` to `recipient` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address sender,
        address recipient,
        uint256 amount
    ) external returns (bool);

    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);
}

File 5 of 17 : SafeERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC20.sol";
import "../../../utils/Address.sol";

/**
 * @title SafeERC20
 * @dev Wrappers around ERC20 operations that throw on failure (when the token
 * contract returns false). Tokens that return no value (and instead revert or
 * throw on failure) are also supported, non-reverting calls are assumed to be
 * successful.
 * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeERC20 {
    using Address for address;

    function safeTransfer(
        IERC20 token,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
    }

    function safeTransferFrom(
        IERC20 token,
        address from,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
    }

    /**
     * @dev Deprecated. This function has issues similar to the ones found in
     * {IERC20-approve}, and its usage is discouraged.
     *
     * Whenever possible, use {safeIncreaseAllowance} and
     * {safeDecreaseAllowance} instead.
     */
    function safeApprove(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        // safeApprove should only be called when setting an initial allowance,
        // or when resetting it to zero. To increase and decrease it, use
        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
        require(
            (value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeERC20: approve from non-zero to non-zero allowance"
        );
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

    function safeIncreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        uint256 newAllowance = token.allowance(address(this), spender) + value;
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    function safeDecreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        unchecked {
            uint256 oldAllowance = token.allowance(address(this), spender);
            require(oldAllowance >= value, "SafeERC20: decreased allowance below zero");
            uint256 newAllowance = oldAllowance - value;
            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
        }
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     */
    function _callOptionalReturn(IERC20 token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that
        // the target address contains contract code and also asserts for success in the low-level call.

        bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
        if (returndata.length > 0) {
            // Return data is optional
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

        return (signer, RecoverError.NoError);
    }

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

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

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

File 7 of 17 : ERC721A.sol
// SPDX-License-Identifier: MIT
// Creator: Chiru Labs

pragma solidity ^0.8.4;

import '@openzeppelin/contracts/token/ERC721/IERC721.sol';
import '@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol';
import '@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol';
import '@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol';
import '@openzeppelin/contracts/utils/Address.sol';
import '@openzeppelin/contracts/utils/Context.sol';
import '@openzeppelin/contracts/utils/Strings.sol';
import '@openzeppelin/contracts/utils/introspection/ERC165.sol';

error ApprovalCallerNotOwnerNorApproved();
error ApprovalQueryForNonexistentToken();
error ApproveToCaller();
error ApprovalToCurrentOwner();
error BalanceQueryForZeroAddress();
error MintedQueryForZeroAddress();
error BurnedQueryForZeroAddress();
error AuxQueryForZeroAddress();
error MintToZeroAddress();
error MintZeroQuantity();
error OwnerIndexOutOfBounds();
error OwnerQueryForNonexistentToken();
error TokenIndexOutOfBounds();
error TransferCallerNotOwnerNorApproved();
error TransferFromIncorrectOwner();
error TransferToNonERC721ReceiverImplementer();
error TransferToZeroAddress();
error URIQueryForNonexistentToken();

/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
 * the Metadata extension. Built to optimize for lower gas during batch mints.
 *
 * Assumes serials are sequentially minted starting at _startTokenId() (defaults to 0, e.g. 0, 1, 2, 3..).
 *
 * Assumes that an owner cannot have more than 2**64 - 1 (max value of uint64) of supply.
 *
 * Assumes that the maximum token id cannot exceed 2**256 - 1 (max value of uint256).
 */
contract ERC721A is Context, ERC165, IERC721, IERC721Metadata {
    using Address for address;
    using Strings for uint256;

    // Compiler will pack this into a single 256bit word.
    struct TokenOwnership {
        // The address of the owner.
        address addr;
        // Keeps track of the start time of ownership with minimal overhead for tokenomics.
        uint64 startTimestamp;
        // Whether the token has been burned.
        bool burned;
    }

    // Compiler will pack this into a single 256bit word.
    struct AddressData {
        // Realistically, 2**64-1 is more than enough.
        uint64 balance;
        // Keeps track of mint count with minimal overhead for tokenomics.
        uint64 numberMinted;
        // Keeps track of burn count with minimal overhead for tokenomics.
        uint64 numberBurned;
        // For miscellaneous variable(s) pertaining to the address
        // (e.g. number of whitelist mint slots used).
        // If there are multiple variables, please pack them into a uint64.
        uint64 aux;
    }

    // The tokenId of the next token to be minted.
    uint256 internal _currentIndex;

    // The number of tokens burned.
    uint256 internal _burnCounter;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Mapping from token ID to ownership details
    // An empty struct value does not necessarily mean the token is unowned. See ownershipOf implementation for details.
    mapping(uint256 => TokenOwnership) internal _ownerships;

    // Mapping owner address to address data
    mapping(address => AddressData) private _addressData;

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

    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
        _currentIndex = _startTokenId();
    }

    /**
     * To change the starting tokenId, please override this function.
     */
    function _startTokenId() internal view virtual returns (uint256) {
        return 0;
    }

    /**
     * @dev See {IERC721Enumerable-totalSupply}.
     * @dev Burned tokens are calculated here, use _totalMinted() if you want to count just minted tokens.
     */
    function totalSupply() public view returns (uint256) {
        // Counter underflow is impossible as _burnCounter cannot be incremented
        // more than _currentIndex - _startTokenId() times
        unchecked {
            return _currentIndex - _burnCounter - _startTokenId();
        }
    }

    /**
     * Returns the total amount of tokens minted in the contract.
     */
    function _totalMinted() internal view returns (uint256) {
        // Counter underflow is impossible as _currentIndex does not decrement,
        // and it is initialized to _startTokenId()
        unchecked {
            return _currentIndex - _startTokenId();
        }
    }

    /**
     * @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 override returns (uint256) {
        if (owner == address(0)) revert BalanceQueryForZeroAddress();
        return uint256(_addressData[owner].balance);
    }

    /**
     * Returns the number of tokens minted by `owner`.
     */
    function _numberMinted(address owner) internal view returns (uint256) {
        if (owner == address(0)) revert MintedQueryForZeroAddress();
        return uint256(_addressData[owner].numberMinted);
    }

    /**
     * Returns the number of tokens burned by or on behalf of `owner`.
     */
    function _numberBurned(address owner) internal view returns (uint256) {
        if (owner == address(0)) revert BurnedQueryForZeroAddress();
        return uint256(_addressData[owner].numberBurned);
    }

    /**
     * Returns the auxillary data for `owner`. (e.g. number of whitelist mint slots used).
     */
    function _getAux(address owner) internal view returns (uint64) {
        if (owner == address(0)) revert AuxQueryForZeroAddress();
        return _addressData[owner].aux;
    }

    /**
     * Sets the auxillary data for `owner`. (e.g. number of whitelist mint slots used).
     * If there are multiple variables, please pack them into a uint64.
     */
    function _setAux(address owner, uint64 aux) internal {
        if (owner == address(0)) revert AuxQueryForZeroAddress();
        _addressData[owner].aux = aux;
    }

    /**
     * Gas spent here starts off proportional to the maximum mint batch size.
     * It gradually moves to O(1) as tokens get transferred around in the collection over time.
     */
    function ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) {
        uint256 curr = tokenId;

        unchecked {
            if (_startTokenId() <= curr && curr < _currentIndex) {
                TokenOwnership memory ownership = _ownerships[curr];
                if (!ownership.burned) {
                    if (ownership.addr != address(0)) {
                        return ownership;
                    }
                    // Invariant:
                    // There will always be an ownership that has an address and is not burned
                    // before an ownership that does not have an address and is not burned.
                    // Hence, curr will not underflow.
                    while (true) {
                        curr--;
                        ownership = _ownerships[curr];
                        if (ownership.addr != address(0)) {
                            return ownership;
                        }
                    }
                }
            }
        }
        revert OwnerQueryForNonexistentToken();
    }

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view override returns (address) {
        return ownershipOf(tokenId).addr;
    }

    /**
     * @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) {
        if (!_exists(tokenId)) revert URIQueryForNonexistentToken();

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

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

    /**
     * @dev See {IERC721-approve}.
     */
    function approve(address to, uint256 tokenId) public override {
        address owner = ERC721A.ownerOf(tokenId);
        if (to == owner) revert ApprovalToCurrentOwner();

        if (_msgSender() != owner && !isApprovedForAll(owner, _msgSender())) {
            revert ApprovalCallerNotOwnerNorApproved();
        }

        _approve(to, tokenId, owner);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view override returns (address) {
        if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken();

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public override {
        if (operator == _msgSender()) revert ApproveToCaller();

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

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

    /**
     * @dev See {IERC721-transferFrom}.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        _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 {
        _transfer(from, to, tokenId);
        if (to.isContract() && !_checkContractOnERC721Received(from, to, tokenId, _data)) {
            revert TransferToNonERC721ReceiverImplementer();
        }
    }

    /**
     * @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`),
     */
    function _exists(uint256 tokenId) internal view returns (bool) {
        return _startTokenId() <= tokenId && tokenId < _currentIndex &&
            !_ownerships[tokenId].burned;
    }

    function _safeMint(address to, uint256 quantity) internal {
        _safeMint(to, quantity, '');
    }

    /**
     * @dev Safely mints `quantity` tokens and transfers them to `to`.
     *
     * Requirements:
     *
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called for each safe transfer.
     * - `quantity` must be greater than 0.
     *
     * Emits a {Transfer} event.
     */
    function _safeMint(
        address to,
        uint256 quantity,
        bytes memory _data
    ) internal {
        _mint(to, quantity, _data, true);
    }

    /**
     * @dev Mints `quantity` tokens and transfers them to `to`.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `quantity` must be greater than 0.
     *
     * Emits a {Transfer} event.
     */
    function _mint(
        address to,
        uint256 quantity,
        bytes memory _data,
        bool safe
    ) internal {
        uint256 startTokenId = _currentIndex;
        if (to == address(0)) revert MintToZeroAddress();
        if (quantity == 0) revert MintZeroQuantity();

        _beforeTokenTransfers(address(0), to, startTokenId, quantity);

        // Overflows are incredibly unrealistic.
        // balance or numberMinted overflow if current value of either + quantity > 1.8e19 (2**64) - 1
        // updatedIndex overflows if _currentIndex + quantity > 1.2e77 (2**256) - 1
        unchecked {
            _addressData[to].balance += uint64(quantity);
            _addressData[to].numberMinted += uint64(quantity);

            _ownerships[startTokenId].addr = to;
            _ownerships[startTokenId].startTimestamp = uint64(block.timestamp);

            uint256 updatedIndex = startTokenId;
            uint256 end = updatedIndex + quantity;

            if (safe && to.isContract()) {
                do {
                    emit Transfer(address(0), to, updatedIndex);
                    if (!_checkContractOnERC721Received(address(0), to, updatedIndex++, _data)) {
                        revert TransferToNonERC721ReceiverImplementer();
                    }
                } while (updatedIndex != end);
                // Reentrancy protection
                if (_currentIndex != startTokenId) revert();
            } else {
                do {
                    emit Transfer(address(0), to, updatedIndex++);
                } while (updatedIndex != end);
            }
            _currentIndex = updatedIndex;
        }
        _afterTokenTransfers(address(0), to, startTokenId, quantity);
    }

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *
     * 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
    ) private {
        TokenOwnership memory prevOwnership = ownershipOf(tokenId);

        bool isApprovedOrOwner = (_msgSender() == prevOwnership.addr ||
            isApprovedForAll(prevOwnership.addr, _msgSender()) ||
            getApproved(tokenId) == _msgSender());

        if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved();
        if (prevOwnership.addr != from) revert TransferFromIncorrectOwner();
        if (to == address(0)) revert TransferToZeroAddress();

        _beforeTokenTransfers(from, to, tokenId, 1);

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

        // Underflow of the sender's balance is impossible because we check for
        // ownership above and the recipient's balance can't realistically overflow.
        // Counter overflow is incredibly unrealistic as tokenId would have to be 2**256.
        unchecked {
            _addressData[from].balance -= 1;
            _addressData[to].balance += 1;

            _ownerships[tokenId].addr = to;
            _ownerships[tokenId].startTimestamp = uint64(block.timestamp);

            // If the ownership slot of tokenId+1 is not explicitly set, that means the transfer initiator owns it.
            // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls.
            uint256 nextTokenId = tokenId + 1;
            if (_ownerships[nextTokenId].addr == address(0)) {
                // This will suffice for checking _exists(nextTokenId),
                // as a burned slot cannot contain the zero address.
                if (nextTokenId < _currentIndex) {
                    _ownerships[nextTokenId].addr = prevOwnership.addr;
                    _ownerships[nextTokenId].startTimestamp = prevOwnership.startTimestamp;
                }
            }
        }

        emit Transfer(from, to, tokenId);
        _afterTokenTransfers(from, to, tokenId, 1);
    }

    /**
     * @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 {
        TokenOwnership memory prevOwnership = ownershipOf(tokenId);

        _beforeTokenTransfers(prevOwnership.addr, address(0), tokenId, 1);

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

        // Underflow of the sender's balance is impossible because we check for
        // ownership above and the recipient's balance can't realistically overflow.
        // Counter overflow is incredibly unrealistic as tokenId would have to be 2**256.
        unchecked {
            _addressData[prevOwnership.addr].balance -= 1;
            _addressData[prevOwnership.addr].numberBurned += 1;

            // Keep track of who burned the token, and the timestamp of burning.
            _ownerships[tokenId].addr = prevOwnership.addr;
            _ownerships[tokenId].startTimestamp = uint64(block.timestamp);
            _ownerships[tokenId].burned = true;

            // If the ownership slot of tokenId+1 is not explicitly set, that means the burn initiator owns it.
            // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls.
            uint256 nextTokenId = tokenId + 1;
            if (_ownerships[nextTokenId].addr == address(0)) {
                // This will suffice for checking _exists(nextTokenId),
                // as a burned slot cannot contain the zero address.
                if (nextTokenId < _currentIndex) {
                    _ownerships[nextTokenId].addr = prevOwnership.addr;
                    _ownerships[nextTokenId].startTimestamp = prevOwnership.startTimestamp;
                }
            }
        }

        emit Transfer(prevOwnership.addr, address(0), tokenId);
        _afterTokenTransfers(prevOwnership.addr, address(0), tokenId, 1);

        // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times.
        unchecked {
            _burnCounter++;
        }
    }

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

    /**
     * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target 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 _checkContractOnERC721Received(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) private returns (bool) {
        try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) {
            return retval == IERC721Receiver(to).onERC721Received.selector;
        } catch (bytes memory reason) {
            if (reason.length == 0) {
                revert TransferToNonERC721ReceiverImplementer();
            } else {
                assembly {
                    revert(add(32, reason), mload(reason))
                }
            }
        }
    }

    /**
     * @dev Hook that is called before a set of serially-ordered token ids are about to be transferred. This includes minting.
     * And also called before burning one token.
     *
     * startTokenId - the first token id to be transferred
     * quantity - the amount to be transferred
     *
     * 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, `tokenId` will be burned by `from`.
     * - `from` and `to` are never both zero.
     */
    function _beforeTokenTransfers(
        address from,
        address to,
        uint256 startTokenId,
        uint256 quantity
    ) internal virtual {}

    /**
     * @dev Hook that is called after a set of serially-ordered token ids have been transferred. This includes
     * minting.
     * And also called after one token has been burned.
     *
     * startTokenId - the first token id to be transferred
     * quantity - the amount to be transferred
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been
     * transferred to `to`.
     * - When `from` is zero, `tokenId` has been minted for `to`.
     * - When `to` is zero, `tokenId` has been burned by `from`.
     * - `from` and `to` are never both zero.
     */
    function _afterTokenTransfers(
        address from,
        address to,
        uint256 startTokenId,
        uint256 quantity
    ) internal virtual {}
}

File 8 of 17 : Split.sol
//SPDX-License-Identifier: UNLICENSED

pragma solidity 0.8.6;

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";

contract Split is Ownable {

    using SafeERC20 for IERC20;

    // The accounts to split the funds among
    address[] public accounts;

    // The split weightss
    uint256[] public percentages;

    // The total weight
    uint256 public total;

    /**
     * Creates the contract and sets the owner as the only recipient
     */
    constructor() {
        accounts.push(msg.sender);
        percentages.push(1);
        total = 1;
    }

    /**
     * Pays the configured accounts. The rounding error for ETH stays in this
     * contract. If the token is ERC20, the rounding error stays with msg.sender.
     */
    function pay(address _token, uint256 _amount) public payable {
        if (_token == address(0)) {
            for (uint256 i = 0; i < percentages.length; i++) {
                uint256 toTransfer = msg.value * percentages[i] / total;
                payable(accounts[i]).transfer(toTransfer);
                // the rounding error stays here
            }
        } else {
            for (uint256 i = 0; i < percentages.length; i++) {
                uint256 toTransfer = _amount * percentages[i] / total;
                IERC20(_token).safeTransferFrom(msg.sender, accounts[i], toTransfer);
                // msg.sender keeps the rounding errors
            }
        }
    }

    /**
     * Pays the configured accounts from its own balance. The rounding error
     * stays in this contract.
     */
    function payBalance(address _token, uint256 _amount) public {
        if (_token == address(0)) {
            for (uint256 i = 0; i < percentages.length; i++) {
                uint256 toTransfer = _amount * percentages[i] / total;
                payable(accounts[i]).transfer(toTransfer);
                // the rounding error stays here
            }
        } else {
            for (uint256 i = 0; i < percentages.length; i++) {
                uint256 toTransfer = _amount * percentages[i] / total;
                IERC20(_token).safeTransfer(accounts[i], toTransfer);
                // the rounding error stays here
            }
        }
    }

    /**
     * The contract is payable, so it can be used to receive and split 
     * royalties.
     */
    receive() external payable {}

    /**
     * Configures the payment recipients and split weights.
     */
    function setSplit(address[] calldata _accounts, uint256[] calldata _percentages) public onlyOwner {
        require(_accounts.length == _percentages.length, "Data length mismatch");
        require(_accounts.length > 0, "Configure at least one");
        accounts = _accounts;
        percentages = _percentages;
        uint256 newTotal = 0;
        for (uint256 i = 0; i < _percentages.length; i++) {
            newTotal += _percentages[i];
        }
        total = newTotal;
    }

    /**
     * Removes this contract from the blockchain.
     */
    function kill() public onlyOwner {
        selfdestruct(payable(msg.sender));
    }
}

File 9 of 17 : Context.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

File 10 of 17 : IERC721.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

File 11 of 17 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

File 12 of 17 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

File 13 of 17 : Address.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 14 of 17 : Strings.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

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

pragma solidity ^0.8.0;

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

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

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"name_","type":"string"},{"internalType":"string","name":"symbol_","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApprovalToCurrentOwner","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"oldAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newAmount","type":"uint256"},{"indexed":false,"internalType":"address","name":"recipient","type":"address"}],"name":"RoyaltiesSet","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":"PER_WALLET_MINT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PUBLIC_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"RESERVED","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TOTAL_LIMIT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WHITELIST_PRICE","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":"bytes32","name":"_hash","type":"bytes32"}],"name":"commitReveal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_uriConfig","type":"string"}],"name":"configurePrereveal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"string","name":"_customUri","type":"string"}],"name":"configureTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"drain","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"freeze","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"frozen","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"minter","type":"address"}],"name":"getWhitelistDigest","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"pure","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":"_number","type":"uint256"}],"name":"mintGift","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_number","type":"uint256"}],"name":"mintPublic","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"bytes","name":"_signature","type":"bytes"},{"internalType":"uint256","name":"_number","type":"uint256"}],"name":"mintWhitelist","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"minted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"oneOffs","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":"bool","name":"_pause","type":"bool"}],"name":"pausePublicMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_pause","type":"bool"}],"name":"pauseWhitelistMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"publicMintPaused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"digest","type":"bytes32"},{"internalType":"bytes","name":"_signature","type":"bytes"}],"name":"recoverSigner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_uriConfig","type":"string"}],"name":"reveal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"revealHash","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"revealed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"royalty","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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":[],"name":"royaltyRecipient","outputs":[{"internalType":"address","name":"","type":"address"}],"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":"uint256","name":"_royalty","type":"uint256"},{"internalType":"address","name":"_recipient","type":"address"}],"name":"setRoyalties","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_split","type":"address"}],"name":"setSplit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"shift","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"shifted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"split","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","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":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"uriConfig","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"whitelistMintPaused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"}]

6080604052600a805461010160a01b61ffff60a01b19909116179055604b600f55601080546001600160a01b03191673c385211ea8d454269139108748c129a50b63ccf11790553480156200005357600080fd5b5060405162003857380380620038578339810160408190526200007691620002cd565b8151829082906200008f90600290602085019062000170565b508051620000a590600390602084019062000170565b50506000805550620000b7336200011e565b6000805b818110156200011457620000d0814362000337565b600c54604080519240602084015282015260600160408051601f198184030181529190528051602090910120600c55806200010b816200038e565b915050620000bb565b50505050620003d8565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8280546200017e9062000351565b90600052602060002090601f016020900481019282620001a25760008555620001ed565b82601f10620001bd57805160ff1916838001178555620001ed565b82800160010185558215620001ed579182015b82811115620001ed578251825591602001919060010190620001d0565b50620001fb929150620001ff565b5090565b5b80821115620001fb576000815560010162000200565b600082601f8301126200022857600080fd5b81516001600160401b0380821115620002455762000245620003c2565b604051601f8301601f19908116603f01168101908282118183101715620002705762000270620003c2565b816040528381526020925086838588010111156200028d57600080fd5b600091505b83821015620002b1578582018301518183018401529082019062000292565b83821115620002c35760008385830101525b9695505050505050565b60008060408385031215620002e157600080fd5b82516001600160401b0380821115620002f957600080fd5b620003078683870162000216565b935060208501519150808211156200031e57600080fd5b506200032d8582860162000216565b9150509250929050565b6000828210156200034c576200034c620003ac565b500390565b600181811c908216806200036657607f821691505b602082108114156200038857634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415620003a557620003a5620003ac565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b61346f80620003e86000396000f3fe6080604052600436106102e45760003560e01c8063614cbab811610190578063b19c92a2116100dc578063d0368d0611610095578063ed5fb4421161006f578063ed5fb442146108c0578063efd0cbf9146108e0578063f2fde38b146108f3578063f76541761461091357600080fd5b8063d0368d0614610841578063e985e9c514610861578063eca17e04146108aa57600080fd5b8063b19c92a214610780578063b74e1f4d146107a0578063b88d4fde146107c1578063be73a9d5146107e1578063c2e2f78514610801578063c87b56dd1461082157600080fd5b806395d89b4111610149578063a22cb46511610123578063a22cb46514610715578063aa592f2514610735578063b047570a1461074a578063b184be811461076057600080fd5b806395d89b41146106c0578063971c8d5b146106d557806397aba7f9146106f557600080fd5b8063614cbab81461062557806362a5af3b146106385780636352211e1461064d57806370a082311461066d578063715018a61461068d5780638da5cb5b146106a257600080fd5b806323b872dd1161024f57806342842e0e116102085780634c261247116101e25780634c261247146105c457806351830227146105e45780635de4298514610605578063611f3f101461042d57600080fd5b806342842e0e14610564578063489a0fdc146105845780634c00de82146105a457600080fd5b806323b872dd1461048e57806329ee566c146104ae5780632a55205a146104c457806333d9d5fd14610503578063353b351d1461052457806337dfbe2b1461054457600080fd5b80630c5776de116102a15780630c5776de146103df57806312fc41ca1461040257806317656ddc1461041857806317e7f2951461042d57806318160ddd146104485780631e7269c51461046157600080fd5b806301806d8d146102e957806301ffc9a71461031f578063054f7d9c1461034f57806306fdde0314610370578063081812fc14610385578063095ea7b3146103bd575b600080fd5b3480156102f557600080fd5b50610309610304366004613008565b610933565b6040516103169190613267565b60405180910390f35b34801561032b57600080fd5b5061033f61033a36600461306d565b6109cd565b6040519015158152602001610316565b34801561035b57600080fd5b50600a5461033f90600160b01b900460ff1681565b34801561037c57600080fd5b506103096109ff565b34801561039157600080fd5b506103a56103a0366004613008565b610a91565b6040516001600160a01b039091168152602001610316565b3480156103c957600080fd5b506103dd6103d8366004612fa4565b610ad5565b005b3480156103eb57600080fd5b506103f4600881565b604051908152602001610316565b34801561040e57600080fd5b506103f4600c5481565b34801561042457600080fd5b50610309610b63565b34801561043957600080fd5b506103f4668e1bc9bf04000081565b34801561045457600080fd5b50600154600054036103f4565b34801561046d57600080fd5b506103f461047c366004612e07565b60096020526000908152604090205481565b34801561049a57600080fd5b506103dd6104a9366004612e55565b610b70565b3480156104ba57600080fd5b506103f4600f5481565b3480156104d057600080fd5b506104e46104df366004613171565b610b7b565b604080516001600160a01b039093168352602083019190915201610316565b34801561050f57600080fd5b50600a5461033f90600160a81b900460ff1681565b34801561053057600080fd5b506103f461053f366004613008565b610bb6565b34801561055057600080fd5b506103dd61055f366004613008565b610c0f565b34801561057057600080fd5b506103dd61057f366004612e55565b610ce1565b34801561059057600080fd5b506103dd61059f366004612fa4565b610cfc565b3480156105b057600080fd5b506010546103a5906001600160a01b031681565b3480156105d057600080fd5b506103dd6105df3660046130f3565b610e2e565b3480156105f057600080fd5b50600a5461033f90600160b81b900460ff1681565b34801561061157600080fd5b506103dd61062036600461314e565b610f8d565b6103dd6106333660046130a7565b611028565b34801561064457600080fd5b506103dd61131e565b34801561065957600080fd5b506103a5610668366004613008565b611406565b34801561067957600080fd5b506103f4610688366004612e07565b611418565b34801561069957600080fd5b506103dd611467565b3480156106ae57600080fd5b506008546001600160a01b03166103a5565b3480156106cc57600080fd5b5061030961149d565b3480156106e157600080fd5b506103dd6106f0366004613021565b6114ac565b34801561070157600080fd5b506103a5610710366004613021565b61154f565b34801561072157600080fd5b506103dd610730366004612f6d565b611599565b34801561074157600080fd5b506103f460de81565b34801561075657600080fd5b506103f4600b5481565b34801561076c57600080fd5b506103dd61077b366004612fa4565b61162f565b34801561078c57600080fd5b506103dd61079b366004612fce565b611792565b3480156107ac57600080fd5b50600a5461033f90600160a01b900460ff1681565b3480156107cd57600080fd5b506103dd6107dc366004612e91565b6117da565b3480156107ed57600080fd5b506103dd6107fc3660046130f3565b611825565b34801561080d57600080fd5b506103f461081c366004612e07565b6118a8565b34801561082d57600080fd5b5061030961083c366004613008565b6118dd565b34801561084d57600080fd5b506103dd61085c366004612fce565b611a6b565b34801561086d57600080fd5b5061033f61087c366004612e22565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b3480156108b657600080fd5b506103f461029a81565b3480156108cc57600080fd5b506103dd6108db366004612e07565b611ab3565b6103dd6108ee366004613008565b611aff565b3480156108ff57600080fd5b506103dd61090e366004612e07565b611d5b565b34801561091f57600080fd5b50600a546103a5906001600160a01b031681565b600e602052600090815260409020805461094c9061333d565b80601f01602080910402602001604051908101604052809291908181526020018280546109789061333d565b80156109c55780601f1061099a576101008083540402835291602001916109c5565b820191906000526020600020905b8154815290600101906020018083116109a857829003601f168201915b505050505081565b60006001600160e01b0319821663152a902d60e11b14156109f057506001919050565b6109f982611df6565b92915050565b606060028054610a0e9061333d565b80601f0160208091040260200160405190810160405280929190818152602001828054610a3a9061333d565b8015610a875780601f10610a5c57610100808354040283529160200191610a87565b820191906000526020600020905b815481529060010190602001808311610a6a57829003601f168201915b5050505050905090565b6000610a9c82611e46565b610ab9576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b6000610ae082611406565b9050806001600160a01b0316836001600160a01b03161415610b155760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b03821614801590610b355750610b33813361087c565b155b15610b53576040516367d9dca160e11b815260040160405180910390fd5b610b5e838383611e71565b505050565b600d805461094c9061333d565b610b5e838383611ecd565b601054600f5460009182916001600160a01b03909116906103e890610ba090866132db565b610baa91906132c7565b915091505b9250929050565b600060de821015610bc5575090565b6000610bd460de61029a6132fa565b905060de8182600c5460001c610bea9190613393565b610bf490866132af565b610bfe9190613393565b610c0891906132af565b9392505050565b6008546001600160a01b03163314610c425760405162461bcd60e51b8152600401610c399061327a565b60405180910390fd5b600a5460408051808201909152600981526826b4b73a1027bb32b960b91b602082015290600160b01b900460ff1615610c8e5760405162461bcd60e51b8152600401610c399190613267565b50600a5460408051808201909152600981526829b437bb9027bb32b960b91b602082015290600160b81b900460ff1615610cdb5760405162461bcd60e51b8152600401610c399190613267565b50600b55565b610b5e838383604051806020016040528060008152506117da565b6008546001600160a01b03163314610d265760405162461bcd60e51b8152600401610c399061327a565b600a5460408051808201909152600981526826b4b73a1027bb32b960b91b6020820152600191600160b01b900460ff1615610d745760405162461bcd60e51b8152600401610c399190613267565b50610d7f83836120e0565b61029a610d8f6001546000540390565b1115604051806040016040528060098152602001684d696e74204c65737360b81b81525090610dd15760405162461bcd60e51b8152600401610c399190613267565b5060005b81811015610e2857610de781436132fa565b600c54604080519240602084015282015260600160408051601f198184030181529190528051602090910120600c5580610e2081613378565b915050610dd5565b50505050565b6008546001600160a01b03163314610e585760405162461bcd60e51b8152600401610c399061327a565b600b548282604051602001610e6e9291906131db565b60405160208183030381529060405280519060200120146040518060400160405280600e81526020016d546869732048617368204177727960901b81525090610eca5760405162461bcd60e51b8152600401610c399190613267565b50600a5460408051808201909152600e81526d2730b2309026b4b73a1027bb32b960911b602082015290600160b01b900460ff16610f1b5760405162461bcd60e51b8152600401610c399190613267565b50600a5460408051808201909152600981526829b437bb9027bb32b960b91b602082015290600160b81b900460ff1615610f685760405162461bcd60e51b8152600401610c399190613267565b50610f75600d8383612d10565b5050600a805460ff60b81b1916600160b81b17905550565b6008546001600160a01b03163314610fb75760405162461bcd60e51b8152600401610c399061327a565b600f5460408051918252602082018490526001600160a01b03831682820152517fc32b71084b06ddf1f690f0fb891a5b73b699b6790f5937324fb4ae52c35c26149181900360600190a1600f91909155601080546001600160a01b0319166001600160a01b03909216919091179055565b6040805180820190915260098152684e61646120426f747360b81b60208201523332146110685760405162461bcd60e51b8152600401610c399190613267565b50600a54604080518082019091526009815268139959590815d85a5d60ba1b6020820152600191600160a01b900460ff16156110b75760405162461bcd60e51b8152600401610c399190613267565b50600a5460408051808201909152600981526826b4b73a1027bb32b960b91b602082015290600160b01b900460ff16156111045760405162461bcd60e51b8152600401610c399190613267565b506000611110336118a8565b9050600061111d826120fa565b9050600061112c82888861154f565b90506111406008546001600160a01b031690565b6001600160a01b0316816001600160a01b0316146040518060400160405280600981526020016809cc2c8c24084e4ead60bb1b815250906111945760405162461bcd60e51b8152600401610c399190613267565b506111a6668e1bc9bf040000866132db565b34146040518060400160405280600a815260200169436173682057726f6e6760b01b815250906111e95760405162461bcd60e51b8152600401610c399190613267565b5033600090815260096020526040812080548792906112099084906132af565b90915550611219905033866120e0565b61029a6112296001546000540390565b1115604051806040016040528060098152602001684d696e74204c65737360b81b8152509061126b5760405162461bcd60e51b8152600401610c399190613267565b5033600090815260096020818152604092839020548351808501909452918352684d696e74204c65737360b81b90830152600810156112bd5760405162461bcd60e51b8152600401610c399190613267565b5050505060005b81811015611317576112d681436132fa565b600c54604080519240602084015282015260600160408051601f198184030181529190528051602090910120600c558061130f81613378565b9150506112c4565b5050505050565b6008546001600160a01b031633146113485760405162461bcd60e51b8152600401610c399061327a565b60206000801b600b5414156040518060400160405280600e81526020016d2730b230902430b9b41027bb32b960911b815250906113985760405162461bcd60e51b8152600401610c399190613267565b50600a805460ff60b01b1916600160b01b17905560005b81811015611402576113c181436132fa565b600c54604080519240602084015282015260600160408051601f198184030181529190528051602090910120600c55806113fa81613378565b9150506113af565b5050565b600061141182612135565b5192915050565b60006001600160a01b038216611441576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b6008546001600160a01b031633146114915760405162461bcd60e51b8152600401610c399061327a565b61149b6000612251565b565b606060038054610a0e9061333d565b6008546001600160a01b031633146114d65760405162461bcd60e51b8152600401610c399061327a565b6008546001600160a01b03166114eb84611406565b6001600160a01b0316146040518060400160405280600981526020016809cc2c8c24084e4ead60bb1b815250906115355760405162461bcd60e51b8152600401610c399190613267565b506000838152600e60205260409020610e28908383612d10565b60006115918484848080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506122a392505050565b949350505050565b6001600160a01b0382163314156115c35760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b600a80546040805180820190915291825269139859184814dc1b1a5d60b21b60208301526001600160a01b03166116795760405162461bcd60e51b8152600401610c399190613267565b506001600160a01b0382166116f357600a54604051636203b43b60e11b815260006004820152602481018390526001600160a01b039091169063c40768769083906044016000604051808303818588803b1580156116d657600080fd5b505af11580156116ea573d6000803e3d6000fd5b50505050505050565b600a5461170e906001600160a01b03848116911660006122c7565b600a54611728906001600160a01b038481169116836122c7565b600a54604051636203b43b60e11b81526001600160a01b038481166004830152602482018490529091169063c407687690604401600060405180830381600087803b15801561177657600080fd5b505af115801561178a573d6000803e3d6000fd5b505050505050565b6008546001600160a01b031633146117bc5760405162461bcd60e51b8152600401610c399061327a565b600a8054911515600160a81b0260ff60a81b19909216919091179055565b6117e5848484611ecd565b6001600160a01b0383163b1515801561180757506118058484848461240d565b155b15610e28576040516368d2bf6b60e11b815260040160405180910390fd5b6008546001600160a01b0316331461184f5760405162461bcd60e51b8152600401610c399061327a565b600a5460408051808201909152600981526829b437bb9027bb32b960b91b602082015290600160b81b900460ff161561189b5760405162461bcd60e51b8152600401610c399190613267565b50610b5e600d8383612d10565b604080516001600160a01b0383166020820152600091015b604051602081830303815290604052805190602001209050919050565b60606118e882611e46565b60405180604001604052806009815260200168139859184815dbdc9960ba1b815250906119285760405162461bcd60e51b8152600401610c399190613267565b50600a54600160b81b900460ff16611942576109f9612504565b6000828152600e60205260408120805461195b9061333d565b90501115611a01576000828152600e60205260409020805461197c9061333d565b80601f01602080910402602001604051908101604052809291908181526020018280546119a89061333d565b80156119f55780601f106119ca576101008083540402835291602001916119f5565b820191906000526020600020905b8154815290600101906020018083116119d857829003601f168201915b50505050509050919050565b6000611a0b612504565b90506000611a1884610bb6565b9050815160001415611a395760405180602001604052806000815250611591565b81611a4382612513565b604051602001611a549291906131eb565b604051602081830303815290604052949350505050565b6008546001600160a01b03163314611a955760405162461bcd60e51b8152600401610c399061327a565b600a8054911515600160a01b0260ff60a01b19909216919091179055565b6008546001600160a01b03163314611add5760405162461bcd60e51b8152600401610c399061327a565b600a80546001600160a01b0319166001600160a01b0392909216919091179055565b6040805180820190915260098152684e61646120426f747360b81b6020820152333214611b3f5760405162461bcd60e51b8152600401610c399190613267565b50600a5460408051808201909152600981526826b4b73a1027bb32b960b91b6020820152600191600160b01b900460ff1615611b8e5760405162461bcd60e51b8152600401610c399190613267565b50600a54604080518082019091526009815268139959590815d85a5d60ba1b602082015290600160a81b900460ff1615611bdb5760405162461bcd60e51b8152600401610c399190613267565b50611bed668e1bc9bf040000836132db565b34146040518060400160405280600a815260200169436173682057726f6e6760b01b81525090611c305760405162461bcd60e51b8152600401610c399190613267565b503360009081526009602052604081208054849290611c509084906132af565b90915550611c60905033836120e0565b61029a611c706001546000540390565b1115604051806040016040528060098152602001684d696e74204c65737360b81b81525090611cb25760405162461bcd60e51b8152600401610c399190613267565b5033600090815260096020818152604092839020548351808501909452918352684d696e74204c65737360b81b9083015260081015611d045760405162461bcd60e51b8152600401610c399190613267565b5060005b81811015610b5e57611d1a81436132fa565b600c54604080519240602084015282015260600160408051601f198184030181529190528051602090910120600c5580611d5381613378565b915050611d08565b6008546001600160a01b03163314611d855760405162461bcd60e51b8152600401610c399061327a565b6001600160a01b038116611dea5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610c39565b611df381612251565b50565b60006001600160e01b031982166380ac58cd60e01b1480611e2757506001600160e01b03198216635b5e139f60e01b145b806109f957506301ffc9a760e01b6001600160e01b03198316146109f9565b60008054821080156109f9575050600090815260046020526040902054600160e01b900460ff161590565b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000611ed882612135565b80519091506000906001600160a01b0316336001600160a01b03161480611f0657508151611f06903361087c565b80611f21575033611f1684610a91565b6001600160a01b0316145b905080611f4157604051632ce44b5f60e11b815260040160405180910390fd5b846001600160a01b031682600001516001600160a01b031614611f765760405162a1148160e81b815260040160405180910390fd5b6001600160a01b038416611f9d57604051633a954ecd60e21b815260040160405180910390fd5b611fad6000848460000151611e71565b6001600160a01b038581166000908152600560209081526040808320805467ffffffffffffffff1980821667ffffffffffffffff92831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600490945282852080546001600160e01b031916909417600160a01b42909216919091021790925590860180835291205490911661209957600054811015612099578251600082815260046020908152604090912080549186015167ffffffffffffffff16600160a01b026001600160e01b03199092166001600160a01b03909316929092171790555b5082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4611317565b611402828260405180602001604052806000815250612611565b6040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c016118c0565b60408051606081018252600080825260208201819052918101919091528160005481101561223857600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b810467ffffffffffffffff1692820192909252600160e01b90910460ff161515918101829052906122365780516001600160a01b0316156121cc579392505050565b5060001901600081815260046020908152604091829020825160608101845290546001600160a01b038116808352600160a01b820467ffffffffffffffff1693830193909352600160e01b900460ff1615159281019290925215612231579392505050565b6121cc565b505b604051636f96cda160e11b815260040160405180910390fd5b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60008060006122b2858561261e565b915091506122bf8161268b565b509392505050565b8015806123505750604051636eb1769f60e11b81523060048201526001600160a01b03838116602483015284169063dd62ed3e9060440160206040518083038186803b15801561231657600080fd5b505afa15801561232a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061234e9190613135565b155b6123bb5760405162461bcd60e51b815260206004820152603660248201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60448201527520746f206e6f6e2d7a65726f20616c6c6f77616e636560501b6064820152608401610c39565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052610b5e908490612846565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a029061244290339089908890889060040161322a565b602060405180830381600087803b15801561245c57600080fd5b505af192505050801561248c575060408051601f3d908101601f191682019092526124899181019061308a565b60015b6124e7573d8080156124ba576040519150601f19603f3d011682016040523d82523d6000602084013e6124bf565b606091505b5080516124df576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b6060600d8054610a0e9061333d565b6060816125375750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612561578061254b81613378565b915061255a9050600a836132c7565b915061253b565b60008167ffffffffffffffff81111561257c5761257c6133ff565b6040519080825280601f01601f1916602001820160405280156125a6576020820181803683370190505b5090505b8415611591576125bb6001836132fa565b91506125c8600a86613393565b6125d39060306132af565b60f81b8183815181106125e8576125e86133e9565b60200101906001600160f81b031916908160001a90535061260a600a866132c7565b94506125aa565b610b5e8383836001612918565b6000808251604114156126555760208301516040840151606085015160001a61264987828585612ae9565b94509450505050610baf565b82516040141561267f5760208301516040840151612674868383612bd6565b935093505050610baf565b50600090506002610baf565b600081600481111561269f5761269f6133d3565b14156126a85750565b60018160048111156126bc576126bc6133d3565b141561270a5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610c39565b600281600481111561271e5761271e6133d3565b141561276c5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610c39565b6003816004811115612780576127806133d3565b14156127d95760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610c39565b60048160048111156127ed576127ed6133d3565b1415611df35760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610c39565b600061289b826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316612c059092919063ffffffff16565b805190915015610b5e57808060200190518101906128b99190612feb565b610b5e5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610c39565b6000546001600160a01b03851661294157604051622e076360e81b815260040160405180910390fd5b8361295f5760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038516600081815260056020908152604080832080546fffffffffffffffffffffffffffffffff19811667ffffffffffffffff8083168c0181169182176801000000000000000067ffffffffffffffff1990941690921783900481168c01811690920217909155858452600490925290912080546001600160e01b031916909217600160a01b429092169190910217905580808501838015612a1157506001600160a01b0387163b15155b15612a9a575b60405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4612a62600088848060010195508861240d565b612a7f576040516368d2bf6b60e11b815260040160405180910390fd5b80821415612a17578260005414612a9557600080fd5b612ae0565b5b6040516001830192906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a480821415612a9b575b50600055611317565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115612b205750600090506003612bcd565b8460ff16601b14158015612b3857508460ff16601c14155b15612b495750600090506004612bcd565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015612b9d573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116612bc657600060019250925050612bcd565b9150600090505b94509492505050565b6000806001600160ff1b03831660ff84901c601b01612bf787828885612ae9565b935093505050935093915050565b6060611591848460008585843b612c5e5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610c39565b600080866001600160a01b03168587604051612c7a91906131bf565b60006040518083038185875af1925050503d8060008114612cb7576040519150601f19603f3d011682016040523d82523d6000602084013e612cbc565b606091505b5091509150612ccc828286612cd7565b979650505050505050565b60608315612ce6575081610c08565b825115612cf65782518084602001fd5b8160405162461bcd60e51b8152600401610c399190613267565b828054612d1c9061333d565b90600052602060002090601f016020900481019282612d3e5760008555612d84565b82601f10612d575782800160ff19823516178555612d84565b82800160010185558215612d84579182015b82811115612d84578235825591602001919060010190612d69565b50612d90929150612d94565b5090565b5b80821115612d905760008155600101612d95565b80356001600160a01b0381168114612dc057600080fd5b919050565b60008083601f840112612dd757600080fd5b50813567ffffffffffffffff811115612def57600080fd5b602083019150836020828501011115610baf57600080fd5b600060208284031215612e1957600080fd5b610c0882612da9565b60008060408385031215612e3557600080fd5b612e3e83612da9565b9150612e4c60208401612da9565b90509250929050565b600080600060608486031215612e6a57600080fd5b612e7384612da9565b9250612e8160208501612da9565b9150604084013590509250925092565b60008060008060808587031215612ea757600080fd5b612eb085612da9565b9350612ebe60208601612da9565b925060408501359150606085013567ffffffffffffffff80821115612ee257600080fd5b818701915087601f830112612ef657600080fd5b813581811115612f0857612f086133ff565b604051601f8201601f19908116603f01168101908382118183101715612f3057612f306133ff565b816040528281528a6020848701011115612f4957600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b60008060408385031215612f8057600080fd5b612f8983612da9565b91506020830135612f9981613415565b809150509250929050565b60008060408385031215612fb757600080fd5b612fc083612da9565b946020939093013593505050565b600060208284031215612fe057600080fd5b8135610c0881613415565b600060208284031215612ffd57600080fd5b8151610c0881613415565b60006020828403121561301a57600080fd5b5035919050565b60008060006040848603121561303657600080fd5b83359250602084013567ffffffffffffffff81111561305457600080fd5b61306086828701612dc5565b9497909650939450505050565b60006020828403121561307f57600080fd5b8135610c0881613423565b60006020828403121561309c57600080fd5b8151610c0881613423565b6000806000604084860312156130bc57600080fd5b833567ffffffffffffffff8111156130d357600080fd5b6130df86828701612dc5565b909790965060209590950135949350505050565b6000806020838503121561310657600080fd5b823567ffffffffffffffff81111561311d57600080fd5b61312985828601612dc5565b90969095509350505050565b60006020828403121561314757600080fd5b5051919050565b6000806040838503121561316157600080fd5b82359150612e4c60208401612da9565b6000806040838503121561318457600080fd5b50508035926020909101359150565b600081518084526131ab816020860160208601613311565b601f01601f19169290920160200192915050565b600082516131d1818460208701613311565b9190910192915050565b8183823760009101908152919050565b600083516131fd818460208801613311565b835190830190613211818360208801613311565b64173539b7b760d91b9101908152600501949350505050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061325d90830184613193565b9695505050505050565b602081526000610c086020830184613193565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600082198211156132c2576132c26133a7565b500190565b6000826132d6576132d66133bd565b500490565b60008160001904831182151516156132f5576132f56133a7565b500290565b60008282101561330c5761330c6133a7565b500390565b60005b8381101561332c578181015183820152602001613314565b83811115610e285750506000910152565b600181811c9082168061335157607f821691505b6020821081141561337257634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141561338c5761338c6133a7565b5060010190565b6000826133a2576133a26133bd565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052602160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b8015158114611df357600080fd5b6001600160e01b031981168114611df357600080fdfea26469706673582212206e0a4c43b901b74ffc931efb3940dbd3f38d62cdb4637d973cbb19529d39a38464736f6c63430008060033000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000011466f7572204c657474657220576f7264730000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003344c570000000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x6080604052600436106102e45760003560e01c8063614cbab811610190578063b19c92a2116100dc578063d0368d0611610095578063ed5fb4421161006f578063ed5fb442146108c0578063efd0cbf9146108e0578063f2fde38b146108f3578063f76541761461091357600080fd5b8063d0368d0614610841578063e985e9c514610861578063eca17e04146108aa57600080fd5b8063b19c92a214610780578063b74e1f4d146107a0578063b88d4fde146107c1578063be73a9d5146107e1578063c2e2f78514610801578063c87b56dd1461082157600080fd5b806395d89b4111610149578063a22cb46511610123578063a22cb46514610715578063aa592f2514610735578063b047570a1461074a578063b184be811461076057600080fd5b806395d89b41146106c0578063971c8d5b146106d557806397aba7f9146106f557600080fd5b8063614cbab81461062557806362a5af3b146106385780636352211e1461064d57806370a082311461066d578063715018a61461068d5780638da5cb5b146106a257600080fd5b806323b872dd1161024f57806342842e0e116102085780634c261247116101e25780634c261247146105c457806351830227146105e45780635de4298514610605578063611f3f101461042d57600080fd5b806342842e0e14610564578063489a0fdc146105845780634c00de82146105a457600080fd5b806323b872dd1461048e57806329ee566c146104ae5780632a55205a146104c457806333d9d5fd14610503578063353b351d1461052457806337dfbe2b1461054457600080fd5b80630c5776de116102a15780630c5776de146103df57806312fc41ca1461040257806317656ddc1461041857806317e7f2951461042d57806318160ddd146104485780631e7269c51461046157600080fd5b806301806d8d146102e957806301ffc9a71461031f578063054f7d9c1461034f57806306fdde0314610370578063081812fc14610385578063095ea7b3146103bd575b600080fd5b3480156102f557600080fd5b50610309610304366004613008565b610933565b6040516103169190613267565b60405180910390f35b34801561032b57600080fd5b5061033f61033a36600461306d565b6109cd565b6040519015158152602001610316565b34801561035b57600080fd5b50600a5461033f90600160b01b900460ff1681565b34801561037c57600080fd5b506103096109ff565b34801561039157600080fd5b506103a56103a0366004613008565b610a91565b6040516001600160a01b039091168152602001610316565b3480156103c957600080fd5b506103dd6103d8366004612fa4565b610ad5565b005b3480156103eb57600080fd5b506103f4600881565b604051908152602001610316565b34801561040e57600080fd5b506103f4600c5481565b34801561042457600080fd5b50610309610b63565b34801561043957600080fd5b506103f4668e1bc9bf04000081565b34801561045457600080fd5b50600154600054036103f4565b34801561046d57600080fd5b506103f461047c366004612e07565b60096020526000908152604090205481565b34801561049a57600080fd5b506103dd6104a9366004612e55565b610b70565b3480156104ba57600080fd5b506103f4600f5481565b3480156104d057600080fd5b506104e46104df366004613171565b610b7b565b604080516001600160a01b039093168352602083019190915201610316565b34801561050f57600080fd5b50600a5461033f90600160a81b900460ff1681565b34801561053057600080fd5b506103f461053f366004613008565b610bb6565b34801561055057600080fd5b506103dd61055f366004613008565b610c0f565b34801561057057600080fd5b506103dd61057f366004612e55565b610ce1565b34801561059057600080fd5b506103dd61059f366004612fa4565b610cfc565b3480156105b057600080fd5b506010546103a5906001600160a01b031681565b3480156105d057600080fd5b506103dd6105df3660046130f3565b610e2e565b3480156105f057600080fd5b50600a5461033f90600160b81b900460ff1681565b34801561061157600080fd5b506103dd61062036600461314e565b610f8d565b6103dd6106333660046130a7565b611028565b34801561064457600080fd5b506103dd61131e565b34801561065957600080fd5b506103a5610668366004613008565b611406565b34801561067957600080fd5b506103f4610688366004612e07565b611418565b34801561069957600080fd5b506103dd611467565b3480156106ae57600080fd5b506008546001600160a01b03166103a5565b3480156106cc57600080fd5b5061030961149d565b3480156106e157600080fd5b506103dd6106f0366004613021565b6114ac565b34801561070157600080fd5b506103a5610710366004613021565b61154f565b34801561072157600080fd5b506103dd610730366004612f6d565b611599565b34801561074157600080fd5b506103f460de81565b34801561075657600080fd5b506103f4600b5481565b34801561076c57600080fd5b506103dd61077b366004612fa4565b61162f565b34801561078c57600080fd5b506103dd61079b366004612fce565b611792565b3480156107ac57600080fd5b50600a5461033f90600160a01b900460ff1681565b3480156107cd57600080fd5b506103dd6107dc366004612e91565b6117da565b3480156107ed57600080fd5b506103dd6107fc3660046130f3565b611825565b34801561080d57600080fd5b506103f461081c366004612e07565b6118a8565b34801561082d57600080fd5b5061030961083c366004613008565b6118dd565b34801561084d57600080fd5b506103dd61085c366004612fce565b611a6b565b34801561086d57600080fd5b5061033f61087c366004612e22565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b3480156108b657600080fd5b506103f461029a81565b3480156108cc57600080fd5b506103dd6108db366004612e07565b611ab3565b6103dd6108ee366004613008565b611aff565b3480156108ff57600080fd5b506103dd61090e366004612e07565b611d5b565b34801561091f57600080fd5b50600a546103a5906001600160a01b031681565b600e602052600090815260409020805461094c9061333d565b80601f01602080910402602001604051908101604052809291908181526020018280546109789061333d565b80156109c55780601f1061099a576101008083540402835291602001916109c5565b820191906000526020600020905b8154815290600101906020018083116109a857829003601f168201915b505050505081565b60006001600160e01b0319821663152a902d60e11b14156109f057506001919050565b6109f982611df6565b92915050565b606060028054610a0e9061333d565b80601f0160208091040260200160405190810160405280929190818152602001828054610a3a9061333d565b8015610a875780601f10610a5c57610100808354040283529160200191610a87565b820191906000526020600020905b815481529060010190602001808311610a6a57829003601f168201915b5050505050905090565b6000610a9c82611e46565b610ab9576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b6000610ae082611406565b9050806001600160a01b0316836001600160a01b03161415610b155760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b03821614801590610b355750610b33813361087c565b155b15610b53576040516367d9dca160e11b815260040160405180910390fd5b610b5e838383611e71565b505050565b600d805461094c9061333d565b610b5e838383611ecd565b601054600f5460009182916001600160a01b03909116906103e890610ba090866132db565b610baa91906132c7565b915091505b9250929050565b600060de821015610bc5575090565b6000610bd460de61029a6132fa565b905060de8182600c5460001c610bea9190613393565b610bf490866132af565b610bfe9190613393565b610c0891906132af565b9392505050565b6008546001600160a01b03163314610c425760405162461bcd60e51b8152600401610c399061327a565b60405180910390fd5b600a5460408051808201909152600981526826b4b73a1027bb32b960b91b602082015290600160b01b900460ff1615610c8e5760405162461bcd60e51b8152600401610c399190613267565b50600a5460408051808201909152600981526829b437bb9027bb32b960b91b602082015290600160b81b900460ff1615610cdb5760405162461bcd60e51b8152600401610c399190613267565b50600b55565b610b5e838383604051806020016040528060008152506117da565b6008546001600160a01b03163314610d265760405162461bcd60e51b8152600401610c399061327a565b600a5460408051808201909152600981526826b4b73a1027bb32b960b91b6020820152600191600160b01b900460ff1615610d745760405162461bcd60e51b8152600401610c399190613267565b50610d7f83836120e0565b61029a610d8f6001546000540390565b1115604051806040016040528060098152602001684d696e74204c65737360b81b81525090610dd15760405162461bcd60e51b8152600401610c399190613267565b5060005b81811015610e2857610de781436132fa565b600c54604080519240602084015282015260600160408051601f198184030181529190528051602090910120600c5580610e2081613378565b915050610dd5565b50505050565b6008546001600160a01b03163314610e585760405162461bcd60e51b8152600401610c399061327a565b600b548282604051602001610e6e9291906131db565b60405160208183030381529060405280519060200120146040518060400160405280600e81526020016d546869732048617368204177727960901b81525090610eca5760405162461bcd60e51b8152600401610c399190613267565b50600a5460408051808201909152600e81526d2730b2309026b4b73a1027bb32b960911b602082015290600160b01b900460ff16610f1b5760405162461bcd60e51b8152600401610c399190613267565b50600a5460408051808201909152600981526829b437bb9027bb32b960b91b602082015290600160b81b900460ff1615610f685760405162461bcd60e51b8152600401610c399190613267565b50610f75600d8383612d10565b5050600a805460ff60b81b1916600160b81b17905550565b6008546001600160a01b03163314610fb75760405162461bcd60e51b8152600401610c399061327a565b600f5460408051918252602082018490526001600160a01b03831682820152517fc32b71084b06ddf1f690f0fb891a5b73b699b6790f5937324fb4ae52c35c26149181900360600190a1600f91909155601080546001600160a01b0319166001600160a01b03909216919091179055565b6040805180820190915260098152684e61646120426f747360b81b60208201523332146110685760405162461bcd60e51b8152600401610c399190613267565b50600a54604080518082019091526009815268139959590815d85a5d60ba1b6020820152600191600160a01b900460ff16156110b75760405162461bcd60e51b8152600401610c399190613267565b50600a5460408051808201909152600981526826b4b73a1027bb32b960b91b602082015290600160b01b900460ff16156111045760405162461bcd60e51b8152600401610c399190613267565b506000611110336118a8565b9050600061111d826120fa565b9050600061112c82888861154f565b90506111406008546001600160a01b031690565b6001600160a01b0316816001600160a01b0316146040518060400160405280600981526020016809cc2c8c24084e4ead60bb1b815250906111945760405162461bcd60e51b8152600401610c399190613267565b506111a6668e1bc9bf040000866132db565b34146040518060400160405280600a815260200169436173682057726f6e6760b01b815250906111e95760405162461bcd60e51b8152600401610c399190613267565b5033600090815260096020526040812080548792906112099084906132af565b90915550611219905033866120e0565b61029a6112296001546000540390565b1115604051806040016040528060098152602001684d696e74204c65737360b81b8152509061126b5760405162461bcd60e51b8152600401610c399190613267565b5033600090815260096020818152604092839020548351808501909452918352684d696e74204c65737360b81b90830152600810156112bd5760405162461bcd60e51b8152600401610c399190613267565b5050505060005b81811015611317576112d681436132fa565b600c54604080519240602084015282015260600160408051601f198184030181529190528051602090910120600c558061130f81613378565b9150506112c4565b5050505050565b6008546001600160a01b031633146113485760405162461bcd60e51b8152600401610c399061327a565b60206000801b600b5414156040518060400160405280600e81526020016d2730b230902430b9b41027bb32b960911b815250906113985760405162461bcd60e51b8152600401610c399190613267565b50600a805460ff60b01b1916600160b01b17905560005b81811015611402576113c181436132fa565b600c54604080519240602084015282015260600160408051601f198184030181529190528051602090910120600c55806113fa81613378565b9150506113af565b5050565b600061141182612135565b5192915050565b60006001600160a01b038216611441576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b6008546001600160a01b031633146114915760405162461bcd60e51b8152600401610c399061327a565b61149b6000612251565b565b606060038054610a0e9061333d565b6008546001600160a01b031633146114d65760405162461bcd60e51b8152600401610c399061327a565b6008546001600160a01b03166114eb84611406565b6001600160a01b0316146040518060400160405280600981526020016809cc2c8c24084e4ead60bb1b815250906115355760405162461bcd60e51b8152600401610c399190613267565b506000838152600e60205260409020610e28908383612d10565b60006115918484848080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506122a392505050565b949350505050565b6001600160a01b0382163314156115c35760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b600a80546040805180820190915291825269139859184814dc1b1a5d60b21b60208301526001600160a01b03166116795760405162461bcd60e51b8152600401610c399190613267565b506001600160a01b0382166116f357600a54604051636203b43b60e11b815260006004820152602481018390526001600160a01b039091169063c40768769083906044016000604051808303818588803b1580156116d657600080fd5b505af11580156116ea573d6000803e3d6000fd5b50505050505050565b600a5461170e906001600160a01b03848116911660006122c7565b600a54611728906001600160a01b038481169116836122c7565b600a54604051636203b43b60e11b81526001600160a01b038481166004830152602482018490529091169063c407687690604401600060405180830381600087803b15801561177657600080fd5b505af115801561178a573d6000803e3d6000fd5b505050505050565b6008546001600160a01b031633146117bc5760405162461bcd60e51b8152600401610c399061327a565b600a8054911515600160a81b0260ff60a81b19909216919091179055565b6117e5848484611ecd565b6001600160a01b0383163b1515801561180757506118058484848461240d565b155b15610e28576040516368d2bf6b60e11b815260040160405180910390fd5b6008546001600160a01b0316331461184f5760405162461bcd60e51b8152600401610c399061327a565b600a5460408051808201909152600981526829b437bb9027bb32b960b91b602082015290600160b81b900460ff161561189b5760405162461bcd60e51b8152600401610c399190613267565b50610b5e600d8383612d10565b604080516001600160a01b0383166020820152600091015b604051602081830303815290604052805190602001209050919050565b60606118e882611e46565b60405180604001604052806009815260200168139859184815dbdc9960ba1b815250906119285760405162461bcd60e51b8152600401610c399190613267565b50600a54600160b81b900460ff16611942576109f9612504565b6000828152600e60205260408120805461195b9061333d565b90501115611a01576000828152600e60205260409020805461197c9061333d565b80601f01602080910402602001604051908101604052809291908181526020018280546119a89061333d565b80156119f55780601f106119ca576101008083540402835291602001916119f5565b820191906000526020600020905b8154815290600101906020018083116119d857829003601f168201915b50505050509050919050565b6000611a0b612504565b90506000611a1884610bb6565b9050815160001415611a395760405180602001604052806000815250611591565b81611a4382612513565b604051602001611a549291906131eb565b604051602081830303815290604052949350505050565b6008546001600160a01b03163314611a955760405162461bcd60e51b8152600401610c399061327a565b600a8054911515600160a01b0260ff60a01b19909216919091179055565b6008546001600160a01b03163314611add5760405162461bcd60e51b8152600401610c399061327a565b600a80546001600160a01b0319166001600160a01b0392909216919091179055565b6040805180820190915260098152684e61646120426f747360b81b6020820152333214611b3f5760405162461bcd60e51b8152600401610c399190613267565b50600a5460408051808201909152600981526826b4b73a1027bb32b960b91b6020820152600191600160b01b900460ff1615611b8e5760405162461bcd60e51b8152600401610c399190613267565b50600a54604080518082019091526009815268139959590815d85a5d60ba1b602082015290600160a81b900460ff1615611bdb5760405162461bcd60e51b8152600401610c399190613267565b50611bed668e1bc9bf040000836132db565b34146040518060400160405280600a815260200169436173682057726f6e6760b01b81525090611c305760405162461bcd60e51b8152600401610c399190613267565b503360009081526009602052604081208054849290611c509084906132af565b90915550611c60905033836120e0565b61029a611c706001546000540390565b1115604051806040016040528060098152602001684d696e74204c65737360b81b81525090611cb25760405162461bcd60e51b8152600401610c399190613267565b5033600090815260096020818152604092839020548351808501909452918352684d696e74204c65737360b81b9083015260081015611d045760405162461bcd60e51b8152600401610c399190613267565b5060005b81811015610b5e57611d1a81436132fa565b600c54604080519240602084015282015260600160408051601f198184030181529190528051602090910120600c5580611d5381613378565b915050611d08565b6008546001600160a01b03163314611d855760405162461bcd60e51b8152600401610c399061327a565b6001600160a01b038116611dea5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610c39565b611df381612251565b50565b60006001600160e01b031982166380ac58cd60e01b1480611e2757506001600160e01b03198216635b5e139f60e01b145b806109f957506301ffc9a760e01b6001600160e01b03198316146109f9565b60008054821080156109f9575050600090815260046020526040902054600160e01b900460ff161590565b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000611ed882612135565b80519091506000906001600160a01b0316336001600160a01b03161480611f0657508151611f06903361087c565b80611f21575033611f1684610a91565b6001600160a01b0316145b905080611f4157604051632ce44b5f60e11b815260040160405180910390fd5b846001600160a01b031682600001516001600160a01b031614611f765760405162a1148160e81b815260040160405180910390fd5b6001600160a01b038416611f9d57604051633a954ecd60e21b815260040160405180910390fd5b611fad6000848460000151611e71565b6001600160a01b038581166000908152600560209081526040808320805467ffffffffffffffff1980821667ffffffffffffffff92831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600490945282852080546001600160e01b031916909417600160a01b42909216919091021790925590860180835291205490911661209957600054811015612099578251600082815260046020908152604090912080549186015167ffffffffffffffff16600160a01b026001600160e01b03199092166001600160a01b03909316929092171790555b5082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4611317565b611402828260405180602001604052806000815250612611565b6040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c016118c0565b60408051606081018252600080825260208201819052918101919091528160005481101561223857600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b810467ffffffffffffffff1692820192909252600160e01b90910460ff161515918101829052906122365780516001600160a01b0316156121cc579392505050565b5060001901600081815260046020908152604091829020825160608101845290546001600160a01b038116808352600160a01b820467ffffffffffffffff1693830193909352600160e01b900460ff1615159281019290925215612231579392505050565b6121cc565b505b604051636f96cda160e11b815260040160405180910390fd5b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60008060006122b2858561261e565b915091506122bf8161268b565b509392505050565b8015806123505750604051636eb1769f60e11b81523060048201526001600160a01b03838116602483015284169063dd62ed3e9060440160206040518083038186803b15801561231657600080fd5b505afa15801561232a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061234e9190613135565b155b6123bb5760405162461bcd60e51b815260206004820152603660248201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60448201527520746f206e6f6e2d7a65726f20616c6c6f77616e636560501b6064820152608401610c39565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052610b5e908490612846565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a029061244290339089908890889060040161322a565b602060405180830381600087803b15801561245c57600080fd5b505af192505050801561248c575060408051601f3d908101601f191682019092526124899181019061308a565b60015b6124e7573d8080156124ba576040519150601f19603f3d011682016040523d82523d6000602084013e6124bf565b606091505b5080516124df576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b6060600d8054610a0e9061333d565b6060816125375750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612561578061254b81613378565b915061255a9050600a836132c7565b915061253b565b60008167ffffffffffffffff81111561257c5761257c6133ff565b6040519080825280601f01601f1916602001820160405280156125a6576020820181803683370190505b5090505b8415611591576125bb6001836132fa565b91506125c8600a86613393565b6125d39060306132af565b60f81b8183815181106125e8576125e86133e9565b60200101906001600160f81b031916908160001a90535061260a600a866132c7565b94506125aa565b610b5e8383836001612918565b6000808251604114156126555760208301516040840151606085015160001a61264987828585612ae9565b94509450505050610baf565b82516040141561267f5760208301516040840151612674868383612bd6565b935093505050610baf565b50600090506002610baf565b600081600481111561269f5761269f6133d3565b14156126a85750565b60018160048111156126bc576126bc6133d3565b141561270a5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610c39565b600281600481111561271e5761271e6133d3565b141561276c5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610c39565b6003816004811115612780576127806133d3565b14156127d95760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610c39565b60048160048111156127ed576127ed6133d3565b1415611df35760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610c39565b600061289b826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316612c059092919063ffffffff16565b805190915015610b5e57808060200190518101906128b99190612feb565b610b5e5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610c39565b6000546001600160a01b03851661294157604051622e076360e81b815260040160405180910390fd5b8361295f5760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038516600081815260056020908152604080832080546fffffffffffffffffffffffffffffffff19811667ffffffffffffffff8083168c0181169182176801000000000000000067ffffffffffffffff1990941690921783900481168c01811690920217909155858452600490925290912080546001600160e01b031916909217600160a01b429092169190910217905580808501838015612a1157506001600160a01b0387163b15155b15612a9a575b60405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4612a62600088848060010195508861240d565b612a7f576040516368d2bf6b60e11b815260040160405180910390fd5b80821415612a17578260005414612a9557600080fd5b612ae0565b5b6040516001830192906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a480821415612a9b575b50600055611317565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115612b205750600090506003612bcd565b8460ff16601b14158015612b3857508460ff16601c14155b15612b495750600090506004612bcd565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015612b9d573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116612bc657600060019250925050612bcd565b9150600090505b94509492505050565b6000806001600160ff1b03831660ff84901c601b01612bf787828885612ae9565b935093505050935093915050565b6060611591848460008585843b612c5e5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610c39565b600080866001600160a01b03168587604051612c7a91906131bf565b60006040518083038185875af1925050503d8060008114612cb7576040519150601f19603f3d011682016040523d82523d6000602084013e612cbc565b606091505b5091509150612ccc828286612cd7565b979650505050505050565b60608315612ce6575081610c08565b825115612cf65782518084602001fd5b8160405162461bcd60e51b8152600401610c399190613267565b828054612d1c9061333d565b90600052602060002090601f016020900481019282612d3e5760008555612d84565b82601f10612d575782800160ff19823516178555612d84565b82800160010185558215612d84579182015b82811115612d84578235825591602001919060010190612d69565b50612d90929150612d94565b5090565b5b80821115612d905760008155600101612d95565b80356001600160a01b0381168114612dc057600080fd5b919050565b60008083601f840112612dd757600080fd5b50813567ffffffffffffffff811115612def57600080fd5b602083019150836020828501011115610baf57600080fd5b600060208284031215612e1957600080fd5b610c0882612da9565b60008060408385031215612e3557600080fd5b612e3e83612da9565b9150612e4c60208401612da9565b90509250929050565b600080600060608486031215612e6a57600080fd5b612e7384612da9565b9250612e8160208501612da9565b9150604084013590509250925092565b60008060008060808587031215612ea757600080fd5b612eb085612da9565b9350612ebe60208601612da9565b925060408501359150606085013567ffffffffffffffff80821115612ee257600080fd5b818701915087601f830112612ef657600080fd5b813581811115612f0857612f086133ff565b604051601f8201601f19908116603f01168101908382118183101715612f3057612f306133ff565b816040528281528a6020848701011115612f4957600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b60008060408385031215612f8057600080fd5b612f8983612da9565b91506020830135612f9981613415565b809150509250929050565b60008060408385031215612fb757600080fd5b612fc083612da9565b946020939093013593505050565b600060208284031215612fe057600080fd5b8135610c0881613415565b600060208284031215612ffd57600080fd5b8151610c0881613415565b60006020828403121561301a57600080fd5b5035919050565b60008060006040848603121561303657600080fd5b83359250602084013567ffffffffffffffff81111561305457600080fd5b61306086828701612dc5565b9497909650939450505050565b60006020828403121561307f57600080fd5b8135610c0881613423565b60006020828403121561309c57600080fd5b8151610c0881613423565b6000806000604084860312156130bc57600080fd5b833567ffffffffffffffff8111156130d357600080fd5b6130df86828701612dc5565b909790965060209590950135949350505050565b6000806020838503121561310657600080fd5b823567ffffffffffffffff81111561311d57600080fd5b61312985828601612dc5565b90969095509350505050565b60006020828403121561314757600080fd5b5051919050565b6000806040838503121561316157600080fd5b82359150612e4c60208401612da9565b6000806040838503121561318457600080fd5b50508035926020909101359150565b600081518084526131ab816020860160208601613311565b601f01601f19169290920160200192915050565b600082516131d1818460208701613311565b9190910192915050565b8183823760009101908152919050565b600083516131fd818460208801613311565b835190830190613211818360208801613311565b64173539b7b760d91b9101908152600501949350505050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061325d90830184613193565b9695505050505050565b602081526000610c086020830184613193565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600082198211156132c2576132c26133a7565b500190565b6000826132d6576132d66133bd565b500490565b60008160001904831182151516156132f5576132f56133a7565b500290565b60008282101561330c5761330c6133a7565b500390565b60005b8381101561332c578181015183820152602001613314565b83811115610e285750506000910152565b600181811c9082168061335157607f821691505b6020821081141561337257634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141561338c5761338c6133a7565b5060010190565b6000826133a2576133a26133bd565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052602160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b8015158114611df357600080fd5b6001600160e01b031981168114611df357600080fdfea26469706673582212206e0a4c43b901b74ffc931efb3940dbd3f38d62cdb4637d973cbb19529d39a38464736f6c63430008060033

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000011466f7572204c657474657220576f7264730000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003344c570000000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : name_ (string): Four Letter Words
Arg [1] : symbol_ (string): 4LW

-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000011
Arg [3] : 466f7572204c657474657220576f726473000000000000000000000000000000
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [5] : 344c570000000000000000000000000000000000000000000000000000000000


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  ]

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.