ETH Price: $2,487.91 (+1.99%)

Token

SNAP UNIVERSE special edition cover, Issue 01 (SNAPCOVER1)
 

Overview

Max Total Supply

0 SNAPCOVER1

Holders

154

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
1 SNAPCOVER1
0x22cab0b36cc4ec24bfd5732d07828b45e7547f9e
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information
# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
SnapSpecialEditionCoverIssue01

Compiler Version
v0.8.0+commit.c7dfd78e

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 18 : SnapSpecialEditionCoverIssue01.sol
pragma solidity ^0.8.0;

// SPDX-License-Identifier: MIT License

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

contract SnapSpecialEditionCoverIssue01 is ERC721URIStorage, ERC721Pausable, Ownable {
    using Counters for Counters.Counter;
    Counters.Counter private _tokenIds;

    uint public fee;

    address payable private cashOutWallet = payable(0xE52894D7187903EF634eE9B115a1F6B7334BfE7c);
    address private immutable _deadWalletAddress = 0x000000000000000000000000000000000000dEaD;
    address private snapAddress = 0x4c5813b8c6FbbAC76CAA148aAf8910f236B56fDF;

    mapping (address => uint256) private mintedTokens;

    string private _baseURIPrefix;

    event PriceUpdated(uint newPrice);

    receive() external payable {}

    constructor() ERC721("SNAP UNIVERSE special edition cover, Issue 01", "SNAPCOVER1") {
        fee = 3000000000000000000; //3,000,000,000 SNAP!
        _baseURIPrefix = "ipfs://QmRBQzBNXzFEM9J9WAkDowUS27ev1wMcaqteUwyCsq1r6N/";
    }

    function setBaseURI(string memory baseURIPrefix) public onlyOwner {
        _baseURIPrefix = baseURIPrefix;
    }

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

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

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

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

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

    function mint(address wallet, uint numberOfMints) whenNotPaused public returns (uint256) {
        require(_tokenIds.current() >= 20, "Need to mint reserved nfts first");
        require(_tokenIds.current() + numberOfMints <= 300, "Maximum amount of tokens already minted.");
        require(numberOfMints <= 1, "You cant mint more than 1 at a time.");
        require(mintedTokens[wallet] < 4, "You cant mint more than 4 for one wallet.");

        require(ERC20(snapAddress).transferFrom(msg.sender, address(this), fee * numberOfMints), "Could not transfer tokens.");

        mintedTokens[wallet] += numberOfMints;

        doMint(wallet, numberOfMints);

        return _tokenIds.current();
    }

    function doMint(address wallet, uint numberOfMints) private {
        for(uint i = 0; i < numberOfMints; i++) {
            _tokenIds.increment();
            uint256 tokenId = _tokenIds.current();
            _safeMint(wallet, tokenId);

            string memory tokenURISuffix = string(abi.encodePacked(toString(tokenId),  ".json"));
            _setTokenURI(tokenId, tokenURISuffix);
        }
    }

    function mintOwner(address wallet) public onlyOwner returns (uint256) {
        require(_tokenIds.current() == 0);

        doMint(wallet, 20);

        return _tokenIds.current();
    }

    function mintSpecial(address wallet) public onlyOwner returns (uint256) {
        doMint(wallet, 1);

        return _tokenIds.current();
    }

    function updateFee(uint newFee) public onlyOwner{
      fee = newFee;

      emit PriceUpdated(newFee);
    }

    function setSnapAddress(address _snapAddress) public onlyOwner{
        snapAddress =_snapAddress;
    }

    function getFee() public view returns (uint) {
      return fee;
    }

    function cashOut() public onlyOwner {
        cashOutWallet.call{value: address(this).balance}("");
    }

    function burnOut() public onlyOwner {
        ERC20 snap = ERC20(snapAddress);
        snap.transfer(_deadWalletAddress, snap.balanceOf(address(this)));
    }

    function currentTokenId() public view returns (uint256) {
        return _tokenIds.current();
    }

    function pause() public onlyOwner {
        _pause();
    }

    function unpause() public onlyOwner {
        _unpause();
    }
}

File 2 of 18 : ERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IERC20.sol";
import "./extensions/IERC20Metadata.sol";
import "../../utils/Context.sol";

/**
 * @dev Implementation of the {IERC20} interface.
 *
 * This implementation is agnostic to the way tokens are created. This means
 * that a supply mechanism has to be added in a derived contract using {_mint}.
 * For a generic mechanism see {ERC20PresetMinterPauser}.
 *
 * TIP: For a detailed writeup see our guide
 * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * We have followed general OpenZeppelin guidelines: functions revert instead
 * of returning `false` on failure. This behavior is nonetheless conventional
 * and does not conflict with the expectations of ERC20 applications.
 *
 * Additionally, an {Approval} event is emitted on calls to {transferFrom}.
 * This allows applications to reconstruct the allowance for all accounts just
 * by listening to said events. Other implementations of the EIP may not emit
 * these events, as it isn't required by the specification.
 *
 * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
 * functions have been added to mitigate the well-known issues around setting
 * allowances. See {IERC20-approve}.
 */
contract ERC20 is Context, IERC20, IERC20Metadata {
    mapping (address => uint256) private _balances;

    mapping (address => mapping (address => uint256)) private _allowances;

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

    /**
     * @dev Sets the values for {name} and {symbol}.
     *
     * The defaut value of {decimals} is 18. To select a different value for
     * {decimals} you should overload it.
     *
     * All two of these values are immutable: they can only be set once during
     * construction.
     */
    constructor (string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

    /**
     * @dev Returns the name of the token.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev Returns the number of decimals used to get its user representation.
     * For example, if `decimals` equals `2`, a balance of `505` tokens should
     * be displayed to a user as `5,05` (`505 / 10 ** 2`).
     *
     * Tokens usually opt for a value of 18, imitating the relationship between
     * Ether and Wei. This is the value {ERC20} uses, unless this function is
     * overridden;
     *
     * NOTE: This information is only used for _display_ purposes: it in
     * no way affects any of the arithmetic of the contract, including
     * {IERC20-balanceOf} and {IERC20-transfer}.
     */
    function decimals() public view virtual override returns (uint8) {
        return 18;
    }

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

    /**
     * @dev See {IERC20-balanceOf}.
     */
    function balanceOf(address account) public view virtual override returns (uint256) {
        return _balances[account];
    }

    /**
     * @dev See {IERC20-transfer}.
     *
     * Requirements:
     *
     * - `recipient` cannot be the zero address.
     * - the caller must have a balance of at least `amount`.
     */
    function transfer(address recipient, uint256 amount) public virtual override returns (bool) {
        _transfer(_msgSender(), recipient, amount);
        return true;
    }

    /**
     * @dev See {IERC20-allowance}.
     */
    function allowance(address owner, address spender) public view virtual override returns (uint256) {
        return _allowances[owner][spender];
    }

    /**
     * @dev See {IERC20-approve}.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public virtual override returns (bool) {
        _approve(_msgSender(), spender, amount);
        return true;
    }

    /**
     * @dev See {IERC20-transferFrom}.
     *
     * Emits an {Approval} event indicating the updated allowance. This is not
     * required by the EIP. See the note at the beginning of {ERC20}.
     *
     * Requirements:
     *
     * - `sender` and `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     * - the caller must have allowance for ``sender``'s tokens of at least
     * `amount`.
     */
    function transferFrom(address sender, address recipient, uint256 amount) public virtual override returns (bool) {
        _transfer(sender, recipient, amount);

        uint256 currentAllowance = _allowances[sender][_msgSender()];
        require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance");
        _approve(sender, _msgSender(), currentAllowance - amount);

        return true;
    }

    /**
     * @dev Atomically increases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
        _approve(_msgSender(), spender, _allowances[_msgSender()][spender] + addedValue);
        return true;
    }

    /**
     * @dev Atomically decreases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `spender` must have allowance for the caller of at least
     * `subtractedValue`.
     */
    function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
        uint256 currentAllowance = _allowances[_msgSender()][spender];
        require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
        _approve(_msgSender(), spender, currentAllowance - subtractedValue);

        return true;
    }

    /**
     * @dev Moves tokens `amount` from `sender` to `recipient`.
     *
     * This is internal function is equivalent to {transfer}, and can be used to
     * e.g. implement automatic token fees, slashing mechanisms, etc.
     *
     * Emits a {Transfer} event.
     *
     * Requirements:
     *
     * - `sender` cannot be the zero address.
     * - `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     */
    function _transfer(address sender, address recipient, uint256 amount) internal virtual {
        require(sender != address(0), "ERC20: transfer from the zero address");
        require(recipient != address(0), "ERC20: transfer to the zero address");

        _beforeTokenTransfer(sender, recipient, amount);

        uint256 senderBalance = _balances[sender];
        require(senderBalance >= amount, "ERC20: transfer amount exceeds balance");
        _balances[sender] = senderBalance - amount;
        _balances[recipient] += amount;

        emit Transfer(sender, recipient, amount);
    }

    /** @dev Creates `amount` tokens and assigns them to `account`, increasing
     * the total supply.
     *
     * Emits a {Transfer} event with `from` set to the zero address.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     */
    function _mint(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: mint to the zero address");

        _beforeTokenTransfer(address(0), account, amount);

        _totalSupply += amount;
        _balances[account] += amount;
        emit Transfer(address(0), account, amount);
    }

    /**
     * @dev Destroys `amount` tokens from `account`, reducing the
     * total supply.
     *
     * Emits a {Transfer} event with `to` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     * - `account` must have at least `amount` tokens.
     */
    function _burn(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: burn from the zero address");

        _beforeTokenTransfer(account, address(0), amount);

        uint256 accountBalance = _balances[account];
        require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
        _balances[account] = accountBalance - amount;
        _totalSupply -= amount;

        emit Transfer(account, address(0), amount);
    }

    /**
     * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.
     *
     * This internal function is equivalent to `approve`, and can be used to
     * e.g. set automatic allowances for certain subsystems, etc.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `owner` cannot be the zero address.
     * - `spender` cannot be the zero address.
     */
    function _approve(address owner, address spender, uint256 amount) internal virtual {
        require(owner != address(0), "ERC20: approve from the zero address");
        require(spender != address(0), "ERC20: approve to the zero address");

        _allowances[owner][spender] = amount;
        emit Approval(owner, spender, amount);
    }

    /**
     * @dev Hook that is called before any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * will be to transferred to `to`.
     * - when `from` is zero, `amount` tokens will be minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens 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 amount) internal virtual { }
}

File 3 of 18 : 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}. Empty by default, can be overriden
     * in child contracts.
     */
    function _baseURI() internal view virtual returns (string memory) {
        return "";
    }

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

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

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

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

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

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

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

        _transfer(from, to, tokenId);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfer(from, to, tokenId);

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

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

        emit Transfer(from, to, tokenId);
    }

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

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

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

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

pragma solidity ^0.8.0;

import "../ERC721.sol";

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

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

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

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

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

        return super.tokenURI(tokenId);
    }

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

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

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

File 5 of 18 : ERC721Pausable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../ERC721.sol";
import "../../../security/Pausable.sol";

/**
 * @dev ERC721 token with pausable token transfers, minting and burning.
 *
 * Useful for scenarios such as preventing trades until the end of an evaluation
 * period, or having an emergency switch for freezing all token transfers in the
 * event of a large bug.
 */
abstract contract ERC721Pausable is ERC721, Pausable {
    /**
     * @dev See {ERC721-_beforeTokenTransfer}.
     *
     * Requirements:
     *
     * - the contract must not be paused.
     */
    function _beforeTokenTransfer(address from, address to, uint256 tokenId) internal virtual override {
        super._beforeTokenTransfer(from, to, tokenId);

        require(!paused(), "ERC721Pausable: token transfer while paused");
    }
}

File 6 of 18 : Counters.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

File 7 of 18 : 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 () {
        address msgSender = _msgSender();
        _owner = msgSender;
        emit OwnershipTransferred(address(0), 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 {
        emit OwnershipTransferred(_owner, address(0));
        _owner = 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");
        emit OwnershipTransferred(_owner, newOwner);
        _owner = newOwner;
    }
}

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

pragma solidity ^0.8.0;

import "../IERC20.sol";

/**
 * @dev Interface for the optional metadata functions from the ERC20 standard.
 *
 * _Available since v4.1._
 */
interface IERC20Metadata is IERC20 {
    /**
     * @dev Returns the name of the token.
     */
    function name() external view returns (string memory);

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

    /**
     * @dev Returns the decimals places of the token.
     */
    function decimals() external view returns (uint8);
}

File 10 of 18 : 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) {
        this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
        return msg.data;
    }
}

File 11 of 18 : 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 12 of 18 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

File 13 of 18 : 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 14 of 18 : 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;
        // solhint-disable-next-line no-inline-assembly
        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");

        // solhint-disable-next-line avoid-low-level-calls, avoid-call-value
        (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");

        // solhint-disable-next-line avoid-low-level-calls
        (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");

        // solhint-disable-next-line avoid-low-level-calls
        (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");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

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

                // solhint-disable-next-line no-inline-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

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

pragma solidity ^0.8.0;

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant alphabet = "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] = alphabet[value & 0xf];
            value >>= 4;
        }
        require(value == 0, "Strings: hex length insufficient");
        return string(buffer);
    }

}

File 16 of 18 : 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 17 of 18 : 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 18 of 18 : Pausable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

/**
 * @dev Contract module which allows children to implement an emergency stop
 * mechanism that can be triggered by an authorized account.
 *
 * This module is used through inheritance. It will make available the
 * modifiers `whenNotPaused` and `whenPaused`, which can be applied to
 * the functions of your contract. Note that they will not be pausable by
 * simply including this module, only once the modifiers are put in place.
 */
abstract contract Pausable is Context {
    /**
     * @dev Emitted when the pause is triggered by `account`.
     */
    event Paused(address account);

    /**
     * @dev Emitted when the pause is lifted by `account`.
     */
    event Unpaused(address account);

    bool private _paused;

    /**
     * @dev Initializes the contract in unpaused state.
     */
    constructor () {
        _paused = false;
    }

    /**
     * @dev Returns true if the contract is paused, and false otherwise.
     */
    function paused() public view virtual returns (bool) {
        return _paused;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is not paused.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    modifier whenNotPaused() {
        require(!paused(), "Pausable: paused");
        _;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is paused.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    modifier whenPaused() {
        require(paused(), "Pausable: not paused");
        _;
    }

    /**
     * @dev Triggers stopped state.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    function _pause() internal virtual whenNotPaused {
        _paused = true;
        emit Paused(_msgSender());
    }

    /**
     * @dev Returns to normal state.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    function _unpause() internal virtual whenPaused {
        _paused = false;
        emit Unpaused(_msgSender());
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"newPrice","type":"uint256"}],"name":"PriceUpdated","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"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"burnOut","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"cashOut","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"currentTokenId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"fee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"wallet","type":"address"},{"internalType":"uint256","name":"numberOfMints","type":"uint256"}],"name":"mint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"wallet","type":"address"}],"name":"mintOwner","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"wallet","type":"address"}],"name":"mintSpecial","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURIPrefix","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_snapAddress","type":"address"}],"name":"setSnapAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newFee","type":"uint256"}],"name":"updateFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

60a0604052600a80546001600160a01b031990811673e52894d7187903ef634ee9b115a1f6b7334bfe7c179091556ddead000000000000000000000000608052600b8054909116734c5813b8c6fbbac76caa148aaf8910f236b56fdf1790553480156200006b57600080fd5b506040518060600160405280602d815260200162002b8b602d91396040518060400160405280600a815260200169534e4150434f5645523160b01b8152508160009080519060200190620000c19291906200018c565b508051620000d79060019060208401906200018c565b50506007805460ff19169055506000620000f062000188565b60078054610100600160a81b0319166101006001600160a01b03841690810291909117909155604051919250906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3506729a2241af62c00006009556040805160608101909152603680825262002b55602083013980516200018191600d916020909101906200018c565b506200026f565b3390565b8280546200019a9062000232565b90600052602060002090601f016020900481019282620001be576000855562000209565b82601f10620001d957805160ff191683800117855562000209565b8280016001018555821562000209579182015b8281111562000209578251825591602001919060010190620001ec565b50620002179291506200021b565b5090565b5b808211156200021757600081556001016200021c565b6002810460018216806200024757607f821691505b602082108114156200026957634e487b7160e01b600052602260045260246000fd5b50919050565b60805160601c6128c76200028e6000396000610ed101526128c76000f3fe6080604052600436106101d05760003560e01c8063715018a6116100f7578063a22cb46511610095578063ced72f8711610064578063ced72f87146104ed578063ddca3f4314610502578063e985e9c514610517578063f2fde38b14610537576101d7565b8063a22cb46514610478578063a937148014610498578063b88d4fde146104ad578063c87b56dd146104cd576101d7565b80638da5cb5b116100d15780638da5cb5b1461040e5780639012c4a81461042357806395d89b4114610443578063a16a3e5a14610458576101d7565b8063715018a6146103cf578063793cd71e146103e45780638456cb59146103f9576101d7565b806340c10f191161016f57806361f80f881161013e57806361f80f881461034f5780636352211e1461036f57806363fe5cca1461038f57806370a08231146103af576101d7565b806340c10f19146102da57806342842e0e146102fa57806355f804b31461031a5780635c975abb1461033a576101d7565b8063081812fc116101ab578063081812fc14610256578063095ea7b31461028357806323b872dd146102a55780633f4ba83a146102c5576101d7565b80629a9b7b146101dc57806301ffc9a71461020757806306fdde0314610234576101d7565b366101d757005b600080fd5b3480156101e857600080fd5b506101f1610557565b6040516101fe9190612727565b60405180910390f35b34801561021357600080fd5b50610227610222366004611e5d565b610568565b6040516101fe9190612020565b34801561024057600080fd5b506102496105b0565b6040516101fe919061202b565b34801561026257600080fd5b50610276610271366004611edb565b610642565b6040516101fe9190611f92565b34801561028f57600080fd5b506102a361029e366004611e18565b61068e565b005b3480156102b157600080fd5b506102a36102c0366004611d2e565b610726565b3480156102d157600080fd5b506102a361075e565b3480156102e657600080fd5b506101f16102f5366004611e18565b6107a7565b34801561030657600080fd5b506102a3610315366004611d2e565b610983565b34801561032657600080fd5b506102a3610335366004611e95565b61099e565b34801561034657600080fd5b506102276109f4565b34801561035b57600080fd5b506101f161036a366004611ce2565b6109fd565b34801561037b57600080fd5b5061027661038a366004611edb565b610a67565b34801561039b57600080fd5b506101f16103aa366004611ce2565b610a9c565b3480156103bb57600080fd5b506101f16103ca366004611ce2565b610ae8565b3480156103db57600080fd5b506102a3610b2c565b3480156103f057600080fd5b506102a3610bbb565b34801561040557600080fd5b506102a3610c54565b34801561041a57600080fd5b50610276610c9b565b34801561042f57600080fd5b506102a361043e366004611edb565b610caf565b34801561044f57600080fd5b50610249610d2e565b34801561046457600080fd5b506102a3610473366004611ce2565b610d3d565b34801561048457600080fd5b506102a3610493366004611de2565b610d9e565b3480156104a457600080fd5b506102a3610e6c565b3480156104b957600080fd5b506102a36104c8366004611d69565b610fc6565b3480156104d957600080fd5b506102496104e8366004611edb565b611005565b3480156104f957600080fd5b506101f1611010565b34801561050e57600080fd5b506101f1611016565b34801561052357600080fd5b50610227610532366004611cfc565b61101c565b34801561054357600080fd5b506102a3610552366004611ce2565b61104a565b60006105636008611116565b905090565b60006001600160e01b031982166380ac58cd60e01b148061059957506001600160e01b03198216635b5e139f60e01b145b806105a857506105a88261111a565b90505b919050565b6060600080546105bf906127be565b80601f01602080910402602001604051908101604052809291908181526020018280546105eb906127be565b80156106385780601f1061060d57610100808354040283529160200191610638565b820191906000526020600020905b81548152906001019060200180831161061b57829003601f168201915b5050505050905090565b600061064d82611133565b6106725760405162461bcd60e51b815260040161066990612538565b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b600061069982610a67565b9050806001600160a01b0316836001600160a01b031614156106cd5760405162461bcd60e51b815260040161066990612695565b806001600160a01b03166106df611150565b6001600160a01b031614806106fb57506106fb81610532611150565b6107175760405162461bcd60e51b815260040161066990612374565b6107218383611154565b505050565b610737610731611150565b826111c2565b6107535760405162461bcd60e51b8152600401610669906126d6565b610721838383611247565b610766611150565b6001600160a01b0316610777610c9b565b6001600160a01b03161461079d5760405162461bcd60e51b815260040161066990612584565b6107a5611374565b565b60006107b16109f4565b156107ce5760405162461bcd60e51b81526004016106699061234a565b60146107da6008611116565b10156107f85760405162461bcd60e51b815260040161066990612280565b61012c826108066008611116565b6108109190612730565b111561082e5760405162461bcd60e51b8152600401610669906121bd565b600182111561084f5760405162461bcd60e51b815260040161066990612651565b6001600160a01b0383166000908152600c60205260409020546004116108875760405162461bcd60e51b815260040161066990612301565b600b546009546001600160a01b03909116906323b872dd90339030906108ae90879061275c565b6040518463ffffffff1660e01b81526004016108cc93929190611fa6565b602060405180830381600087803b1580156108e657600080fd5b505af11580156108fa573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061091e9190611e41565b61093a5760405162461bcd60e51b815260040161066990612186565b6001600160a01b0383166000908152600c602052604081208054849290610962908490612730565b90915550610972905083836113e2565b61097c6008611116565b9392505050565b61072183838360405180602001604052806000815250610fc6565b6109a6611150565b6001600160a01b03166109b7610c9b565b6001600160a01b0316146109dd5760405162461bcd60e51b815260040161066990612584565b80516109f090600d906020840190611bc2565b5050565b60075460ff1690565b6000610a07611150565b6001600160a01b0316610a18610c9b565b6001600160a01b031614610a3e5760405162461bcd60e51b815260040161066990612584565b610a486008611116565b15610a5257600080fd5b610a5d8260146113e2565b6105a86008611116565b6000818152600260205260408120546001600160a01b0316806105a85760405162461bcd60e51b81526004016106699061241b565b6000610aa6611150565b6001600160a01b0316610ab7610c9b565b6001600160a01b031614610add5760405162461bcd60e51b815260040161066990612584565b610a5d8260016113e2565b60006001600160a01b038216610b105760405162461bcd60e51b8152600401610669906123d1565b506001600160a01b031660009081526003602052604090205490565b610b34611150565b6001600160a01b0316610b45610c9b565b6001600160a01b031614610b6b5760405162461bcd60e51b815260040161066990612584565b60075460405160009161010090046001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a360078054610100600160a81b0319169055565b610bc3611150565b6001600160a01b0316610bd4610c9b565b6001600160a01b031614610bfa5760405162461bcd60e51b815260040161066990612584565b600a546040516001600160a01b03909116904790610c1790611f8f565b60006040518083038185875af1925050503d8060008114610721576040519150601f19603f3d011682016040523d82523d6000602084013e610721565b610c5c611150565b6001600160a01b0316610c6d610c9b565b6001600160a01b031614610c935760405162461bcd60e51b815260040161066990612584565b6107a561145a565b60075461010090046001600160a01b031690565b610cb7611150565b6001600160a01b0316610cc8610c9b565b6001600160a01b031614610cee5760405162461bcd60e51b815260040161066990612584565b60098190556040517f66cbca4f3c64fecf1dcb9ce094abcf7f68c3450a1d4e3a8e917dd621edb4ebe090610d23908390612727565b60405180910390a150565b6060600180546105bf906127be565b610d45611150565b6001600160a01b0316610d56610c9b565b6001600160a01b031614610d7c5760405162461bcd60e51b815260040161066990612584565b600b80546001600160a01b0319166001600160a01b0392909216919091179055565b610da6611150565b6001600160a01b0316826001600160a01b03161415610dd75760405162461bcd60e51b815260040161066990612249565b8060056000610de4611150565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff191692151592909217909155610e28611150565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051610e609190612020565b60405180910390a35050565b610e74611150565b6001600160a01b0316610e85610c9b565b6001600160a01b031614610eab5760405162461bcd60e51b815260040161066990612584565b600b546040516370a0823160e01b81526001600160a01b0390911690819063a9059cbb907f00000000000000000000000000000000000000000000000000000000000000009083906370a0823190610f07903090600401611f92565b60206040518083038186803b158015610f1f57600080fd5b505afa158015610f33573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f579190611ef3565b6040518363ffffffff1660e01b8152600401610f74929190612007565b602060405180830381600087803b158015610f8e57600080fd5b505af1158015610fa2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109f09190611e41565b610fd7610fd1611150565b836111c2565b610ff35760405162461bcd60e51b8152600401610669906126d6565b610fff848484846114b5565b50505050565b60606105a8826114e8565b60095490565b60095481565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b611052611150565b6001600160a01b0316611063610c9b565b6001600160a01b0316146110895760405162461bcd60e51b815260040161066990612584565b6001600160a01b0381166110af5760405162461bcd60e51b815260040161066990612109565b6007546040516001600160a01b0380841692610100900416907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600780546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b5490565b6001600160e01b031981166301ffc9a760e01b14919050565b6000908152600260205260409020546001600160a01b0316151590565b3390565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061118982610a67565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006111cd82611133565b6111e95760405162461bcd60e51b8152600401610669906122b5565b60006111f483610a67565b9050806001600160a01b0316846001600160a01b0316148061122f5750836001600160a01b031661122484610642565b6001600160a01b0316145b8061123f575061123f818561101c565b949350505050565b826001600160a01b031661125a82610a67565b6001600160a01b0316146112805760405162461bcd60e51b8152600401610669906125b9565b6001600160a01b0382166112a65760405162461bcd60e51b815260040161066990612205565b6112b1838383611601565b6112bc600082611154565b6001600160a01b03831660009081526003602052604081208054600192906112e590849061277b565b90915550506001600160a01b0382166000908152600360205260408120805460019290611313908490612730565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b61137c6109f4565b6113985760405162461bcd60e51b815260040161066990612089565b6007805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa6113cb611150565b6040516113d89190611f92565b60405180910390a1565b60005b81811015610721576113f76008611631565b60006114036008611116565b905061140f848261163a565b600061141a82611654565b60405160200161142a9190611f66565b6040516020818303038152906040529050611445828261176f565b50508080611452906127f9565b9150506113e5565b6114626109f4565b1561147f5760405162461bcd60e51b81526004016106699061234a565b6007805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586113cb611150565b6114c0848484611247565b6114cc848484846117b3565b610fff5760405162461bcd60e51b8152600401610669906120b7565b60606114f382611133565b61150f5760405162461bcd60e51b8152600401610669906124e7565b60008281526006602052604081208054611528906127be565b80601f0160208091040260200160405190810160405280929190818152602001828054611554906127be565b80156115a15780601f10611576576101008083540402835291602001916115a1565b820191906000526020600020905b81548152906001019060200180831161158457829003601f168201915b5050505050905060006115b26118ce565b90508051600014156115c6575090506105ab565b8151156115f85780826040516020016115e0929190611f37565b604051602081830303815290604052925050506105ab565b61123f846118dd565b6116096109f4565b156116265760405162461bcd60e51b81526004016106699061234a565b61072183838361195f565b80546001019055565b6109f082826040518060200160405280600081525061198f565b60608161167957506040805180820190915260018152600360fc1b60208201526105ab565b8160005b81156116a3578061168d816127f9565b915061169c9050600a83612748565b915061167d565b60008167ffffffffffffffff8111156116cc57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156116f6576020820181803683370190505b5090505b841561123f5761170b60018361277b565b9150611718600a86612814565b611723906030612730565b60f81b81838151811061174657634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350611768600a86612748565b94506116fa565b61177882611133565b6117945760405162461bcd60e51b815260040161066990612464565b6000828152600660209081526040909120825161072192840190611bc2565b60006117c7846001600160a01b03166119c2565b156118c357836001600160a01b031663150b7a026117e3611150565b8786866040518563ffffffff1660e01b81526004016118059493929190611fca565b602060405180830381600087803b15801561181f57600080fd5b505af192505050801561184f575060408051601f3d908101601f1916820190925261184c91810190611e79565b60015b6118a9573d80801561187d576040519150601f19603f3d011682016040523d82523d6000602084013e611882565b606091505b5080516118a15760405162461bcd60e51b8152600401610669906120b7565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061123f565b506001949350505050565b6060600d80546105bf906127be565b60606118e882611133565b6119045760405162461bcd60e51b815260040161066990612602565b600061190e6118ce565b9050600081511161192e576040518060200160405280600081525061097c565b80611938846119c8565b604051602001611949929190611f37565b6040516020818303038152906040529392505050565b61196a838383610721565b6119726109f4565b156107215760405162461bcd60e51b81526004016106699061203e565b6119998383611ae3565b6119a660008484846117b3565b6107215760405162461bcd60e51b8152600401610669906120b7565b3b151590565b6060816119ed57506040805180820190915260018152600360fc1b60208201526105ab565b8160005b8115611a175780611a01816127f9565b9150611a109050600a83612748565b91506119f1565b60008167ffffffffffffffff811115611a4057634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611a6a576020820181803683370190505b5090505b841561123f57611a7f60018361277b565b9150611a8c600a86612814565b611a97906030612730565b60f81b818381518110611aba57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350611adc600a86612748565b9450611a6e565b6001600160a01b038216611b095760405162461bcd60e51b8152600401610669906124b2565b611b1281611133565b15611b2f5760405162461bcd60e51b81526004016106699061214f565b611b3b60008383611601565b6001600160a01b0382166000908152600360205260408120805460019290611b64908490612730565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b828054611bce906127be565b90600052602060002090601f016020900481019282611bf05760008555611c36565b82601f10611c0957805160ff1916838001178555611c36565b82800160010185558215611c36579182015b82811115611c36578251825591602001919060010190611c1b565b50611c42929150611c46565b5090565b5b80821115611c425760008155600101611c47565b600067ffffffffffffffff80841115611c7657611c76612854565b604051601f8501601f191681016020018281118282101715611c9a57611c9a612854565b604052848152915081838501861015611cb257600080fd5b8484602083013760006020868301015250509392505050565b80356001600160a01b03811681146105ab57600080fd5b600060208284031215611cf3578081fd5b61097c82611ccb565b60008060408385031215611d0e578081fd5b611d1783611ccb565b9150611d2560208401611ccb565b90509250929050565b600080600060608486031215611d42578081fd5b611d4b84611ccb565b9250611d5960208501611ccb565b9150604084013590509250925092565b60008060008060808587031215611d7e578081fd5b611d8785611ccb565b9350611d9560208601611ccb565b925060408501359150606085013567ffffffffffffffff811115611db7578182fd5b8501601f81018713611dc7578182fd5b611dd687823560208401611c5b565b91505092959194509250565b60008060408385031215611df4578182fd5b611dfd83611ccb565b91506020830135611e0d8161286a565b809150509250929050565b60008060408385031215611e2a578182fd5b611e3383611ccb565b946020939093013593505050565b600060208284031215611e52578081fd5b815161097c8161286a565b600060208284031215611e6e578081fd5b813561097c8161287b565b600060208284031215611e8a578081fd5b815161097c8161287b565b600060208284031215611ea6578081fd5b813567ffffffffffffffff811115611ebc578182fd5b8201601f81018413611ecc578182fd5b61123f84823560208401611c5b565b600060208284031215611eec578081fd5b5035919050565b600060208284031215611f04578081fd5b5051919050565b60008151808452611f23816020860160208601612792565b601f01601f19169290920160200192915050565b60008351611f49818460208801612792565b835190830190611f5d818360208801612792565b01949350505050565b60008251611f78818460208701612792565b64173539b7b760d91b920191825250600501919050565b90565b6001600160a01b0391909116815260200190565b6001600160a01b039384168152919092166020820152604081019190915260600190565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090611ffd90830184611f0b565b9695505050505050565b6001600160a01b03929092168252602082015260400190565b901515815260200190565b60006020825261097c6020830184611f0b565b6020808252602b908201527f4552433732315061757361626c653a20746f6b656e207472616e73666572207760408201526a1a1a5b19481c185d5cd95960aa1b606082015260800190565b60208082526014908201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604082015260600190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b6020808252601c908201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604082015260600190565b6020808252601a908201527f436f756c64206e6f74207472616e7366657220746f6b656e732e000000000000604082015260600190565b60208082526028908201527f4d6178696d756d20616d6f756e74206f6620746f6b656e7320616c72656164796040820152671036b4b73a32b21760c11b606082015260800190565b60208082526024908201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646040820152637265737360e01b606082015260800190565b60208082526019908201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604082015260600190565b6020808252818101527f4e65656420746f206d696e74207265736572766564206e667473206669727374604082015260600190565b6020808252602c908201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b60208082526029908201527f596f752063616e74206d696e74206d6f7265207468616e203420666f72206f6e60408201526832903bb0b63632ba1760b91b606082015260800190565b60208082526010908201526f14185d5cd8589b194e881c185d5cd95960821b604082015260600190565b60208082526038908201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760408201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606082015260800190565b6020808252602a908201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604082015269726f206164647265737360b01b606082015260800190565b60208082526029908201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460408201526832b73a103a37b5b2b760b91b606082015260800190565b6020808252602e908201527f45524337323155524953746f726167653a2055524920736574206f66206e6f6e60408201526d32bc34b9ba32b73a103a37b5b2b760911b606082015260800190565b6020808252818101527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604082015260600190565b60208082526031908201527f45524337323155524953746f726167653a2055524920717565727920666f72206040820152703737b732bc34b9ba32b73a103a37b5b2b760791b606082015260800190565b6020808252602c908201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526029908201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960408201526839903737ba1037bbb760b91b606082015260800190565b6020808252602f908201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60408201526e3732bc34b9ba32b73a103a37b5b2b760891b606082015260800190565b60208082526024908201527f596f752063616e74206d696e74206d6f7265207468616e20312061742061207460408201526334b6b29760e11b606082015260800190565b60208082526021908201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656040820152603960f91b606082015260800190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b90815260200190565b6000821982111561274357612743612828565b500190565b6000826127575761275761283e565b500490565b600081600019048311821515161561277657612776612828565b500290565b60008282101561278d5761278d612828565b500390565b60005b838110156127ad578181015183820152602001612795565b83811115610fff5750506000910152565b6002810460018216806127d257607f821691505b602082108114156127f357634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141561280d5761280d612828565b5060010190565b6000826128235761282361283e565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b801515811461287857600080fd5b50565b6001600160e01b03198116811461287857600080fdfea264697066735822122042b0b88210f6de43f841b12f38efed66edaba46853d60ff42f462a452d2fa3bd64736f6c63430008000033697066733a2f2f516d5242517a424e587a46454d394a3957416b446f7755533237657631774d63617174655577794373713172364e2f534e415020554e495645525345207370656369616c2065646974696f6e20636f7665722c204973737565203031

Deployed Bytecode

0x6080604052600436106101d05760003560e01c8063715018a6116100f7578063a22cb46511610095578063ced72f8711610064578063ced72f87146104ed578063ddca3f4314610502578063e985e9c514610517578063f2fde38b14610537576101d7565b8063a22cb46514610478578063a937148014610498578063b88d4fde146104ad578063c87b56dd146104cd576101d7565b80638da5cb5b116100d15780638da5cb5b1461040e5780639012c4a81461042357806395d89b4114610443578063a16a3e5a14610458576101d7565b8063715018a6146103cf578063793cd71e146103e45780638456cb59146103f9576101d7565b806340c10f191161016f57806361f80f881161013e57806361f80f881461034f5780636352211e1461036f57806363fe5cca1461038f57806370a08231146103af576101d7565b806340c10f19146102da57806342842e0e146102fa57806355f804b31461031a5780635c975abb1461033a576101d7565b8063081812fc116101ab578063081812fc14610256578063095ea7b31461028357806323b872dd146102a55780633f4ba83a146102c5576101d7565b80629a9b7b146101dc57806301ffc9a71461020757806306fdde0314610234576101d7565b366101d757005b600080fd5b3480156101e857600080fd5b506101f1610557565b6040516101fe9190612727565b60405180910390f35b34801561021357600080fd5b50610227610222366004611e5d565b610568565b6040516101fe9190612020565b34801561024057600080fd5b506102496105b0565b6040516101fe919061202b565b34801561026257600080fd5b50610276610271366004611edb565b610642565b6040516101fe9190611f92565b34801561028f57600080fd5b506102a361029e366004611e18565b61068e565b005b3480156102b157600080fd5b506102a36102c0366004611d2e565b610726565b3480156102d157600080fd5b506102a361075e565b3480156102e657600080fd5b506101f16102f5366004611e18565b6107a7565b34801561030657600080fd5b506102a3610315366004611d2e565b610983565b34801561032657600080fd5b506102a3610335366004611e95565b61099e565b34801561034657600080fd5b506102276109f4565b34801561035b57600080fd5b506101f161036a366004611ce2565b6109fd565b34801561037b57600080fd5b5061027661038a366004611edb565b610a67565b34801561039b57600080fd5b506101f16103aa366004611ce2565b610a9c565b3480156103bb57600080fd5b506101f16103ca366004611ce2565b610ae8565b3480156103db57600080fd5b506102a3610b2c565b3480156103f057600080fd5b506102a3610bbb565b34801561040557600080fd5b506102a3610c54565b34801561041a57600080fd5b50610276610c9b565b34801561042f57600080fd5b506102a361043e366004611edb565b610caf565b34801561044f57600080fd5b50610249610d2e565b34801561046457600080fd5b506102a3610473366004611ce2565b610d3d565b34801561048457600080fd5b506102a3610493366004611de2565b610d9e565b3480156104a457600080fd5b506102a3610e6c565b3480156104b957600080fd5b506102a36104c8366004611d69565b610fc6565b3480156104d957600080fd5b506102496104e8366004611edb565b611005565b3480156104f957600080fd5b506101f1611010565b34801561050e57600080fd5b506101f1611016565b34801561052357600080fd5b50610227610532366004611cfc565b61101c565b34801561054357600080fd5b506102a3610552366004611ce2565b61104a565b60006105636008611116565b905090565b60006001600160e01b031982166380ac58cd60e01b148061059957506001600160e01b03198216635b5e139f60e01b145b806105a857506105a88261111a565b90505b919050565b6060600080546105bf906127be565b80601f01602080910402602001604051908101604052809291908181526020018280546105eb906127be565b80156106385780601f1061060d57610100808354040283529160200191610638565b820191906000526020600020905b81548152906001019060200180831161061b57829003601f168201915b5050505050905090565b600061064d82611133565b6106725760405162461bcd60e51b815260040161066990612538565b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b600061069982610a67565b9050806001600160a01b0316836001600160a01b031614156106cd5760405162461bcd60e51b815260040161066990612695565b806001600160a01b03166106df611150565b6001600160a01b031614806106fb57506106fb81610532611150565b6107175760405162461bcd60e51b815260040161066990612374565b6107218383611154565b505050565b610737610731611150565b826111c2565b6107535760405162461bcd60e51b8152600401610669906126d6565b610721838383611247565b610766611150565b6001600160a01b0316610777610c9b565b6001600160a01b03161461079d5760405162461bcd60e51b815260040161066990612584565b6107a5611374565b565b60006107b16109f4565b156107ce5760405162461bcd60e51b81526004016106699061234a565b60146107da6008611116565b10156107f85760405162461bcd60e51b815260040161066990612280565b61012c826108066008611116565b6108109190612730565b111561082e5760405162461bcd60e51b8152600401610669906121bd565b600182111561084f5760405162461bcd60e51b815260040161066990612651565b6001600160a01b0383166000908152600c60205260409020546004116108875760405162461bcd60e51b815260040161066990612301565b600b546009546001600160a01b03909116906323b872dd90339030906108ae90879061275c565b6040518463ffffffff1660e01b81526004016108cc93929190611fa6565b602060405180830381600087803b1580156108e657600080fd5b505af11580156108fa573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061091e9190611e41565b61093a5760405162461bcd60e51b815260040161066990612186565b6001600160a01b0383166000908152600c602052604081208054849290610962908490612730565b90915550610972905083836113e2565b61097c6008611116565b9392505050565b61072183838360405180602001604052806000815250610fc6565b6109a6611150565b6001600160a01b03166109b7610c9b565b6001600160a01b0316146109dd5760405162461bcd60e51b815260040161066990612584565b80516109f090600d906020840190611bc2565b5050565b60075460ff1690565b6000610a07611150565b6001600160a01b0316610a18610c9b565b6001600160a01b031614610a3e5760405162461bcd60e51b815260040161066990612584565b610a486008611116565b15610a5257600080fd5b610a5d8260146113e2565b6105a86008611116565b6000818152600260205260408120546001600160a01b0316806105a85760405162461bcd60e51b81526004016106699061241b565b6000610aa6611150565b6001600160a01b0316610ab7610c9b565b6001600160a01b031614610add5760405162461bcd60e51b815260040161066990612584565b610a5d8260016113e2565b60006001600160a01b038216610b105760405162461bcd60e51b8152600401610669906123d1565b506001600160a01b031660009081526003602052604090205490565b610b34611150565b6001600160a01b0316610b45610c9b565b6001600160a01b031614610b6b5760405162461bcd60e51b815260040161066990612584565b60075460405160009161010090046001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a360078054610100600160a81b0319169055565b610bc3611150565b6001600160a01b0316610bd4610c9b565b6001600160a01b031614610bfa5760405162461bcd60e51b815260040161066990612584565b600a546040516001600160a01b03909116904790610c1790611f8f565b60006040518083038185875af1925050503d8060008114610721576040519150601f19603f3d011682016040523d82523d6000602084013e610721565b610c5c611150565b6001600160a01b0316610c6d610c9b565b6001600160a01b031614610c935760405162461bcd60e51b815260040161066990612584565b6107a561145a565b60075461010090046001600160a01b031690565b610cb7611150565b6001600160a01b0316610cc8610c9b565b6001600160a01b031614610cee5760405162461bcd60e51b815260040161066990612584565b60098190556040517f66cbca4f3c64fecf1dcb9ce094abcf7f68c3450a1d4e3a8e917dd621edb4ebe090610d23908390612727565b60405180910390a150565b6060600180546105bf906127be565b610d45611150565b6001600160a01b0316610d56610c9b565b6001600160a01b031614610d7c5760405162461bcd60e51b815260040161066990612584565b600b80546001600160a01b0319166001600160a01b0392909216919091179055565b610da6611150565b6001600160a01b0316826001600160a01b03161415610dd75760405162461bcd60e51b815260040161066990612249565b8060056000610de4611150565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff191692151592909217909155610e28611150565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051610e609190612020565b60405180910390a35050565b610e74611150565b6001600160a01b0316610e85610c9b565b6001600160a01b031614610eab5760405162461bcd60e51b815260040161066990612584565b600b546040516370a0823160e01b81526001600160a01b0390911690819063a9059cbb907f000000000000000000000000000000000000000000000000000000000000dead9083906370a0823190610f07903090600401611f92565b60206040518083038186803b158015610f1f57600080fd5b505afa158015610f33573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f579190611ef3565b6040518363ffffffff1660e01b8152600401610f74929190612007565b602060405180830381600087803b158015610f8e57600080fd5b505af1158015610fa2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109f09190611e41565b610fd7610fd1611150565b836111c2565b610ff35760405162461bcd60e51b8152600401610669906126d6565b610fff848484846114b5565b50505050565b60606105a8826114e8565b60095490565b60095481565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b611052611150565b6001600160a01b0316611063610c9b565b6001600160a01b0316146110895760405162461bcd60e51b815260040161066990612584565b6001600160a01b0381166110af5760405162461bcd60e51b815260040161066990612109565b6007546040516001600160a01b0380841692610100900416907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600780546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b5490565b6001600160e01b031981166301ffc9a760e01b14919050565b6000908152600260205260409020546001600160a01b0316151590565b3390565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061118982610a67565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006111cd82611133565b6111e95760405162461bcd60e51b8152600401610669906122b5565b60006111f483610a67565b9050806001600160a01b0316846001600160a01b0316148061122f5750836001600160a01b031661122484610642565b6001600160a01b0316145b8061123f575061123f818561101c565b949350505050565b826001600160a01b031661125a82610a67565b6001600160a01b0316146112805760405162461bcd60e51b8152600401610669906125b9565b6001600160a01b0382166112a65760405162461bcd60e51b815260040161066990612205565b6112b1838383611601565b6112bc600082611154565b6001600160a01b03831660009081526003602052604081208054600192906112e590849061277b565b90915550506001600160a01b0382166000908152600360205260408120805460019290611313908490612730565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b61137c6109f4565b6113985760405162461bcd60e51b815260040161066990612089565b6007805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa6113cb611150565b6040516113d89190611f92565b60405180910390a1565b60005b81811015610721576113f76008611631565b60006114036008611116565b905061140f848261163a565b600061141a82611654565b60405160200161142a9190611f66565b6040516020818303038152906040529050611445828261176f565b50508080611452906127f9565b9150506113e5565b6114626109f4565b1561147f5760405162461bcd60e51b81526004016106699061234a565b6007805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586113cb611150565b6114c0848484611247565b6114cc848484846117b3565b610fff5760405162461bcd60e51b8152600401610669906120b7565b60606114f382611133565b61150f5760405162461bcd60e51b8152600401610669906124e7565b60008281526006602052604081208054611528906127be565b80601f0160208091040260200160405190810160405280929190818152602001828054611554906127be565b80156115a15780601f10611576576101008083540402835291602001916115a1565b820191906000526020600020905b81548152906001019060200180831161158457829003601f168201915b5050505050905060006115b26118ce565b90508051600014156115c6575090506105ab565b8151156115f85780826040516020016115e0929190611f37565b604051602081830303815290604052925050506105ab565b61123f846118dd565b6116096109f4565b156116265760405162461bcd60e51b81526004016106699061234a565b61072183838361195f565b80546001019055565b6109f082826040518060200160405280600081525061198f565b60608161167957506040805180820190915260018152600360fc1b60208201526105ab565b8160005b81156116a3578061168d816127f9565b915061169c9050600a83612748565b915061167d565b60008167ffffffffffffffff8111156116cc57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156116f6576020820181803683370190505b5090505b841561123f5761170b60018361277b565b9150611718600a86612814565b611723906030612730565b60f81b81838151811061174657634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350611768600a86612748565b94506116fa565b61177882611133565b6117945760405162461bcd60e51b815260040161066990612464565b6000828152600660209081526040909120825161072192840190611bc2565b60006117c7846001600160a01b03166119c2565b156118c357836001600160a01b031663150b7a026117e3611150565b8786866040518563ffffffff1660e01b81526004016118059493929190611fca565b602060405180830381600087803b15801561181f57600080fd5b505af192505050801561184f575060408051601f3d908101601f1916820190925261184c91810190611e79565b60015b6118a9573d80801561187d576040519150601f19603f3d011682016040523d82523d6000602084013e611882565b606091505b5080516118a15760405162461bcd60e51b8152600401610669906120b7565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061123f565b506001949350505050565b6060600d80546105bf906127be565b60606118e882611133565b6119045760405162461bcd60e51b815260040161066990612602565b600061190e6118ce565b9050600081511161192e576040518060200160405280600081525061097c565b80611938846119c8565b604051602001611949929190611f37565b6040516020818303038152906040529392505050565b61196a838383610721565b6119726109f4565b156107215760405162461bcd60e51b81526004016106699061203e565b6119998383611ae3565b6119a660008484846117b3565b6107215760405162461bcd60e51b8152600401610669906120b7565b3b151590565b6060816119ed57506040805180820190915260018152600360fc1b60208201526105ab565b8160005b8115611a175780611a01816127f9565b9150611a109050600a83612748565b91506119f1565b60008167ffffffffffffffff811115611a4057634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611a6a576020820181803683370190505b5090505b841561123f57611a7f60018361277b565b9150611a8c600a86612814565b611a97906030612730565b60f81b818381518110611aba57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350611adc600a86612748565b9450611a6e565b6001600160a01b038216611b095760405162461bcd60e51b8152600401610669906124b2565b611b1281611133565b15611b2f5760405162461bcd60e51b81526004016106699061214f565b611b3b60008383611601565b6001600160a01b0382166000908152600360205260408120805460019290611b64908490612730565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b828054611bce906127be565b90600052602060002090601f016020900481019282611bf05760008555611c36565b82601f10611c0957805160ff1916838001178555611c36565b82800160010185558215611c36579182015b82811115611c36578251825591602001919060010190611c1b565b50611c42929150611c46565b5090565b5b80821115611c425760008155600101611c47565b600067ffffffffffffffff80841115611c7657611c76612854565b604051601f8501601f191681016020018281118282101715611c9a57611c9a612854565b604052848152915081838501861015611cb257600080fd5b8484602083013760006020868301015250509392505050565b80356001600160a01b03811681146105ab57600080fd5b600060208284031215611cf3578081fd5b61097c82611ccb565b60008060408385031215611d0e578081fd5b611d1783611ccb565b9150611d2560208401611ccb565b90509250929050565b600080600060608486031215611d42578081fd5b611d4b84611ccb565b9250611d5960208501611ccb565b9150604084013590509250925092565b60008060008060808587031215611d7e578081fd5b611d8785611ccb565b9350611d9560208601611ccb565b925060408501359150606085013567ffffffffffffffff811115611db7578182fd5b8501601f81018713611dc7578182fd5b611dd687823560208401611c5b565b91505092959194509250565b60008060408385031215611df4578182fd5b611dfd83611ccb565b91506020830135611e0d8161286a565b809150509250929050565b60008060408385031215611e2a578182fd5b611e3383611ccb565b946020939093013593505050565b600060208284031215611e52578081fd5b815161097c8161286a565b600060208284031215611e6e578081fd5b813561097c8161287b565b600060208284031215611e8a578081fd5b815161097c8161287b565b600060208284031215611ea6578081fd5b813567ffffffffffffffff811115611ebc578182fd5b8201601f81018413611ecc578182fd5b61123f84823560208401611c5b565b600060208284031215611eec578081fd5b5035919050565b600060208284031215611f04578081fd5b5051919050565b60008151808452611f23816020860160208601612792565b601f01601f19169290920160200192915050565b60008351611f49818460208801612792565b835190830190611f5d818360208801612792565b01949350505050565b60008251611f78818460208701612792565b64173539b7b760d91b920191825250600501919050565b90565b6001600160a01b0391909116815260200190565b6001600160a01b039384168152919092166020820152604081019190915260600190565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090611ffd90830184611f0b565b9695505050505050565b6001600160a01b03929092168252602082015260400190565b901515815260200190565b60006020825261097c6020830184611f0b565b6020808252602b908201527f4552433732315061757361626c653a20746f6b656e207472616e73666572207760408201526a1a1a5b19481c185d5cd95960aa1b606082015260800190565b60208082526014908201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604082015260600190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b6020808252601c908201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604082015260600190565b6020808252601a908201527f436f756c64206e6f74207472616e7366657220746f6b656e732e000000000000604082015260600190565b60208082526028908201527f4d6178696d756d20616d6f756e74206f6620746f6b656e7320616c72656164796040820152671036b4b73a32b21760c11b606082015260800190565b60208082526024908201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646040820152637265737360e01b606082015260800190565b60208082526019908201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604082015260600190565b6020808252818101527f4e65656420746f206d696e74207265736572766564206e667473206669727374604082015260600190565b6020808252602c908201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b60208082526029908201527f596f752063616e74206d696e74206d6f7265207468616e203420666f72206f6e60408201526832903bb0b63632ba1760b91b606082015260800190565b60208082526010908201526f14185d5cd8589b194e881c185d5cd95960821b604082015260600190565b60208082526038908201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760408201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606082015260800190565b6020808252602a908201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604082015269726f206164647265737360b01b606082015260800190565b60208082526029908201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460408201526832b73a103a37b5b2b760b91b606082015260800190565b6020808252602e908201527f45524337323155524953746f726167653a2055524920736574206f66206e6f6e60408201526d32bc34b9ba32b73a103a37b5b2b760911b606082015260800190565b6020808252818101527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604082015260600190565b60208082526031908201527f45524337323155524953746f726167653a2055524920717565727920666f72206040820152703737b732bc34b9ba32b73a103a37b5b2b760791b606082015260800190565b6020808252602c908201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526029908201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960408201526839903737ba1037bbb760b91b606082015260800190565b6020808252602f908201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60408201526e3732bc34b9ba32b73a103a37b5b2b760891b606082015260800190565b60208082526024908201527f596f752063616e74206d696e74206d6f7265207468616e20312061742061207460408201526334b6b29760e11b606082015260800190565b60208082526021908201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656040820152603960f91b606082015260800190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b90815260200190565b6000821982111561274357612743612828565b500190565b6000826127575761275761283e565b500490565b600081600019048311821515161561277657612776612828565b500290565b60008282101561278d5761278d612828565b500390565b60005b838110156127ad578181015183820152602001612795565b83811115610fff5750506000910152565b6002810460018216806127d257607f821691505b602082108114156127f357634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141561280d5761280d612828565b5060010190565b6000826128235761282361283e565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b801515811461287857600080fd5b50565b6001600160e01b03198116811461287857600080fdfea264697066735822122042b0b88210f6de43f841b12f38efed66edaba46853d60ff42f462a452d2fa3bd64736f6c63430008000033

Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.