ETH Price: $3,465.40 (+4.45%)

Token

A Crypto Twitter Story (STORY)
 

Overview

Max Total Supply

93 STORY

Holders

57

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
1 STORY
0xc887fadc6baaa8cd234d9104a65b37265522b024
Loading...
Loading
Loading...
Loading
Loading...
Loading

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

Contract Source Code Verified (Exact Match)

Contract Name:
Story

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
No with 200 runs

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

abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
}
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);
}
interface IERC721 is IERC165 {
    /**
     * @dev Emitted when `tokenId` token is transferred from `from` to `to`.
     */
    event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);

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

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

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

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

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

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

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

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

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

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

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

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



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);
}


abstract contract ERC165 is IERC165 {
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IERC165).interfaceId;
    }
}
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
    using Address for address;
    using Strings for uint256;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

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

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

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

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

        _transfer(from, to, tokenId);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfer(from, to, tokenId);

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

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

        emit Transfer(from, to, tokenId);
    }

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

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

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


interface IERC721Enumerable is IERC721 {
    /**
     * @dev Returns the total amount of tokens stored by the contract.
     */
    function totalSupply() external view returns (uint256);

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

    /**
     * @dev Returns a token ID at a given `index` of all the tokens stored by the contract.
     * Use along with {totalSupply} to enumerate all tokens.
     */
    function tokenByIndex(uint256 index) external view returns (uint256);
}
abstract contract ERC721Enumerable is ERC721, IERC721Enumerable {
    // Mapping from owner to list of owned token IDs
    mapping(address => mapping(uint256 => uint256)) private _ownedTokens;

    // Mapping from token ID to index of the owner tokens list
    mapping(uint256 => uint256) private _ownedTokensIndex;

    // Array with all token ids, used for enumeration
    uint256[] private _allTokens;

    // Mapping from token id to position in the allTokens array
    mapping(uint256 => uint256) private _allTokensIndex;

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

    /**
     * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) {
        require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds");
        return _ownedTokens[owner][index];
    }

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

    /**
     * @dev See {IERC721Enumerable-tokenByIndex}.
     */
    function tokenByIndex(uint256 index) public view virtual override returns (uint256) {
        require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds");
        return _allTokens[index];
    }

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

        if (from == address(0)) {
            _addTokenToAllTokensEnumeration(tokenId);
        } else if (from != to) {
            _removeTokenFromOwnerEnumeration(from, tokenId);
        }
        if (to == address(0)) {
            _removeTokenFromAllTokensEnumeration(tokenId);
        } else if (to != from) {
            _addTokenToOwnerEnumeration(to, tokenId);
        }
    }

    /**
     * @dev Private function to add a token to this extension's ownership-tracking data structures.
     * @param to address representing the new owner of the given token ID
     * @param tokenId uint256 ID of the token to be added to the tokens list of the given address
     */
    function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private {
        uint256 length = ERC721.balanceOf(to);
        _ownedTokens[to][length] = tokenId;
        _ownedTokensIndex[tokenId] = length;
    }

    /**
     * @dev Private function to add a token to this extension's token tracking data structures.
     * @param tokenId uint256 ID of the token to be added to the tokens list
     */
    function _addTokenToAllTokensEnumeration(uint256 tokenId) private {
        _allTokensIndex[tokenId] = _allTokens.length;
        _allTokens.push(tokenId);
    }

    /**
     * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that
     * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for
     * gas optimizations e.g. when performing a transfer operation (avoiding double writes).
     * This has O(1) time complexity, but alters the order of the _ownedTokens array.
     * @param from address representing the previous owner of the given token ID
     * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address
     */
    function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private {
        // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and
        // then delete the last slot (swap and pop).

        uint256 lastTokenIndex = ERC721.balanceOf(from) - 1;
        uint256 tokenIndex = _ownedTokensIndex[tokenId];

        // When the token to delete is the last token, the swap operation is unnecessary
        if (tokenIndex != lastTokenIndex) {
            uint256 lastTokenId = _ownedTokens[from][lastTokenIndex];

            _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
            _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index
        }

        // This also deletes the contents at the last position of the array
        delete _ownedTokensIndex[tokenId];
        delete _ownedTokens[from][lastTokenIndex];
    }

    /**
     * @dev Private function to remove a token from this extension's token tracking data structures.
     * This has O(1) time complexity, but alters the order of the _allTokens array.
     * @param tokenId uint256 ID of the token to be removed from the tokens list
     */
    function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private {
        // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and
        // then delete the last slot (swap and pop).

        uint256 lastTokenIndex = _allTokens.length - 1;
        uint256 tokenIndex = _allTokensIndex[tokenId];

        // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so
        // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding
        // an 'if' statement (like in _removeTokenFromOwnerEnumeration)
        uint256 lastTokenId = _allTokens[lastTokenIndex];

        _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
        _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index

        // This also deletes the contents at the last position of the array
        delete _allTokensIndex[tokenId];
        _allTokens.pop();
    }
}

abstract contract ERC721Burnable is Context, ERC721 {
    /**
     * @dev Burns `tokenId`. See {ERC721-_burn}.
     *
     * Requirements:
     *
     * - The caller must own `tokenId` or be an approved operator.
     */
    function burn(uint256 tokenId) public virtual {
        //solhint-disable-next-line max-line-length
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721Burnable: caller is not owner nor approved");
        _burn(tokenId);
    }
}

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

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

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

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

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

        return super.tokenURI(tokenId);
    }

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

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

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

library Strings {
    bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";

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

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

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

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


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

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

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

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

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

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

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

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


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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

library Counters {
    struct Counter {
        // This variable should never be directly accessed by users of the library: interactions must be restricted to
        // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add
        // this feature: see https://github.com/ethereum/solidity/issues/4637
        uint256 _value; // default: 0
    }

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

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

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

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

library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            uint256 c = a + b;
            if (c < a) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the substraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b > a) return (false, 0);
            return (true, a - b);
        }
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
            // benefit is lost if 'b' is also tested.
            // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
            if (a == 0) return (true, 0);
            uint256 c = a * b;
            if (c / a != b) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a / b);
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a % b);
        }
    }

    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        return a + b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return a - b;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        return a * b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator.
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return a % b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b <= a, errorMessage);
            return a - b;
        }
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a / b;
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a % b;
        }
    }
}

abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

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

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

        _;

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

/// @title Base64
/// @author Brecht Devos - <[email protected]>
/// @notice Provides a function for encoding some bytes in base64
library Base64 {
    string internal constant TABLE = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';

    function encode(bytes memory data) internal pure returns (string memory) {
        if (data.length == 0) return '';
        
        // load the table into memory
        string memory table = TABLE;

        // multiply by 4/3 rounded up
        uint256 encodedLen = 4 * ((data.length + 2) / 3);

        // add some extra buffer at the end required for the writing
        string memory result = new string(encodedLen + 32);

        assembly {
            // set the actual output length
            mstore(result, encodedLen)
            
            // prepare the lookup table
            let tablePtr := add(table, 1)
            
            // input ptr
            let dataPtr := data
            let endPtr := add(dataPtr, mload(data))
            
            // result ptr, jump over length
            let resultPtr := add(result, 32)
            
            // run over the input, 3 bytes at a time
            for {} lt(dataPtr, endPtr) {}
            {
               dataPtr := add(dataPtr, 3)
               
               // read 3 bytes
               let input := mload(dataPtr)
               
               // write 4 characters
               mstore(resultPtr, shl(248, mload(add(tablePtr, and(shr(18, input), 0x3F)))))
               resultPtr := add(resultPtr, 1)
               mstore(resultPtr, shl(248, mload(add(tablePtr, and(shr(12, input), 0x3F)))))
               resultPtr := add(resultPtr, 1)
               mstore(resultPtr, shl(248, mload(add(tablePtr, and(shr( 6, input), 0x3F)))))
               resultPtr := add(resultPtr, 1)
               mstore(resultPtr, shl(248, mload(add(tablePtr, and(        input,  0x3F)))))
               resultPtr := add(resultPtr, 1)
            }
            
            // padding with '='
            switch mod(mload(data), 3)
            case 1 { mstore(sub(resultPtr, 2), shl(240, 0x3d3d)) }
            case 2 { mstore(sub(resultPtr, 1), shl(248, 0x3d)) }
        }
        
        return result;
    }
}

contract Story is Ownable, ERC721Enumerable, ERC721Burnable, ReentrancyGuard {
    using Counters for Counters.Counter;
    using Strings for uint256;
    Counters.Counter private _tokenIdTracker;

    uint256 public constant MAX_LINES = 500;
    uint256 public constant MINT_FEE = .02 ether;
    address public constant DEV = 0xFC3FECe05129cB90A4Df58BA45236B3a4f982c27;
    address public constant DEV2 = 0x804C4AC4FdC73767b54F8E69eB447d64516F912F;
    bool public opened;
    address private MINERALS_ADDRESS = 0x02509651f2cfB4637cE67e2420ba3f06060EF5e8;

    mapping(uint256 => string) public lines;

    constructor() ERC721("A Crypto Twitter Story", "STORY") {
    }

    function open() public onlyOwner {
        require(opened == false, "Already opened");
        opened = true;
    }

    function withdraw() public onlyOwner {
        (bool success, ) = owner().call{value: address(this).balance /2}("");
        require(success, "Transfer failed.");
        (bool success2, ) = payable(DEV2).call{value: address(this).balance /2}("");
        require(success, "Transfer failed.");
        require(success2, "Second Transfer failed.");
    }

    function generateSVGFromText(string memory text)
        internal
        pure
        returns (string memory)
    {
        string memory svg = string(
            abi.encodePacked(
                '<svg xmlns="http://w3.org/2000/svg" preserveAspectRatio="xMinYMin meet" viewBox="0 0 500 500">',
                "<style>",
                "{ .base { fill: #fff; font-family: serif; font-size: 14px } }",
                "</style>"
                '<rect width="100%" height="100%" fill="#000" />'
                '<text x="10" y="20" fill="#fff">',
                text,
                "</text>",
                "</svg>"
            )
        );

        return svg;
    }

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

    function supportsInterface(bytes4 interfaceId)
        public
        view
        virtual
        override(ERC721, ERC721Enumerable)
        returns (bool)
    {
        return super.supportsInterface(interfaceId);
    }

    function tokenURI(uint256 tokenId)
        public
        view
        override
        returns (string memory)
    {
        string memory text = lines[tokenId];
        string memory svg = Base64.encode(bytes(generateSVGFromText(text)));
        string memory json = Base64.encode(
            bytes(
                string(
                    abi.encodePacked(
                        '{"name": "Line #',
                        tokenId.toString(),
                        '", "description": "A story written by CT.", "image": "data:image/svg+xml;base64,',
                        Base64.encode(bytes(svg)),
                        '"}'
                    )
                )
            )
        );
        json = string(abi.encodePacked("data:application/json;base64,", json));

        return json;
    }

    function mint(string memory words) public payable virtual {
        require(opened == true, "Not opened");
        uint256 nextId = _tokenIdTracker.current();
        ERC721 minerals = ERC721(MINERALS_ADDRESS);
        require(nextId < MAX_LINES, "The story is complete now.");
        if (minerals.balanceOf(msg.sender) == 0) {
            require(msg.value >= MINT_FEE, "price is low, bid moar.");
        }

        _safeMint(msg.sender, nextId);
        lines[nextId] = words;
        _tokenIdTracker.increment();
    }
    
    
}

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

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"DEV","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEV2","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_LINES","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINT_FEE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"lines","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"words","type":"string"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"open","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"opened","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"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":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040527302509651f2cfb4637ce67e2420ba3f06060ef5e8600d60016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055503480156200006657600080fd5b506040518060400160405280601681526020017f412043727970746f20547769747465722053746f7279000000000000000000008152506040518060400160405280600581526020017f53544f5259000000000000000000000000000000000000000000000000000000815250620000f3620000e76200013560201b60201c565b6200013d60201b60201c565b81600190805190602001906200010b92919062000201565b5080600290805190602001906200012492919062000201565b5050506001600b8190555062000316565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8280546200020f90620002b1565b90600052602060002090601f0160209004810192826200023357600085556200027f565b82601f106200024e57805160ff19168380011785556200027f565b828001600101855582156200027f579182015b828111156200027e57825182559160200191906001019062000261565b5b5090506200028e919062000292565b5090565b5b80821115620002ad57600081600090555060010162000293565b5090565b60006002820490506001821680620002ca57607f821691505b60208210811415620002e157620002e0620002e7565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b61494d80620003266000396000f3fe6080604052600436106101c25760003560e01c806370a08231116100f7578063c1eb5ddd11610095578063d85d3d2711610064578063d85d3d2714610656578063e985e9c514610672578063f2fde38b146106af578063fcfff16f146106d8576101c2565b8063c1eb5ddd14610598578063c87b56dd146105c3578063d025d3aa14610600578063d7bf81a31461062b576101c2565b806395d89b41116100d157806395d89b41146104f057806398074a231461051b578063a22cb46514610546578063b88d4fde1461056f576101c2565b806370a0823114610471578063715018a6146104ae5780638da5cb5b146104c5576101c2565b80632f745c591161016457806342966c681161013e57806342966c68146103a35780634f6ccce7146103cc5780635f88eade146104095780636352211e14610434576101c2565b80632f745c59146103265780633ccfd60b1461036357806342842e0e1461037a576101c2565b8063095ea7b3116101a0578063095ea7b31461026c57806318160ddd146102955780631c86bc85146102c057806323b872dd146102fd576101c2565b806301ffc9a7146101c757806306fdde0314610204578063081812fc1461022f575b600080fd5b3480156101d357600080fd5b506101ee60048036038101906101e99190613002565b6106ef565b6040516101fb91906137d4565b60405180910390f35b34801561021057600080fd5b50610219610701565b60405161022691906137ef565b60405180910390f35b34801561023b57600080fd5b50610256600480360381019061025191906130a5565b610793565b604051610263919061376d565b60405180910390f35b34801561027857600080fd5b50610293600480360381019061028e9190612fc2565b610818565b005b3480156102a157600080fd5b506102aa610930565b6040516102b79190613b11565b60405180910390f35b3480156102cc57600080fd5b506102e760048036038101906102e291906130a5565b61093d565b6040516102f491906137ef565b60405180910390f35b34801561030957600080fd5b50610324600480360381019061031f9190612eac565b6109dd565b005b34801561033257600080fd5b5061034d60048036038101906103489190612fc2565b610a3d565b60405161035a9190613b11565b60405180910390f35b34801561036f57600080fd5b50610378610ae2565b005b34801561038657600080fd5b506103a1600480360381019061039c9190612eac565b610d2d565b005b3480156103af57600080fd5b506103ca60048036038101906103c591906130a5565b610d4d565b005b3480156103d857600080fd5b506103f360048036038101906103ee91906130a5565b610da9565b6040516104009190613b11565b60405180910390f35b34801561041557600080fd5b5061041e610e1a565b60405161042b91906137d4565b60405180910390f35b34801561044057600080fd5b5061045b600480360381019061045691906130a5565b610e2d565b604051610468919061376d565b60405180910390f35b34801561047d57600080fd5b5061049860048036038101906104939190612e3f565b610edf565b6040516104a59190613b11565b60405180910390f35b3480156104ba57600080fd5b506104c3610f97565b005b3480156104d157600080fd5b506104da61101f565b6040516104e7919061376d565b60405180910390f35b3480156104fc57600080fd5b50610505611048565b60405161051291906137ef565b60405180910390f35b34801561052757600080fd5b506105306110da565b60405161053d919061376d565b60405180910390f35b34801561055257600080fd5b5061056d60048036038101906105689190612f82565b6110f2565b005b34801561057b57600080fd5b5061059660048036038101906105919190612eff565b611273565b005b3480156105a457600080fd5b506105ad6112d5565b6040516105ba919061376d565b60405180910390f35b3480156105cf57600080fd5b506105ea60048036038101906105e591906130a5565b6112ed565b6040516105f791906137ef565b60405180910390f35b34801561060c57600080fd5b5061061561140f565b6040516106229190613b11565b60405180910390f35b34801561063757600080fd5b50610640611415565b60405161064d9190613b11565b60405180910390f35b610670600480360381019061066b919061305c565b611420565b005b34801561067e57600080fd5b5061069960048036038101906106949190612e6c565b61160c565b6040516106a691906137d4565b60405180910390f35b3480156106bb57600080fd5b506106d660048036038101906106d19190612e3f565b6116a0565b005b3480156106e457600080fd5b506106ed611798565b005b60006106fa82611887565b9050919050565b60606001805461071090613dcc565b80601f016020809104026020016040519081016040528092919081815260200182805461073c90613dcc565b80156107895780601f1061075e57610100808354040283529160200191610789565b820191906000526020600020905b81548152906001019060200180831161076c57829003601f168201915b5050505050905090565b600061079e82611901565b6107dd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107d4906139f1565b60405180910390fd5b6005600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b600061082382610e2d565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610894576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161088b90613a71565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff166108b361196d565b73ffffffffffffffffffffffffffffffffffffffff1614806108e257506108e1816108dc61196d565b61160c565b5b610921576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161091890613951565b60405180910390fd5b61092b8383611975565b505050565b6000600980549050905090565b600e602052806000526040600020600091509050805461095c90613dcc565b80601f016020809104026020016040519081016040528092919081815260200182805461098890613dcc565b80156109d55780601f106109aa576101008083540402835291602001916109d5565b820191906000526020600020905b8154815290600101906020018083116109b857829003601f168201915b505050505081565b6109ee6109e861196d565b82611a2e565b610a2d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a2490613ab1565b60405180910390fd5b610a38838383611b0c565b505050565b6000610a4883610edf565b8210610a89576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a8090613831565b60405180910390fd5b600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b610aea61196d565b73ffffffffffffffffffffffffffffffffffffffff16610b0861101f565b73ffffffffffffffffffffffffffffffffffffffff1614610b5e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b5590613a11565b60405180910390fd5b6000610b6861101f565b73ffffffffffffffffffffffffffffffffffffffff16600247610b8b9190613c57565b604051610b97906136ff565b60006040518083038185875af1925050503d8060008114610bd4576040519150601f19603f3d011682016040523d82523d6000602084013e610bd9565b606091505b5050905080610c1d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c1490613a91565b60405180910390fd5b600073804c4ac4fdc73767b54f8e69eb447d64516f912f73ffffffffffffffffffffffffffffffffffffffff16600247610c579190613c57565b604051610c63906136ff565b60006040518083038185875af1925050503d8060008114610ca0576040519150601f19603f3d011682016040523d82523d6000602084013e610ca5565b606091505b5050905081610ce9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ce090613a91565b60405180910390fd5b80610d29576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d20906138d1565b60405180910390fd5b5050565b610d4883838360405180602001604052806000815250611273565b505050565b610d5e610d5861196d565b82611a2e565b610d9d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d9490613af1565b60405180910390fd5b610da681611d68565b50565b6000610db3610930565b8210610df4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610deb90613ad1565b60405180910390fd5b60098281548110610e0857610e07613f65565b5b90600052602060002001549050919050565b600d60009054906101000a900460ff1681565b6000806003600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610ed6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ecd906139b1565b60405180910390fd5b80915050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415610f50576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f4790613971565b60405180910390fd5b600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b610f9f61196d565b73ffffffffffffffffffffffffffffffffffffffff16610fbd61101f565b73ffffffffffffffffffffffffffffffffffffffff1614611013576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161100a90613a11565b60405180910390fd5b61101d6000611e79565b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60606002805461105790613dcc565b80601f016020809104026020016040519081016040528092919081815260200182805461108390613dcc565b80156110d05780601f106110a5576101008083540402835291602001916110d0565b820191906000526020600020905b8154815290600101906020018083116110b357829003601f168201915b5050505050905090565b73804c4ac4fdc73767b54f8e69eb447d64516f912f81565b6110fa61196d565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611168576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161115f906138f1565b60405180910390fd5b806006600061117561196d565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff1661122261196d565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161126791906137d4565b60405180910390a35050565b61128461127e61196d565b83611a2e565b6112c3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112ba90613ab1565b60405180910390fd5b6112cf84848484611f3d565b50505050565b73fc3fece05129cb90a4df58ba45236b3a4f982c2781565b60606000600e6000848152602001908152602001600020805461130f90613dcc565b80601f016020809104026020016040519081016040528092919081815260200182805461133b90613dcc565b80156113885780601f1061135d57610100808354040283529160200191611388565b820191906000526020600020905b81548152906001019060200180831161136b57829003601f168201915b5050505050905060006113a261139d83611f99565b611fc8565b905060006113e06113b28661214d565b6113bb84611fc8565b6040516020016113cc929190613698565b604051602081830303815290604052611fc8565b9050806040516020016113f391906136dd565b6040516020818303038152906040529050809350505050919050565b6101f481565b66470de4df82000081565b60011515600d60009054906101000a900460ff16151514611476576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161146d90613911565b60405180910390fd5b6000611482600c6122ae565b90506000600d60019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690506101f482106114ef576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114e690613991565b60405180910390fd5b60008173ffffffffffffffffffffffffffffffffffffffff166370a08231336040518263ffffffff1660e01b815260040161152a919061376d565b60206040518083038186803b15801561154257600080fd5b505afa158015611556573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061157a91906130d2565b14156115cb5766470de4df8200003410156115ca576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115c190613811565b60405180910390fd5b5b6115d533836122bc565b82600e600084815260200190815260200160002090805190602001906115fc929190612c3e565b50611607600c6122da565b505050565b6000600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6116a861196d565b73ffffffffffffffffffffffffffffffffffffffff166116c661101f565b73ffffffffffffffffffffffffffffffffffffffff161461171c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161171390613a11565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561178c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161178390613871565b60405180910390fd5b61179581611e79565b50565b6117a061196d565b73ffffffffffffffffffffffffffffffffffffffff166117be61101f565b73ffffffffffffffffffffffffffffffffffffffff1614611814576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161180b90613a11565b60405180910390fd5b60001515600d60009054906101000a900460ff1615151461186a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161186190613a51565b60405180910390fd5b6001600d60006101000a81548160ff021916908315150217905550565b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806118fa57506118f9826122f0565b5b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166003600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600033905090565b816005600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff166119e883610e2d565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000611a3982611901565b611a78576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a6f90613931565b60405180910390fd5b6000611a8383610e2d565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480611af257508373ffffffffffffffffffffffffffffffffffffffff16611ada84610793565b73ffffffffffffffffffffffffffffffffffffffff16145b80611b035750611b02818561160c565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff16611b2c82610e2d565b73ffffffffffffffffffffffffffffffffffffffff1614611b82576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b7990613a31565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611bf2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611be9906138b1565b60405180910390fd5b611bfd8383836123d2565b611c08600082611975565b6001600460008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611c589190613ce2565b925050819055506001600460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611caf9190613c01565b92505081905550816003600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b6000611d7382610e2d565b9050611d81816000846123d2565b611d8c600083611975565b6001600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611ddc9190613ce2565b925050819055506003600083815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905581600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b611f48848484611b0c565b611f54848484846123e2565b611f93576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f8a90613851565b60405180910390fd5b50505050565b6060600082604051602001611fae9190613714565b604051602081830303815290604052905080915050919050565b6060600082511415611feb57604051806020016040528060008152509050612148565b60006040518060600160405280604081526020016148d8604091399050600060036002855161201a9190613c01565b6120249190613c57565b60046120309190613c88565b905060006020826120419190613c01565b67ffffffffffffffff81111561205a57612059613f94565b5b6040519080825280601f01601f19166020018201604052801561208c5781602001600182028036833780820191505090505b509050818152600183018586518101602084015b81831015612107576003830192508251603f8160121c1685015160f81b8252600182019150603f81600c1c1685015160f81b8252600182019150603f8160061c1685015160f81b8252600182019150603f811685015160f81b8252600182019150506120a0565b60038951066001811461212157600281146121315761213c565b613d3d60f01b600283035261213c565b603d60f81b60018303525b50505050508093505050505b919050565b60606000821415612195576040518060400160405280600181526020017f300000000000000000000000000000000000000000000000000000000000000081525090506122a9565b600082905060005b600082146121c75780806121b090613e2f565b915050600a826121c09190613c57565b915061219d565b60008167ffffffffffffffff8111156121e3576121e2613f94565b5b6040519080825280601f01601f1916602001820160405280156122155781602001600182028036833780820191505090505b5090505b600085146122a25760018261222e9190613ce2565b9150600a8561223d9190613e78565b60306122499190613c01565b60f81b81838151811061225f5761225e613f65565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a8561229b9190613c57565b9450612219565b8093505050505b919050565b600081600001549050919050565b6122d6828260405180602001604052806000815250612579565b5050565b6001816000016000828254019250508190555050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806123bb57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806123cb57506123ca826125d4565b5b9050919050565b6123dd83838361263e565b505050565b60006124038473ffffffffffffffffffffffffffffffffffffffff16612752565b1561256c578373ffffffffffffffffffffffffffffffffffffffff1663150b7a0261242c61196d565b8786866040518563ffffffff1660e01b815260040161244e9493929190613788565b602060405180830381600087803b15801561246857600080fd5b505af192505050801561249957506040513d601f19601f82011682018060405250810190612496919061302f565b60015b61251c573d80600081146124c9576040519150601f19603f3d011682016040523d82523d6000602084013e6124ce565b606091505b50600081511415612514576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161250b90613851565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050612571565b600190505b949350505050565b6125838383612765565b61259060008484846123e2565b6125cf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125c690613851565b60405180910390fd5b505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b612649838383612933565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561268c5761268781612938565b6126cb565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16146126ca576126c98382612981565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561270e5761270981612aee565b61274d565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161461274c5761274b8282612bbf565b5b5b505050565b600080823b905060008111915050919050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156127d5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127cc906139d1565b60405180910390fd5b6127de81611901565b1561281e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161281590613891565b60405180910390fd5b61282a600083836123d2565b6001600460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461287a9190613c01565b92505081905550816003600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b505050565b600980549050600a600083815260200190815260200160002081905550600981908060018154018082558091505060019003906000526020600020016000909190919091505550565b6000600161298e84610edf565b6129989190613ce2565b9050600060086000848152602001908152602001600020549050818114612a7d576000600760008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600760008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816008600083815260200190815260200160002081905550505b6008600084815260200190815260200160002060009055600760008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b60006001600980549050612b029190613ce2565b90506000600a6000848152602001908152602001600020549050600060098381548110612b3257612b31613f65565b5b906000526020600020015490508060098381548110612b5457612b53613f65565b5b906000526020600020018190555081600a600083815260200190815260200160002081905550600a6000858152602001908152602001600020600090556009805480612ba357612ba2613f36565b5b6001900381819060005260206000200160009055905550505050565b6000612bca83610edf565b905081600760008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806008600084815260200190815260200160002081905550505050565b828054612c4a90613dcc565b90600052602060002090601f016020900481019282612c6c5760008555612cb3565b82601f10612c8557805160ff1916838001178555612cb3565b82800160010185558215612cb3579182015b82811115612cb2578251825591602001919060010190612c97565b5b509050612cc09190612cc4565b5090565b5b80821115612cdd576000816000905550600101612cc5565b5090565b6000612cf4612cef84613b51565b613b2c565b905082815260208101848484011115612d1057612d0f613fc8565b5b612d1b848285613d8a565b509392505050565b6000612d36612d3184613b82565b613b2c565b905082815260208101848484011115612d5257612d51613fc8565b5b612d5d848285613d8a565b509392505050565b600081359050612d748161487b565b92915050565b600081359050612d8981614892565b92915050565b600081359050612d9e816148a9565b92915050565b600081519050612db3816148a9565b92915050565b600082601f830112612dce57612dcd613fc3565b5b8135612dde848260208601612ce1565b91505092915050565b600082601f830112612dfc57612dfb613fc3565b5b8135612e0c848260208601612d23565b91505092915050565b600081359050612e24816148c0565b92915050565b600081519050612e39816148c0565b92915050565b600060208284031215612e5557612e54613fd2565b5b6000612e6384828501612d65565b91505092915050565b60008060408385031215612e8357612e82613fd2565b5b6000612e9185828601612d65565b9250506020612ea285828601612d65565b9150509250929050565b600080600060608486031215612ec557612ec4613fd2565b5b6000612ed386828701612d65565b9350506020612ee486828701612d65565b9250506040612ef586828701612e15565b9150509250925092565b60008060008060808587031215612f1957612f18613fd2565b5b6000612f2787828801612d65565b9450506020612f3887828801612d65565b9350506040612f4987828801612e15565b925050606085013567ffffffffffffffff811115612f6a57612f69613fcd565b5b612f7687828801612db9565b91505092959194509250565b60008060408385031215612f9957612f98613fd2565b5b6000612fa785828601612d65565b9250506020612fb885828601612d7a565b9150509250929050565b60008060408385031215612fd957612fd8613fd2565b5b6000612fe785828601612d65565b9250506020612ff885828601612e15565b9150509250929050565b60006020828403121561301857613017613fd2565b5b600061302684828501612d8f565b91505092915050565b60006020828403121561304557613044613fd2565b5b600061305384828501612da4565b91505092915050565b60006020828403121561307257613071613fd2565b5b600082013567ffffffffffffffff8111156130905761308f613fcd565b5b61309c84828501612de7565b91505092915050565b6000602082840312156130bb576130ba613fd2565b5b60006130c984828501612e15565b91505092915050565b6000602082840312156130e8576130e7613fd2565b5b60006130f684828501612e2a565b91505092915050565b61310881613d16565b82525050565b61311781613d28565b82525050565b600061312882613bb3565b6131328185613bc9565b9350613142818560208601613d99565b61314b81613fd7565b840191505092915050565b600061316182613bbe565b61316b8185613be5565b935061317b818560208601613d99565b61318481613fd7565b840191505092915050565b600061319a82613bbe565b6131a48185613bf6565b93506131b4818560208601613d99565b80840191505092915050565b60006131cd601783613be5565b91506131d882613fe8565b602082019050919050565b60006131f0602b83613be5565b91506131fb82614011565b604082019050919050565b6000613213603283613be5565b915061321e82614060565b604082019050919050565b6000613236602683613be5565b9150613241826140af565b604082019050919050565b6000613259601c83613be5565b9150613264826140fe565b602082019050919050565b600061327c605083613bf6565b915061328782614127565b605082019050919050565b600061329f602483613be5565b91506132aa8261419c565b604082019050919050565b60006132c2601783613be5565b91506132cd826141eb565b602082019050919050565b60006132e5601983613be5565b91506132f082614214565b602082019050919050565b6000613308600a83613be5565b91506133138261423d565b602082019050919050565b600061332b602c83613be5565b915061333682614266565b604082019050919050565b600061334e603883613be5565b9150613359826142b5565b604082019050919050565b6000613371602a83613be5565b915061337c82614304565b604082019050919050565b6000613394601a83613be5565b915061339f82614353565b602082019050919050565b60006133b7602983613be5565b91506133c28261437c565b604082019050919050565b60006133da601083613bf6565b91506133e5826143cb565b601082019050919050565b60006133fd603d83613bf6565b9150613408826143f4565b603d82019050919050565b6000613420600283613bf6565b915061342b82614443565b600282019050919050565b6000613443600783613bf6565b915061344e8261446c565b600782019050919050565b6000613466605783613bf6565b915061347182614495565b605782019050919050565b6000613489602083613be5565b91506134948261450a565b602082019050919050565b60006134ac602c83613be5565b91506134b782614533565b604082019050919050565b60006134cf602083613be5565b91506134da82614582565b602082019050919050565b60006134f2602983613be5565b91506134fd826145ab565b604082019050919050565b6000613515600e83613be5565b9150613520826145fa565b602082019050919050565b6000613538602183613be5565b915061354382614623565b604082019050919050565b600061355b601d83613bf6565b915061356682614672565b601d82019050919050565b600061357e600083613bda565b91506135898261469b565b600082019050919050565b60006135a1601083613be5565b91506135ac8261469e565b602082019050919050565b60006135c4603183613be5565b91506135cf826146c7565b604082019050919050565b60006135e7602c83613be5565b91506135f282614716565b604082019050919050565b600061360a605e83613bf6565b915061361582614765565b605e82019050919050565b600061362d600683613bf6565b9150613638826147da565b600682019050919050565b6000613650603083613be5565b915061365b82614803565b604082019050919050565b6000613673600783613bf6565b915061367e82614852565b600782019050919050565b61369281613d80565b82525050565b60006136a3826133cd565b91506136af828561318f565b91506136ba8261326f565b91506136c6828461318f565b91506136d182613413565b91508190509392505050565b60006136e88261354e565b91506136f4828461318f565b915081905092915050565b600061370a82613571565b9150819050919050565b600061371f826135fd565b915061372a82613666565b9150613735826133f0565b915061374082613459565b915061374c828461318f565b915061375782613436565b915061376282613620565b915081905092915050565b600060208201905061378260008301846130ff565b92915050565b600060808201905061379d60008301876130ff565b6137aa60208301866130ff565b6137b76040830185613689565b81810360608301526137c9818461311d565b905095945050505050565b60006020820190506137e9600083018461310e565b92915050565b600060208201905081810360008301526138098184613156565b905092915050565b6000602082019050818103600083015261382a816131c0565b9050919050565b6000602082019050818103600083015261384a816131e3565b9050919050565b6000602082019050818103600083015261386a81613206565b9050919050565b6000602082019050818103600083015261388a81613229565b9050919050565b600060208201905081810360008301526138aa8161324c565b9050919050565b600060208201905081810360008301526138ca81613292565b9050919050565b600060208201905081810360008301526138ea816132b5565b9050919050565b6000602082019050818103600083015261390a816132d8565b9050919050565b6000602082019050818103600083015261392a816132fb565b9050919050565b6000602082019050818103600083015261394a8161331e565b9050919050565b6000602082019050818103600083015261396a81613341565b9050919050565b6000602082019050818103600083015261398a81613364565b9050919050565b600060208201905081810360008301526139aa81613387565b9050919050565b600060208201905081810360008301526139ca816133aa565b9050919050565b600060208201905081810360008301526139ea8161347c565b9050919050565b60006020820190508181036000830152613a0a8161349f565b9050919050565b60006020820190508181036000830152613a2a816134c2565b9050919050565b60006020820190508181036000830152613a4a816134e5565b9050919050565b60006020820190508181036000830152613a6a81613508565b9050919050565b60006020820190508181036000830152613a8a8161352b565b9050919050565b60006020820190508181036000830152613aaa81613594565b9050919050565b60006020820190508181036000830152613aca816135b7565b9050919050565b60006020820190508181036000830152613aea816135da565b9050919050565b60006020820190508181036000830152613b0a81613643565b9050919050565b6000602082019050613b266000830184613689565b92915050565b6000613b36613b47565b9050613b428282613dfe565b919050565b6000604051905090565b600067ffffffffffffffff821115613b6c57613b6b613f94565b5b613b7582613fd7565b9050602081019050919050565b600067ffffffffffffffff821115613b9d57613b9c613f94565b5b613ba682613fd7565b9050602081019050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b6000613c0c82613d80565b9150613c1783613d80565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115613c4c57613c4b613ea9565b5b828201905092915050565b6000613c6282613d80565b9150613c6d83613d80565b925082613c7d57613c7c613ed8565b5b828204905092915050565b6000613c9382613d80565b9150613c9e83613d80565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615613cd757613cd6613ea9565b5b828202905092915050565b6000613ced82613d80565b9150613cf883613d80565b925082821015613d0b57613d0a613ea9565b5b828203905092915050565b6000613d2182613d60565b9050919050565b60008115159050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b82818337600083830152505050565b60005b83811015613db7578082015181840152602081019050613d9c565b83811115613dc6576000848401525b50505050565b60006002820490506001821680613de457607f821691505b60208210811415613df857613df7613f07565b5b50919050565b613e0782613fd7565b810181811067ffffffffffffffff82111715613e2657613e25613f94565b5b80604052505050565b6000613e3a82613d80565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415613e6d57613e6c613ea9565b5b600182019050919050565b6000613e8382613d80565b9150613e8e83613d80565b925082613e9e57613e9d613ed8565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f7072696365206973206c6f772c20626964206d6f61722e000000000000000000600082015250565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008201527f74206f6620626f756e6473000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b7f222c20226465736372697074696f6e223a2022412073746f727920777269747460008201527f656e2062792043542e222c2022696d616765223a2022646174613a696d61676560208201527f2f7376672b786d6c3b6261736536342c00000000000000000000000000000000604082015250565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f5365636f6e64205472616e73666572206661696c65642e000000000000000000600082015250565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b7f4e6f74206f70656e656400000000000000000000000000000000000000000000600082015250565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b7f5468652073746f727920697320636f6d706c657465206e6f772e000000000000600082015250565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b7f7b226e616d65223a20224c696e65202300000000000000000000000000000000600082015250565b7f7b202e62617365207b2066696c6c3a20236666663b20666f6e742d66616d696c60008201527f793a2073657269663b20666f6e742d73697a653a2031347078207d207d000000602082015250565b7f227d000000000000000000000000000000000000000000000000000000000000600082015250565b7f3c2f746578743e00000000000000000000000000000000000000000000000000600082015250565b7f3c2f7374796c653e3c726563742077696474683d22313030252220686569676860008201527f743d2231303025222066696c6c3d222330303022202f3e3c7465787420783d2260208201527f31302220793d223230222066696c6c3d2223666666223e000000000000000000604082015250565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960008201527f73206e6f74206f776e0000000000000000000000000000000000000000000000602082015250565b7f416c7265616479206f70656e6564000000000000000000000000000000000000600082015250565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c000000600082015250565b50565b7f5472616e73666572206661696c65642e00000000000000000000000000000000600082015250565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008201527f7574206f6620626f756e64730000000000000000000000000000000000000000602082015250565b7f3c73766720786d6c6e733d22687474703a2f2f77332e6f72672f323030302f7360008201527f766722207072657365727665417370656374526174696f3d22784d696e594d6960208201527f6e206d656574222076696577426f783d223020302035303020353030223e0000604082015250565b7f3c2f7376673e0000000000000000000000000000000000000000000000000000600082015250565b7f4552433732314275726e61626c653a2063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656400000000000000000000000000000000602082015250565b7f3c7374796c653e00000000000000000000000000000000000000000000000000600082015250565b61488481613d16565b811461488f57600080fd5b50565b61489b81613d28565b81146148a657600080fd5b50565b6148b281613d34565b81146148bd57600080fd5b50565b6148c981613d80565b81146148d457600080fd5b5056fe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa2646970667358221220f068b340766eee92ecdff1328403bb11f19fa725fdf63ef3ed249389adc5506664736f6c63430008070033

Deployed Bytecode

0x6080604052600436106101c25760003560e01c806370a08231116100f7578063c1eb5ddd11610095578063d85d3d2711610064578063d85d3d2714610656578063e985e9c514610672578063f2fde38b146106af578063fcfff16f146106d8576101c2565b8063c1eb5ddd14610598578063c87b56dd146105c3578063d025d3aa14610600578063d7bf81a31461062b576101c2565b806395d89b41116100d157806395d89b41146104f057806398074a231461051b578063a22cb46514610546578063b88d4fde1461056f576101c2565b806370a0823114610471578063715018a6146104ae5780638da5cb5b146104c5576101c2565b80632f745c591161016457806342966c681161013e57806342966c68146103a35780634f6ccce7146103cc5780635f88eade146104095780636352211e14610434576101c2565b80632f745c59146103265780633ccfd60b1461036357806342842e0e1461037a576101c2565b8063095ea7b3116101a0578063095ea7b31461026c57806318160ddd146102955780631c86bc85146102c057806323b872dd146102fd576101c2565b806301ffc9a7146101c757806306fdde0314610204578063081812fc1461022f575b600080fd5b3480156101d357600080fd5b506101ee60048036038101906101e99190613002565b6106ef565b6040516101fb91906137d4565b60405180910390f35b34801561021057600080fd5b50610219610701565b60405161022691906137ef565b60405180910390f35b34801561023b57600080fd5b50610256600480360381019061025191906130a5565b610793565b604051610263919061376d565b60405180910390f35b34801561027857600080fd5b50610293600480360381019061028e9190612fc2565b610818565b005b3480156102a157600080fd5b506102aa610930565b6040516102b79190613b11565b60405180910390f35b3480156102cc57600080fd5b506102e760048036038101906102e291906130a5565b61093d565b6040516102f491906137ef565b60405180910390f35b34801561030957600080fd5b50610324600480360381019061031f9190612eac565b6109dd565b005b34801561033257600080fd5b5061034d60048036038101906103489190612fc2565b610a3d565b60405161035a9190613b11565b60405180910390f35b34801561036f57600080fd5b50610378610ae2565b005b34801561038657600080fd5b506103a1600480360381019061039c9190612eac565b610d2d565b005b3480156103af57600080fd5b506103ca60048036038101906103c591906130a5565b610d4d565b005b3480156103d857600080fd5b506103f360048036038101906103ee91906130a5565b610da9565b6040516104009190613b11565b60405180910390f35b34801561041557600080fd5b5061041e610e1a565b60405161042b91906137d4565b60405180910390f35b34801561044057600080fd5b5061045b600480360381019061045691906130a5565b610e2d565b604051610468919061376d565b60405180910390f35b34801561047d57600080fd5b5061049860048036038101906104939190612e3f565b610edf565b6040516104a59190613b11565b60405180910390f35b3480156104ba57600080fd5b506104c3610f97565b005b3480156104d157600080fd5b506104da61101f565b6040516104e7919061376d565b60405180910390f35b3480156104fc57600080fd5b50610505611048565b60405161051291906137ef565b60405180910390f35b34801561052757600080fd5b506105306110da565b60405161053d919061376d565b60405180910390f35b34801561055257600080fd5b5061056d60048036038101906105689190612f82565b6110f2565b005b34801561057b57600080fd5b5061059660048036038101906105919190612eff565b611273565b005b3480156105a457600080fd5b506105ad6112d5565b6040516105ba919061376d565b60405180910390f35b3480156105cf57600080fd5b506105ea60048036038101906105e591906130a5565b6112ed565b6040516105f791906137ef565b60405180910390f35b34801561060c57600080fd5b5061061561140f565b6040516106229190613b11565b60405180910390f35b34801561063757600080fd5b50610640611415565b60405161064d9190613b11565b60405180910390f35b610670600480360381019061066b919061305c565b611420565b005b34801561067e57600080fd5b5061069960048036038101906106949190612e6c565b61160c565b6040516106a691906137d4565b60405180910390f35b3480156106bb57600080fd5b506106d660048036038101906106d19190612e3f565b6116a0565b005b3480156106e457600080fd5b506106ed611798565b005b60006106fa82611887565b9050919050565b60606001805461071090613dcc565b80601f016020809104026020016040519081016040528092919081815260200182805461073c90613dcc565b80156107895780601f1061075e57610100808354040283529160200191610789565b820191906000526020600020905b81548152906001019060200180831161076c57829003601f168201915b5050505050905090565b600061079e82611901565b6107dd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107d4906139f1565b60405180910390fd5b6005600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b600061082382610e2d565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610894576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161088b90613a71565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff166108b361196d565b73ffffffffffffffffffffffffffffffffffffffff1614806108e257506108e1816108dc61196d565b61160c565b5b610921576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161091890613951565b60405180910390fd5b61092b8383611975565b505050565b6000600980549050905090565b600e602052806000526040600020600091509050805461095c90613dcc565b80601f016020809104026020016040519081016040528092919081815260200182805461098890613dcc565b80156109d55780601f106109aa576101008083540402835291602001916109d5565b820191906000526020600020905b8154815290600101906020018083116109b857829003601f168201915b505050505081565b6109ee6109e861196d565b82611a2e565b610a2d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a2490613ab1565b60405180910390fd5b610a38838383611b0c565b505050565b6000610a4883610edf565b8210610a89576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a8090613831565b60405180910390fd5b600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b610aea61196d565b73ffffffffffffffffffffffffffffffffffffffff16610b0861101f565b73ffffffffffffffffffffffffffffffffffffffff1614610b5e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b5590613a11565b60405180910390fd5b6000610b6861101f565b73ffffffffffffffffffffffffffffffffffffffff16600247610b8b9190613c57565b604051610b97906136ff565b60006040518083038185875af1925050503d8060008114610bd4576040519150601f19603f3d011682016040523d82523d6000602084013e610bd9565b606091505b5050905080610c1d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c1490613a91565b60405180910390fd5b600073804c4ac4fdc73767b54f8e69eb447d64516f912f73ffffffffffffffffffffffffffffffffffffffff16600247610c579190613c57565b604051610c63906136ff565b60006040518083038185875af1925050503d8060008114610ca0576040519150601f19603f3d011682016040523d82523d6000602084013e610ca5565b606091505b5050905081610ce9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ce090613a91565b60405180910390fd5b80610d29576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d20906138d1565b60405180910390fd5b5050565b610d4883838360405180602001604052806000815250611273565b505050565b610d5e610d5861196d565b82611a2e565b610d9d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d9490613af1565b60405180910390fd5b610da681611d68565b50565b6000610db3610930565b8210610df4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610deb90613ad1565b60405180910390fd5b60098281548110610e0857610e07613f65565b5b90600052602060002001549050919050565b600d60009054906101000a900460ff1681565b6000806003600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610ed6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ecd906139b1565b60405180910390fd5b80915050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415610f50576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f4790613971565b60405180910390fd5b600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b610f9f61196d565b73ffffffffffffffffffffffffffffffffffffffff16610fbd61101f565b73ffffffffffffffffffffffffffffffffffffffff1614611013576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161100a90613a11565b60405180910390fd5b61101d6000611e79565b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60606002805461105790613dcc565b80601f016020809104026020016040519081016040528092919081815260200182805461108390613dcc565b80156110d05780601f106110a5576101008083540402835291602001916110d0565b820191906000526020600020905b8154815290600101906020018083116110b357829003601f168201915b5050505050905090565b73804c4ac4fdc73767b54f8e69eb447d64516f912f81565b6110fa61196d565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611168576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161115f906138f1565b60405180910390fd5b806006600061117561196d565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff1661122261196d565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161126791906137d4565b60405180910390a35050565b61128461127e61196d565b83611a2e565b6112c3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112ba90613ab1565b60405180910390fd5b6112cf84848484611f3d565b50505050565b73fc3fece05129cb90a4df58ba45236b3a4f982c2781565b60606000600e6000848152602001908152602001600020805461130f90613dcc565b80601f016020809104026020016040519081016040528092919081815260200182805461133b90613dcc565b80156113885780601f1061135d57610100808354040283529160200191611388565b820191906000526020600020905b81548152906001019060200180831161136b57829003601f168201915b5050505050905060006113a261139d83611f99565b611fc8565b905060006113e06113b28661214d565b6113bb84611fc8565b6040516020016113cc929190613698565b604051602081830303815290604052611fc8565b9050806040516020016113f391906136dd565b6040516020818303038152906040529050809350505050919050565b6101f481565b66470de4df82000081565b60011515600d60009054906101000a900460ff16151514611476576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161146d90613911565b60405180910390fd5b6000611482600c6122ae565b90506000600d60019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690506101f482106114ef576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114e690613991565b60405180910390fd5b60008173ffffffffffffffffffffffffffffffffffffffff166370a08231336040518263ffffffff1660e01b815260040161152a919061376d565b60206040518083038186803b15801561154257600080fd5b505afa158015611556573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061157a91906130d2565b14156115cb5766470de4df8200003410156115ca576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115c190613811565b60405180910390fd5b5b6115d533836122bc565b82600e600084815260200190815260200160002090805190602001906115fc929190612c3e565b50611607600c6122da565b505050565b6000600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6116a861196d565b73ffffffffffffffffffffffffffffffffffffffff166116c661101f565b73ffffffffffffffffffffffffffffffffffffffff161461171c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161171390613a11565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561178c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161178390613871565b60405180910390fd5b61179581611e79565b50565b6117a061196d565b73ffffffffffffffffffffffffffffffffffffffff166117be61101f565b73ffffffffffffffffffffffffffffffffffffffff1614611814576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161180b90613a11565b60405180910390fd5b60001515600d60009054906101000a900460ff1615151461186a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161186190613a51565b60405180910390fd5b6001600d60006101000a81548160ff021916908315150217905550565b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806118fa57506118f9826122f0565b5b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166003600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600033905090565b816005600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff166119e883610e2d565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000611a3982611901565b611a78576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a6f90613931565b60405180910390fd5b6000611a8383610e2d565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480611af257508373ffffffffffffffffffffffffffffffffffffffff16611ada84610793565b73ffffffffffffffffffffffffffffffffffffffff16145b80611b035750611b02818561160c565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff16611b2c82610e2d565b73ffffffffffffffffffffffffffffffffffffffff1614611b82576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b7990613a31565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611bf2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611be9906138b1565b60405180910390fd5b611bfd8383836123d2565b611c08600082611975565b6001600460008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611c589190613ce2565b925050819055506001600460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611caf9190613c01565b92505081905550816003600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b6000611d7382610e2d565b9050611d81816000846123d2565b611d8c600083611975565b6001600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611ddc9190613ce2565b925050819055506003600083815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905581600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b611f48848484611b0c565b611f54848484846123e2565b611f93576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f8a90613851565b60405180910390fd5b50505050565b6060600082604051602001611fae9190613714565b604051602081830303815290604052905080915050919050565b6060600082511415611feb57604051806020016040528060008152509050612148565b60006040518060600160405280604081526020016148d8604091399050600060036002855161201a9190613c01565b6120249190613c57565b60046120309190613c88565b905060006020826120419190613c01565b67ffffffffffffffff81111561205a57612059613f94565b5b6040519080825280601f01601f19166020018201604052801561208c5781602001600182028036833780820191505090505b509050818152600183018586518101602084015b81831015612107576003830192508251603f8160121c1685015160f81b8252600182019150603f81600c1c1685015160f81b8252600182019150603f8160061c1685015160f81b8252600182019150603f811685015160f81b8252600182019150506120a0565b60038951066001811461212157600281146121315761213c565b613d3d60f01b600283035261213c565b603d60f81b60018303525b50505050508093505050505b919050565b60606000821415612195576040518060400160405280600181526020017f300000000000000000000000000000000000000000000000000000000000000081525090506122a9565b600082905060005b600082146121c75780806121b090613e2f565b915050600a826121c09190613c57565b915061219d565b60008167ffffffffffffffff8111156121e3576121e2613f94565b5b6040519080825280601f01601f1916602001820160405280156122155781602001600182028036833780820191505090505b5090505b600085146122a25760018261222e9190613ce2565b9150600a8561223d9190613e78565b60306122499190613c01565b60f81b81838151811061225f5761225e613f65565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a8561229b9190613c57565b9450612219565b8093505050505b919050565b600081600001549050919050565b6122d6828260405180602001604052806000815250612579565b5050565b6001816000016000828254019250508190555050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806123bb57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806123cb57506123ca826125d4565b5b9050919050565b6123dd83838361263e565b505050565b60006124038473ffffffffffffffffffffffffffffffffffffffff16612752565b1561256c578373ffffffffffffffffffffffffffffffffffffffff1663150b7a0261242c61196d565b8786866040518563ffffffff1660e01b815260040161244e9493929190613788565b602060405180830381600087803b15801561246857600080fd5b505af192505050801561249957506040513d601f19601f82011682018060405250810190612496919061302f565b60015b61251c573d80600081146124c9576040519150601f19603f3d011682016040523d82523d6000602084013e6124ce565b606091505b50600081511415612514576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161250b90613851565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050612571565b600190505b949350505050565b6125838383612765565b61259060008484846123e2565b6125cf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125c690613851565b60405180910390fd5b505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b612649838383612933565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561268c5761268781612938565b6126cb565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16146126ca576126c98382612981565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561270e5761270981612aee565b61274d565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161461274c5761274b8282612bbf565b5b5b505050565b600080823b905060008111915050919050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156127d5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127cc906139d1565b60405180910390fd5b6127de81611901565b1561281e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161281590613891565b60405180910390fd5b61282a600083836123d2565b6001600460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461287a9190613c01565b92505081905550816003600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b505050565b600980549050600a600083815260200190815260200160002081905550600981908060018154018082558091505060019003906000526020600020016000909190919091505550565b6000600161298e84610edf565b6129989190613ce2565b9050600060086000848152602001908152602001600020549050818114612a7d576000600760008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600760008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816008600083815260200190815260200160002081905550505b6008600084815260200190815260200160002060009055600760008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b60006001600980549050612b029190613ce2565b90506000600a6000848152602001908152602001600020549050600060098381548110612b3257612b31613f65565b5b906000526020600020015490508060098381548110612b5457612b53613f65565b5b906000526020600020018190555081600a600083815260200190815260200160002081905550600a6000858152602001908152602001600020600090556009805480612ba357612ba2613f36565b5b6001900381819060005260206000200160009055905550505050565b6000612bca83610edf565b905081600760008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806008600084815260200190815260200160002081905550505050565b828054612c4a90613dcc565b90600052602060002090601f016020900481019282612c6c5760008555612cb3565b82601f10612c8557805160ff1916838001178555612cb3565b82800160010185558215612cb3579182015b82811115612cb2578251825591602001919060010190612c97565b5b509050612cc09190612cc4565b5090565b5b80821115612cdd576000816000905550600101612cc5565b5090565b6000612cf4612cef84613b51565b613b2c565b905082815260208101848484011115612d1057612d0f613fc8565b5b612d1b848285613d8a565b509392505050565b6000612d36612d3184613b82565b613b2c565b905082815260208101848484011115612d5257612d51613fc8565b5b612d5d848285613d8a565b509392505050565b600081359050612d748161487b565b92915050565b600081359050612d8981614892565b92915050565b600081359050612d9e816148a9565b92915050565b600081519050612db3816148a9565b92915050565b600082601f830112612dce57612dcd613fc3565b5b8135612dde848260208601612ce1565b91505092915050565b600082601f830112612dfc57612dfb613fc3565b5b8135612e0c848260208601612d23565b91505092915050565b600081359050612e24816148c0565b92915050565b600081519050612e39816148c0565b92915050565b600060208284031215612e5557612e54613fd2565b5b6000612e6384828501612d65565b91505092915050565b60008060408385031215612e8357612e82613fd2565b5b6000612e9185828601612d65565b9250506020612ea285828601612d65565b9150509250929050565b600080600060608486031215612ec557612ec4613fd2565b5b6000612ed386828701612d65565b9350506020612ee486828701612d65565b9250506040612ef586828701612e15565b9150509250925092565b60008060008060808587031215612f1957612f18613fd2565b5b6000612f2787828801612d65565b9450506020612f3887828801612d65565b9350506040612f4987828801612e15565b925050606085013567ffffffffffffffff811115612f6a57612f69613fcd565b5b612f7687828801612db9565b91505092959194509250565b60008060408385031215612f9957612f98613fd2565b5b6000612fa785828601612d65565b9250506020612fb885828601612d7a565b9150509250929050565b60008060408385031215612fd957612fd8613fd2565b5b6000612fe785828601612d65565b9250506020612ff885828601612e15565b9150509250929050565b60006020828403121561301857613017613fd2565b5b600061302684828501612d8f565b91505092915050565b60006020828403121561304557613044613fd2565b5b600061305384828501612da4565b91505092915050565b60006020828403121561307257613071613fd2565b5b600082013567ffffffffffffffff8111156130905761308f613fcd565b5b61309c84828501612de7565b91505092915050565b6000602082840312156130bb576130ba613fd2565b5b60006130c984828501612e15565b91505092915050565b6000602082840312156130e8576130e7613fd2565b5b60006130f684828501612e2a565b91505092915050565b61310881613d16565b82525050565b61311781613d28565b82525050565b600061312882613bb3565b6131328185613bc9565b9350613142818560208601613d99565b61314b81613fd7565b840191505092915050565b600061316182613bbe565b61316b8185613be5565b935061317b818560208601613d99565b61318481613fd7565b840191505092915050565b600061319a82613bbe565b6131a48185613bf6565b93506131b4818560208601613d99565b80840191505092915050565b60006131cd601783613be5565b91506131d882613fe8565b602082019050919050565b60006131f0602b83613be5565b91506131fb82614011565b604082019050919050565b6000613213603283613be5565b915061321e82614060565b604082019050919050565b6000613236602683613be5565b9150613241826140af565b604082019050919050565b6000613259601c83613be5565b9150613264826140fe565b602082019050919050565b600061327c605083613bf6565b915061328782614127565b605082019050919050565b600061329f602483613be5565b91506132aa8261419c565b604082019050919050565b60006132c2601783613be5565b91506132cd826141eb565b602082019050919050565b60006132e5601983613be5565b91506132f082614214565b602082019050919050565b6000613308600a83613be5565b91506133138261423d565b602082019050919050565b600061332b602c83613be5565b915061333682614266565b604082019050919050565b600061334e603883613be5565b9150613359826142b5565b604082019050919050565b6000613371602a83613be5565b915061337c82614304565b604082019050919050565b6000613394601a83613be5565b915061339f82614353565b602082019050919050565b60006133b7602983613be5565b91506133c28261437c565b604082019050919050565b60006133da601083613bf6565b91506133e5826143cb565b601082019050919050565b60006133fd603d83613bf6565b9150613408826143f4565b603d82019050919050565b6000613420600283613bf6565b915061342b82614443565b600282019050919050565b6000613443600783613bf6565b915061344e8261446c565b600782019050919050565b6000613466605783613bf6565b915061347182614495565b605782019050919050565b6000613489602083613be5565b91506134948261450a565b602082019050919050565b60006134ac602c83613be5565b91506134b782614533565b604082019050919050565b60006134cf602083613be5565b91506134da82614582565b602082019050919050565b60006134f2602983613be5565b91506134fd826145ab565b604082019050919050565b6000613515600e83613be5565b9150613520826145fa565b602082019050919050565b6000613538602183613be5565b915061354382614623565b604082019050919050565b600061355b601d83613bf6565b915061356682614672565b601d82019050919050565b600061357e600083613bda565b91506135898261469b565b600082019050919050565b60006135a1601083613be5565b91506135ac8261469e565b602082019050919050565b60006135c4603183613be5565b91506135cf826146c7565b604082019050919050565b60006135e7602c83613be5565b91506135f282614716565b604082019050919050565b600061360a605e83613bf6565b915061361582614765565b605e82019050919050565b600061362d600683613bf6565b9150613638826147da565b600682019050919050565b6000613650603083613be5565b915061365b82614803565b604082019050919050565b6000613673600783613bf6565b915061367e82614852565b600782019050919050565b61369281613d80565b82525050565b60006136a3826133cd565b91506136af828561318f565b91506136ba8261326f565b91506136c6828461318f565b91506136d182613413565b91508190509392505050565b60006136e88261354e565b91506136f4828461318f565b915081905092915050565b600061370a82613571565b9150819050919050565b600061371f826135fd565b915061372a82613666565b9150613735826133f0565b915061374082613459565b915061374c828461318f565b915061375782613436565b915061376282613620565b915081905092915050565b600060208201905061378260008301846130ff565b92915050565b600060808201905061379d60008301876130ff565b6137aa60208301866130ff565b6137b76040830185613689565b81810360608301526137c9818461311d565b905095945050505050565b60006020820190506137e9600083018461310e565b92915050565b600060208201905081810360008301526138098184613156565b905092915050565b6000602082019050818103600083015261382a816131c0565b9050919050565b6000602082019050818103600083015261384a816131e3565b9050919050565b6000602082019050818103600083015261386a81613206565b9050919050565b6000602082019050818103600083015261388a81613229565b9050919050565b600060208201905081810360008301526138aa8161324c565b9050919050565b600060208201905081810360008301526138ca81613292565b9050919050565b600060208201905081810360008301526138ea816132b5565b9050919050565b6000602082019050818103600083015261390a816132d8565b9050919050565b6000602082019050818103600083015261392a816132fb565b9050919050565b6000602082019050818103600083015261394a8161331e565b9050919050565b6000602082019050818103600083015261396a81613341565b9050919050565b6000602082019050818103600083015261398a81613364565b9050919050565b600060208201905081810360008301526139aa81613387565b9050919050565b600060208201905081810360008301526139ca816133aa565b9050919050565b600060208201905081810360008301526139ea8161347c565b9050919050565b60006020820190508181036000830152613a0a8161349f565b9050919050565b60006020820190508181036000830152613a2a816134c2565b9050919050565b60006020820190508181036000830152613a4a816134e5565b9050919050565b60006020820190508181036000830152613a6a81613508565b9050919050565b60006020820190508181036000830152613a8a8161352b565b9050919050565b60006020820190508181036000830152613aaa81613594565b9050919050565b60006020820190508181036000830152613aca816135b7565b9050919050565b60006020820190508181036000830152613aea816135da565b9050919050565b60006020820190508181036000830152613b0a81613643565b9050919050565b6000602082019050613b266000830184613689565b92915050565b6000613b36613b47565b9050613b428282613dfe565b919050565b6000604051905090565b600067ffffffffffffffff821115613b6c57613b6b613f94565b5b613b7582613fd7565b9050602081019050919050565b600067ffffffffffffffff821115613b9d57613b9c613f94565b5b613ba682613fd7565b9050602081019050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b6000613c0c82613d80565b9150613c1783613d80565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115613c4c57613c4b613ea9565b5b828201905092915050565b6000613c6282613d80565b9150613c6d83613d80565b925082613c7d57613c7c613ed8565b5b828204905092915050565b6000613c9382613d80565b9150613c9e83613d80565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615613cd757613cd6613ea9565b5b828202905092915050565b6000613ced82613d80565b9150613cf883613d80565b925082821015613d0b57613d0a613ea9565b5b828203905092915050565b6000613d2182613d60565b9050919050565b60008115159050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b82818337600083830152505050565b60005b83811015613db7578082015181840152602081019050613d9c565b83811115613dc6576000848401525b50505050565b60006002820490506001821680613de457607f821691505b60208210811415613df857613df7613f07565b5b50919050565b613e0782613fd7565b810181811067ffffffffffffffff82111715613e2657613e25613f94565b5b80604052505050565b6000613e3a82613d80565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415613e6d57613e6c613ea9565b5b600182019050919050565b6000613e8382613d80565b9150613e8e83613d80565b925082613e9e57613e9d613ed8565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f7072696365206973206c6f772c20626964206d6f61722e000000000000000000600082015250565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008201527f74206f6620626f756e6473000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b7f222c20226465736372697074696f6e223a2022412073746f727920777269747460008201527f656e2062792043542e222c2022696d616765223a2022646174613a696d61676560208201527f2f7376672b786d6c3b6261736536342c00000000000000000000000000000000604082015250565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f5365636f6e64205472616e73666572206661696c65642e000000000000000000600082015250565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b7f4e6f74206f70656e656400000000000000000000000000000000000000000000600082015250565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b7f5468652073746f727920697320636f6d706c657465206e6f772e000000000000600082015250565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b7f7b226e616d65223a20224c696e65202300000000000000000000000000000000600082015250565b7f7b202e62617365207b2066696c6c3a20236666663b20666f6e742d66616d696c60008201527f793a2073657269663b20666f6e742d73697a653a2031347078207d207d000000602082015250565b7f227d000000000000000000000000000000000000000000000000000000000000600082015250565b7f3c2f746578743e00000000000000000000000000000000000000000000000000600082015250565b7f3c2f7374796c653e3c726563742077696474683d22313030252220686569676860008201527f743d2231303025222066696c6c3d222330303022202f3e3c7465787420783d2260208201527f31302220793d223230222066696c6c3d2223666666223e000000000000000000604082015250565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960008201527f73206e6f74206f776e0000000000000000000000000000000000000000000000602082015250565b7f416c7265616479206f70656e6564000000000000000000000000000000000000600082015250565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c000000600082015250565b50565b7f5472616e73666572206661696c65642e00000000000000000000000000000000600082015250565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008201527f7574206f6620626f756e64730000000000000000000000000000000000000000602082015250565b7f3c73766720786d6c6e733d22687474703a2f2f77332e6f72672f323030302f7360008201527f766722207072657365727665417370656374526174696f3d22784d696e594d6960208201527f6e206d656574222076696577426f783d223020302035303020353030223e0000604082015250565b7f3c2f7376673e0000000000000000000000000000000000000000000000000000600082015250565b7f4552433732314275726e61626c653a2063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656400000000000000000000000000000000602082015250565b7f3c7374796c653e00000000000000000000000000000000000000000000000000600082015250565b61488481613d16565b811461488f57600080fd5b50565b61489b81613d28565b81146148a657600080fd5b50565b6148b281613d34565b81146148bd57600080fd5b50565b6148c981613d80565b81146148d457600080fd5b5056fe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa2646970667358221220f068b340766eee92ecdff1328403bb11f19fa725fdf63ef3ed249389adc5506664736f6c63430008070033

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

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