Mumbai Testnet

Contract

0xDAa7F50C50018D7332da819be275693cA9604178

Overview

MATIC Balance

Polygon PoS Chain LogoPolygon PoS Chain LogoPolygon PoS Chain Logo0 MATIC

Multichain Info

N/A
Transaction Hash
Method
Block
From
To
Value
Mint279854252022-09-07 22:45:58568 days ago1662590758IN
0xDAa7F50C...cA9604178
0 MATIC0.00029793.19615019
0x60806040279854202022-09-07 22:45:33568 days ago1662590733IN
 Create: TwoTablesNFT
0 MATIC0.008819743.19615019

Parent Txn Hash Block From To Value
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
TwoTablesNFT

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 10 : TwoTablesNFT.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;

import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/utils/Strings.sol";

/**
 * @dev Implementation of a simple NFT, using Tableland to host metadata in a two table setup.
 */
contract TwoTablesNFT is ERC721 {
    // For demonstration purposes, some of these storage variables are set as `public`
    // This is not necessarily a best practice but makes it easy to call public getters

    /// A URI used to reference off-chain metadata.
    // This will use the Tableland gateway and query: https://testnet.tableland.network/query?mode=list&s=
    // See the `query?mode=list&s=` appended -- a SQL query `s` and mode to format to ERC721 standard
    string public baseURIString;
    /// The name of the main metadata table in Tableland
    // Schema: id int primary key, name text, description text, image text
    string public mainTable;
    /// The name of the attributes table in Tableland
    // Schema: main_id int not null, trait_type text not null, value text
    string public attributesTable;
    /// A token counter, to track NFT tokenIds
    uint256 private _tokenIdCounter;
    /// A max number of tokens
    uint256 private _maxTokens;

    /**
     * @dev Initialize TableNFT
     * baseURI - Set the contract's base URI to the Tableland gateway
     * _mainTable - The name of the 'main' table for NFT metadata
     * _attributesTable - The corresponding 'attributes' table
     */
    constructor(
        string memory baseURI,
        string memory _mainTable,
        string memory _attributesTable
    ) ERC721("TwoTablesNFT", "TTNFT") {
        // Initialize with token counter at zero
        _tokenIdCounter = 0;
        // The max number of NFTs in this tutorial
        _maxTokens = 2;
        // Set the baseURI to the Tableland gateway
        baseURIString = baseURI;
        // Set the table names
        mainTable = _mainTable;
        attributesTable = _attributesTable;
    }

    /**
     *  @dev Must override the default implementation, which returns an empty string.
     */
    function _baseURI() internal view override returns (string memory) {
        return baseURIString;
    }

    /**
     *  @dev Returns the total number of tokens in existence.
     */
    function totalSupply() public view returns (uint256) {
        return _maxTokens;
    }

    /**
     *  @dev Must override the default implementation, which simply appends a `tokenId` to _baseURI.
     *  tokenId - The id of the NFT token that is being requested
     */
    function tokenURI(uint256 tokenId)
        public
        view
        virtual
        override
        returns (string memory)
    {
        require(
            _exists(tokenId),
            "ERC721Metadata: URI query for nonexistent token"
        );
        string memory baseURI = _baseURI();

        if (bytes(baseURI).length == 0) {
            return "";
        }

        /**
         *   A SQL query to JOIN two tables to compose the metadata accross a 'main' and 'attributes' table
         *
         *   SELECT json_object(
         *       'id', id,
         *       'name', name,
         *       'description', description,
         *       'image', image,
         *       'attributes', json_group_array(
         *           json_object(
         *               'trait_type',trait_type,
         *               'value', value
         *           )
         *       )
         *   )
         *   FROM {mainTable} JOIN {attributesTable}
         *       ON {mainTable}.id = {attributesTable}.main_id
         *   WHERE id = <main_id>
         *   GROUP BY id
         */
        string memory query = string(
            abi.encodePacked(
                "SELECT%20json_object%28%27id%27%2Cid%2C%27name%27%2Cname%2C%27description%27%2Cdescription%2C%27image%27%2Cimage%2C%27attributes%27%2Cjson_group_array%28json_object%28%27trait_type%27%2Ctrait_type%2C%27value%27%2Cvalue%29%29%29%20FROM%20",
                mainTable,
                "%20JOIN%20",
                attributesTable,
                "%20ON%20",
                mainTable,
                "%2Eid%20%3D%20",
                attributesTable,
                "%2Emain_id%20WHERE%20id%3D"
            )
        );
        // Return the baseURI with a query string, which looks up the token id in a row.
        // `&mode=list` formats into the proper JSON object expected by metadata standards.
        return
            string(
                abi.encodePacked(
                    baseURI,
                    query,
                    Strings.toString(tokenId),
                    "%20group%20by%20id"
                )
            );
    }

    /**
     * @dev Mint an NFT, incrementing the `_tokenIdCounter` upon each call.
     */
    function mint() public {
        require(
            _tokenIdCounter < _maxTokens,
            "Maximum number of tokens have been minted"
        );
        _safeMint(msg.sender, _tokenIdCounter);
        _tokenIdCounter++;
    }
}

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

pragma solidity ^0.8.0;

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

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

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

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

        _transfer(from, to, tokenId);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfer(from, to, tokenId);

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

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

        emit Transfer(from, to, tokenId);

        _afterTokenTransfer(from, to, tokenId);
    }

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

File 6 of 10 : 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 7 of 10 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Address.sol)

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

pragma solidity ^0.8.0;

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

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

Contract ABI

[{"inputs":[{"internalType":"string","name":"baseURI","type":"string"},{"internalType":"string","name":"_mainTable","type":"string"},{"internalType":"string","name":"_attributesTable","type":"string"}],"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":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"attributesTable","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURIString","outputs":[{"internalType":"string","name":"","type":"string"}],"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":[],"name":"mainTable","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"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":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b50604051620032073803806200320783398181016040528101906200003791906200025d565b6040518060400160405280600c81526020017f54776f5461626c65734e465400000000000000000000000000000000000000008152506040518060400160405280600581526020017f54544e46540000000000000000000000000000000000000000000000000000008152508160009080519060200190620000bb9291906200013b565b508060019080519060200190620000d49291906200013b565b50505060006009819055506002600a819055508260069080519060200190620000ff9291906200013b565b508160079080519060200190620001189291906200013b565b508060089080519060200190620001319291906200013b565b505050506200046e565b828054620001499062000393565b90600052602060002090601f0160209004810192826200016d5760008555620001b9565b82601f106200018857805160ff1916838001178555620001b9565b82800160010185558215620001b9579182015b82811115620001b85782518255916020019190600101906200019b565b5b509050620001c89190620001cc565b5090565b5b80821115620001e7576000816000905550600101620001cd565b5090565b600062000202620001fc8462000327565b620002fe565b9050828152602081018484840111156200021b57600080fd5b620002288482856200035d565b509392505050565b600082601f8301126200024257600080fd5b815162000254848260208601620001eb565b91505092915050565b6000806000606084860312156200027357600080fd5b600084015167ffffffffffffffff8111156200028e57600080fd5b6200029c8682870162000230565b935050602084015167ffffffffffffffff811115620002ba57600080fd5b620002c88682870162000230565b925050604084015167ffffffffffffffff811115620002e657600080fd5b620002f48682870162000230565b9150509250925092565b60006200030a6200031d565b9050620003188282620003c9565b919050565b6000604051905090565b600067ffffffffffffffff8211156200034557620003446200042e565b5b62000350826200045d565b9050602081019050919050565b60005b838110156200037d57808201518184015260208101905062000360565b838111156200038d576000848401525b50505050565b60006002820490506001821680620003ac57607f821691505b60208210811415620003c357620003c2620003ff565b5b50919050565b620003d4826200045d565b810181811067ffffffffffffffff82111715620003f657620003f56200042e565b5b80604052505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b612d89806200047e6000396000f3fe608060405234801561001057600080fd5b50600436106101165760003560e01c80636352211e116100a2578063a22cb46511610071578063a22cb465146102cf578063b88d4fde146102eb578063c87b56dd14610307578063cf76a15314610337578063e985e9c51461035557610116565b80636352211e1461023357806370a08231146102635780637bc53be91461029357806395d89b41146102b157610116565b80631249c58b116100e95780631249c58b146101b557806318160ddd146101bf57806323b872dd146101dd57806342842e0e146101f95780635d21260a1461021557610116565b806301ffc9a71461011b57806306fdde031461014b578063081812fc14610169578063095ea7b314610199575b600080fd5b61013560048036038101906101309190611c50565b610385565b60405161014291906121cb565b60405180910390f35b610153610467565b60405161016091906121e6565b60405180910390f35b610183600480360381019061017e9190611ca2565b6104f9565b6040516101909190612164565b60405180910390f35b6101b360048036038101906101ae9190611c14565b61053f565b005b6101bd610657565b005b6101c76106c3565b6040516101d491906123a8565b60405180910390f35b6101f760048036038101906101f29190611b0e565b6106cd565b005b610213600480360381019061020e9190611b0e565b61072d565b005b61021d61074d565b60405161022a91906121e6565b60405180910390f35b61024d60048036038101906102489190611ca2565b6107db565b60405161025a9190612164565b60405180910390f35b61027d60048036038101906102789190611aa9565b61088d565b60405161028a91906123a8565b60405180910390f35b61029b610945565b6040516102a891906121e6565b60405180910390f35b6102b96109d3565b6040516102c691906121e6565b60405180910390f35b6102e960048036038101906102e49190611bd8565b610a65565b005b61030560048036038101906103009190611b5d565b610a7b565b005b610321600480360381019061031c9190611ca2565b610add565b60405161032e91906121e6565b60405180910390f35b61033f610bb9565b60405161034c91906121e6565b60405180910390f35b61036f600480360381019061036a9190611ad2565b610c47565b60405161037c91906121cb565b60405180910390f35b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061045057507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610460575061045f82610cdb565b5b9050919050565b606060008054610476906125e2565b80601f01602080910402602001604051908101604052809291908181526020018280546104a2906125e2565b80156104ef5780601f106104c4576101008083540402835291602001916104ef565b820191906000526020600020905b8154815290600101906020018083116104d257829003601f168201915b5050505050905090565b600061050482610d45565b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b600061054a826107db565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156105bb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105b290612368565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff166105da610d90565b73ffffffffffffffffffffffffffffffffffffffff161480610609575061060881610603610d90565b610c47565b5b610648576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161063f906122e8565b60405180910390fd5b6106528383610d98565b505050565b600a546009541061069d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161069490612268565b60405180910390fd5b6106a933600954610e51565b600960008154809291906106bc90612645565b9190505550565b6000600a54905090565b6106de6106d8610d90565b82610e6f565b61071d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161071490612388565b60405180910390fd5b610728838383610f04565b505050565b61074883838360405180602001604052806000815250610a7b565b505050565b6007805461075a906125e2565b80601f0160208091040260200160405190810160405280929190818152602001828054610786906125e2565b80156107d35780601f106107a8576101008083540402835291602001916107d3565b820191906000526020600020905b8154815290600101906020018083116107b657829003601f168201915b505050505081565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610884576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161087b90612348565b60405180910390fd5b80915050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156108fe576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f5906122c8565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b60088054610952906125e2565b80601f016020809104026020016040519081016040528092919081815260200182805461097e906125e2565b80156109cb5780601f106109a0576101008083540402835291602001916109cb565b820191906000526020600020905b8154815290600101906020018083116109ae57829003601f168201915b505050505081565b6060600180546109e2906125e2565b80601f0160208091040260200160405190810160405280929190818152602001828054610a0e906125e2565b8015610a5b5780601f10610a3057610100808354040283529160200191610a5b565b820191906000526020600020905b815481529060010190602001808311610a3e57829003601f168201915b5050505050905090565b610a77610a70610d90565b838361116b565b5050565b610a8c610a86610d90565b83610e6f565b610acb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ac290612388565b60405180910390fd5b610ad7848484846112d8565b50505050565b6060610ae882611334565b610b27576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b1e90612328565b60405180910390fd5b6000610b316113a0565b9050600081511415610b555760405180602001604052806000815250915050610bb4565b60006007600860076008604051602001610b7294939291906120ef565b60405160208183030381529060405290508181610b8e86611432565b604051602001610ba0939291906120b3565b604051602081830303815290604052925050505b919050565b60068054610bc6906125e2565b80601f0160208091040260200160405190810160405280929190818152602001828054610bf2906125e2565b8015610c3f5780601f10610c1457610100808354040283529160200191610c3f565b820191906000526020600020905b815481529060010190602001808311610c2257829003601f168201915b505050505081565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b610d4e81611334565b610d8d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d8490612348565b60405180910390fd5b50565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16610e0b836107db565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b610e6b8282604051806020016040528060008152506115df565b5050565b600080610e7b836107db565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480610ebd5750610ebc8185610c47565b5b80610efb57508373ffffffffffffffffffffffffffffffffffffffff16610ee3846104f9565b73ffffffffffffffffffffffffffffffffffffffff16145b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff16610f24826107db565b73ffffffffffffffffffffffffffffffffffffffff1614610f7a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f7190612228565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415610fea576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fe190612288565b60405180910390fd5b610ff583838361163a565b611000600082610d98565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461105091906124f8565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546110a79190612471565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461116683838361163f565b505050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156111da576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111d1906122a8565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516112cb91906121cb565b60405180910390a3505050565b6112e3848484610f04565b6112ef84848484611644565b61132e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161132590612208565b60405180910390fd5b50505050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b6060600680546113af906125e2565b80601f01602080910402602001604051908101604052809291908181526020018280546113db906125e2565b80156114285780601f106113fd57610100808354040283529160200191611428565b820191906000526020600020905b81548152906001019060200180831161140b57829003601f168201915b5050505050905090565b6060600082141561147a576040518060400160405280600181526020017f300000000000000000000000000000000000000000000000000000000000000081525090506115da565b600082905060005b600082146114ac57808061149590612645565b915050600a826114a591906124c7565b9150611482565b60008167ffffffffffffffff8111156114ee577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156115205781602001600182028036833780820191505090505b5090505b600085146115d35760018261153991906124f8565b9150600a85611548919061268e565b60306115549190612471565b60f81b818381518110611590577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a856115cc91906124c7565b9450611524565b8093505050505b919050565b6115e983836117db565b6115f66000848484611644565b611635576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161162c90612208565b60405180910390fd5b505050565b505050565b505050565b60006116658473ffffffffffffffffffffffffffffffffffffffff166119b5565b156117ce578373ffffffffffffffffffffffffffffffffffffffff1663150b7a0261168e610d90565b8786866040518563ffffffff1660e01b81526004016116b0949392919061217f565b602060405180830381600087803b1580156116ca57600080fd5b505af19250505080156116fb57506040513d601f19601f820116820180604052508101906116f89190611c79565b60015b61177e573d806000811461172b576040519150601f19603f3d011682016040523d82523d6000602084013e611730565b606091505b50600081511415611776576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161176d90612208565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149150506117d3565b600190505b949350505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561184b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161184290612308565b60405180910390fd5b61185481611334565b15611894576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161188b90612248565b60405180910390fd5b6118a06000838361163a565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546118f09190612471565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46119b16000838361163f565b5050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b60006119eb6119e6846123e8565b6123c3565b905082815260208101848484011115611a0357600080fd5b611a0e8482856125a0565b509392505050565b600081359050611a2581612cf7565b92915050565b600081359050611a3a81612d0e565b92915050565b600081359050611a4f81612d25565b92915050565b600081519050611a6481612d25565b92915050565b600082601f830112611a7b57600080fd5b8135611a8b8482602086016119d8565b91505092915050565b600081359050611aa381612d3c565b92915050565b600060208284031215611abb57600080fd5b6000611ac984828501611a16565b91505092915050565b60008060408385031215611ae557600080fd5b6000611af385828601611a16565b9250506020611b0485828601611a16565b9150509250929050565b600080600060608486031215611b2357600080fd5b6000611b3186828701611a16565b9350506020611b4286828701611a16565b9250506040611b5386828701611a94565b9150509250925092565b60008060008060808587031215611b7357600080fd5b6000611b8187828801611a16565b9450506020611b9287828801611a16565b9350506040611ba387828801611a94565b925050606085013567ffffffffffffffff811115611bc057600080fd5b611bcc87828801611a6a565b91505092959194509250565b60008060408385031215611beb57600080fd5b6000611bf985828601611a16565b9250506020611c0a85828601611a2b565b9150509250929050565b60008060408385031215611c2757600080fd5b6000611c3585828601611a16565b9250506020611c4685828601611a94565b9150509250929050565b600060208284031215611c6257600080fd5b6000611c7084828501611a40565b91505092915050565b600060208284031215611c8b57600080fd5b6000611c9984828501611a55565b91505092915050565b600060208284031215611cb457600080fd5b6000611cc284828501611a94565b91505092915050565b611cd48161252c565b82525050565b611ce38161253e565b82525050565b6000611cf48261242e565b611cfe8185612444565b9350611d0e8185602086016125af565b611d178161277b565b840191505092915050565b6000611d2d82612439565b611d378185612455565b9350611d478185602086016125af565b611d508161277b565b840191505092915050565b6000611d6682612439565b611d708185612466565b9350611d808185602086016125af565b80840191505092915050565b60008154611d99816125e2565b611da38186612466565b94506001821660008114611dbe5760018114611dcf57611e02565b60ff19831686528186019350611e02565b611dd885612419565b60005b83811015611dfa57815481890152600182019150602081019050611ddb565b838801955050505b50505092915050565b6000611e18603283612455565b9150611e238261278c565b604082019050919050565b6000611e3b602583612455565b9150611e46826127db565b604082019050919050565b6000611e5e601c83612455565b9150611e698261282a565b602082019050919050565b6000611e81602983612455565b9150611e8c82612853565b604082019050919050565b6000611ea4602483612455565b9150611eaf826128a2565b604082019050919050565b6000611ec7601983612455565b9150611ed2826128f1565b602082019050919050565b6000611eea601a83612466565b9150611ef58261291a565b601a82019050919050565b6000611f0d600a83612466565b9150611f1882612943565b600a82019050919050565b6000611f30600e83612466565b9150611f3b8261296c565b600e82019050919050565b6000611f53600883612466565b9150611f5e82612995565b600882019050919050565b6000611f76602983612455565b9150611f81826129be565b604082019050919050565b6000611f99603e83612455565b9150611fa482612a0d565b604082019050919050565b6000611fbc602083612455565b9150611fc782612a5c565b602082019050919050565b6000611fdf60ed83612466565b9150611fea82612a85565b60ed82019050919050565b6000612002602f83612455565b915061200d82612bb8565b604082019050919050565b6000612025601883612455565b915061203082612c07565b602082019050919050565b6000612048602183612455565b915061205382612c30565b604082019050919050565b600061206b601283612466565b915061207682612c7f565b601282019050919050565b600061208e602e83612455565b915061209982612ca8565b604082019050919050565b6120ad81612596565b82525050565b60006120bf8286611d5b565b91506120cb8285611d5b565b91506120d78284611d5b565b91506120e28261205e565b9150819050949350505050565b60006120fa82611fd2565b91506121068287611d8c565b915061211182611f00565b915061211d8286611d8c565b915061212882611f46565b91506121348285611d8c565b915061213f82611f23565b915061214b8284611d8c565b915061215682611edd565b915081905095945050505050565b60006020820190506121796000830184611ccb565b92915050565b60006080820190506121946000830187611ccb565b6121a16020830186611ccb565b6121ae60408301856120a4565b81810360608301526121c08184611ce9565b905095945050505050565b60006020820190506121e06000830184611cda565b92915050565b600060208201905081810360008301526122008184611d22565b905092915050565b6000602082019050818103600083015261222181611e0b565b9050919050565b6000602082019050818103600083015261224181611e2e565b9050919050565b6000602082019050818103600083015261226181611e51565b9050919050565b6000602082019050818103600083015261228181611e74565b9050919050565b600060208201905081810360008301526122a181611e97565b9050919050565b600060208201905081810360008301526122c181611eba565b9050919050565b600060208201905081810360008301526122e181611f69565b9050919050565b6000602082019050818103600083015261230181611f8c565b9050919050565b6000602082019050818103600083015261232181611faf565b9050919050565b6000602082019050818103600083015261234181611ff5565b9050919050565b6000602082019050818103600083015261236181612018565b9050919050565b600060208201905081810360008301526123818161203b565b9050919050565b600060208201905081810360008301526123a181612081565b9050919050565b60006020820190506123bd60008301846120a4565b92915050565b60006123cd6123de565b90506123d98282612614565b919050565b6000604051905090565b600067ffffffffffffffff8211156124035761240261274c565b5b61240c8261277b565b9050602081019050919050565b60008190508160005260206000209050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b600061247c82612596565b915061248783612596565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156124bc576124bb6126bf565b5b828201905092915050565b60006124d282612596565b91506124dd83612596565b9250826124ed576124ec6126ee565b5b828204905092915050565b600061250382612596565b915061250e83612596565b925082821015612521576125206126bf565b5b828203905092915050565b600061253782612576565b9050919050565b60008115159050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b82818337600083830152505050565b60005b838110156125cd5780820151818401526020810190506125b2565b838111156125dc576000848401525b50505050565b600060028204905060018216806125fa57607f821691505b6020821081141561260e5761260d61271d565b5b50919050565b61261d8261277b565b810181811067ffffffffffffffff8211171561263c5761263b61274c565b5b80604052505050565b600061265082612596565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415612683576126826126bf565b5b600182019050919050565b600061269982612596565b91506126a483612596565b9250826126b4576126b36126ee565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b7f4d6178696d756d206e756d626572206f6620746f6b656e73206861766520626560008201527f656e206d696e7465640000000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b7f2532456d61696e5f696425323057484552452532306964253344000000000000600082015250565b7f2532304a4f494e25323000000000000000000000000000000000000000000000600082015250565b7f2532456964253230253344253230000000000000000000000000000000000000600082015250565b7f2532304f4e253230000000000000000000000000000000000000000000000000600082015250565b7f4552433732313a2061646472657373207a65726f206973206e6f74206120766160008201527f6c6964206f776e65720000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60008201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c0000602082015250565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b7f53454c4543542532306a736f6e5f6f626a65637425323825323769642532372560008201527f324369642532432532376e616d652532372532436e616d65253243253237646560208201527f736372697074696f6e2532372532436465736372697074696f6e25324325323760408201527f696d616765253237253243696d6167652532432532376174747269627574657360608201527f2532372532436a736f6e5f67726f75705f61727261792532386a736f6e5f6f6260808201527f6a65637425323825323774726169745f7479706525323725324374726169745f60a08201527f7479706525324325323776616c756525323725324376616c756525323925323960c08201527f25323925323046524f4d2532300000000000000000000000000000000000000060e082015250565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b7f4552433732313a20696e76616c696420746f6b656e2049440000000000000000600082015250565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b7f25323067726f7570253230627925323069640000000000000000000000000000600082015250565b7f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560008201527f72206e6f7220617070726f766564000000000000000000000000000000000000602082015250565b612d008161252c565b8114612d0b57600080fd5b50565b612d178161253e565b8114612d2257600080fd5b50565b612d2e8161254a565b8114612d3957600080fd5b50565b612d4581612596565b8114612d5057600080fd5b5056fea26469706673582212209d221ddb434fef60289e7ec3724815cb6c0d54612c161e266f732a38152014b564736f6c63430008040033000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000003468747470733a2f2f746573746e65742e7461626c656c616e642e6e6574776f726b2f71756572793f6d6f64653d6c69737426733d00000000000000000000000000000000000000000000000000000000000000000000000000000000000000197461626c655f6e66745f6d61696e5f38303030315f3135313000000000000000000000000000000000000000000000000000000000000000000000000000001f7461626c655f6e66745f617474726962757465735f38303030315f3135313100

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101165760003560e01c80636352211e116100a2578063a22cb46511610071578063a22cb465146102cf578063b88d4fde146102eb578063c87b56dd14610307578063cf76a15314610337578063e985e9c51461035557610116565b80636352211e1461023357806370a08231146102635780637bc53be91461029357806395d89b41146102b157610116565b80631249c58b116100e95780631249c58b146101b557806318160ddd146101bf57806323b872dd146101dd57806342842e0e146101f95780635d21260a1461021557610116565b806301ffc9a71461011b57806306fdde031461014b578063081812fc14610169578063095ea7b314610199575b600080fd5b61013560048036038101906101309190611c50565b610385565b60405161014291906121cb565b60405180910390f35b610153610467565b60405161016091906121e6565b60405180910390f35b610183600480360381019061017e9190611ca2565b6104f9565b6040516101909190612164565b60405180910390f35b6101b360048036038101906101ae9190611c14565b61053f565b005b6101bd610657565b005b6101c76106c3565b6040516101d491906123a8565b60405180910390f35b6101f760048036038101906101f29190611b0e565b6106cd565b005b610213600480360381019061020e9190611b0e565b61072d565b005b61021d61074d565b60405161022a91906121e6565b60405180910390f35b61024d60048036038101906102489190611ca2565b6107db565b60405161025a9190612164565b60405180910390f35b61027d60048036038101906102789190611aa9565b61088d565b60405161028a91906123a8565b60405180910390f35b61029b610945565b6040516102a891906121e6565b60405180910390f35b6102b96109d3565b6040516102c691906121e6565b60405180910390f35b6102e960048036038101906102e49190611bd8565b610a65565b005b61030560048036038101906103009190611b5d565b610a7b565b005b610321600480360381019061031c9190611ca2565b610add565b60405161032e91906121e6565b60405180910390f35b61033f610bb9565b60405161034c91906121e6565b60405180910390f35b61036f600480360381019061036a9190611ad2565b610c47565b60405161037c91906121cb565b60405180910390f35b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061045057507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610460575061045f82610cdb565b5b9050919050565b606060008054610476906125e2565b80601f01602080910402602001604051908101604052809291908181526020018280546104a2906125e2565b80156104ef5780601f106104c4576101008083540402835291602001916104ef565b820191906000526020600020905b8154815290600101906020018083116104d257829003601f168201915b5050505050905090565b600061050482610d45565b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b600061054a826107db565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156105bb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105b290612368565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff166105da610d90565b73ffffffffffffffffffffffffffffffffffffffff161480610609575061060881610603610d90565b610c47565b5b610648576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161063f906122e8565b60405180910390fd5b6106528383610d98565b505050565b600a546009541061069d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161069490612268565b60405180910390fd5b6106a933600954610e51565b600960008154809291906106bc90612645565b9190505550565b6000600a54905090565b6106de6106d8610d90565b82610e6f565b61071d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161071490612388565b60405180910390fd5b610728838383610f04565b505050565b61074883838360405180602001604052806000815250610a7b565b505050565b6007805461075a906125e2565b80601f0160208091040260200160405190810160405280929190818152602001828054610786906125e2565b80156107d35780601f106107a8576101008083540402835291602001916107d3565b820191906000526020600020905b8154815290600101906020018083116107b657829003601f168201915b505050505081565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610884576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161087b90612348565b60405180910390fd5b80915050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156108fe576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f5906122c8565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b60088054610952906125e2565b80601f016020809104026020016040519081016040528092919081815260200182805461097e906125e2565b80156109cb5780601f106109a0576101008083540402835291602001916109cb565b820191906000526020600020905b8154815290600101906020018083116109ae57829003601f168201915b505050505081565b6060600180546109e2906125e2565b80601f0160208091040260200160405190810160405280929190818152602001828054610a0e906125e2565b8015610a5b5780601f10610a3057610100808354040283529160200191610a5b565b820191906000526020600020905b815481529060010190602001808311610a3e57829003601f168201915b5050505050905090565b610a77610a70610d90565b838361116b565b5050565b610a8c610a86610d90565b83610e6f565b610acb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ac290612388565b60405180910390fd5b610ad7848484846112d8565b50505050565b6060610ae882611334565b610b27576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b1e90612328565b60405180910390fd5b6000610b316113a0565b9050600081511415610b555760405180602001604052806000815250915050610bb4565b60006007600860076008604051602001610b7294939291906120ef565b60405160208183030381529060405290508181610b8e86611432565b604051602001610ba0939291906120b3565b604051602081830303815290604052925050505b919050565b60068054610bc6906125e2565b80601f0160208091040260200160405190810160405280929190818152602001828054610bf2906125e2565b8015610c3f5780601f10610c1457610100808354040283529160200191610c3f565b820191906000526020600020905b815481529060010190602001808311610c2257829003601f168201915b505050505081565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b610d4e81611334565b610d8d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d8490612348565b60405180910390fd5b50565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16610e0b836107db565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b610e6b8282604051806020016040528060008152506115df565b5050565b600080610e7b836107db565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480610ebd5750610ebc8185610c47565b5b80610efb57508373ffffffffffffffffffffffffffffffffffffffff16610ee3846104f9565b73ffffffffffffffffffffffffffffffffffffffff16145b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff16610f24826107db565b73ffffffffffffffffffffffffffffffffffffffff1614610f7a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f7190612228565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415610fea576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fe190612288565b60405180910390fd5b610ff583838361163a565b611000600082610d98565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461105091906124f8565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546110a79190612471565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461116683838361163f565b505050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156111da576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111d1906122a8565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516112cb91906121cb565b60405180910390a3505050565b6112e3848484610f04565b6112ef84848484611644565b61132e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161132590612208565b60405180910390fd5b50505050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b6060600680546113af906125e2565b80601f01602080910402602001604051908101604052809291908181526020018280546113db906125e2565b80156114285780601f106113fd57610100808354040283529160200191611428565b820191906000526020600020905b81548152906001019060200180831161140b57829003601f168201915b5050505050905090565b6060600082141561147a576040518060400160405280600181526020017f300000000000000000000000000000000000000000000000000000000000000081525090506115da565b600082905060005b600082146114ac57808061149590612645565b915050600a826114a591906124c7565b9150611482565b60008167ffffffffffffffff8111156114ee577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156115205781602001600182028036833780820191505090505b5090505b600085146115d35760018261153991906124f8565b9150600a85611548919061268e565b60306115549190612471565b60f81b818381518110611590577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a856115cc91906124c7565b9450611524565b8093505050505b919050565b6115e983836117db565b6115f66000848484611644565b611635576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161162c90612208565b60405180910390fd5b505050565b505050565b505050565b60006116658473ffffffffffffffffffffffffffffffffffffffff166119b5565b156117ce578373ffffffffffffffffffffffffffffffffffffffff1663150b7a0261168e610d90565b8786866040518563ffffffff1660e01b81526004016116b0949392919061217f565b602060405180830381600087803b1580156116ca57600080fd5b505af19250505080156116fb57506040513d601f19601f820116820180604052508101906116f89190611c79565b60015b61177e573d806000811461172b576040519150601f19603f3d011682016040523d82523d6000602084013e611730565b606091505b50600081511415611776576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161176d90612208565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149150506117d3565b600190505b949350505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561184b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161184290612308565b60405180910390fd5b61185481611334565b15611894576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161188b90612248565b60405180910390fd5b6118a06000838361163a565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546118f09190612471565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46119b16000838361163f565b5050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b60006119eb6119e6846123e8565b6123c3565b905082815260208101848484011115611a0357600080fd5b611a0e8482856125a0565b509392505050565b600081359050611a2581612cf7565b92915050565b600081359050611a3a81612d0e565b92915050565b600081359050611a4f81612d25565b92915050565b600081519050611a6481612d25565b92915050565b600082601f830112611a7b57600080fd5b8135611a8b8482602086016119d8565b91505092915050565b600081359050611aa381612d3c565b92915050565b600060208284031215611abb57600080fd5b6000611ac984828501611a16565b91505092915050565b60008060408385031215611ae557600080fd5b6000611af385828601611a16565b9250506020611b0485828601611a16565b9150509250929050565b600080600060608486031215611b2357600080fd5b6000611b3186828701611a16565b9350506020611b4286828701611a16565b9250506040611b5386828701611a94565b9150509250925092565b60008060008060808587031215611b7357600080fd5b6000611b8187828801611a16565b9450506020611b9287828801611a16565b9350506040611ba387828801611a94565b925050606085013567ffffffffffffffff811115611bc057600080fd5b611bcc87828801611a6a565b91505092959194509250565b60008060408385031215611beb57600080fd5b6000611bf985828601611a16565b9250506020611c0a85828601611a2b565b9150509250929050565b60008060408385031215611c2757600080fd5b6000611c3585828601611a16565b9250506020611c4685828601611a94565b9150509250929050565b600060208284031215611c6257600080fd5b6000611c7084828501611a40565b91505092915050565b600060208284031215611c8b57600080fd5b6000611c9984828501611a55565b91505092915050565b600060208284031215611cb457600080fd5b6000611cc284828501611a94565b91505092915050565b611cd48161252c565b82525050565b611ce38161253e565b82525050565b6000611cf48261242e565b611cfe8185612444565b9350611d0e8185602086016125af565b611d178161277b565b840191505092915050565b6000611d2d82612439565b611d378185612455565b9350611d478185602086016125af565b611d508161277b565b840191505092915050565b6000611d6682612439565b611d708185612466565b9350611d808185602086016125af565b80840191505092915050565b60008154611d99816125e2565b611da38186612466565b94506001821660008114611dbe5760018114611dcf57611e02565b60ff19831686528186019350611e02565b611dd885612419565b60005b83811015611dfa57815481890152600182019150602081019050611ddb565b838801955050505b50505092915050565b6000611e18603283612455565b9150611e238261278c565b604082019050919050565b6000611e3b602583612455565b9150611e46826127db565b604082019050919050565b6000611e5e601c83612455565b9150611e698261282a565b602082019050919050565b6000611e81602983612455565b9150611e8c82612853565b604082019050919050565b6000611ea4602483612455565b9150611eaf826128a2565b604082019050919050565b6000611ec7601983612455565b9150611ed2826128f1565b602082019050919050565b6000611eea601a83612466565b9150611ef58261291a565b601a82019050919050565b6000611f0d600a83612466565b9150611f1882612943565b600a82019050919050565b6000611f30600e83612466565b9150611f3b8261296c565b600e82019050919050565b6000611f53600883612466565b9150611f5e82612995565b600882019050919050565b6000611f76602983612455565b9150611f81826129be565b604082019050919050565b6000611f99603e83612455565b9150611fa482612a0d565b604082019050919050565b6000611fbc602083612455565b9150611fc782612a5c565b602082019050919050565b6000611fdf60ed83612466565b9150611fea82612a85565b60ed82019050919050565b6000612002602f83612455565b915061200d82612bb8565b604082019050919050565b6000612025601883612455565b915061203082612c07565b602082019050919050565b6000612048602183612455565b915061205382612c30565b604082019050919050565b600061206b601283612466565b915061207682612c7f565b601282019050919050565b600061208e602e83612455565b915061209982612ca8565b604082019050919050565b6120ad81612596565b82525050565b60006120bf8286611d5b565b91506120cb8285611d5b565b91506120d78284611d5b565b91506120e28261205e565b9150819050949350505050565b60006120fa82611fd2565b91506121068287611d8c565b915061211182611f00565b915061211d8286611d8c565b915061212882611f46565b91506121348285611d8c565b915061213f82611f23565b915061214b8284611d8c565b915061215682611edd565b915081905095945050505050565b60006020820190506121796000830184611ccb565b92915050565b60006080820190506121946000830187611ccb565b6121a16020830186611ccb565b6121ae60408301856120a4565b81810360608301526121c08184611ce9565b905095945050505050565b60006020820190506121e06000830184611cda565b92915050565b600060208201905081810360008301526122008184611d22565b905092915050565b6000602082019050818103600083015261222181611e0b565b9050919050565b6000602082019050818103600083015261224181611e2e565b9050919050565b6000602082019050818103600083015261226181611e51565b9050919050565b6000602082019050818103600083015261228181611e74565b9050919050565b600060208201905081810360008301526122a181611e97565b9050919050565b600060208201905081810360008301526122c181611eba565b9050919050565b600060208201905081810360008301526122e181611f69565b9050919050565b6000602082019050818103600083015261230181611f8c565b9050919050565b6000602082019050818103600083015261232181611faf565b9050919050565b6000602082019050818103600083015261234181611ff5565b9050919050565b6000602082019050818103600083015261236181612018565b9050919050565b600060208201905081810360008301526123818161203b565b9050919050565b600060208201905081810360008301526123a181612081565b9050919050565b60006020820190506123bd60008301846120a4565b92915050565b60006123cd6123de565b90506123d98282612614565b919050565b6000604051905090565b600067ffffffffffffffff8211156124035761240261274c565b5b61240c8261277b565b9050602081019050919050565b60008190508160005260206000209050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b600061247c82612596565b915061248783612596565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156124bc576124bb6126bf565b5b828201905092915050565b60006124d282612596565b91506124dd83612596565b9250826124ed576124ec6126ee565b5b828204905092915050565b600061250382612596565b915061250e83612596565b925082821015612521576125206126bf565b5b828203905092915050565b600061253782612576565b9050919050565b60008115159050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b82818337600083830152505050565b60005b838110156125cd5780820151818401526020810190506125b2565b838111156125dc576000848401525b50505050565b600060028204905060018216806125fa57607f821691505b6020821081141561260e5761260d61271d565b5b50919050565b61261d8261277b565b810181811067ffffffffffffffff8211171561263c5761263b61274c565b5b80604052505050565b600061265082612596565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415612683576126826126bf565b5b600182019050919050565b600061269982612596565b91506126a483612596565b9250826126b4576126b36126ee565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b7f4d6178696d756d206e756d626572206f6620746f6b656e73206861766520626560008201527f656e206d696e7465640000000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b7f2532456d61696e5f696425323057484552452532306964253344000000000000600082015250565b7f2532304a4f494e25323000000000000000000000000000000000000000000000600082015250565b7f2532456964253230253344253230000000000000000000000000000000000000600082015250565b7f2532304f4e253230000000000000000000000000000000000000000000000000600082015250565b7f4552433732313a2061646472657373207a65726f206973206e6f74206120766160008201527f6c6964206f776e65720000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60008201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c0000602082015250565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b7f53454c4543542532306a736f6e5f6f626a65637425323825323769642532372560008201527f324369642532432532376e616d652532372532436e616d65253243253237646560208201527f736372697074696f6e2532372532436465736372697074696f6e25324325323760408201527f696d616765253237253243696d6167652532432532376174747269627574657360608201527f2532372532436a736f6e5f67726f75705f61727261792532386a736f6e5f6f6260808201527f6a65637425323825323774726169745f7479706525323725324374726169745f60a08201527f7479706525324325323776616c756525323725324376616c756525323925323960c08201527f25323925323046524f4d2532300000000000000000000000000000000000000060e082015250565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b7f4552433732313a20696e76616c696420746f6b656e2049440000000000000000600082015250565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b7f25323067726f7570253230627925323069640000000000000000000000000000600082015250565b7f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560008201527f72206e6f7220617070726f766564000000000000000000000000000000000000602082015250565b612d008161252c565b8114612d0b57600080fd5b50565b612d178161253e565b8114612d2257600080fd5b50565b612d2e8161254a565b8114612d3957600080fd5b50565b612d4581612596565b8114612d5057600080fd5b5056fea26469706673582212209d221ddb434fef60289e7ec3724815cb6c0d54612c161e266f732a38152014b564736f6c63430008040033

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

000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000003468747470733a2f2f746573746e65742e7461626c656c616e642e6e6574776f726b2f71756572793f6d6f64653d6c69737426733d00000000000000000000000000000000000000000000000000000000000000000000000000000000000000197461626c655f6e66745f6d61696e5f38303030315f3135313000000000000000000000000000000000000000000000000000000000000000000000000000001f7461626c655f6e66745f617474726962757465735f38303030315f3135313100

-----Decoded View---------------
Arg [0] : baseURI (string): https://testnet.tableland.network/query?mode=list&s=
Arg [1] : _mainTable (string): table_nft_main_80001_1510
Arg [2] : _attributesTable (string): table_nft_attributes_80001_1511

-----Encoded View---------------
10 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000100
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000034
Arg [4] : 68747470733a2f2f746573746e65742e7461626c656c616e642e6e6574776f72
Arg [5] : 6b2f71756572793f6d6f64653d6c69737426733d000000000000000000000000
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000019
Arg [7] : 7461626c655f6e66745f6d61696e5f38303030315f3135313000000000000000
Arg [8] : 000000000000000000000000000000000000000000000000000000000000001f
Arg [9] : 7461626c655f6e66745f617474726962757465735f38303030315f3135313100


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Txn Hash Block Value Eth2 PubKey Valid
View All Deposits
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.