ETH Price: $3,905.66 (+1.21%)

Token

Forkers (FORK)
 

Overview

Max Total Supply

5,000 FORK

Holders

6,426

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A

Other Info

Balance
1 FORK
0x5d05ff631306fa24971adeda86ac39f21ccce4db
Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

no discord, website only https://theforkers.com/

# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
Forkers

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 13 : Forkers.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.4;

import "@openzeppelin/contracts/access/Ownable.sol";
import "./ERC721A.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";


contract Forkers is Ownable, ERC721A, ReentrancyGuard {

    error MintedOutThisType();

    struct SupplyData {
        uint16 minerSupply;
        uint16 stakerSupply;
    }

    struct UserBalances {
        uint64 balanceOfMiners;
        uint64 balanceOfStakers;
    }

    address public gameContract;

    uint256 constant MAX_SUPPLY = 10000;

    string private URI;

    enum ChainType { STAKER, MINER }

    mapping(uint256 => ChainType) tokenType;

    mapping(address => UserBalances) customBalances;

    mapping(bytes32 => uint64) public attributePoints;
    
    bool public merged = false;
    bool public devMinted = false;

    ChainType thisChain;

    SupplyData supplyData = SupplyData({
        minerSupply: 0,
        stakerSupply: 0
    });


    constructor() ERC721A("Forkers", "FORK") {
        
    }

    modifier canMintType(ChainType typeOf) {
        if(typeOf == ChainType.MINER && supplyData.minerSupply >= 5000) revert MintedOutThisType();
        if(typeOf == ChainType.STAKER && supplyData.stakerSupply >= 5000) revert MintedOutThisType();
        _;
    }

    function mint(ChainType typeOf, bytes32 refCode) public canMintType(typeOf) nonReentrant {
        require(_getAux(msg.sender) == 0, "Wallet already minted");
        require(!merged, "Already merged");
        require(tx.origin == msg.sender, "No contracts");
        require(typeOf == ChainType.STAKER || typeOf == ChainType.MINER, "Wrong type");

        _setAux(msg.sender, 1);

        if(typeOf == ChainType.MINER) {
            supplyData.minerSupply++;

            //Only need to write when miner is minted because 0 will be default for staker.
            tokenType[_totalMinted() + 1] = typeOf;
        }

        if(typeOf == ChainType.STAKER)
            supplyData.stakerSupply++;

        _mint(msg.sender, 1, "", false);

        bytes32 myRefCode = getRefCode(msg.sender);

        if(myRefCode != refCode) {
            _addAttributePointsFor(refCode, 1);
            _addAttributePointsFor(myRefCode, 1);
        }


    }

    function canMint(address _address) external view returns (bool) {
        return _getAux(_address) == 0;
    }

    function getRefCode(address _address) public pure returns (bytes32) {
        return bytes32(keccak256(abi.encodePacked(_address)));
    }

    function getAttributePointsFor(address _address) public view returns (uint64) {
        bytes32 refCode = getRefCode(_address);

        return attributePoints[refCode];
    }

    function _addAttributePointsFor(bytes32 refCode, uint64 amount) internal {
        attributePoints[refCode] += amount;
    }

    function spendAttributePoints(address _address) public {
        require(msg.sender == gameContract, "Not game contract");

        bytes32 refCode = getRefCode(_address);
        attributePoints[refCode] = 0;
    }

    function DIEFORKER(uint256 token) public {
        require(msg.sender == gameContract, "Not game contract");

        _burn(token);
    }

    function ownerOf(uint256 tokenId) public view override returns (address) {
        if(merged) {
            ChainType chainType = tokenType[tokenId];

            return chainType == thisChain ? super.ownerOf(tokenId) : address(0);
        }

        return super.ownerOf(tokenId);
    }

    function totalSupply() public view override returns (uint256) {
        if(merged) {

            if(thisChain == ChainType.MINER)
                return supplyData.minerSupply;

            if(thisChain == ChainType.STAKER)
                return supplyData.stakerSupply;
        }

        return super.totalSupply();
    }

    function _isSameChain(uint256 tokenId) internal view returns (bool) {
        ChainType chainType = tokenType[tokenId];
        
        return chainType == thisChain;
    }

    function _exists(uint256 tokenId) internal view override returns (bool) {

        if(merged && !_isSameChain(tokenId)) return false;

        return super._exists(tokenId);
    }

    function balanceOf(address owner) public view override returns (uint256) {

        if(merged) {

            UserBalances memory balances = customBalances[owner];
            
            if(thisChain == ChainType.MINER)
                return balances.balanceOfMiners;

            if(thisChain == ChainType.STAKER)
                return balances.balanceOfStakers;
    
        }
        
        return super.balanceOf(owner);
    }

    function _beforeTokenTransfers(
        address from,
        address to,
        uint256 startTokenId,
        uint256 quantity
    ) internal override {
        if(merged) require(_isSameChain(startTokenId), "Wrong Chain");

        super._beforeTokenTransfers(from, to, startTokenId, quantity);
    }

    function _afterTokenTransfers(
        address from,
        address to,
        uint256 startTokenId,
        uint256 quantity
    ) internal override {

        ChainType chain = tokenType[startTokenId];

        UserBalances storage toBalances = customBalances[to];
        UserBalances storage fromBalances = customBalances[from];
        

        if(chain == ChainType.STAKER) {

            if(from != address(0))
                fromBalances.balanceOfStakers -= uint64(quantity);

            toBalances.balanceOfStakers += uint64(quantity);
        }

        if(chain == ChainType.MINER) {

            if(from != address(0))
                fromBalances.balanceOfMiners -= uint64(quantity);

            toBalances.balanceOfMiners += uint64(quantity);
        }

        super._afterTokenTransfers(from, to, startTokenId, quantity);
    }

    function tokenURI(uint256 tokenId) public view override returns (string memory) {

        require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");

        string memory cType = tokenType[tokenId] == ChainType.STAKER ? "staker/" : "miner/";

        return string(abi.encodePacked(URI, cType, Strings.toString(tokenId), ".json"));
    }

    function getMintData() external view returns (uint16, uint16) {
        return (supplyData.minerSupply, supplyData.stakerSupply);
    }

    function setThisChain(ChainType chain) public onlyOwner {
        require(!merged, "Already merged");
        thisChain = chain;
    }

    function devMint() public onlyOwner {
        require(!devMinted, "Already claimed");
        require(supplyData.stakerSupply + 200 <= 5000, "Too slow bro..");
        
        _mint(msg.sender, 200, "", false);
        supplyData.stakerSupply += 200;

        devMinted = true;
    }

    function setGameContract(address _contract) public onlyOwner {
        gameContract = _contract;
    }

    function setMerged(bool _state) public onlyOwner {
        merged = _state;
    }

    function setBaseURI(string memory base) public onlyOwner {
        URI = base;
    }

    function _startTokenId() internal view override virtual returns (uint256) {
        return 1;
    }

}

File 2 of 13 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant _NOT_ENTERED = 1;
    uint256 private constant _ENTERED = 2;

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

        // Any calls to nonReentrant after this point will fail
        _status = _ENTERED;

        _;

        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = _NOT_ENTERED;
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

File 4 of 13 : ERC721A.sol
// SPDX-License-Identifier: MIT
// Creator: Chiru Labs

pragma solidity ^0.8.4;

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

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

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

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

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

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

    /**
     * @dev See {IERC721-balanceOf}.
     */
    function balanceOf(address owner) public view virtual override returns (uint256) {
        if (owner == address(0)) revert BalanceQueryForZeroAddress();
        return uint256(_addressData[owner].balance);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _approve(to, tokenId, owner);
    }

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

        return _tokenApprovals[tokenId];
    }

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

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

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

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

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

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) public virtual override {
        _transfer(from, to, tokenId);
        if (to.isContract() && !_checkContractOnERC721Received(from, to, tokenId, _data)) {
            revert TransferToNonERC721ReceiverImplementer();
        }
    }

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

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

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

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

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

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

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

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

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

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     *
     * Emits a {Transfer} event.
     */
    function _transfer(
        address from,
        address to,
        uint256 tokenId
    ) private {
        TokenOwnership memory prevOwnership = ownershipOf(tokenId);


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

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

        _beforeTokenTransfers(from, to, tokenId, 1);

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
    }

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

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

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

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

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

File 7 of 13 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

pragma solidity ^0.8.1;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 10 of 13 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol)

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

File 11 of 13 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol)

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

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

pragma solidity ^0.8.0;

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

File 13 of 13 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

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

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

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApprovalToCurrentOwner","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"AuxQueryForZeroAddress","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"MintedOutThisType","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"uint256","name":"token","type":"uint256"}],"name":"DIEFORKER","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"attributePoints","outputs":[{"internalType":"uint64","name":"","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"canMint","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"devMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"devMinted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"gameContract","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"getAttributePointsFor","outputs":[{"internalType":"uint64","name":"","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getMintData","outputs":[{"internalType":"uint16","name":"","type":"uint16"},{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"getRefCode","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"merged","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"enum Forkers.ChainType","name":"typeOf","type":"uint8"},{"internalType":"bytes32","name":"refCode","type":"bytes32"}],"name":"mint","outputs":[],"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":"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":"base","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_contract","type":"address"}],"name":"setGameContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"setMerged","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"enum Forkers.ChainType","name":"chain","type":"uint8"}],"name":"setThisChain","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"spendAttributePoints","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":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]

600f805461ffff1916905560c06040526000608081905260a0526010805463ffffffff191690553480156200003357600080fd5b5060405180604001604052806007815260200166466f726b65727360c81b81525060405180604001604052806004815260200163464f524b60e01b8152506200008b62000085620000c760201b60201c565b620000cb565b8151620000a09060039060208501906200011b565b508051620000b69060049060208401906200011b565b5050600180805560095550620001fe565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b8280546200012990620001c1565b90600052602060002090601f0160209004810192826200014d576000855562000198565b82601f106200016857805160ff191683800117855562000198565b8280016001018555821562000198579182015b82811115620001985782518255916020019190600101906200017b565b50620001a6929150620001aa565b5090565b5b80821115620001a65760008155600101620001ab565b600181811c90821680620001d657607f821691505b60208210811415620001f857634e487b7160e01b600052602260045260246000fd5b50919050565b61269f806200020e6000396000f3fe608060405234801561001057600080fd5b50600436106101fb5760003560e01c8063715018a61161011a578063b88d4fde116100ad578063d3f330091161007c578063d3f330091461045d578063e985e9c514610470578063eca83cc6146104ac578063f2553d45146104bf578063f2fde38b146104d257600080fd5b8063b88d4fde14610411578063c0af1b0614610424578063c2ba474414610437578063c87b56dd1461044a57600080fd5b8063a22cb465116100e9578063a22cb465146103b5578063adf2131b146103c8578063b483ebb6146103da578063b4912af6146103fe57600080fd5b8063715018a61461038c5780637c69e207146103945780638da5cb5b1461039c57806395d89b41146103ad57600080fd5b8063405ebd4d1161019257806362ac25e01161016157806362ac25e0146103465780636352211e146103595780636bc1fb531461036c57806370a082311461037957600080fd5b8063405ebd4d146102fa57806342842e0e1461030d5780634fa3f9991461032057806355f804b31461033357600080fd5b8063095ea7b3116101ce578063095ea7b31461027d5780630b2972641461029057806318160ddd146102d157806323b872dd146102e757600080fd5b806301ffc9a71461020057806302113af11461022857806306fdde031461023d578063081812fc14610252575b600080fd5b61021361020e36600461224e565b6104e5565b60405190151581526020015b60405180910390f35b61023b61023636600461221a565b610537565b005b610245610552565b60405161021f9190612447565b610265610260366004612235565b6105e4565b6040516001600160a01b03909116815260200161021f565b61023b61028b3660046121f0565b610628565b6102b961029e366004612235565b600e602052600090815260409020546001600160401b031681565b6040516001600160401b03909116815260200161021f565b6102d96106b6565b60405190815260200161021f565b61023b6102f536600461210f565b61073a565b61023b6103083660046120c1565b610745565b61023b61031b36600461210f565b61076f565b61023b61032e366004612235565b61078a565b61023b6103413660046122bf565b6107e9565b61023b6103543660046122a3565b610808565b610265610367366004612235565b610b7d565b600f546102139060ff1681565b6102d96103873660046120c1565b610bf3565b61023b610cb8565b61023b610ccc565b6000546001600160a01b0316610265565b610245610de4565b61023b6103c33660046121c6565b610df3565b600f5461021390610100900460ff1681565b6010546040805161ffff80841682526201000090930490921660208301520161021f565b6102b961040c3660046120c1565b610e89565b61023b61041f36600461214b565b610eb4565b61023b610432366004612288565b610f05565b6102136104453660046120c1565b610f7c565b610245610458366004612235565b610f97565b600a54610265906001600160a01b031681565b61021361047e3660046120dc565b6001600160a01b03918216600090815260086020908152604080832093909416825291909152205460ff1690565b61023b6104ba3660046120c1565b6110ad565b6102d96104cd3660046120c1565b611127565b61023b6104e03660046120c1565b611166565b60006001600160e01b031982166380ac58cd60e01b148061051657506001600160e01b03198216635b5e139f60e01b145b8061053157506301ffc9a760e01b6001600160e01b03198316145b92915050565b61053f6111dc565b600f805460ff1916911515919091179055565b60606003805461056190612539565b80601f016020809104026020016040519081016040528092919081815260200182805461058d90612539565b80156105da5780601f106105af576101008083540402835291602001916105da565b820191906000526020600020905b8154815290600101906020018083116105bd57829003601f168201915b5050505050905090565b60006105ef82611236565b61060c576040516333d1c03960e21b815260040160405180910390fd5b506000908152600760205260409020546001600160a01b031690565b600061063382611267565b9050806001600160a01b0316836001600160a01b031614156106685760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b038216148015906106885750610686813361047e565b155b156106a6576040516367d9dca160e11b815260040160405180910390fd5b6106b1838383611279565b505050565b600f5460009060ff161561072a576001600f5462010000900460ff1660018111156106e3576106e36125f1565b14156106f4575060105461ffff1690565b6000600f5462010000900460ff166001811115610713576107136125f1565b141561072a575060105462010000900461ffff1690565b6002546001540360001901905090565b6106b18383836112d5565b61074d6111dc565b600a80546001600160a01b0319166001600160a01b0392909216919091179055565b6106b183838360405180602001604052806000815250610eb4565b600a546001600160a01b031633146107dd5760405162461bcd60e51b8152602060048201526011602482015270139bdd0819d85b594818dbdb9d1c9858dd607a1b60448201526064015b60405180910390fd5b6107e6816114f0565b50565b6107f16111dc565b805161080490600b906020840190611f78565b5050565b81600181600181111561081d5761081d6125f1565b148015610834575060105461138861ffff90911610155b1561085257604051633272a32d60e11b815260040160405180910390fd5b6000816001811115610866576108666125f1565b14801561088257506010546113886201000090910461ffff1610155b156108a057604051633272a32d60e11b815260040160405180910390fd5b600260095414156108f35760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016107d4565b60026009556109013361167d565b6001600160401b03161561094f5760405162461bcd60e51b815260206004820152601560248201527415d85b1b195d08185b1c9958591e481b5a5b9d1959605a1b60448201526064016107d4565b600f5460ff16156109935760405162461bcd60e51b815260206004820152600e60248201526d105b1c9958591e481b595c99d95960921b60448201526064016107d4565b3233146109d15760405162461bcd60e51b815260206004820152600c60248201526b4e6f20636f6e74726163747360a01b60448201526064016107d4565b60008360018111156109e5576109e56125f1565b1480610a0257506001836001811115610a0057610a006125f1565b145b610a3b5760405162461bcd60e51b815260206004820152600a60248201526957726f6e67207479706560b01b60448201526064016107d4565b610a463360016116d2565b6001836001811115610a5a57610a5a6125f1565b1415610adb576010805461ffff16906000610a7483612574565b91906101000a81548161ffff021916908361ffff1602179055505082600c6000610aa16001546000190190565b610aac906001612480565b81526020810191909152604001600020805460ff191660018381811115610ad557610ad56125f1565b02179055505b6000836001811115610aef57610aef6125f1565b1415610b2b576010805462010000900461ffff16906002610b0f83612574565b91906101000a81548161ffff021916908361ffff160217905550505b610b48336001604051806020016040528060008152506000611738565b6000610b5333611127565b9050828114610b7257610b678360016118f4565b610b728160016118f4565b505060016009555050565b600f5460009060ff1615610bea576000828152600c6020526040902054600f5460ff9182169162010000909104166001811115610bbc57610bbc6125f1565b816001811115610bce57610bce6125f1565b14610bda576000610be3565b610be383611267565b9392505050565b61053182611267565b600f5460009060ff1615610caf576001600160a01b0382166000908152600d60209081526040918290208251808401909352546001600160401b038082168452600160401b90910416908201526001600f5462010000900460ff166001811115610c5f57610c5f6125f1565b1415610c7557516001600160401b031692915050565b6000600f5462010000900460ff166001811115610c9457610c946125f1565b1415610cad57602001516001600160401b031692915050565b505b61053182611943565b610cc06111dc565b610cca6000611991565b565b610cd46111dc565b600f54610100900460ff1615610d1e5760405162461bcd60e51b815260206004820152600f60248201526e105b1c9958591e4818db185a5b5959608a1b60448201526064016107d4565b60105461138890610d3a9062010000900461ffff1660c861245a565b61ffff161115610d7d5760405162461bcd60e51b815260206004820152600e60248201526d2a37b79039b637bb90313937971760911b60448201526064016107d4565b610d9a3360c8604051806020016040528060008152506000611738565b6010805460c89190600290610dba90849062010000900461ffff1661245a565b825461ffff91821661010093840a9081029202191617909155600f805461ff001916909117905550565b60606004805461056190612539565b6001600160a01b038216331415610e1d5760405163b06307db60e01b815260040160405180910390fd5b3360008181526008602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b600080610e9583611127565b6000908152600e60205260409020546001600160401b03169392505050565b610ebf8484846112d5565b6001600160a01b0383163b15158015610ee15750610edf848484846119e1565b155b15610eff576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b610f0d6111dc565b600f5460ff1615610f515760405162461bcd60e51b815260206004820152600e60248201526d105b1c9958591e481b595c99d95960921b60448201526064016107d4565b600f805482919062ff0000191662010000836001811115610f7457610f746125f1565b021790555050565b6000610f878261167d565b6001600160401b03161592915050565b6060610fa282611236565b6110065760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b60648201526084016107d4565b6000806000848152600c602052604090205460ff16600181111561102c5761102c6125f1565b1461105557604051806040016040528060068152602001656d696e65722f60d01b815250611076565b604051806040016040528060078152602001667374616b65722f60c81b8152505b9050600b8161108485611ad9565b6040516020016110969392919061234f565b604051602081830303815290604052915050919050565b600a546001600160a01b031633146110fb5760405162461bcd60e51b8152602060048201526011602482015270139bdd0819d85b594818dbdb9d1c9858dd607a1b60448201526064016107d4565b600061110682611127565b6000908152600e60205260409020805467ffffffffffffffff191690555050565b6040516bffffffffffffffffffffffff19606083901b166020820152600090603401604051602081830303815290604052805190602001209050919050565b61116e6111dc565b6001600160a01b0381166111d35760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016107d4565b6107e681611991565b6000546001600160a01b03163314610cca5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107d4565b600f5460009060ff168015611251575061124f82611bd6565b155b1561125e57506000919050565b61053182611c21565b600061127282611c5a565b5192915050565b60008281526007602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b60006112e082611c5a565b80519091506000906001600160a01b0316336001600160a01b0316148061130e5750815161130e903361047e565b8061132957503361131e846105e4565b6001600160a01b0316145b90508061134957604051632ce44b5f60e11b815260040160405180910390fd5b846001600160a01b031682600001516001600160a01b03161461137e5760405162a1148160e81b815260040160405180910390fd5b6001600160a01b0384166113a557604051633a954ecd60e21b815260040160405180910390fd5b6113b28585856001611d81565b6113c26000848460000151611279565b6001600160a01b038581166000908152600660209081526040808320805467ffffffffffffffff198082166001600160401b0392831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600590945282852080546001600160e01b031916909417600160a01b4290921691909102179092559086018083529120549091166114ac576001548110156114ac57825160008281526005602090815260409091208054918601516001600160401b0316600160a01b026001600160e01b03199092166001600160a01b03909316929092171790555b5082846001600160a01b0316866001600160a01b031660008051602061264a83398151915260405160405180910390a46114e98585856001611dd4565b5050505050565b60006114fb82611c5a565b905061150f81600001516000846001611d81565b61151f6000838360000151611279565b80516001600160a01b039081166000908152600660209081526040808320805467ffffffffffffffff1981166001600160401b0391821660001901821617909155855185168452818420805467ffffffffffffffff60801b198116600160801b9182900484166001908101851690920217909155865188865260059094528285208054600160e01b9588166001600160e01b031990911617600160a01b42909416939093029290921760ff60e01b19169390931790559085018083529120549091166116365760015481101561163657815160008281526005602090815260409091208054918501516001600160401b0316600160a01b026001600160e01b03199092166001600160a01b03909316929092171790555b50805160405183916000916001600160a01b039091169060008051602061264a833981519152908390a48051611670906000846001611dd4565b5050600280546001019055565b60006001600160a01b0382166116a65760405163561b93dd60e11b815260040160405180910390fd5b506001600160a01b0316600090815260066020526040902054600160c01b90046001600160401b031690565b6001600160a01b0382166116f95760405163561b93dd60e11b815260040160405180910390fd5b6001600160a01b03909116600090815260066020526040902080546001600160401b03909216600160c01b026001600160c01b03909216919091179055565b6001546001600160a01b03851661176157604051622e076360e81b815260040160405180910390fd5b8361177f5760405163b562e8dd60e01b815260040160405180910390fd5b61178c6000868387611d81565b6001600160a01b038516600081815260066020908152604080832080546fffffffffffffffffffffffffffffffff1981166001600160401b038083168c018116918217600160401b67ffffffffffffffff1990941690921783900481168c01811690920217909155858452600590925290912080546001600160e01b031916909217600160a01b42909216919091021790558080850183801561183857506001600160a01b0387163b15155b156118af575b60405182906001600160a01b0389169060009060008051602061264a833981519152908290a461187760008884806001019550886119e1565b611894576040516368d2bf6b60e11b815260040160405180910390fd5b8082141561183e5782600154146118aa57600080fd5b6118e3565b5b6040516001830192906001600160a01b0389169060009060008051602061264a833981519152908290a4808214156118b0575b506001556114e96000868387611dd4565b6000828152600e60205260408120805483929061191b9084906001600160401b0316612498565b92506101000a8154816001600160401b0302191690836001600160401b031602179055505050565b60006001600160a01b03821661196c576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600660205260409020546001600160401b031690565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290611a16903390899088908890600401612414565b602060405180830381600087803b158015611a3057600080fd5b505af1925050508015611a60575060408051601f3d908101601f19168201909252611a5d9181019061226b565b60015b611abb573d808015611a8e576040519150601f19603f3d011682016040523d82523d6000602084013e611a93565b606091505b508051611ab3576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b606081611afd5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611b275780611b1181612596565b9150611b209050600a836124ba565b9150611b01565b6000816001600160401b03811115611b4157611b4161261d565b6040519080825280601f01601f191660200182016040528015611b6b576020820181803683370190505b5090505b8415611ad157611b806001836124ce565b9150611b8d600a866125b1565b611b98906030612480565b60f81b818381518110611bad57611bad612607565b60200101906001600160f81b031916908160001a905350611bcf600a866124ba565b9450611b6f565b6000818152600c6020526040812054600f5460ff9182169162010000909104166001811115611c0757611c076125f1565b816001811115611c1957611c196125f1565b149392505050565b600081600111158015611c35575060015482105b8015610531575050600090815260056020526040902054600160e01b900460ff161590565b60408051606081018252600080825260208201819052918101919091528180600111158015611c8a575060015481105b15611d6857600081815260056020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff16151591810182905290611d665780516001600160a01b031615611cfd579392505050565b5060001901600081815260056020908152604091829020825160608101845290546001600160a01b038116808352600160a01b82046001600160401b031693830193909352600160e01b900460ff1615159281019290925215611d61579392505050565b611cfd565b505b604051636f96cda160e11b815260040160405180910390fd5b600f5460ff1615611dcf57611d9582611bd6565b611dcf5760405162461bcd60e51b815260206004820152600b60248201526a2bb937b7339021b430b4b760a91b60448201526064016107d4565b610eff565b6000828152600c60209081526040808320546001600160a01b038088168552600d909352818420928816845290832060ff90911692836001811115611e1b57611e1b6125f1565b1415611ec2576001600160a01b03871615611e7957805484908290600890611e54908490600160401b90046001600160401b03166124e5565b92506101000a8154816001600160401b0302191690836001600160401b031602179055505b815484908390600890611e9d908490600160401b90046001600160401b0316612498565b92506101000a8154816001600160401b0302191690836001600160401b031602179055505b6001836001811115611ed657611ed66125f1565b1415611f6f576001600160a01b03871615611f2d57805484908290600090611f089084906001600160401b03166124e5565b92506101000a8154816001600160401b0302191690836001600160401b031602179055505b815484908390600090611f4a9084906001600160401b0316612498565b92506101000a8154816001600160401b0302191690836001600160401b031602179055505b50505050505050565b828054611f8490612539565b90600052602060002090601f016020900481019282611fa65760008555611fec565b82601f10611fbf57805160ff1916838001178555611fec565b82800160010185558215611fec579182015b82811115611fec578251825591602001919060010190611fd1565b50611ff8929150611ffc565b5090565b5b80821115611ff85760008155600101611ffd565b60006001600160401b038084111561202b5761202b61261d565b604051601f8501601f19908116603f011681019082821181831017156120535761205361261d565b8160405280935085815286868601111561206c57600080fd5b858560208301376000602087830101525050509392505050565b80356001600160a01b038116811461209d57600080fd5b919050565b8035801515811461209d57600080fd5b80356002811061209d57600080fd5b6000602082840312156120d357600080fd5b610be382612086565b600080604083850312156120ef57600080fd5b6120f883612086565b915061210660208401612086565b90509250929050565b60008060006060848603121561212457600080fd5b61212d84612086565b925061213b60208501612086565b9150604084013590509250925092565b6000806000806080858703121561216157600080fd5b61216a85612086565b935061217860208601612086565b92506040850135915060608501356001600160401b0381111561219a57600080fd5b8501601f810187136121ab57600080fd5b6121ba87823560208401612011565b91505092959194509250565b600080604083850312156121d957600080fd5b6121e283612086565b9150612106602084016120a2565b6000806040838503121561220357600080fd5b61220c83612086565b946020939093013593505050565b60006020828403121561222c57600080fd5b610be3826120a2565b60006020828403121561224757600080fd5b5035919050565b60006020828403121561226057600080fd5b8135610be381612633565b60006020828403121561227d57600080fd5b8151610be381612633565b60006020828403121561229a57600080fd5b610be3826120b2565b600080604083850312156122b657600080fd5b61220c836120b2565b6000602082840312156122d157600080fd5b81356001600160401b038111156122e757600080fd5b8201601f810184136122f857600080fd5b611ad184823560208401612011565b6000815180845261231f81602086016020860161250d565b601f01601f19169290920160200192915050565b6000815161234581856020860161250d565b9290920192915050565b600080855481600182811c91508083168061236b57607f831692505b602080841082141561238b57634e487b7160e01b86526022600452602486fd5b81801561239f57600181146123b0576123dd565b60ff198616895284890196506123dd565b60008c81526020902060005b868110156123d55781548b8201529085019083016123bc565b505084890196505b50505050505061240a6123f96123f38388612333565b86612333565b64173539b7b760d91b815260050190565b9695505050505050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061240a90830184612307565b602081526000610be36020830184612307565b600061ffff808316818516808303821115612477576124776125c5565b01949350505050565b60008219821115612493576124936125c5565b500190565b60006001600160401b03808316818516808303821115612477576124776125c5565b6000826124c9576124c96125db565b500490565b6000828210156124e0576124e06125c5565b500390565b60006001600160401b0383811690831681811015612505576125056125c5565b039392505050565b60005b83811015612528578181015183820152602001612510565b83811115610eff5750506000910152565b600181811c9082168061254d57607f821691505b6020821081141561256e57634e487b7160e01b600052602260045260246000fd5b50919050565b600061ffff8083168181141561258c5761258c6125c5565b6001019392505050565b60006000198214156125aa576125aa6125c5565b5060010190565b6000826125c0576125c06125db565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052602160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b0319811681146107e657600080fdfeddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa2646970667358221220e9a3a89a107e99152e11cee2e10ddfa535964d848297e3c2e48c270b2dd009e764736f6c63430008070033

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101fb5760003560e01c8063715018a61161011a578063b88d4fde116100ad578063d3f330091161007c578063d3f330091461045d578063e985e9c514610470578063eca83cc6146104ac578063f2553d45146104bf578063f2fde38b146104d257600080fd5b8063b88d4fde14610411578063c0af1b0614610424578063c2ba474414610437578063c87b56dd1461044a57600080fd5b8063a22cb465116100e9578063a22cb465146103b5578063adf2131b146103c8578063b483ebb6146103da578063b4912af6146103fe57600080fd5b8063715018a61461038c5780637c69e207146103945780638da5cb5b1461039c57806395d89b41146103ad57600080fd5b8063405ebd4d1161019257806362ac25e01161016157806362ac25e0146103465780636352211e146103595780636bc1fb531461036c57806370a082311461037957600080fd5b8063405ebd4d146102fa57806342842e0e1461030d5780634fa3f9991461032057806355f804b31461033357600080fd5b8063095ea7b3116101ce578063095ea7b31461027d5780630b2972641461029057806318160ddd146102d157806323b872dd146102e757600080fd5b806301ffc9a71461020057806302113af11461022857806306fdde031461023d578063081812fc14610252575b600080fd5b61021361020e36600461224e565b6104e5565b60405190151581526020015b60405180910390f35b61023b61023636600461221a565b610537565b005b610245610552565b60405161021f9190612447565b610265610260366004612235565b6105e4565b6040516001600160a01b03909116815260200161021f565b61023b61028b3660046121f0565b610628565b6102b961029e366004612235565b600e602052600090815260409020546001600160401b031681565b6040516001600160401b03909116815260200161021f565b6102d96106b6565b60405190815260200161021f565b61023b6102f536600461210f565b61073a565b61023b6103083660046120c1565b610745565b61023b61031b36600461210f565b61076f565b61023b61032e366004612235565b61078a565b61023b6103413660046122bf565b6107e9565b61023b6103543660046122a3565b610808565b610265610367366004612235565b610b7d565b600f546102139060ff1681565b6102d96103873660046120c1565b610bf3565b61023b610cb8565b61023b610ccc565b6000546001600160a01b0316610265565b610245610de4565b61023b6103c33660046121c6565b610df3565b600f5461021390610100900460ff1681565b6010546040805161ffff80841682526201000090930490921660208301520161021f565b6102b961040c3660046120c1565b610e89565b61023b61041f36600461214b565b610eb4565b61023b610432366004612288565b610f05565b6102136104453660046120c1565b610f7c565b610245610458366004612235565b610f97565b600a54610265906001600160a01b031681565b61021361047e3660046120dc565b6001600160a01b03918216600090815260086020908152604080832093909416825291909152205460ff1690565b61023b6104ba3660046120c1565b6110ad565b6102d96104cd3660046120c1565b611127565b61023b6104e03660046120c1565b611166565b60006001600160e01b031982166380ac58cd60e01b148061051657506001600160e01b03198216635b5e139f60e01b145b8061053157506301ffc9a760e01b6001600160e01b03198316145b92915050565b61053f6111dc565b600f805460ff1916911515919091179055565b60606003805461056190612539565b80601f016020809104026020016040519081016040528092919081815260200182805461058d90612539565b80156105da5780601f106105af576101008083540402835291602001916105da565b820191906000526020600020905b8154815290600101906020018083116105bd57829003601f168201915b5050505050905090565b60006105ef82611236565b61060c576040516333d1c03960e21b815260040160405180910390fd5b506000908152600760205260409020546001600160a01b031690565b600061063382611267565b9050806001600160a01b0316836001600160a01b031614156106685760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b038216148015906106885750610686813361047e565b155b156106a6576040516367d9dca160e11b815260040160405180910390fd5b6106b1838383611279565b505050565b600f5460009060ff161561072a576001600f5462010000900460ff1660018111156106e3576106e36125f1565b14156106f4575060105461ffff1690565b6000600f5462010000900460ff166001811115610713576107136125f1565b141561072a575060105462010000900461ffff1690565b6002546001540360001901905090565b6106b18383836112d5565b61074d6111dc565b600a80546001600160a01b0319166001600160a01b0392909216919091179055565b6106b183838360405180602001604052806000815250610eb4565b600a546001600160a01b031633146107dd5760405162461bcd60e51b8152602060048201526011602482015270139bdd0819d85b594818dbdb9d1c9858dd607a1b60448201526064015b60405180910390fd5b6107e6816114f0565b50565b6107f16111dc565b805161080490600b906020840190611f78565b5050565b81600181600181111561081d5761081d6125f1565b148015610834575060105461138861ffff90911610155b1561085257604051633272a32d60e11b815260040160405180910390fd5b6000816001811115610866576108666125f1565b14801561088257506010546113886201000090910461ffff1610155b156108a057604051633272a32d60e11b815260040160405180910390fd5b600260095414156108f35760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016107d4565b60026009556109013361167d565b6001600160401b03161561094f5760405162461bcd60e51b815260206004820152601560248201527415d85b1b195d08185b1c9958591e481b5a5b9d1959605a1b60448201526064016107d4565b600f5460ff16156109935760405162461bcd60e51b815260206004820152600e60248201526d105b1c9958591e481b595c99d95960921b60448201526064016107d4565b3233146109d15760405162461bcd60e51b815260206004820152600c60248201526b4e6f20636f6e74726163747360a01b60448201526064016107d4565b60008360018111156109e5576109e56125f1565b1480610a0257506001836001811115610a0057610a006125f1565b145b610a3b5760405162461bcd60e51b815260206004820152600a60248201526957726f6e67207479706560b01b60448201526064016107d4565b610a463360016116d2565b6001836001811115610a5a57610a5a6125f1565b1415610adb576010805461ffff16906000610a7483612574565b91906101000a81548161ffff021916908361ffff1602179055505082600c6000610aa16001546000190190565b610aac906001612480565b81526020810191909152604001600020805460ff191660018381811115610ad557610ad56125f1565b02179055505b6000836001811115610aef57610aef6125f1565b1415610b2b576010805462010000900461ffff16906002610b0f83612574565b91906101000a81548161ffff021916908361ffff160217905550505b610b48336001604051806020016040528060008152506000611738565b6000610b5333611127565b9050828114610b7257610b678360016118f4565b610b728160016118f4565b505060016009555050565b600f5460009060ff1615610bea576000828152600c6020526040902054600f5460ff9182169162010000909104166001811115610bbc57610bbc6125f1565b816001811115610bce57610bce6125f1565b14610bda576000610be3565b610be383611267565b9392505050565b61053182611267565b600f5460009060ff1615610caf576001600160a01b0382166000908152600d60209081526040918290208251808401909352546001600160401b038082168452600160401b90910416908201526001600f5462010000900460ff166001811115610c5f57610c5f6125f1565b1415610c7557516001600160401b031692915050565b6000600f5462010000900460ff166001811115610c9457610c946125f1565b1415610cad57602001516001600160401b031692915050565b505b61053182611943565b610cc06111dc565b610cca6000611991565b565b610cd46111dc565b600f54610100900460ff1615610d1e5760405162461bcd60e51b815260206004820152600f60248201526e105b1c9958591e4818db185a5b5959608a1b60448201526064016107d4565b60105461138890610d3a9062010000900461ffff1660c861245a565b61ffff161115610d7d5760405162461bcd60e51b815260206004820152600e60248201526d2a37b79039b637bb90313937971760911b60448201526064016107d4565b610d9a3360c8604051806020016040528060008152506000611738565b6010805460c89190600290610dba90849062010000900461ffff1661245a565b825461ffff91821661010093840a9081029202191617909155600f805461ff001916909117905550565b60606004805461056190612539565b6001600160a01b038216331415610e1d5760405163b06307db60e01b815260040160405180910390fd5b3360008181526008602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b600080610e9583611127565b6000908152600e60205260409020546001600160401b03169392505050565b610ebf8484846112d5565b6001600160a01b0383163b15158015610ee15750610edf848484846119e1565b155b15610eff576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b610f0d6111dc565b600f5460ff1615610f515760405162461bcd60e51b815260206004820152600e60248201526d105b1c9958591e481b595c99d95960921b60448201526064016107d4565b600f805482919062ff0000191662010000836001811115610f7457610f746125f1565b021790555050565b6000610f878261167d565b6001600160401b03161592915050565b6060610fa282611236565b6110065760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b60648201526084016107d4565b6000806000848152600c602052604090205460ff16600181111561102c5761102c6125f1565b1461105557604051806040016040528060068152602001656d696e65722f60d01b815250611076565b604051806040016040528060078152602001667374616b65722f60c81b8152505b9050600b8161108485611ad9565b6040516020016110969392919061234f565b604051602081830303815290604052915050919050565b600a546001600160a01b031633146110fb5760405162461bcd60e51b8152602060048201526011602482015270139bdd0819d85b594818dbdb9d1c9858dd607a1b60448201526064016107d4565b600061110682611127565b6000908152600e60205260409020805467ffffffffffffffff191690555050565b6040516bffffffffffffffffffffffff19606083901b166020820152600090603401604051602081830303815290604052805190602001209050919050565b61116e6111dc565b6001600160a01b0381166111d35760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016107d4565b6107e681611991565b6000546001600160a01b03163314610cca5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107d4565b600f5460009060ff168015611251575061124f82611bd6565b155b1561125e57506000919050565b61053182611c21565b600061127282611c5a565b5192915050565b60008281526007602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b60006112e082611c5a565b80519091506000906001600160a01b0316336001600160a01b0316148061130e5750815161130e903361047e565b8061132957503361131e846105e4565b6001600160a01b0316145b90508061134957604051632ce44b5f60e11b815260040160405180910390fd5b846001600160a01b031682600001516001600160a01b03161461137e5760405162a1148160e81b815260040160405180910390fd5b6001600160a01b0384166113a557604051633a954ecd60e21b815260040160405180910390fd5b6113b28585856001611d81565b6113c26000848460000151611279565b6001600160a01b038581166000908152600660209081526040808320805467ffffffffffffffff198082166001600160401b0392831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600590945282852080546001600160e01b031916909417600160a01b4290921691909102179092559086018083529120549091166114ac576001548110156114ac57825160008281526005602090815260409091208054918601516001600160401b0316600160a01b026001600160e01b03199092166001600160a01b03909316929092171790555b5082846001600160a01b0316866001600160a01b031660008051602061264a83398151915260405160405180910390a46114e98585856001611dd4565b5050505050565b60006114fb82611c5a565b905061150f81600001516000846001611d81565b61151f6000838360000151611279565b80516001600160a01b039081166000908152600660209081526040808320805467ffffffffffffffff1981166001600160401b0391821660001901821617909155855185168452818420805467ffffffffffffffff60801b198116600160801b9182900484166001908101851690920217909155865188865260059094528285208054600160e01b9588166001600160e01b031990911617600160a01b42909416939093029290921760ff60e01b19169390931790559085018083529120549091166116365760015481101561163657815160008281526005602090815260409091208054918501516001600160401b0316600160a01b026001600160e01b03199092166001600160a01b03909316929092171790555b50805160405183916000916001600160a01b039091169060008051602061264a833981519152908390a48051611670906000846001611dd4565b5050600280546001019055565b60006001600160a01b0382166116a65760405163561b93dd60e11b815260040160405180910390fd5b506001600160a01b0316600090815260066020526040902054600160c01b90046001600160401b031690565b6001600160a01b0382166116f95760405163561b93dd60e11b815260040160405180910390fd5b6001600160a01b03909116600090815260066020526040902080546001600160401b03909216600160c01b026001600160c01b03909216919091179055565b6001546001600160a01b03851661176157604051622e076360e81b815260040160405180910390fd5b8361177f5760405163b562e8dd60e01b815260040160405180910390fd5b61178c6000868387611d81565b6001600160a01b038516600081815260066020908152604080832080546fffffffffffffffffffffffffffffffff1981166001600160401b038083168c018116918217600160401b67ffffffffffffffff1990941690921783900481168c01811690920217909155858452600590925290912080546001600160e01b031916909217600160a01b42909216919091021790558080850183801561183857506001600160a01b0387163b15155b156118af575b60405182906001600160a01b0389169060009060008051602061264a833981519152908290a461187760008884806001019550886119e1565b611894576040516368d2bf6b60e11b815260040160405180910390fd5b8082141561183e5782600154146118aa57600080fd5b6118e3565b5b6040516001830192906001600160a01b0389169060009060008051602061264a833981519152908290a4808214156118b0575b506001556114e96000868387611dd4565b6000828152600e60205260408120805483929061191b9084906001600160401b0316612498565b92506101000a8154816001600160401b0302191690836001600160401b031602179055505050565b60006001600160a01b03821661196c576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600660205260409020546001600160401b031690565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290611a16903390899088908890600401612414565b602060405180830381600087803b158015611a3057600080fd5b505af1925050508015611a60575060408051601f3d908101601f19168201909252611a5d9181019061226b565b60015b611abb573d808015611a8e576040519150601f19603f3d011682016040523d82523d6000602084013e611a93565b606091505b508051611ab3576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b606081611afd5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611b275780611b1181612596565b9150611b209050600a836124ba565b9150611b01565b6000816001600160401b03811115611b4157611b4161261d565b6040519080825280601f01601f191660200182016040528015611b6b576020820181803683370190505b5090505b8415611ad157611b806001836124ce565b9150611b8d600a866125b1565b611b98906030612480565b60f81b818381518110611bad57611bad612607565b60200101906001600160f81b031916908160001a905350611bcf600a866124ba565b9450611b6f565b6000818152600c6020526040812054600f5460ff9182169162010000909104166001811115611c0757611c076125f1565b816001811115611c1957611c196125f1565b149392505050565b600081600111158015611c35575060015482105b8015610531575050600090815260056020526040902054600160e01b900460ff161590565b60408051606081018252600080825260208201819052918101919091528180600111158015611c8a575060015481105b15611d6857600081815260056020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff16151591810182905290611d665780516001600160a01b031615611cfd579392505050565b5060001901600081815260056020908152604091829020825160608101845290546001600160a01b038116808352600160a01b82046001600160401b031693830193909352600160e01b900460ff1615159281019290925215611d61579392505050565b611cfd565b505b604051636f96cda160e11b815260040160405180910390fd5b600f5460ff1615611dcf57611d9582611bd6565b611dcf5760405162461bcd60e51b815260206004820152600b60248201526a2bb937b7339021b430b4b760a91b60448201526064016107d4565b610eff565b6000828152600c60209081526040808320546001600160a01b038088168552600d909352818420928816845290832060ff90911692836001811115611e1b57611e1b6125f1565b1415611ec2576001600160a01b03871615611e7957805484908290600890611e54908490600160401b90046001600160401b03166124e5565b92506101000a8154816001600160401b0302191690836001600160401b031602179055505b815484908390600890611e9d908490600160401b90046001600160401b0316612498565b92506101000a8154816001600160401b0302191690836001600160401b031602179055505b6001836001811115611ed657611ed66125f1565b1415611f6f576001600160a01b03871615611f2d57805484908290600090611f089084906001600160401b03166124e5565b92506101000a8154816001600160401b0302191690836001600160401b031602179055505b815484908390600090611f4a9084906001600160401b0316612498565b92506101000a8154816001600160401b0302191690836001600160401b031602179055505b50505050505050565b828054611f8490612539565b90600052602060002090601f016020900481019282611fa65760008555611fec565b82601f10611fbf57805160ff1916838001178555611fec565b82800160010185558215611fec579182015b82811115611fec578251825591602001919060010190611fd1565b50611ff8929150611ffc565b5090565b5b80821115611ff85760008155600101611ffd565b60006001600160401b038084111561202b5761202b61261d565b604051601f8501601f19908116603f011681019082821181831017156120535761205361261d565b8160405280935085815286868601111561206c57600080fd5b858560208301376000602087830101525050509392505050565b80356001600160a01b038116811461209d57600080fd5b919050565b8035801515811461209d57600080fd5b80356002811061209d57600080fd5b6000602082840312156120d357600080fd5b610be382612086565b600080604083850312156120ef57600080fd5b6120f883612086565b915061210660208401612086565b90509250929050565b60008060006060848603121561212457600080fd5b61212d84612086565b925061213b60208501612086565b9150604084013590509250925092565b6000806000806080858703121561216157600080fd5b61216a85612086565b935061217860208601612086565b92506040850135915060608501356001600160401b0381111561219a57600080fd5b8501601f810187136121ab57600080fd5b6121ba87823560208401612011565b91505092959194509250565b600080604083850312156121d957600080fd5b6121e283612086565b9150612106602084016120a2565b6000806040838503121561220357600080fd5b61220c83612086565b946020939093013593505050565b60006020828403121561222c57600080fd5b610be3826120a2565b60006020828403121561224757600080fd5b5035919050565b60006020828403121561226057600080fd5b8135610be381612633565b60006020828403121561227d57600080fd5b8151610be381612633565b60006020828403121561229a57600080fd5b610be3826120b2565b600080604083850312156122b657600080fd5b61220c836120b2565b6000602082840312156122d157600080fd5b81356001600160401b038111156122e757600080fd5b8201601f810184136122f857600080fd5b611ad184823560208401612011565b6000815180845261231f81602086016020860161250d565b601f01601f19169290920160200192915050565b6000815161234581856020860161250d565b9290920192915050565b600080855481600182811c91508083168061236b57607f831692505b602080841082141561238b57634e487b7160e01b86526022600452602486fd5b81801561239f57600181146123b0576123dd565b60ff198616895284890196506123dd565b60008c81526020902060005b868110156123d55781548b8201529085019083016123bc565b505084890196505b50505050505061240a6123f96123f38388612333565b86612333565b64173539b7b760d91b815260050190565b9695505050505050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061240a90830184612307565b602081526000610be36020830184612307565b600061ffff808316818516808303821115612477576124776125c5565b01949350505050565b60008219821115612493576124936125c5565b500190565b60006001600160401b03808316818516808303821115612477576124776125c5565b6000826124c9576124c96125db565b500490565b6000828210156124e0576124e06125c5565b500390565b60006001600160401b0383811690831681811015612505576125056125c5565b039392505050565b60005b83811015612528578181015183820152602001612510565b83811115610eff5750506000910152565b600181811c9082168061254d57607f821691505b6020821081141561256e57634e487b7160e01b600052602260045260246000fd5b50919050565b600061ffff8083168181141561258c5761258c6125c5565b6001019392505050565b60006000198214156125aa576125aa6125c5565b5060010190565b6000826125c0576125c06125db565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052602160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b0319811681146107e657600080fdfeddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa2646970667358221220e9a3a89a107e99152e11cee2e10ddfa535964d848297e3c2e48c270b2dd009e764736f6c63430008070033

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.