ETH Price: $2,620.31 (+0.82%)

Token

Sperm Game (SG)
 

Overview

Max Total Supply

8,888 SG

Holders

96

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
bangidd.eth
Balance
3 SG
0x41508175b2b8a106ee58696af8af35c92a4ed1a1
Loading...
Loading
Loading...
Loading
Loading...
Loading

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

Contract Source Code Verified (Exact Match)

Contract Name:
SpermGame

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
Yes with 1000 runs

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

import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";
import "@1001-digital/erc721-extensions/contracts/RandomlyAssigned.sol";

contract SpermGame is ERC721, Ownable, RandomlyAssigned {
    using Strings for uint;
    using ECDSA for bytes32;

    uint public immutable MAX_TOKENS;
    uint public immutable PUBLIC_MINT_COST = 60000000000000000; // 0.06 Ether
    uint public immutable PRESALE_MINT_COST = 44000000000000000; // 0.044 Ether
    uint internal immutable MAX_INT = 0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff;

    string public constant PROVENANCE_HASH = "F7A2C002932960FADC377711441ADA7ABB4B32454852BF016027BA5F8185036C";

    string private baseURI;
    string private wrappedBaseURI;

    bool isRevealed;
    bool publicMintAllowed;

    address private operatorAddress;

    mapping(bytes32 => bool) public executed;

    uint[] public medalledTokenIds;

    constructor(
        string memory initialURI,
        uint _MAX_TOKENS)
    ERC721("Sperm Game", "SG")
    RandomlyAssigned(_MAX_TOKENS, 0) {
        isRevealed = false;
        publicMintAllowed = false;
        baseURI = initialURI;
        MAX_TOKENS = _MAX_TOKENS;
        operatorAddress = msg.sender;
        medalledTokenIds = new uint[]((_MAX_TOKENS / 256) + 1);
    }

    function mint(uint num) external payable ensureAvailabilityFor(num) {
        require(publicMintAllowed, "Public minting is not open");
        require(msg.value >= num * PUBLIC_MINT_COST, "Mint cost is 0.06 ETH per token");

        uint tokenId;
        for (uint i = 0; i < num; i++) {
            tokenId = nextToken();
            _safeMint(msg.sender, tokenId);
        }
    }

    function allowlistMint(uint num, uint nonce, bytes calldata signature) external payable ensureAvailabilityFor(num) {
        verifyAllowlistMint(msg.sender, num, nonce, signature);
        require(msg.value >= num * PRESALE_MINT_COST, "Mint cost is 0.044 ETH per token");

        uint tokenId;
        for (uint i = 0; i < num; i++) {
            tokenId = nextToken();
            _safeMint(msg.sender, tokenId);
        }
    }

    function devMint(uint num, uint nonce, uint rand, bytes calldata signature) external payable ensureAvailabilityFor(num) {
        verifyDevMint(msg.sender, num, nonce, rand, signature);

        uint tokenId;
        for (uint i = 0; i < num; i++) {
            tokenId = nextToken();
            _safeMint(msg.sender, tokenId);
        }
    }

    function claimMedal(uint[] calldata tokenIds, bytes[] calldata signatures) external {
        require(tokenIds.length == signatures.length, "Must have one signature per tokenId");
        for (uint i = 0; i < tokenIds.length; i++) {
            require(ownerOf(tokenIds[i]) == msg.sender, "Must be owner of the tokenId to claim medal");
            verifyTokenInFallopianPool(tokenIds[i], signatures[i]);
            setMedalled(tokenIds[i]);
        }
    }

    function unclaimMedal(uint[] calldata tokenIds) external {
        for (uint i = 0; i < tokenIds.length; i++) {
            require(ownerOf(tokenIds[i]) == msg.sender, "Must be owner of the tokenId to unclaim medal");
            unsetMedalled(tokenIds[i]);
        }
    }

    function isValidSignature(bytes32 hash, bytes calldata signature) internal view returns (bool isValid) {
        bytes32 signedHash = keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash));
        return signedHash.recover(signature) == operatorAddress;
    }

    function verifyAllowlistMint(address wallet, uint num, uint nonce, bytes calldata signature) internal {
        bytes32 msgHash = keccak256(abi.encodePacked(wallet, num, nonce));
        require(!executed[msgHash], "Transaction with this msgHash already executed");
        require(isValidSignature(msgHash, signature), "Invalid signature");
        executed[msgHash] = true;
    }

    function verifyDevMint(address wallet, uint num, uint nonce, uint rand, bytes calldata signature) internal {
        bytes32 msgHash = keccak256(abi.encodePacked(wallet, num, nonce, rand));
        require(!executed[msgHash], "Transaction with this msgHash already executed");
        require(isValidSignature(msgHash, signature), "Invalid signature");
        executed[msgHash] = true;
    }

    function verifyTokenInFallopianPool(uint tokenId, bytes calldata signature) internal view {
        bytes32 msgHash = keccak256(abi.encodePacked(tokenId));
        require(isValidSignature(msgHash, signature), "Invalid signature");
    }

    function tokenURI(uint tokenId) public view override returns (string memory) {
        if (isRevealed && !isMedalled(tokenId)) {
            return string(abi.encodePacked(baseURI, "/", tokenId.toString()));
        } else if (isRevealed && isMedalled(tokenId)) {
            return string(abi.encodePacked(wrappedBaseURI, "/", tokenId.toString()));
        } else {
            return string(abi.encodePacked(baseURI));
        }
    }

    function setTokenURI(string calldata _baseURI) external onlyOwner {
        baseURI = _baseURI;
    }

    function setWrappedBaseTokenURI(string calldata _wrappedBaseURI) external onlyOwner {
        wrappedBaseURI = _wrappedBaseURI;
    }

    function setOperatorAddress(address _address) external onlyOwner {
        operatorAddress = _address;
    }

    function togglePublicMintingAllowed() external onlyOwner {
        publicMintAllowed = !publicMintAllowed;
    }

    function toggleReveal() external onlyOwner {
        isRevealed = !isRevealed;
    }

    function withdraw() external onlyOwner {
        payable(msg.sender).transfer(address(this).balance);
    }

    function isMedalled(uint tokenId) public view returns (bool) {
        uint[] memory bitMapList = medalledTokenIds;
        uint Y = tokenId / 256;
        uint partition = bitMapList[Y];
        if (partition == MAX_INT) {
            return true;
        }
        uint X = tokenId % 256;
        uint bit = partition & (1 << X);
        return (bit != 0);
    }

    function setMedalled(uint tokenId) internal {
        uint[] storage bitMapList = medalledTokenIds;
        uint Y = tokenId / 256;
        uint partition = bitMapList[Y];
        uint X = tokenId % 256;
        bitMapList[Y] = partition | (1 << X);
    }

    function unsetMedalled(uint tokenId) internal {
        uint[] storage bitMapList = medalledTokenIds;
        uint Y = tokenId / 256;
        uint partition = bitMapList[Y];
        uint X = tokenId % 256;
        bitMapList[Y] = partition & (0 << X);
    }
}

File 2 of 15 : ERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/ERC721.sol)

pragma solidity ^0.8.0;

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        _setApprovalForAll(_msgSender(), operator, approved);
    }

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

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

        _transfer(from, to, tokenId);
    }

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

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

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

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

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

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

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

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

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

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

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

        _afterTokenTransfer(address(0), to, tokenId);
    }

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

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

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

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

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

        _afterTokenTransfer(owner, address(0), tokenId);
    }

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

        _beforeTokenTransfer(from, to, tokenId);

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

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

        emit Transfer(from, to, tokenId);

        _afterTokenTransfer(from, to, tokenId);
    }

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

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

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

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

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

File 3 of 15 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Strings.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

File 4 of 15 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (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 Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

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

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _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 5 of 15 : ECDSA.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/cryptography/ECDSA.sol)

pragma solidity ^0.8.0;

import "../Strings.sol";

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

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

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

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

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

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

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

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

        return (signer, RecoverError.NoError);
    }

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

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

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

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

File 6 of 15 : RandomlyAssigned.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "./WithLimitedSupply.sol";

/// @author 1001.digital
/// @title Randomly assign tokenIDs from a given set of tokens.
abstract contract RandomlyAssigned is WithLimitedSupply {
    // Used for random index assignment
    mapping(uint256 => uint256) private tokenMatrix;

    // The initial token ID
    uint256 private startFrom;

    /// Instanciate the contract
    /// @param _totalSupply how many tokens this collection should hold
    /// @param _startFrom the tokenID with which to start counting
    constructor (uint256 _totalSupply, uint256 _startFrom)
        WithLimitedSupply(_totalSupply)
    {
        startFrom = _startFrom;
    }

    /// Get the next token ID
    /// @dev Randomly gets a new token ID and keeps track of the ones that are still available.
    /// @return the next token ID
    function nextToken() internal override ensureAvailability returns (uint256) {
        uint256 maxIndex = totalSupply() - tokenCount();
        uint256 random = uint256(keccak256(
            abi.encodePacked(
                msg.sender,
                block.coinbase,
                block.difficulty,
                block.gaslimit,
                block.timestamp
            )
        )) % maxIndex;

        uint256 value = 0;
        if (tokenMatrix[random] == 0) {
            // If this matrix position is empty, set the value to the generated random number.
            value = random;
        } else {
            // Otherwise, use the previously stored number from the matrix.
            value = tokenMatrix[random];
        }

        // If the last available tokenID is still unused...
        if (tokenMatrix[maxIndex - 1] == 0) {
            // ...store that ID in the current matrix position.
            tokenMatrix[random] = maxIndex - 1;
        } else {
            // ...otherwise copy over the stored number to the current matrix position.
            tokenMatrix[random] = tokenMatrix[maxIndex - 1];
        }

        // Increment counts
        super.nextToken();

        return value + startFrom;
    }
}

File 7 of 15 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (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`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

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

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

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

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

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

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

File 8 of 15 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (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 `IERC721.onERC721Received.selector`.
     */
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

File 9 of 15 : 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 10 of 15 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.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

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

File 11 of 15 : 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 12 of 15 : ERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

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

pragma solidity ^0.8.0;

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

File 14 of 15 : WithLimitedSupply.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/utils/Counters.sol";

/// @author 1001.digital
/// @title A token tracker that limits the token supply and increments token IDs on each new mint.
abstract contract WithLimitedSupply {
    using Counters for Counters.Counter;

    /// @dev Emitted when the supply of this collection changes
    event SupplyChanged(uint256 indexed supply);

    // Keeps track of how many we have minted
    Counters.Counter private _tokenCount;

    /// @dev The maximum count of tokens this token tracker will hold.
    uint256 private _totalSupply;

    /// Instanciate the contract
    /// @param totalSupply_ how many tokens this collection should hold
    constructor (uint256 totalSupply_) {
        _totalSupply = totalSupply_;
    }

    /// @dev Get the max Supply
    /// @return the maximum token count
    function totalSupply() public view returns (uint256) {
        return _totalSupply;
    }

    /// @dev Get the current token count
    /// @return the created token count
    function tokenCount() public view returns (uint256) {
        return _tokenCount.current();
    }

    /// @dev Check whether tokens are still available
    /// @return the available token count
    function availableTokenCount() public view returns (uint256) {
        return totalSupply() - tokenCount();
    }

    /// @dev Increment the token count and fetch the latest count
    /// @return the next token id
    function nextToken() internal virtual returns (uint256) {
        uint256 token = _tokenCount.current();

        _tokenCount.increment();

        return token;
    }

    /// @dev Check whether another token is still available
    modifier ensureAvailability() {
        require(availableTokenCount() > 0, "No more tokens available");
        _;
    }

    /// @param amount Check whether number of tokens are still available
    /// @dev Check whether tokens are still available
    modifier ensureAvailabilityFor(uint256 amount) {
        require(availableTokenCount() >= amount, "Requested number of tokens not available");
        _;
    }

    /// Update the supply for the collection
    /// @param _supply the new token supply.
    /// @dev create additional token supply for this collection.
    function _setSupply(uint256 _supply) internal virtual {
        require(_supply > tokenCount(), "Can't set the supply to less than the current token count");
        _totalSupply = _supply;

        emit SupplyChanged(totalSupply());
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"initialURI","type":"string"},{"internalType":"uint256","name":"_MAX_TOKENS","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"supply","type":"uint256"}],"name":"SupplyChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"MAX_TOKENS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRESALE_MINT_COST","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PROVENANCE_HASH","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PUBLIC_MINT_COST","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"num","type":"uint256"},{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"allowlistMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"availableTokenCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"uint256[]","name":"tokenIds","type":"uint256[]"},{"internalType":"bytes[]","name":"signatures","type":"bytes[]"}],"name":"claimMedal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"num","type":"uint256"},{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"uint256","name":"rand","type":"uint256"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"devMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"executed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"isMedalled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"medalledTokenIds","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"num","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"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":"address","name":"_address","type":"address"}],"name":"setOperatorAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_baseURI","type":"string"}],"name":"setTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_wrappedBaseURI","type":"string"}],"name":"setWrappedBaseTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"togglePublicMintingAllowed","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"toggleReveal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"tokenCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"unclaimMedal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

61010060405266d529ae9e86000060a052669c51c4521e000060c05260001960e0523480156200002e57600080fd5b5060405162003880380380620038808339810160408190526200005191620002d3565b604080518082018252600a815269537065726d2047616d6560b01b602080830191825283518085019094526002845261534760f01b908401528151849360009385939092620000a2918691620001f0565b508051620000b8906001906020840190620001f0565b505050620000d5620000cf6200019a60201b60201c565b6200019e565b600855600a5550600d805461ffff191690558151620000fc90600b906020850190620001f0565b506080819052600d805462010000600160b01b0319163362010000021790556200012961010082620003df565b62000136906001620003b8565b6001600160401b038111156200015057620001506200043f565b6040519080825280602002602001820160405280156200017a578160200160208202803683370190505b5080516200019191600f916020909101906200027f565b50505062000455565b3390565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b828054620001fe9062000402565b90600052602060002090601f0160209004810192826200022257600085556200026d565b82601f106200023d57805160ff19168380011785556200026d565b828001600101855582156200026d579182015b828111156200026d57825182559160200191906001019062000250565b506200027b929150620002bc565b5090565b8280548282559060005260206000209081019282156200026d57916020028201828111156200026d57825182559160200191906001019062000250565b5b808211156200027b5760008155600101620002bd565b60008060408385031215620002e757600080fd5b82516001600160401b0380821115620002ff57600080fd5b818501915085601f8301126200031457600080fd5b8151818111156200032957620003296200043f565b604051601f8201601f19908116603f011681019083821181831017156200035457620003546200043f565b816040528281526020935088848487010111156200037157600080fd5b600091505b8282101562000395578482018401518183018501529083019062000376565b82821115620003a75760008484830101525b969092015195979596505050505050565b60008219821115620003da57634e487b7160e01b600052601160045260246000fd5b500190565b600082620003fd57634e487b7160e01b600052601260045260246000fd5b500490565b600181811c908216806200041757607f821691505b602082108114156200043957634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b60805160a05160c05160e0516133e36200049d6000396000610cb90152600081816105f701526112ac015260008181610553015261143f015260006106fc01526133e36000f3fe60806040526004361061026a5760003560e01c8063715018a611610153578063b88d4fde116100cb578063e14ca3531161007f578063f2fde38b11610064578063f2fde38b146106ca578063f47c84c5146106ea578063ff1b65561461071e57600080fd5b8063e14ca3531461066c578063e985e9c51461068157600080fd5b8063c4ee9d93116100b0578063c4ee9d9314610619578063c87b56dd1461062c578063e0df5b6f1461064c57600080fd5b8063b88d4fde146105c5578063c46f0b82146105e557600080fd5b80639f181b5e11610122578063a2080c5b11610107578063a2080c5b14610541578063a22cb46514610575578063a9fcfb331461059557600080fd5b80639f181b5e14610519578063a0712d681461052e57600080fd5b8063715018a6146104be57806379b655d4146104d35780638da5cb5b146104e657806395d89b411461050457600080fd5b80632f1d5a60116101e6578063480c23f0116101b55780635b8ad4291161019a5780635b8ad429146104695780636352211e1461047e57806370a082311461049e57600080fd5b8063480c23f0146104345780635777823c1461044957600080fd5b80632f1d5a60146103bf5780633ccfd60b146103df5780633f326f14146103f457806342842e0e1461041457600080fd5b8063095ea7b31161023d57806318c737631161022257806318c737631461035f5780631b504e361461037f57806323b872dd1461039f57600080fd5b8063095ea7b31461032057806318160ddd1461034057600080fd5b806301ffc9a71461026f578063069cb36c146102a457806306fdde03146102c6578063081812fc146102e8575b600080fd5b34801561027b57600080fd5b5061028f61028a366004612f23565b610733565b60405190151581526020015b60405180910390f35b3480156102b057600080fd5b506102c46102bf366004612f5d565b6107d0565b005b3480156102d257600080fd5b506102db610840565b60405161029b9190613197565b3480156102f457600080fd5b50610308610303366004612f0a565b6108d2565b6040516001600160a01b03909116815260200161029b565b34801561032c57600080fd5b506102c461033b366004612e32565b610967565b34801561034c57600080fd5b506008545b60405190815260200161029b565b34801561036b57600080fd5b506102c461037a366004612e9e565b610a94565b34801561038b57600080fd5b5061028f61039a366004612f0a565b610c31565b3480156103ab57600080fd5b506102c46103ba366004612cde565b610d0b565b3480156103cb57600080fd5b506102c46103da366004612c89565b610d92565b3480156103eb57600080fd5b506102c4610e2c565b34801561040057600080fd5b506102c461040f366004612e5c565b610eb5565b34801561042057600080fd5b506102c461042f366004612cde565b610f85565b34801561044057600080fd5b506102c4610fa0565b34801561045557600080fd5b50610351610464366004612f0a565b611017565b34801561047557600080fd5b506102c4611038565b34801561048a57600080fd5b50610308610499366004612f0a565b6110a6565b3480156104aa57600080fd5b506103516104b9366004612c89565b611131565b3480156104ca57600080fd5b506102c46111cb565b6102c46104e1366004612f93565b611231565b3480156104f257600080fd5b506006546001600160a01b0316610308565b34801561051057600080fd5b506102db61135b565b34801561052557600080fd5b5061035161136a565b6102c461053c366004612f0a565b61137a565b34801561054d57600080fd5b506103517f000000000000000000000000000000000000000000000000000000000000000081565b34801561058157600080fd5b506102c4610590366004612df6565b6114eb565b3480156105a157600080fd5b5061028f6105b0366004612f0a565b600e6020526000908152604090205460ff1681565b3480156105d157600080fd5b506102c46105e0366004612d1a565b6114fa565b3480156105f157600080fd5b506103517f000000000000000000000000000000000000000000000000000000000000000081565b6102c4610627366004612fda565b611582565b34801561063857600080fd5b506102db610647366004612f0a565b611635565b34801561065857600080fd5b506102c4610667366004612f5d565b6116c4565b34801561067857600080fd5b5061035161172a565b34801561068d57600080fd5b5061028f61069c366004612cab565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b3480156106d657600080fd5b506102c46106e5366004612c89565b611741565b3480156106f657600080fd5b506103517f000000000000000000000000000000000000000000000000000000000000000081565b34801561072a57600080fd5b506102db611820565b60006001600160e01b031982167f80ac58cd00000000000000000000000000000000000000000000000000000000148061079657506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b806107ca57507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b03198316145b92915050565b6006546001600160a01b0316331461082f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b61083b600c8383612b52565b505050565b60606000805461084f9061327f565b80601f016020809104026020016040519081016040528092919081815260200182805461087b9061327f565b80156108c85780601f1061089d576101008083540402835291602001916108c8565b820191906000526020600020905b8154815290600101906020018083116108ab57829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b031661094b5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610826565b506000908152600460205260409020546001600160a01b031690565b6000610972826110a6565b9050806001600160a01b0316836001600160a01b031614156109fc5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152608401610826565b336001600160a01b0382161480610a185750610a18813361069c565b610a8a5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610826565b61083b838361183c565b828114610b095760405162461bcd60e51b815260206004820152602360248201527f4d7573742068617665206f6e65207369676e61747572652070657220746f6b6560448201527f6e496400000000000000000000000000000000000000000000000000000000006064820152608401610826565b60005b83811015610c2a5733610b36868684818110610b2a57610b2a61332b565b905060200201356110a6565b6001600160a01b031614610bb25760405162461bcd60e51b815260206004820152602b60248201527f4d757374206265206f776e6572206f662074686520746f6b656e496420746f2060448201527f636c61696d206d6564616c0000000000000000000000000000000000000000006064820152608401610826565b610bf7858583818110610bc757610bc761332b565b90506020020135848484818110610be057610be061332b565b9050602002810190610bf291906131aa565b6118b7565b610c18858583818110610c0c57610c0c61332b565b9050602002013561192f565b80610c22816132ba565b915050610b0c565b5050505050565b600080600f805480602002602001604051908101604052809291908181526020018280548015610c8057602002820191906000526020600020905b815481526020019060010190808311610c6c575b50505050509050600061010084610c979190613209565b90506000828281518110610cad57610cad61332b565b602002602001015190507f0000000000000000000000000000000000000000000000000000000000000000811415610cea57506001949350505050565b6000610cf8610100876132d5565b6001901b91909116151595945050505050565b610d15338261199c565b610d875760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610826565b61083b838383611a93565b6006546001600160a01b03163314610dec5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610826565b600d80546001600160a01b0390921662010000027fffffffffffffffffffff0000000000000000000000000000000000000000ffff909216919091179055565b6006546001600160a01b03163314610e865760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610826565b60405133904780156108fc02916000818181858888f19350505050158015610eb2573d6000803e3d6000fd5b50565b60005b8181101561083b5733610ed6848484818110610b2a57610b2a61332b565b6001600160a01b031614610f525760405162461bcd60e51b815260206004820152602d60248201527f4d757374206265206f776e6572206f662074686520746f6b656e496420746f2060448201527f756e636c61696d206d6564616c000000000000000000000000000000000000006064820152608401610826565b610f73838383818110610f6757610f6761332b565b90506020020135611c6d565b80610f7d816132ba565b915050610eb8565b61083b838383604051806020016040528060008152506114fa565b6006546001600160a01b03163314610ffa5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610826565b600d805461ff001981166101009182900460ff1615909102179055565b600f818154811061102757600080fd5b600091825260209091200154905081565b6006546001600160a01b031633146110925760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610826565b600d805460ff19811660ff90911615179055565b6000818152600260205260408120546001600160a01b0316806107ca5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e00000000000000000000000000000000000000000000006064820152608401610826565b60006001600160a01b0382166111af5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f2061646472657373000000000000000000000000000000000000000000006064820152608401610826565b506001600160a01b031660009081526003602052604090205490565b6006546001600160a01b031633146112255760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610826565b61122f6000611cc6565b565b838061123b61172a565b101561129a5760405162461bcd60e51b815260206004820152602860248201527f526571756573746564206e756d626572206f6620746f6b656e73206e6f7420616044820152677661696c61626c6560c01b6064820152608401610826565b6112a73386868686611d25565b6112d17f00000000000000000000000000000000000000000000000000000000000000008661321d565b3410156113205760405162461bcd60e51b815260206004820181905260248201527f4d696e7420636f737420697320302e303434204554482070657220746f6b656e6044820152606401610826565b6000805b8681101561135257611334611e5e565b91506113403383611ff6565b8061134a816132ba565b915050611324565b50505050505050565b60606001805461084f9061327f565b600061137560075490565b905090565b808061138461172a565b10156113e35760405162461bcd60e51b815260206004820152602860248201527f526571756573746564206e756d626572206f6620746f6b656e73206e6f7420616044820152677661696c61626c6560c01b6064820152608401610826565b600d54610100900460ff1661143a5760405162461bcd60e51b815260206004820152601a60248201527f5075626c6963206d696e74696e67206973206e6f74206f70656e0000000000006044820152606401610826565b6114647f00000000000000000000000000000000000000000000000000000000000000008361321d565b3410156114b35760405162461bcd60e51b815260206004820152601f60248201527f4d696e7420636f737420697320302e3036204554482070657220746f6b656e006044820152606401610826565b6000805b838110156114e5576114c7611e5e565b91506114d33383611ff6565b806114dd816132ba565b9150506114b7565b50505050565b6114f6338383612010565b5050565b611504338361199c565b6115765760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610826565b6114e5848484846120df565b848061158c61172a565b10156115eb5760405162461bcd60e51b815260206004820152602860248201527f526571756573746564206e756d626572206f6620746f6b656e73206e6f7420616044820152677661696c61626c6560c01b6064820152608401610826565b6115f933878787878761215d565b6000805b8781101561162b5761160d611e5e565b91506116193383611ff6565b80611623816132ba565b9150506115fd565b5050505050505050565b600d5460609060ff168015611650575061164e82610c31565b155b1561168757600b6116608361229e565b60405160200161167192919061310d565b6040516020818303038152906040529050919050565b600d5460ff16801561169d575061169d82610c31565b156116ad57600c6116608361229e565b600b6040516020016116719190613101565b919050565b6006546001600160a01b0316331461171e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610826565b61083b600b8383612b52565b600061173461136a565b600854611375919061323c565b6006546001600160a01b0316331461179b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610826565b6001600160a01b0381166118175760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610826565b610eb281611cc6565b60405180606001604052806040815260200161336e6040913981565b6000818152600460205260409020805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b038416908117909155819061187e826110a6565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000836040516020016118cc91815260200190565b6040516020818303038152906040528051906020012090506118ef8184846123d0565b6114e55760405162461bcd60e51b8152602060048201526011602482015270496e76616c6964207369676e617475726560781b6044820152606401610826565b600f600061193f61010084613209565b905060008282815481106119555761195561332b565b6000918252602082200154915061196e610100866132d5565b9050806001901b82178484815481106119895761198961332b565b6000918252602090912001555050505050565b6000818152600260205260408120546001600160a01b0316611a155760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610826565b6000611a20836110a6565b9050806001600160a01b0316846001600160a01b03161480611a5b5750836001600160a01b0316611a50846108d2565b6001600160a01b0316145b80611a8b57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b0316611aa6826110a6565b6001600160a01b031614611b225760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201527f6f776e65720000000000000000000000000000000000000000000000000000006064820152608401610826565b6001600160a01b038216611b9d5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610826565b611ba860008261183c565b6001600160a01b0383166000908152600360205260408120805460019290611bd190849061323c565b90915550506001600160a01b0382166000908152600360205260408120805460019290611bff9084906131f1565b9091555050600081815260026020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600f6000611c7d61010084613209565b90506000828281548110611c9357611c9361332b565b60009182526020822001549150611cac610100866132d5565b84549091506000908590859081106119895761198961332b565b600680546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6040516bffffffffffffffffffffffff19606087901b166020820152603481018590526054810184905260009060740160408051601f1981840301815291815281516020928301206000818152600e90935291205490915060ff1615611df35760405162461bcd60e51b815260206004820152602e60248201527f5472616e73616374696f6e20776974682074686973206d73674861736820616c60448201527f72656164792065786563757465640000000000000000000000000000000000006064820152608401610826565b611dfe8184846123d0565b611e3e5760405162461bcd60e51b8152602060048201526011602482015270496e76616c6964207369676e617475726560781b6044820152606401610826565b6000908152600e60205260409020805460ff191660011790555050505050565b600080611e6961172a565b11611eb65760405162461bcd60e51b815260206004820152601860248201527f4e6f206d6f726520746f6b656e7320617661696c61626c6500000000000000006044820152606401610826565b6000611ec061136a565b600854611ecd919061323c565b6040516bffffffffffffffffffffffff1933606090811b8216602084015241901b166034820152446048820152456068820152426088820152909150600090829060a8016040516020818303038152906040528051906020012060001c611f3491906132d5565b60008181526009602052604081205491925090611f52575080611f63565b506000818152600960205260409020545b60096000611f7260018661323c565b81526020019081526020016000205460001415611fa857611f9460018461323c565b600083815260096020526040902055611fd8565b60096000611fb760018661323c565b81526020808201929092526040908101600090812054858252600990935220555b611fe0612483565b50600a54611fee90826131f1565b935050505090565b6114f682826040518060200160405280600081525061249f565b816001600160a01b0316836001600160a01b031614156120725760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610826565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6120ea848484611a93565b6120f68484848461251d565b6114e55760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610826565b6040516bffffffffffffffffffffffff19606088901b16602082015260348101869052605481018590526074810184905260009060940160408051601f1981840301815291815281516020928301206000818152600e90935291205490915060ff16156122325760405162461bcd60e51b815260206004820152602e60248201527f5472616e73616374696f6e20776974682074686973206d73674861736820616c60448201527f72656164792065786563757465640000000000000000000000000000000000006064820152608401610826565b61223d8184846123d0565b61227d5760405162461bcd60e51b8152602060048201526011602482015270496e76616c6964207369676e617475726560781b6044820152606401610826565b6000908152600e60205260409020805460ff19166001179055505050505050565b6060816122de57505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b811561230857806122f2816132ba565b91506123019050600a83613209565b91506122e2565b60008167ffffffffffffffff81111561232357612323613341565b6040519080825280601f01601f19166020018201604052801561234d576020820181803683370190505b5090505b8415611a8b5761236260018361323c565b915061236f600a866132d5565b61237a9060306131f1565b60f81b81838151811061238f5761238f61332b565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506123c9600a86613209565b9450612351565b6040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c81018490526000908190605c0160408051808303601f190181528282528051602091820120600d54601f88018390048302850183019093528684529350620100009091046001600160a01b03169161247091879087908190840183828082843760009201919091525086939250506126759050565b6001600160a01b03161495945050505050565b60008061248f60075490565b90506116bf600780546001019055565b6124a98383612699565b6124b6600084848461251d565b61083b5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610826565b60006001600160a01b0384163b1561266a57604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061256190339089908890889060040161315b565b602060405180830381600087803b15801561257b57600080fd5b505af19250505080156125ab575060408051601f3d908101601f191682019092526125a891810190612f40565b60015b612650573d8080156125d9576040519150601f19603f3d011682016040523d82523d6000602084013e6125de565b606091505b5080516126485760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610826565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611a8b565b506001949350505050565b600080600061268485856127e8565b9150915061269181612858565b509392505050565b6001600160a01b0382166126ef5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610826565b6000818152600260205260409020546001600160a01b0316156127545760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610826565b6001600160a01b038216600090815260036020526040812080546001929061277d9084906131f1565b9091555050600081815260026020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60008082516041141561281f5760208301516040840151606085015160001a61281387828585612a13565b94509450505050612851565b825160401415612849576020830151604084015161283e868383612b00565b935093505050612851565b506000905060025b9250929050565b600081600481111561286c5761286c613315565b14156128755750565b600181600481111561288957612889613315565b14156128d75760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610826565b60028160048111156128eb576128eb613315565b14156129395760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610826565b600381600481111561294d5761294d613315565b14156129a65760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610826565b60048160048111156129ba576129ba613315565b1415610eb25760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610826565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115612a4a5750600090506003612af7565b8460ff16601b14158015612a6257508460ff16601c14155b15612a735750600090506004612af7565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015612ac7573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116612af057600060019250925050612af7565b9150600090505b94509492505050565b6000807f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff831681612b3660ff86901c601b6131f1565b9050612b4487828885612a13565b935093505050935093915050565b828054612b5e9061327f565b90600052602060002090601f016020900481019282612b805760008555612bc6565b82601f10612b995782800160ff19823516178555612bc6565b82800160010185558215612bc6579182015b82811115612bc6578235825591602001919060010190612bab565b50612bd2929150612bd6565b5090565b5b80821115612bd25760008155600101612bd7565b80356001600160a01b03811681146116bf57600080fd5b60008083601f840112612c1457600080fd5b50813567ffffffffffffffff811115612c2c57600080fd5b6020830191508360208260051b850101111561285157600080fd5b60008083601f840112612c5957600080fd5b50813567ffffffffffffffff811115612c7157600080fd5b60208301915083602082850101111561285157600080fd5b600060208284031215612c9b57600080fd5b612ca482612beb565b9392505050565b60008060408385031215612cbe57600080fd5b612cc783612beb565b9150612cd560208401612beb565b90509250929050565b600080600060608486031215612cf357600080fd5b612cfc84612beb565b9250612d0a60208501612beb565b9150604084013590509250925092565b60008060008060808587031215612d3057600080fd5b612d3985612beb565b9350612d4760208601612beb565b925060408501359150606085013567ffffffffffffffff80821115612d6b57600080fd5b818701915087601f830112612d7f57600080fd5b813581811115612d9157612d91613341565b604051601f8201601f19908116603f01168101908382118183101715612db957612db9613341565b816040528281528a6020848701011115612dd257600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b60008060408385031215612e0957600080fd5b612e1283612beb565b915060208301358015158114612e2757600080fd5b809150509250929050565b60008060408385031215612e4557600080fd5b612e4e83612beb565b946020939093013593505050565b60008060208385031215612e6f57600080fd5b823567ffffffffffffffff811115612e8657600080fd5b612e9285828601612c02565b90969095509350505050565b60008060008060408587031215612eb457600080fd5b843567ffffffffffffffff80821115612ecc57600080fd5b612ed888838901612c02565b90965094506020870135915080821115612ef157600080fd5b50612efe87828801612c02565b95989497509550505050565b600060208284031215612f1c57600080fd5b5035919050565b600060208284031215612f3557600080fd5b8135612ca481613357565b600060208284031215612f5257600080fd5b8151612ca481613357565b60008060208385031215612f7057600080fd5b823567ffffffffffffffff811115612f8757600080fd5b612e9285828601612c47565b60008060008060608587031215612fa957600080fd5b8435935060208501359250604085013567ffffffffffffffff811115612fce57600080fd5b612efe87828801612c47565b600080600080600060808688031215612ff257600080fd5b853594506020860135935060408601359250606086013567ffffffffffffffff81111561301e57600080fd5b61302a88828901612c47565b969995985093965092949392505050565b60008151808452613053816020860160208601613253565b601f01601f19169290920160200192915050565b8054600090600181811c908083168061308157607f831692505b60208084108214156130a357634e487b7160e01b600052602260045260246000fd5b8180156130b757600181146130c8576130f5565b60ff198616895284890196506130f5565b60008881526020902060005b868110156130ed5781548b8201529085019083016130d4565b505084890196505b50505050505092915050565b6000612ca48284613067565b60006131198285613067565b7f2f000000000000000000000000000000000000000000000000000000000000008152835161314f816001840160208801613253565b01600101949350505050565b60006001600160a01b0380871683528086166020840152508360408301526080606083015261318d608083018461303b565b9695505050505050565b602081526000612ca4602083018461303b565b6000808335601e198436030181126131c157600080fd5b83018035915067ffffffffffffffff8211156131dc57600080fd5b60200191503681900382131561285157600080fd5b60008219821115613204576132046132e9565b500190565b600082613218576132186132ff565b500490565b6000816000190483118215151615613237576132376132e9565b500290565b60008282101561324e5761324e6132e9565b500390565b60005b8381101561326e578181015183820152602001613256565b838111156114e55750506000910152565b600181811c9082168061329357607f821691505b602082108114156132b457634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156132ce576132ce6132e9565b5060010190565b6000826132e4576132e46132ff565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052602160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b031981168114610eb257600080fdfe46374132433030323933323936304641444333373737313134343141444137414242344233323435343835324246303136303237424135463831383530333643a2646970667358221220db916c9dd1c1088a0d2dba5056a1852d765b719c3d20a75e826815991a1f28eb64736f6c63430008070033000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000022b80000000000000000000000000000000000000000000000000000000000000035697066733a2f2f516d615335644e67564d677262754c64656f33787158796735657352785a755446527456396632325936637634360000000000000000000000

Deployed Bytecode

0x60806040526004361061026a5760003560e01c8063715018a611610153578063b88d4fde116100cb578063e14ca3531161007f578063f2fde38b11610064578063f2fde38b146106ca578063f47c84c5146106ea578063ff1b65561461071e57600080fd5b8063e14ca3531461066c578063e985e9c51461068157600080fd5b8063c4ee9d93116100b0578063c4ee9d9314610619578063c87b56dd1461062c578063e0df5b6f1461064c57600080fd5b8063b88d4fde146105c5578063c46f0b82146105e557600080fd5b80639f181b5e11610122578063a2080c5b11610107578063a2080c5b14610541578063a22cb46514610575578063a9fcfb331461059557600080fd5b80639f181b5e14610519578063a0712d681461052e57600080fd5b8063715018a6146104be57806379b655d4146104d35780638da5cb5b146104e657806395d89b411461050457600080fd5b80632f1d5a60116101e6578063480c23f0116101b55780635b8ad4291161019a5780635b8ad429146104695780636352211e1461047e57806370a082311461049e57600080fd5b8063480c23f0146104345780635777823c1461044957600080fd5b80632f1d5a60146103bf5780633ccfd60b146103df5780633f326f14146103f457806342842e0e1461041457600080fd5b8063095ea7b31161023d57806318c737631161022257806318c737631461035f5780631b504e361461037f57806323b872dd1461039f57600080fd5b8063095ea7b31461032057806318160ddd1461034057600080fd5b806301ffc9a71461026f578063069cb36c146102a457806306fdde03146102c6578063081812fc146102e8575b600080fd5b34801561027b57600080fd5b5061028f61028a366004612f23565b610733565b60405190151581526020015b60405180910390f35b3480156102b057600080fd5b506102c46102bf366004612f5d565b6107d0565b005b3480156102d257600080fd5b506102db610840565b60405161029b9190613197565b3480156102f457600080fd5b50610308610303366004612f0a565b6108d2565b6040516001600160a01b03909116815260200161029b565b34801561032c57600080fd5b506102c461033b366004612e32565b610967565b34801561034c57600080fd5b506008545b60405190815260200161029b565b34801561036b57600080fd5b506102c461037a366004612e9e565b610a94565b34801561038b57600080fd5b5061028f61039a366004612f0a565b610c31565b3480156103ab57600080fd5b506102c46103ba366004612cde565b610d0b565b3480156103cb57600080fd5b506102c46103da366004612c89565b610d92565b3480156103eb57600080fd5b506102c4610e2c565b34801561040057600080fd5b506102c461040f366004612e5c565b610eb5565b34801561042057600080fd5b506102c461042f366004612cde565b610f85565b34801561044057600080fd5b506102c4610fa0565b34801561045557600080fd5b50610351610464366004612f0a565b611017565b34801561047557600080fd5b506102c4611038565b34801561048a57600080fd5b50610308610499366004612f0a565b6110a6565b3480156104aa57600080fd5b506103516104b9366004612c89565b611131565b3480156104ca57600080fd5b506102c46111cb565b6102c46104e1366004612f93565b611231565b3480156104f257600080fd5b506006546001600160a01b0316610308565b34801561051057600080fd5b506102db61135b565b34801561052557600080fd5b5061035161136a565b6102c461053c366004612f0a565b61137a565b34801561054d57600080fd5b506103517f00000000000000000000000000000000000000000000000000d529ae9e86000081565b34801561058157600080fd5b506102c4610590366004612df6565b6114eb565b3480156105a157600080fd5b5061028f6105b0366004612f0a565b600e6020526000908152604090205460ff1681565b3480156105d157600080fd5b506102c46105e0366004612d1a565b6114fa565b3480156105f157600080fd5b506103517f000000000000000000000000000000000000000000000000009c51c4521e000081565b6102c4610627366004612fda565b611582565b34801561063857600080fd5b506102db610647366004612f0a565b611635565b34801561065857600080fd5b506102c4610667366004612f5d565b6116c4565b34801561067857600080fd5b5061035161172a565b34801561068d57600080fd5b5061028f61069c366004612cab565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b3480156106d657600080fd5b506102c46106e5366004612c89565b611741565b3480156106f657600080fd5b506103517f00000000000000000000000000000000000000000000000000000000000022b881565b34801561072a57600080fd5b506102db611820565b60006001600160e01b031982167f80ac58cd00000000000000000000000000000000000000000000000000000000148061079657506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b806107ca57507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b03198316145b92915050565b6006546001600160a01b0316331461082f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b61083b600c8383612b52565b505050565b60606000805461084f9061327f565b80601f016020809104026020016040519081016040528092919081815260200182805461087b9061327f565b80156108c85780601f1061089d576101008083540402835291602001916108c8565b820191906000526020600020905b8154815290600101906020018083116108ab57829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b031661094b5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610826565b506000908152600460205260409020546001600160a01b031690565b6000610972826110a6565b9050806001600160a01b0316836001600160a01b031614156109fc5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152608401610826565b336001600160a01b0382161480610a185750610a18813361069c565b610a8a5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610826565b61083b838361183c565b828114610b095760405162461bcd60e51b815260206004820152602360248201527f4d7573742068617665206f6e65207369676e61747572652070657220746f6b6560448201527f6e496400000000000000000000000000000000000000000000000000000000006064820152608401610826565b60005b83811015610c2a5733610b36868684818110610b2a57610b2a61332b565b905060200201356110a6565b6001600160a01b031614610bb25760405162461bcd60e51b815260206004820152602b60248201527f4d757374206265206f776e6572206f662074686520746f6b656e496420746f2060448201527f636c61696d206d6564616c0000000000000000000000000000000000000000006064820152608401610826565b610bf7858583818110610bc757610bc761332b565b90506020020135848484818110610be057610be061332b565b9050602002810190610bf291906131aa565b6118b7565b610c18858583818110610c0c57610c0c61332b565b9050602002013561192f565b80610c22816132ba565b915050610b0c565b5050505050565b600080600f805480602002602001604051908101604052809291908181526020018280548015610c8057602002820191906000526020600020905b815481526020019060010190808311610c6c575b50505050509050600061010084610c979190613209565b90506000828281518110610cad57610cad61332b565b602002602001015190507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff811415610cea57506001949350505050565b6000610cf8610100876132d5565b6001901b91909116151595945050505050565b610d15338261199c565b610d875760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610826565b61083b838383611a93565b6006546001600160a01b03163314610dec5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610826565b600d80546001600160a01b0390921662010000027fffffffffffffffffffff0000000000000000000000000000000000000000ffff909216919091179055565b6006546001600160a01b03163314610e865760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610826565b60405133904780156108fc02916000818181858888f19350505050158015610eb2573d6000803e3d6000fd5b50565b60005b8181101561083b5733610ed6848484818110610b2a57610b2a61332b565b6001600160a01b031614610f525760405162461bcd60e51b815260206004820152602d60248201527f4d757374206265206f776e6572206f662074686520746f6b656e496420746f2060448201527f756e636c61696d206d6564616c000000000000000000000000000000000000006064820152608401610826565b610f73838383818110610f6757610f6761332b565b90506020020135611c6d565b80610f7d816132ba565b915050610eb8565b61083b838383604051806020016040528060008152506114fa565b6006546001600160a01b03163314610ffa5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610826565b600d805461ff001981166101009182900460ff1615909102179055565b600f818154811061102757600080fd5b600091825260209091200154905081565b6006546001600160a01b031633146110925760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610826565b600d805460ff19811660ff90911615179055565b6000818152600260205260408120546001600160a01b0316806107ca5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e00000000000000000000000000000000000000000000006064820152608401610826565b60006001600160a01b0382166111af5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f2061646472657373000000000000000000000000000000000000000000006064820152608401610826565b506001600160a01b031660009081526003602052604090205490565b6006546001600160a01b031633146112255760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610826565b61122f6000611cc6565b565b838061123b61172a565b101561129a5760405162461bcd60e51b815260206004820152602860248201527f526571756573746564206e756d626572206f6620746f6b656e73206e6f7420616044820152677661696c61626c6560c01b6064820152608401610826565b6112a73386868686611d25565b6112d17f000000000000000000000000000000000000000000000000009c51c4521e00008661321d565b3410156113205760405162461bcd60e51b815260206004820181905260248201527f4d696e7420636f737420697320302e303434204554482070657220746f6b656e6044820152606401610826565b6000805b8681101561135257611334611e5e565b91506113403383611ff6565b8061134a816132ba565b915050611324565b50505050505050565b60606001805461084f9061327f565b600061137560075490565b905090565b808061138461172a565b10156113e35760405162461bcd60e51b815260206004820152602860248201527f526571756573746564206e756d626572206f6620746f6b656e73206e6f7420616044820152677661696c61626c6560c01b6064820152608401610826565b600d54610100900460ff1661143a5760405162461bcd60e51b815260206004820152601a60248201527f5075626c6963206d696e74696e67206973206e6f74206f70656e0000000000006044820152606401610826565b6114647f00000000000000000000000000000000000000000000000000d529ae9e8600008361321d565b3410156114b35760405162461bcd60e51b815260206004820152601f60248201527f4d696e7420636f737420697320302e3036204554482070657220746f6b656e006044820152606401610826565b6000805b838110156114e5576114c7611e5e565b91506114d33383611ff6565b806114dd816132ba565b9150506114b7565b50505050565b6114f6338383612010565b5050565b611504338361199c565b6115765760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610826565b6114e5848484846120df565b848061158c61172a565b10156115eb5760405162461bcd60e51b815260206004820152602860248201527f526571756573746564206e756d626572206f6620746f6b656e73206e6f7420616044820152677661696c61626c6560c01b6064820152608401610826565b6115f933878787878761215d565b6000805b8781101561162b5761160d611e5e565b91506116193383611ff6565b80611623816132ba565b9150506115fd565b5050505050505050565b600d5460609060ff168015611650575061164e82610c31565b155b1561168757600b6116608361229e565b60405160200161167192919061310d565b6040516020818303038152906040529050919050565b600d5460ff16801561169d575061169d82610c31565b156116ad57600c6116608361229e565b600b6040516020016116719190613101565b919050565b6006546001600160a01b0316331461171e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610826565b61083b600b8383612b52565b600061173461136a565b600854611375919061323c565b6006546001600160a01b0316331461179b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610826565b6001600160a01b0381166118175760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610826565b610eb281611cc6565b60405180606001604052806040815260200161336e6040913981565b6000818152600460205260409020805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b038416908117909155819061187e826110a6565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000836040516020016118cc91815260200190565b6040516020818303038152906040528051906020012090506118ef8184846123d0565b6114e55760405162461bcd60e51b8152602060048201526011602482015270496e76616c6964207369676e617475726560781b6044820152606401610826565b600f600061193f61010084613209565b905060008282815481106119555761195561332b565b6000918252602082200154915061196e610100866132d5565b9050806001901b82178484815481106119895761198961332b565b6000918252602090912001555050505050565b6000818152600260205260408120546001600160a01b0316611a155760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610826565b6000611a20836110a6565b9050806001600160a01b0316846001600160a01b03161480611a5b5750836001600160a01b0316611a50846108d2565b6001600160a01b0316145b80611a8b57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b0316611aa6826110a6565b6001600160a01b031614611b225760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201527f6f776e65720000000000000000000000000000000000000000000000000000006064820152608401610826565b6001600160a01b038216611b9d5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610826565b611ba860008261183c565b6001600160a01b0383166000908152600360205260408120805460019290611bd190849061323c565b90915550506001600160a01b0382166000908152600360205260408120805460019290611bff9084906131f1565b9091555050600081815260026020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600f6000611c7d61010084613209565b90506000828281548110611c9357611c9361332b565b60009182526020822001549150611cac610100866132d5565b84549091506000908590859081106119895761198961332b565b600680546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6040516bffffffffffffffffffffffff19606087901b166020820152603481018590526054810184905260009060740160408051601f1981840301815291815281516020928301206000818152600e90935291205490915060ff1615611df35760405162461bcd60e51b815260206004820152602e60248201527f5472616e73616374696f6e20776974682074686973206d73674861736820616c60448201527f72656164792065786563757465640000000000000000000000000000000000006064820152608401610826565b611dfe8184846123d0565b611e3e5760405162461bcd60e51b8152602060048201526011602482015270496e76616c6964207369676e617475726560781b6044820152606401610826565b6000908152600e60205260409020805460ff191660011790555050505050565b600080611e6961172a565b11611eb65760405162461bcd60e51b815260206004820152601860248201527f4e6f206d6f726520746f6b656e7320617661696c61626c6500000000000000006044820152606401610826565b6000611ec061136a565b600854611ecd919061323c565b6040516bffffffffffffffffffffffff1933606090811b8216602084015241901b166034820152446048820152456068820152426088820152909150600090829060a8016040516020818303038152906040528051906020012060001c611f3491906132d5565b60008181526009602052604081205491925090611f52575080611f63565b506000818152600960205260409020545b60096000611f7260018661323c565b81526020019081526020016000205460001415611fa857611f9460018461323c565b600083815260096020526040902055611fd8565b60096000611fb760018661323c565b81526020808201929092526040908101600090812054858252600990935220555b611fe0612483565b50600a54611fee90826131f1565b935050505090565b6114f682826040518060200160405280600081525061249f565b816001600160a01b0316836001600160a01b031614156120725760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610826565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6120ea848484611a93565b6120f68484848461251d565b6114e55760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610826565b6040516bffffffffffffffffffffffff19606088901b16602082015260348101869052605481018590526074810184905260009060940160408051601f1981840301815291815281516020928301206000818152600e90935291205490915060ff16156122325760405162461bcd60e51b815260206004820152602e60248201527f5472616e73616374696f6e20776974682074686973206d73674861736820616c60448201527f72656164792065786563757465640000000000000000000000000000000000006064820152608401610826565b61223d8184846123d0565b61227d5760405162461bcd60e51b8152602060048201526011602482015270496e76616c6964207369676e617475726560781b6044820152606401610826565b6000908152600e60205260409020805460ff19166001179055505050505050565b6060816122de57505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b811561230857806122f2816132ba565b91506123019050600a83613209565b91506122e2565b60008167ffffffffffffffff81111561232357612323613341565b6040519080825280601f01601f19166020018201604052801561234d576020820181803683370190505b5090505b8415611a8b5761236260018361323c565b915061236f600a866132d5565b61237a9060306131f1565b60f81b81838151811061238f5761238f61332b565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506123c9600a86613209565b9450612351565b6040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c81018490526000908190605c0160408051808303601f190181528282528051602091820120600d54601f88018390048302850183019093528684529350620100009091046001600160a01b03169161247091879087908190840183828082843760009201919091525086939250506126759050565b6001600160a01b03161495945050505050565b60008061248f60075490565b90506116bf600780546001019055565b6124a98383612699565b6124b6600084848461251d565b61083b5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610826565b60006001600160a01b0384163b1561266a57604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061256190339089908890889060040161315b565b602060405180830381600087803b15801561257b57600080fd5b505af19250505080156125ab575060408051601f3d908101601f191682019092526125a891810190612f40565b60015b612650573d8080156125d9576040519150601f19603f3d011682016040523d82523d6000602084013e6125de565b606091505b5080516126485760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610826565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611a8b565b506001949350505050565b600080600061268485856127e8565b9150915061269181612858565b509392505050565b6001600160a01b0382166126ef5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610826565b6000818152600260205260409020546001600160a01b0316156127545760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610826565b6001600160a01b038216600090815260036020526040812080546001929061277d9084906131f1565b9091555050600081815260026020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60008082516041141561281f5760208301516040840151606085015160001a61281387828585612a13565b94509450505050612851565b825160401415612849576020830151604084015161283e868383612b00565b935093505050612851565b506000905060025b9250929050565b600081600481111561286c5761286c613315565b14156128755750565b600181600481111561288957612889613315565b14156128d75760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610826565b60028160048111156128eb576128eb613315565b14156129395760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610826565b600381600481111561294d5761294d613315565b14156129a65760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610826565b60048160048111156129ba576129ba613315565b1415610eb25760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610826565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115612a4a5750600090506003612af7565b8460ff16601b14158015612a6257508460ff16601c14155b15612a735750600090506004612af7565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015612ac7573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116612af057600060019250925050612af7565b9150600090505b94509492505050565b6000807f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff831681612b3660ff86901c601b6131f1565b9050612b4487828885612a13565b935093505050935093915050565b828054612b5e9061327f565b90600052602060002090601f016020900481019282612b805760008555612bc6565b82601f10612b995782800160ff19823516178555612bc6565b82800160010185558215612bc6579182015b82811115612bc6578235825591602001919060010190612bab565b50612bd2929150612bd6565b5090565b5b80821115612bd25760008155600101612bd7565b80356001600160a01b03811681146116bf57600080fd5b60008083601f840112612c1457600080fd5b50813567ffffffffffffffff811115612c2c57600080fd5b6020830191508360208260051b850101111561285157600080fd5b60008083601f840112612c5957600080fd5b50813567ffffffffffffffff811115612c7157600080fd5b60208301915083602082850101111561285157600080fd5b600060208284031215612c9b57600080fd5b612ca482612beb565b9392505050565b60008060408385031215612cbe57600080fd5b612cc783612beb565b9150612cd560208401612beb565b90509250929050565b600080600060608486031215612cf357600080fd5b612cfc84612beb565b9250612d0a60208501612beb565b9150604084013590509250925092565b60008060008060808587031215612d3057600080fd5b612d3985612beb565b9350612d4760208601612beb565b925060408501359150606085013567ffffffffffffffff80821115612d6b57600080fd5b818701915087601f830112612d7f57600080fd5b813581811115612d9157612d91613341565b604051601f8201601f19908116603f01168101908382118183101715612db957612db9613341565b816040528281528a6020848701011115612dd257600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b60008060408385031215612e0957600080fd5b612e1283612beb565b915060208301358015158114612e2757600080fd5b809150509250929050565b60008060408385031215612e4557600080fd5b612e4e83612beb565b946020939093013593505050565b60008060208385031215612e6f57600080fd5b823567ffffffffffffffff811115612e8657600080fd5b612e9285828601612c02565b90969095509350505050565b60008060008060408587031215612eb457600080fd5b843567ffffffffffffffff80821115612ecc57600080fd5b612ed888838901612c02565b90965094506020870135915080821115612ef157600080fd5b50612efe87828801612c02565b95989497509550505050565b600060208284031215612f1c57600080fd5b5035919050565b600060208284031215612f3557600080fd5b8135612ca481613357565b600060208284031215612f5257600080fd5b8151612ca481613357565b60008060208385031215612f7057600080fd5b823567ffffffffffffffff811115612f8757600080fd5b612e9285828601612c47565b60008060008060608587031215612fa957600080fd5b8435935060208501359250604085013567ffffffffffffffff811115612fce57600080fd5b612efe87828801612c47565b600080600080600060808688031215612ff257600080fd5b853594506020860135935060408601359250606086013567ffffffffffffffff81111561301e57600080fd5b61302a88828901612c47565b969995985093965092949392505050565b60008151808452613053816020860160208601613253565b601f01601f19169290920160200192915050565b8054600090600181811c908083168061308157607f831692505b60208084108214156130a357634e487b7160e01b600052602260045260246000fd5b8180156130b757600181146130c8576130f5565b60ff198616895284890196506130f5565b60008881526020902060005b868110156130ed5781548b8201529085019083016130d4565b505084890196505b50505050505092915050565b6000612ca48284613067565b60006131198285613067565b7f2f000000000000000000000000000000000000000000000000000000000000008152835161314f816001840160208801613253565b01600101949350505050565b60006001600160a01b0380871683528086166020840152508360408301526080606083015261318d608083018461303b565b9695505050505050565b602081526000612ca4602083018461303b565b6000808335601e198436030181126131c157600080fd5b83018035915067ffffffffffffffff8211156131dc57600080fd5b60200191503681900382131561285157600080fd5b60008219821115613204576132046132e9565b500190565b600082613218576132186132ff565b500490565b6000816000190483118215151615613237576132376132e9565b500290565b60008282101561324e5761324e6132e9565b500390565b60005b8381101561326e578181015183820152602001613256565b838111156114e55750506000910152565b600181811c9082168061329357607f821691505b602082108114156132b457634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156132ce576132ce6132e9565b5060010190565b6000826132e4576132e46132ff565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052602160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b031981168114610eb257600080fdfe46374132433030323933323936304641444333373737313134343141444137414242344233323435343835324246303136303237424135463831383530333643a2646970667358221220db916c9dd1c1088a0d2dba5056a1852d765b719c3d20a75e826815991a1f28eb64736f6c63430008070033

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

000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000022b80000000000000000000000000000000000000000000000000000000000000035697066733a2f2f516d615335644e67564d677262754c64656f33787158796735657352785a755446527456396632325936637634360000000000000000000000

-----Decoded View---------------
Arg [0] : initialURI (string): ipfs://QmaS5dNgVMgrbuLdeo3xqXyg5esRxZuTFRtV9f22Y6cv46
Arg [1] : _MAX_TOKENS (uint256): 8888

-----Encoded View---------------
5 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [1] : 00000000000000000000000000000000000000000000000000000000000022b8
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000035
Arg [3] : 697066733a2f2f516d615335644e67564d677262754c64656f33787158796735
Arg [4] : 657352785a755446527456396632325936637634360000000000000000000000


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.