ETH Price: $2,308.11 (-0.33%)

Token

Stream Pass (NFTV)
 

Overview

Max Total Supply

434 NFTV

Holders

333

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
1 NFTV
0xc205e43f410cda7ed567e57673c973242b9a04ce
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:
StreamPass

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
Yes with 1000 runs

Other Settings:
default evmVersion
File 1 of 1 : StreamPass.sol
// File @openzeppelin/contracts/utils/introspection/[email protected]
// SPDX-License-Identifier: BSD-3-Clause
pragma solidity ^0.8.17;

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

// File @openzeppelin/contracts/token/ERC721/[email protected]

pragma solidity ^0.8.17;

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

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

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

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

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

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

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

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

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

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

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

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

// File @openzeppelin/contracts/token/ERC721/[email protected]

pragma solidity ^0.8.17;

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


// File @openzeppelin/contracts/token/ERC721/extensions/[email protected]



pragma solidity ^0.8.17;

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

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

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


// File @openzeppelin/contracts/utils/[email protected]



pragma solidity ^0.8.17;

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

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


// File @openzeppelin/contracts/utils/[email protected]



pragma solidity ^0.8.17;

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

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

// File @openzeppelin/contracts/utils/introspection/[email protected]

pragma solidity ^0.8.17;

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

// File contracts/Blimpie/ERC721B.sol

pragma solidity ^0.8.17;

/********************
* @author: Squeebo *
********************/

abstract contract ERC721B is Context, ERC165, IERC721, IERC721Metadata {
    using Address for address;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Mapping from token ID to owner address
    address[] internal _owners;

    // 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");

        uint count = 0;
        uint length = _owners.length;
        for( uint i = 0; i < length; ++i ){
            if( owner == _owners[i] ){
                ++count;
            }
        }

        delete length;
        return count;
    }

    /**
     * @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 {IERC721-approve}.
     */
    function approve(address to, uint256 tokenId) public virtual override {
        address owner = ERC721B.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 {
        require(from != address(0x0), 'invalid from address');
        require(to != address(0x0), 'invalid to address');
        require(tokenId > 0, 'invalid tokenId');
        //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 tokenId < _owners.length && _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 = ERC721B.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);
        _owners.push(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 = ERC721B.ownerOf(tokenId);

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

        // Clear approvals
        _approve(address(0), tokenId);
        _owners[tokenId] = address(0);

        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(ERC721B.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);
        _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(ERC721B.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 {}
}

// File @openzeppelin/contracts/interfaces/[email protected]

pragma solidity ^0.8.17;

/**
 * @dev Interface for the NFT Royalty Standard.
 *
 * A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal
 * support for royalty payments across all NFT marketplaces and ecosystem participants.
 *
 * _Available since v4.5._
 */
interface IERC2981 is IERC165 {
    /**
     * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of
     * exchange. The royalty amount is denominated and should be payed in that same unit of exchange.
     */
    function royaltyInfo(uint256 tokenId, uint256 salePrice)
        external
        view
        returns (address receiver, uint256 royaltyAmount);
}

// File @openzeppelin/contracts/token/common/[email protected]

pragma solidity ^0.8.17;

/**
 * @dev Implementation of the NFT Royalty Standard, a standardized way to retrieve royalty payment information.
 *
 * Royalty information can be specified globally for all token ids via {_setDefaultRoyalty}, and/or individually for
 * specific token ids via {_setTokenRoyalty}. The latter takes precedence over the first.
 *
 * Royalty is specified as a fraction of sale price. {_feeDenominator} is overridable but defaults to 10000, meaning the
 * fee is specified in basis points by default.
 *
 * IMPORTANT: ERC-2981 only specifies a way to signal royalty information and does not enforce its payment. See
 * https://eips.ethereum.org/EIPS/eip-2981#optional-royalty-payments[Rationale] in the EIP. Marketplaces are expected to
 * voluntarily pay royalties together with sales, but note that this standard is not yet widely supported.
 *
 * _Available since v4.5._
 */
abstract contract ERC2981 is IERC2981, ERC165 {
    struct RoyaltyInfo {
        address receiver;
        uint96 royaltyFraction;
    }

    RoyaltyInfo private _defaultRoyaltyInfo;
    mapping(uint256 => RoyaltyInfo) private _tokenRoyaltyInfo;

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

    /**
     * @inheritdoc IERC2981
     */
    function royaltyInfo(uint256 _tokenId, uint256 _salePrice) external view override returns (address, uint256) {
        RoyaltyInfo memory royalty = _tokenRoyaltyInfo[_tokenId];

        if (royalty.receiver == address(0)) {
            royalty = _defaultRoyaltyInfo;
        }

        uint256 royaltyAmount = (_salePrice * royalty.royaltyFraction) / _feeDenominator();

        return (royalty.receiver, royaltyAmount);
    }

    /**
     * @dev The denominator with which to interpret the fee set in {_setTokenRoyalty} and {_setDefaultRoyalty} as a
     * fraction of the sale price. Defaults to 10000 so fees are expressed in basis points, but may be customized by an
     * override.
     */
    function _feeDenominator() internal pure virtual returns (uint96) {
        return 10000;
    }

    /**
     * @dev Sets the royalty information that all ids in this contract will default to.
     *
     * Requirements:
     *
     * - `receiver` cannot be the zero address.
     * - `feeNumerator` cannot be greater than the fee denominator.
     */
    function _setDefaultRoyalty(address receiver, uint96 feeNumerator) internal virtual {
        require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice");
        require(receiver != address(0), "ERC2981: invalid receiver");

        _defaultRoyaltyInfo = RoyaltyInfo(receiver, feeNumerator);
    }

    /**
     * @dev Removes default royalty information.
     */
    function _deleteDefaultRoyalty() internal virtual {
        delete _defaultRoyaltyInfo;
    }

    /**
     * @dev Sets the royalty information for a specific token id, overriding the global default.
     *
     * Requirements:
     *
     * - `tokenId` must be already minted.
     * - `receiver` cannot be the zero address.
     * - `feeNumerator` cannot be greater than the fee denominator.
     */
    function _setTokenRoyalty(
        uint256 tokenId,
        address receiver,
        uint96 feeNumerator
    ) internal virtual {
        require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice");
        require(receiver != address(0), "ERC2981: Invalid parameters");

        _tokenRoyaltyInfo[tokenId] = RoyaltyInfo(receiver, feeNumerator);
    }

    /**
     * @dev Resets royalty information for the token id back to the global default.
     */
    function _resetTokenRoyalty(uint256 tokenId) internal virtual {
        delete _tokenRoyaltyInfo[tokenId];
    }
}

// File @openzeppelin/contracts/token/ERC721/extensions/[email protected]

pragma solidity ^0.8.17;

/**
 * @dev Extension of ERC721 with the ERC2981 NFT Royalty Standard, a standardized way to retrieve royalty payment
 * information.
 *
 * Royalty information can be specified globally for all token ids via {_setDefaultRoyalty}, and/or individually for
 * specific token ids via {_setTokenRoyalty}. The latter takes precedence over the first.
 *
 * IMPORTANT: ERC-2981 only specifies a way to signal royalty information and does not enforce its payment. See
 * https://eips.ethereum.org/EIPS/eip-2981#optional-royalty-payments[Rationale] in the EIP. Marketplaces are expected to
 * voluntarily pay royalties together with sales, but note that this standard is not yet widely supported.
 *
 * _Available since v4.5._
 */
abstract contract ERC721Royalty is ERC2981, ERC721B {
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override(ERC721B, ERC2981) returns (bool) {
        return super.supportsInterface(interfaceId);
    }

    /**
     * @dev See {ERC721-_burn}. This override additionally clears the royalty information for the token.
     */
    function _burn(uint256 tokenId) internal virtual override {
        super._burn(tokenId);
        _resetTokenRoyalty(tokenId);
    }
}

// File @openzeppelin/contracts/utils/cryptography/[email protected]

pragma solidity ^0.8.17;

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

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

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

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

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

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

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

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

        return (signer, RecoverError.NoError);
    }

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

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

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


// File @openzeppelin/contracts/utils/[email protected]



pragma solidity ^0.8.17;

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

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

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

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

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


// File @openzeppelin/contracts/access/[email protected]


pragma solidity ^0.8.17;

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


pragma solidity ^0.8.17;

/*
      StreamPass
* {ERC721Royalty}: A way to signal royalty information following ERC2981.
*/

contract StreamPass is Ownable, ERC721Royalty {

    using Strings for uint256;
    using ECDSA for bytes32;

    uint256 public constant FR_PUBLIC = 9750;
    uint256 public constant FR_GIFT = 250;
    uint256 public constant FR_PER_MINT = 100;
    uint256 public giftedAmount;
    uint256 public FR_PRICE;
    uint256 public PRESALE_LIMIT;

    string public provenance;
    string private _contractURI;
    string private _tokenBaseURI;
    address private _signerAddress = 0x9cfeae92C8A5CDF5d00d91883eDc8E2db9a2FEa7;
    address private _vaultAddress = 0x9cfeae92C8A5CDF5d00d91883eDc8E2db9a2FEa7;

    mapping (address => bool) public approvelist;
    mapping (address => bool) public denylist;

    bool public presaleLive;
    bool public saleLive;

    mapping(address => uint256) public presalerListPurchases;

    constructor() ERC721B("Stream Pass", "NFTV") {
        PRESALE_LIMIT = 1000;
        FR_PRICE = 0.05 ether;
        _tokenBaseURI = "https://sp.rad.live/streampass/";
        setDefaultRoyalty(_vaultAddress, 3000);
    }

    // ** - CORE - ** //

    function buy(uint256 tokenQuantity) external payable {
        require(saleLive, "SALE_CLOSED");
        require(!presaleLive, "ONLY_PRESALE");
        require(tokenQuantity <= FR_PER_MINT, "EXCEED_FR_PER_MINT");
        require(FR_PRICE * tokenQuantity <= msg.value, "INSUFFICIENT_ETH");
        require(!denylist[msg.sender], "NOT_APPROVED_BUYER");

        uint256 supply = _owners.length;
        require(supply + tokenQuantity <= FR_PUBLIC, "EXCEED_MAX_SALE_SUPPLY");
        for(uint256 i = 0; i < tokenQuantity; i++) {
            _mint( msg.sender, supply++);
        }
    }
    
    function setTokenRoyalty(
        uint256 tokenId,
        address recipient,
        uint96 fraction
    ) public {
        _setTokenRoyalty(tokenId, recipient, fraction);
    }

    function setDefaultRoyalty(address recipient, uint96 fraction) public {
        _setDefaultRoyalty(recipient, fraction);
    }
    function deleteDefaultRoyalty() public {
        _deleteDefaultRoyalty();
    }
    
    function presaleBuy(uint256 tokenQuantity) external payable {
        require(!saleLive && presaleLive, "PRESALE_CLOSED");
        require(presalerListPurchases[msg.sender] + tokenQuantity <= FR_PER_MINT, "EXCEED_ALLOC");
        require(tokenQuantity <= FR_PER_MINT, "EXCEED_FR_PER_MINT");
        require(FR_PRICE * tokenQuantity <= msg.value, "INSUFFICIENT_ETH");
        require(!denylist[msg.sender], "NOT_APPROVED_BUYER");

        uint256 supply = _owners.length;
        require(supply + tokenQuantity <= PRESALE_LIMIT, "EXCEED_MAX_PRESALE_SUPPLY");
        presalerListPurchases[msg.sender] += tokenQuantity;
        for (uint256 i = 0; i < tokenQuantity; i++) {
            _mint(msg.sender, supply++);
        }

        if (supply == PRESALE_LIMIT) {
            presaleLive = false;
            saleLive = true;
            FR_PRICE = 0.15 ether;
        }
    }

    // ** - ADMIN - ** //
    function addToDenyList(address _newAddress) external onlyOwner {
        denylist[_newAddress] = true;
    }
    
    function removeFromDenyList(address _address) external onlyOwner {
        denylist[_address] = false;
    }
    
    function addMultipleToApproveList(address[] calldata _addresses) external onlyOwner {
        require(_addresses.length <= 1000, "Provide less addresses in one function call");
        for (uint256 i = 0; i < _addresses.length; i++) {
            approvelist[_addresses[i]] = true;
        }
    }

    function removeMultipleFromApproveList(address[] calldata _addresses) external onlyOwner {
        require(_addresses.length <= 10000, "Provide less addresses in one function call");
        for (uint256 i = 0; i < _addresses.length; i++) {
            approvelist[_addresses[i]] = false;
        }
    }

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

    function gift(address[] calldata receivers) external onlyOwner {
        uint256 supply = _owners.length;

        require(supply + receivers.length <= FR_PUBLIC, "MAX_MINT");
        require(giftedAmount + receivers.length <= FR_GIFT, "NO_GIFTS");

        for (uint256 i = 0; i < receivers.length; i++) {
            giftedAmount++;
            _safeMint(receivers[i], supply++ );
        }
    }

    function togglePresaleStatus() public onlyOwner {
        presaleLive = !presaleLive;
    }

    function toggleSaleStatus() public onlyOwner {
        saleLive = !saleLive;
        if (saleLive) {
            FR_PRICE = 0.15 ether;
        } else {
            FR_PRICE = 0.05 ether;
        }
    }
    // ** - SETTERS - ** //

    function setSignerAddress(address addr) external onlyOwner {
        _signerAddress = addr;
    }

    function setVaultAddress(address addr) external onlyOwner {
        _vaultAddress = addr;
    }

    function setContractURI(string calldata URI) external onlyOwner {
        _contractURI = URI;
    }

    function setBaseURI(string calldata URI) external onlyOwner {
        _tokenBaseURI = URI;
    }

    function setPrice(uint256 amount) external onlyOwner {
        FR_PRICE = amount;
    }

    function setPreSaleLimit(uint256 amount) external onlyOwner {
        PRESALE_LIMIT = amount;
    }

    // ** - MISC - ** //

    function setProvenanceHash(string calldata hash) external onlyOwner {
        provenance = hash;
    }

    function contractURI() public view returns (string memory) {
        return _contractURI;
    }

    function tokenURI(uint256 tokenId) external view virtual override returns (string memory) {
        require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");
        return string(abi.encodePacked(_tokenBaseURI, tokenId.toString()));
    }

    function presalePurchasedCount(address addr) external view returns (uint256) {
        return presalerListPurchases[addr];
    }

    function availableToMint() external view returns (uint256) {
        return FR_PUBLIC - _owners.length;
    }

    function totalSupply() external view returns (uint256) {
        return _owners.length;
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":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":"FR_GIFT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"FR_PER_MINT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"FR_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"FR_PUBLIC","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRESALE_LIMIT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_addresses","type":"address[]"}],"name":"addMultipleToApproveList","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newAddress","type":"address"}],"name":"addToDenyList","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"approvelist","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"availableToMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenQuantity","type":"uint256"}],"name":"buy","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"deleteDefaultRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"denylist","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"receivers","type":"address[]"}],"name":"gift","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"giftedAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenQuantity","type":"uint256"}],"name":"presaleBuy","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"presaleLive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"presalePurchasedCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"presalerListPurchases","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"provenance","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"removeFromDenyList","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_addresses","type":"address[]"}],"name":"removeMultipleFromApproveList","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"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":"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":[],"name":"saleLive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"URI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"URI","type":"string"}],"name":"setContractURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint96","name":"fraction","type":"uint96"}],"name":"setDefaultRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"setPreSaleLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"setPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"hash","type":"string"}],"name":"setProvenanceHash","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"setSignerAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint96","name":"fraction","type":"uint96"}],"name":"setTokenRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"setVaultAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"togglePresaleStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"toggleSaleStatus","outputs":[],"stateMutability":"nonpayable","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"}]

6080604052600e8054739cfeae92c8a5cdf5d00d91883edc8e2db9a2fea76001600160a01b03199182168117909255600f805490911690911790553480156200004757600080fd5b506040518060400160405280600b81526020016a53747265616d205061737360a81b8152506040518060400160405280600481526020016327232a2b60e11b815250620000a36200009d6200013860201b60201c565b6200013c565b6003620000b1838262000346565b506004620000c0828262000346565b50506103e8600a555066b1a2bc2ec5000060095560408051808201909152601f81527f68747470733a2f2f73702e7261642e6c6976652f73747265616d706173732f006020820152600d9062000117908262000346565b50600f5462000132906001600160a01b0316610bb86200018c565b62000412565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6200019882826200019c565b5050565b6127106001600160601b0382161115620002105760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b60648201526084015b60405180910390fd5b6001600160a01b038216620002685760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c696420726563656976657200000000000000604482015260640162000207565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600155565b634e487b7160e01b600052604160045260246000fd5b600181811c90821680620002cc57607f821691505b602082108103620002ed57634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200034157600081815260208120601f850160051c810160208610156200031c5750805b601f850160051c820191505b818110156200033d5782815560010162000328565b5050505b505050565b81516001600160401b03811115620003625762000362620002a1565b6200037a81620003738454620002b7565b84620002f3565b602080601f831160018114620003b25760008415620003995750858301515b600019600386901b1c1916600185901b1785556200033d565b600085815260208120601f198616915b82811015620003e357888601518255948401946001909101908401620003c2565b5085821015620004025787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b61344480620004226000396000f3fe60806040526004361061034a5760003560e01c80636352211e116101bb578063a22cb465116100f7578063c87b56dd11610095578063e8a3d4851161006f578063e8a3d48514610956578063e985e9c51461096b578063f146877a146109b4578063f2fde38b146109ca57600080fd5b8063c87b56dd14610904578063d96a094a14610924578063e081b7811461093757600080fd5b8063abf23f20116100d1578063abf23f201461088f578063b88d4fde146108af578063b903364c146108cf578063c0b30603146108ef57600080fd5b8063a22cb4651461083a578063a68157cd1461085a578063aa1b103f1461087a57600080fd5b806383a9e0491161016457806391b7f5ed1161013e57806391b7f5ed146107b8578063938e3d7b146107d857806395d89b41146107f85780639bf803161461080d57600080fd5b806383a9e0491461076057806385535cc51461077a5780638da5cb5b1461079a57600080fd5b806374601c3c1161019557806374601c3c146107235780637bffb4ce14610738578063815f7bbd1461074d57600080fd5b80636352211e146106ce57806370a08231146106ee578063715018a61461070e57600080fd5b806318160ddd1161028a5780633371bfff1161023357806342842e0e1161020d57806342842e0e1461063857806355f804b3146106585780635944c753146106785780635ce7af1f1461069857600080fd5b80633371bfff146105de5780633ccfd60b1461060e5780633cef98361461062357600080fd5b8063215048cd11610264578063215048cd1461055f57806323b872dd1461057f5780632a55205a1461059f57600080fd5b806318160ddd1461051e5780631aee3f91146105335780631b57190e1461054957600080fd5b8063081812fc116102f75780630f061627116102d15780630f061627146104995780630f7309e8146104c957806310969523146104de578063163e1e61146104fe57600080fd5b8063081812fc14610421578063095ea7b3146104595780630b1f703c1461047957600080fd5b8063049c5c4911610328578063049c5c49146103c6578063051e93dc146103db57806306fdde03146103ff57600080fd5b806301ffc9a71461034f57806304634d8d14610384578063046dc166146103a6575b600080fd5b34801561035b57600080fd5b5061036f61036a366004612cee565b6109ea565b60405190151581526020015b60405180910390f35b34801561039057600080fd5b506103a461039f366004612d4a565b6109fb565b005b3480156103b257600080fd5b506103a46103c1366004612d7d565b610a09565b3480156103d257600080fd5b506103a4610a78565b3480156103e757600080fd5b506103f161261681565b60405190815260200161037b565b34801561040b57600080fd5b50610414610b04565b60405161037b9190612de8565b34801561042d57600080fd5b5061044161043c366004612dfb565b610b96565b6040516001600160a01b03909116815260200161037b565b34801561046557600080fd5b506103a4610474366004612e14565b610c1e565b34801561048557600080fd5b506103a4610494366004612dfb565b610d6d565b3480156104a557600080fd5b5061036f6104b4366004612d7d565b60106020526000908152604090205460ff1681565b3480156104d557600080fd5b50610414610dba565b3480156104ea57600080fd5b506103a46104f9366004612e3e565b610e48565b34801561050a57600080fd5b506103a4610519366004612eb0565b610e9d565b34801561052a57600080fd5b506005546103f1565b34801561053f57600080fd5b506103f1600a5481565b34801561055557600080fd5b506103f160085481565b34801561056b57600080fd5b506103a461057a366004612d7d565b611015565b34801561058b57600080fd5b506103a461059a366004612f13565b61107e565b3480156105ab57600080fd5b506105bf6105ba366004612f4f565b611201565b604080516001600160a01b03909316835260208301919091520161037b565b3480156105ea57600080fd5b5061036f6105f9366004612d7d565b60116020526000908152604090205460ff1681565b34801561061a57600080fd5b506103a46112bc565b34801561062f57600080fd5b506103f1606481565b34801561064457600080fd5b506103a4610653366004612f13565b611340565b34801561066457600080fd5b506103a4610673366004612e3e565b61135b565b34801561068457600080fd5b506103a4610693366004612f71565b6113b0565b3480156106a457600080fd5b506103f16106b3366004612d7d565b6001600160a01b031660009081526013602052604090205490565b3480156106da57600080fd5b506104416106e9366004612dfb565b6113bb565b3480156106fa57600080fd5b506103f1610709366004612d7d565b61145b565b34801561071a57600080fd5b506103a4611540565b34801561072f57600080fd5b506103f1611592565b34801561074457600080fd5b506103a46115a9565b6103a461075b366004612dfb565b611605565b34801561076c57600080fd5b5060125461036f9060ff1681565b34801561078657600080fd5b506103a4610795366004612d7d565b6118c3565b3480156107a657600080fd5b506000546001600160a01b0316610441565b3480156107c457600080fd5b506103a46107d3366004612dfb565b61192d565b3480156107e457600080fd5b506103a46107f3366004612e3e565b61197a565b34801561080457600080fd5b506104146119cf565b34801561081957600080fd5b506103f1610828366004612d7d565b60136020526000908152604090205481565b34801561084657600080fd5b506103a4610855366004612fad565b6119de565b34801561086657600080fd5b506103a4610875366004612eb0565b611aa2565b34801561088657600080fd5b506103a4611bc2565b34801561089b57600080fd5b506103a46108aa366004612eb0565b611bcc565b3480156108bb57600080fd5b506103a46108ca366004612fff565b611cec565b3480156108db57600080fd5b506103a46108ea366004612d7d565b611d74565b3480156108fb57600080fd5b506103f160fa81565b34801561091057600080fd5b5061041461091f366004612dfb565b611de0565b6103a4610932366004612dfb565b611e8f565b34801561094357600080fd5b5060125461036f90610100900460ff1681565b34801561096257600080fd5b506104146120d0565b34801561097757600080fd5b5061036f6109863660046130db565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b3480156109c057600080fd5b506103f160095481565b3480156109d657600080fd5b506103a46109e5366004612d7d565b6120df565b60006109f5826121ac565b92915050565b610a05828261221e565b5050565b6000546001600160a01b03163314610a565760405162461bcd60e51b815260206004820181905260248201526000805160206133ef83398151915260448201526064015b60405180910390fd5b600e80546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b03163314610ac05760405162461bcd60e51b815260206004820181905260248201526000805160206133ef8339815191526044820152606401610a4d565b6012805460ff610100808304821615810261ff0019909316929092179283905591041615610af657670214e8348c4f0000600955565b66b1a2bc2ec500006009555b565b606060038054610b1390613105565b80601f0160208091040260200160405190810160405280929190818152602001828054610b3f90613105565b8015610b8c5780601f10610b6157610100808354040283529160200191610b8c565b820191906000526020600020905b815481529060010190602001808311610b6f57829003601f168201915b5050505050905090565b6000610ba182612325565b610c025760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610a4d565b506000908152600660205260409020546001600160a01b031690565b6000610c29826113bb565b9050806001600160a01b0316836001600160a01b031603610cb25760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152608401610a4d565b336001600160a01b0382161480610cec57506001600160a01b038116600090815260076020908152604080832033845290915290205460ff165b610d5e5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610a4d565b610d68838361236f565b505050565b6000546001600160a01b03163314610db55760405162461bcd60e51b815260206004820181905260248201526000805160206133ef8339815191526044820152606401610a4d565b600a55565b600b8054610dc790613105565b80601f0160208091040260200160405190810160405280929190818152602001828054610df390613105565b8015610e405780601f10610e1557610100808354040283529160200191610e40565b820191906000526020600020905b815481529060010190602001808311610e2357829003601f168201915b505050505081565b6000546001600160a01b03163314610e905760405162461bcd60e51b815260206004820181905260248201526000805160206133ef8339815191526044820152606401610a4d565b600b610d6882848361318d565b6000546001600160a01b03163314610ee55760405162461bcd60e51b815260206004820181905260248201526000805160206133ef8339815191526044820152606401610a4d565b600554612616610ef58383613264565b1115610f435760405162461bcd60e51b815260206004820152600860248201527f4d41585f4d494e540000000000000000000000000000000000000000000000006044820152606401610a4d565b60085460fa90610f54908490613264565b1115610fa25760405162461bcd60e51b815260206004820152600860248201527f4e4f5f47494654530000000000000000000000000000000000000000000000006044820152606401610a4d565b60005b8281101561100f5760088054906000610fbd83613277565b9190505550610ffd848483818110610fd757610fd7613290565b9050602002016020810190610fec9190612d7d565b83610ff681613277565b94506123dd565b8061100781613277565b915050610fa5565b50505050565b6000546001600160a01b0316331461105d5760405162461bcd60e51b815260206004820181905260248201526000805160206133ef8339815191526044820152606401610a4d565b6001600160a01b03166000908152601160205260409020805460ff19169055565b6001600160a01b0383166110d45760405162461bcd60e51b815260206004820152601460248201527f696e76616c69642066726f6d20616464726573730000000000000000000000006044820152606401610a4d565b6001600160a01b03821661112a5760405162461bcd60e51b815260206004820152601260248201527f696e76616c696420746f206164647265737300000000000000000000000000006044820152606401610a4d565b6000811161117a5760405162461bcd60e51b815260206004820152600f60248201527f696e76616c696420746f6b656e496400000000000000000000000000000000006044820152606401610a4d565b61118433826123f7565b6111f65760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610a4d565b610d688383836124e1565b60008281526002602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046bffffffffffffffffffffffff169282019290925282916112805750604080518082019091526001546001600160a01b0381168252600160a01b90046bffffffffffffffffffffffff1660208201525b6020810151600090612710906112a4906bffffffffffffffffffffffff16876132a6565b6112ae91906132d3565b915196919550909350505050565b6000546001600160a01b031633146113045760405162461bcd60e51b815260206004820181905260248201526000805160206133ef8339815191526044820152606401610a4d565b600f546040516001600160a01b03909116904780156108fc02916000818181858888f1935050505015801561133d573d6000803e3d6000fd5b50565b610d6883838360405180602001604052806000815250611cec565b6000546001600160a01b031633146113a35760405162461bcd60e51b815260206004820181905260248201526000805160206133ef8339815191526044820152606401610a4d565b600d610d6882848361318d565b610d68838383612664565b600080600583815481106113d1576113d1613290565b6000918252602090912001546001600160a01b03169050806109f55760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e00000000000000000000000000000000000000000000006064820152608401610a4d565b60006001600160a01b0382166114d95760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f2061646472657373000000000000000000000000000000000000000000006064820152608401610a4d565b600554600090815b8181101561153757600581815481106114fc576114fc613290565b6000918252602090912001546001600160a01b03908116908616036115275761152483613277565b92505b61153081613277565b90506114e1565b50909392505050565b6000546001600160a01b031633146115885760405162461bcd60e51b815260206004820181905260248201526000805160206133ef8339815191526044820152606401610a4d565b610b02600061277c565b6005546000906115a4906126166132e7565b905090565b6000546001600160a01b031633146115f15760405162461bcd60e51b815260206004820181905260248201526000805160206133ef8339815191526044820152606401610a4d565b6012805460ff19811660ff90911615179055565b601254610100900460ff1615801561161f575060125460ff165b61166b5760405162461bcd60e51b815260206004820152600e60248201527f50524553414c455f434c4f5345440000000000000000000000000000000000006044820152606401610a4d565b33600090815260136020526040902054606490611689908390613264565b11156116d75760405162461bcd60e51b815260206004820152600c60248201527f4558434545445f414c4c4f4300000000000000000000000000000000000000006044820152606401610a4d565b60648111156117285760405162461bcd60e51b815260206004820152601260248201527f4558434545445f46525f5045525f4d494e5400000000000000000000000000006044820152606401610a4d565b348160095461173791906132a6565b11156117855760405162461bcd60e51b815260206004820152601060248201527f494e53554646494349454e545f455448000000000000000000000000000000006044820152606401610a4d565b3360009081526011602052604090205460ff16156117e55760405162461bcd60e51b815260206004820152601260248201527f4e4f545f415050524f5645445f425559455200000000000000000000000000006044820152606401610a4d565b600554600a546117f58383613264565b11156118435760405162461bcd60e51b815260206004820152601960248201527f4558434545445f4d41585f50524553414c455f535550504c59000000000000006044820152606401610a4d565b3360009081526013602052604081208054849290611862908490613264565b90915550600090505b8281101561189a57611888338361188181613277565b94506127cc565b8061189281613277565b91505061186b565b50600a548103610a05576012805461ffff1916610100179055670214e8348c4f00006009555050565b6000546001600160a01b0316331461190b5760405162461bcd60e51b815260206004820181905260248201526000805160206133ef8339815191526044820152606401610a4d565b600f80546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b031633146119755760405162461bcd60e51b815260206004820181905260248201526000805160206133ef8339815191526044820152606401610a4d565b600955565b6000546001600160a01b031633146119c25760405162461bcd60e51b815260206004820181905260248201526000805160206133ef8339815191526044820152606401610a4d565b600c610d6882848361318d565b606060048054610b1390613105565b336001600160a01b03831603611a365760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610a4d565b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6000546001600160a01b03163314611aea5760405162461bcd60e51b815260206004820181905260248201526000805160206133ef8339815191526044820152606401610a4d565b6103e8811115611b505760405162461bcd60e51b815260206004820152602b60248201527f50726f76696465206c6573732061646472657373657320696e206f6e6520667560448201526a1b98dd1a5bdb8818d85b1b60aa1b6064820152608401610a4d565b60005b81811015610d6857600160106000858585818110611b7357611b73613290565b9050602002016020810190611b889190612d7d565b6001600160a01b031681526020810191909152604001600020805460ff191691151591909117905580611bba81613277565b915050611b53565b610b026000600155565b6000546001600160a01b03163314611c145760405162461bcd60e51b815260206004820181905260248201526000805160206133ef8339815191526044820152606401610a4d565b612710811115611c7a5760405162461bcd60e51b815260206004820152602b60248201527f50726f76696465206c6573732061646472657373657320696e206f6e6520667560448201526a1b98dd1a5bdb8818d85b1b60aa1b6064820152608401610a4d565b60005b81811015610d6857600060106000858585818110611c9d57611c9d613290565b9050602002016020810190611cb29190612d7d565b6001600160a01b031681526020810191909152604001600020805460ff191691151591909117905580611ce481613277565b915050611c7d565b611cf633836123f7565b611d685760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610a4d565b61100f848484846128f4565b6000546001600160a01b03163314611dbc5760405162461bcd60e51b815260206004820181905260248201526000805160206133ef8339815191526044820152606401610a4d565b6001600160a01b03166000908152601160205260409020805460ff19166001179055565b6060611deb82612325565b611e5d5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e00000000000000000000000000000000006064820152608401610a4d565b600d611e6883612972565b604051602001611e799291906132fa565b6040516020818303038152906040529050919050565b601254610100900460ff16611ee65760405162461bcd60e51b815260206004820152600b60248201527f53414c455f434c4f5345440000000000000000000000000000000000000000006044820152606401610a4d565b60125460ff1615611f395760405162461bcd60e51b815260206004820152600c60248201527f4f4e4c595f50524553414c4500000000000000000000000000000000000000006044820152606401610a4d565b6064811115611f8a5760405162461bcd60e51b815260206004820152601260248201527f4558434545445f46525f5045525f4d494e5400000000000000000000000000006044820152606401610a4d565b3481600954611f9991906132a6565b1115611fe75760405162461bcd60e51b815260206004820152601060248201527f494e53554646494349454e545f455448000000000000000000000000000000006044820152606401610a4d565b3360009081526011602052604090205460ff16156120475760405162461bcd60e51b815260206004820152601260248201527f4e4f545f415050524f5645445f425559455200000000000000000000000000006044820152606401610a4d565b6005546126166120578383613264565b11156120a55760405162461bcd60e51b815260206004820152601660248201527f4558434545445f4d41585f53414c455f535550504c59000000000000000000006044820152606401610a4d565b60005b82811015610d68576120be338361188181613277565b806120c881613277565b9150506120a8565b6060600c8054610b1390613105565b6000546001600160a01b031633146121275760405162461bcd60e51b815260206004820181905260248201526000805160206133ef8339815191526044820152606401610a4d565b6001600160a01b0381166121a35760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610a4d565b61133d8161277c565b60006001600160e01b031982167f80ac58cd00000000000000000000000000000000000000000000000000000000148061220f57506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b806109f557506109f582612aa7565b6127106bffffffffffffffffffffffff821611156122915760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b6064820152608401610a4d565b6001600160a01b0382166122e75760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152606401610a4d565b604080518082019091526001600160a01b039092168083526bffffffffffffffffffffffff9091166020909201829052600160a01b90910217600155565b600554600090821080156109f5575060006001600160a01b03166005838154811061235257612352613290565b6000918252602090912001546001600160a01b0316141592915050565b600081815260066020526040902080546001600160a01b0319166001600160a01b03841690811790915581906123a4826113bb565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b610a05828260405180602001604052806000815250612b0e565b600061240282612325565b6124635760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610a4d565b600061246e836113bb565b9050806001600160a01b0316846001600160a01b031614806124a95750836001600160a01b031661249e84610b96565b6001600160a01b0316145b806124d957506001600160a01b0380821660009081526007602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b03166124f4826113bb565b6001600160a01b0316146125705760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201527f73206e6f74206f776e00000000000000000000000000000000000000000000006064820152608401610a4d565b6001600160a01b0382166125eb5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610a4d565b6125f660008261236f565b816005828154811061260a5761260a613290565b6000918252602082200180546001600160a01b0319166001600160a01b03938416179055604051839285811692908716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9190a4505050565b6127106bffffffffffffffffffffffff821611156126d75760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b6064820152608401610a4d565b6001600160a01b03821661272d5760405162461bcd60e51b815260206004820152601b60248201527f455243323938313a20496e76616c696420706172616d657465727300000000006044820152606401610a4d565b6040805180820182526001600160a01b0393841681526bffffffffffffffffffffffff92831660208083019182526000968752600290529190942093519051909116600160a01b029116179055565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b0382166128225760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610a4d565b61282b81612325565b156128785760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610a4d565b6005805460018101825560009182527f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db00180546001600160a01b0319166001600160a01b0385169081179091556040518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6128ff8484846124e1565b61290b84848484612b8c565b61100f5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610a4d565b6060816000036129b557505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b81156129df57806129c981613277565b91506129d89050600a836132d3565b91506129b9565b60008167ffffffffffffffff8111156129fa576129fa612fe9565b6040519080825280601f01601f191660200182016040528015612a24576020820181803683370190505b5090505b84156124d957612a396001836132e7565b9150612a46600a86613381565b612a51906030613264565b60f81b818381518110612a6657612a66613290565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350612aa0600a866132d3565b9450612a28565b60006001600160e01b031982167f2a55205a0000000000000000000000000000000000000000000000000000000014806109f557507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b03198316146109f5565b612b1883836127cc565b612b256000848484612b8c565b610d685760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610a4d565b60006001600160a01b0384163b15612ccd57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612bd0903390899088908890600401613395565b6020604051808303816000875af1925050508015612c0b575060408051601f3d908101601f19168201909252612c08918101906133d1565b60015b612cb3573d808015612c39576040519150601f19603f3d011682016040523d82523d6000602084013e612c3e565b606091505b508051600003612cab5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610a4d565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506124d9565b506001949350505050565b6001600160e01b03198116811461133d57600080fd5b600060208284031215612d0057600080fd5b8135612d0b81612cd8565b9392505050565b80356001600160a01b0381168114612d2957600080fd5b919050565b80356bffffffffffffffffffffffff81168114612d2957600080fd5b60008060408385031215612d5d57600080fd5b612d6683612d12565b9150612d7460208401612d2e565b90509250929050565b600060208284031215612d8f57600080fd5b612d0b82612d12565b60005b83811015612db3578181015183820152602001612d9b565b50506000910152565b60008151808452612dd4816020860160208601612d98565b601f01601f19169290920160200192915050565b602081526000612d0b6020830184612dbc565b600060208284031215612e0d57600080fd5b5035919050565b60008060408385031215612e2757600080fd5b612e3083612d12565b946020939093013593505050565b60008060208385031215612e5157600080fd5b823567ffffffffffffffff80821115612e6957600080fd5b818501915085601f830112612e7d57600080fd5b813581811115612e8c57600080fd5b866020828501011115612e9e57600080fd5b60209290920196919550909350505050565b60008060208385031215612ec357600080fd5b823567ffffffffffffffff80821115612edb57600080fd5b818501915085601f830112612eef57600080fd5b813581811115612efe57600080fd5b8660208260051b8501011115612e9e57600080fd5b600080600060608486031215612f2857600080fd5b612f3184612d12565b9250612f3f60208501612d12565b9150604084013590509250925092565b60008060408385031215612f6257600080fd5b50508035926020909101359150565b600080600060608486031215612f8657600080fd5b83359250612f9660208501612d12565b9150612fa460408501612d2e565b90509250925092565b60008060408385031215612fc057600080fd5b612fc983612d12565b915060208301358015158114612fde57600080fd5b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b6000806000806080858703121561301557600080fd5b61301e85612d12565b935061302c60208601612d12565b925060408501359150606085013567ffffffffffffffff8082111561305057600080fd5b818701915087601f83011261306457600080fd5b81358181111561307657613076612fe9565b604051601f8201601f19908116603f0116810190838211818310171561309e5761309e612fe9565b816040528281528a60208487010111156130b757600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b600080604083850312156130ee57600080fd5b6130f783612d12565b9150612d7460208401612d12565b600181811c9082168061311957607f821691505b60208210810361313957634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115610d6857600081815260208120601f850160051c810160208610156131665750805b601f850160051c820191505b8181101561318557828155600101613172565b505050505050565b67ffffffffffffffff8311156131a5576131a5612fe9565b6131b9836131b38354613105565b8361313f565b6000601f8411600181146131ed57600085156131d55750838201355b600019600387901b1c1916600186901b178355613247565b600083815260209020601f19861690835b8281101561321e57868501358255602094850194600190920191016131fe565b508682101561323b5760001960f88860031b161c19848701351681555b505060018560011b0183555b5050505050565b634e487b7160e01b600052601160045260246000fd5b808201808211156109f5576109f561324e565b6000600182016132895761328961324e565b5060010190565b634e487b7160e01b600052603260045260246000fd5b80820281158282048414176109f5576109f561324e565b634e487b7160e01b600052601260045260246000fd5b6000826132e2576132e26132bd565b500490565b818103818111156109f5576109f561324e565b600080845461330881613105565b60018281168015613320576001811461333557613364565b60ff1984168752821515830287019450613364565b8860005260208060002060005b8581101561335b5781548a820152908401908201613342565b50505082870194505b505050508351613378818360208801612d98565b01949350505050565b600082613390576133906132bd565b500690565b60006001600160a01b038087168352808616602084015250836040830152608060608301526133c76080830184612dbc565b9695505050505050565b6000602082840312156133e357600080fd5b8151612d0b81612cd856fe4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a264697066735822122021782ad9ed9e4c598b37bcf6fbc5106503bad897c1f9f3709d5cef0fe924430664736f6c63430008110033

Deployed Bytecode

0x60806040526004361061034a5760003560e01c80636352211e116101bb578063a22cb465116100f7578063c87b56dd11610095578063e8a3d4851161006f578063e8a3d48514610956578063e985e9c51461096b578063f146877a146109b4578063f2fde38b146109ca57600080fd5b8063c87b56dd14610904578063d96a094a14610924578063e081b7811461093757600080fd5b8063abf23f20116100d1578063abf23f201461088f578063b88d4fde146108af578063b903364c146108cf578063c0b30603146108ef57600080fd5b8063a22cb4651461083a578063a68157cd1461085a578063aa1b103f1461087a57600080fd5b806383a9e0491161016457806391b7f5ed1161013e57806391b7f5ed146107b8578063938e3d7b146107d857806395d89b41146107f85780639bf803161461080d57600080fd5b806383a9e0491461076057806385535cc51461077a5780638da5cb5b1461079a57600080fd5b806374601c3c1161019557806374601c3c146107235780637bffb4ce14610738578063815f7bbd1461074d57600080fd5b80636352211e146106ce57806370a08231146106ee578063715018a61461070e57600080fd5b806318160ddd1161028a5780633371bfff1161023357806342842e0e1161020d57806342842e0e1461063857806355f804b3146106585780635944c753146106785780635ce7af1f1461069857600080fd5b80633371bfff146105de5780633ccfd60b1461060e5780633cef98361461062357600080fd5b8063215048cd11610264578063215048cd1461055f57806323b872dd1461057f5780632a55205a1461059f57600080fd5b806318160ddd1461051e5780631aee3f91146105335780631b57190e1461054957600080fd5b8063081812fc116102f75780630f061627116102d15780630f061627146104995780630f7309e8146104c957806310969523146104de578063163e1e61146104fe57600080fd5b8063081812fc14610421578063095ea7b3146104595780630b1f703c1461047957600080fd5b8063049c5c4911610328578063049c5c49146103c6578063051e93dc146103db57806306fdde03146103ff57600080fd5b806301ffc9a71461034f57806304634d8d14610384578063046dc166146103a6575b600080fd5b34801561035b57600080fd5b5061036f61036a366004612cee565b6109ea565b60405190151581526020015b60405180910390f35b34801561039057600080fd5b506103a461039f366004612d4a565b6109fb565b005b3480156103b257600080fd5b506103a46103c1366004612d7d565b610a09565b3480156103d257600080fd5b506103a4610a78565b3480156103e757600080fd5b506103f161261681565b60405190815260200161037b565b34801561040b57600080fd5b50610414610b04565b60405161037b9190612de8565b34801561042d57600080fd5b5061044161043c366004612dfb565b610b96565b6040516001600160a01b03909116815260200161037b565b34801561046557600080fd5b506103a4610474366004612e14565b610c1e565b34801561048557600080fd5b506103a4610494366004612dfb565b610d6d565b3480156104a557600080fd5b5061036f6104b4366004612d7d565b60106020526000908152604090205460ff1681565b3480156104d557600080fd5b50610414610dba565b3480156104ea57600080fd5b506103a46104f9366004612e3e565b610e48565b34801561050a57600080fd5b506103a4610519366004612eb0565b610e9d565b34801561052a57600080fd5b506005546103f1565b34801561053f57600080fd5b506103f1600a5481565b34801561055557600080fd5b506103f160085481565b34801561056b57600080fd5b506103a461057a366004612d7d565b611015565b34801561058b57600080fd5b506103a461059a366004612f13565b61107e565b3480156105ab57600080fd5b506105bf6105ba366004612f4f565b611201565b604080516001600160a01b03909316835260208301919091520161037b565b3480156105ea57600080fd5b5061036f6105f9366004612d7d565b60116020526000908152604090205460ff1681565b34801561061a57600080fd5b506103a46112bc565b34801561062f57600080fd5b506103f1606481565b34801561064457600080fd5b506103a4610653366004612f13565b611340565b34801561066457600080fd5b506103a4610673366004612e3e565b61135b565b34801561068457600080fd5b506103a4610693366004612f71565b6113b0565b3480156106a457600080fd5b506103f16106b3366004612d7d565b6001600160a01b031660009081526013602052604090205490565b3480156106da57600080fd5b506104416106e9366004612dfb565b6113bb565b3480156106fa57600080fd5b506103f1610709366004612d7d565b61145b565b34801561071a57600080fd5b506103a4611540565b34801561072f57600080fd5b506103f1611592565b34801561074457600080fd5b506103a46115a9565b6103a461075b366004612dfb565b611605565b34801561076c57600080fd5b5060125461036f9060ff1681565b34801561078657600080fd5b506103a4610795366004612d7d565b6118c3565b3480156107a657600080fd5b506000546001600160a01b0316610441565b3480156107c457600080fd5b506103a46107d3366004612dfb565b61192d565b3480156107e457600080fd5b506103a46107f3366004612e3e565b61197a565b34801561080457600080fd5b506104146119cf565b34801561081957600080fd5b506103f1610828366004612d7d565b60136020526000908152604090205481565b34801561084657600080fd5b506103a4610855366004612fad565b6119de565b34801561086657600080fd5b506103a4610875366004612eb0565b611aa2565b34801561088657600080fd5b506103a4611bc2565b34801561089b57600080fd5b506103a46108aa366004612eb0565b611bcc565b3480156108bb57600080fd5b506103a46108ca366004612fff565b611cec565b3480156108db57600080fd5b506103a46108ea366004612d7d565b611d74565b3480156108fb57600080fd5b506103f160fa81565b34801561091057600080fd5b5061041461091f366004612dfb565b611de0565b6103a4610932366004612dfb565b611e8f565b34801561094357600080fd5b5060125461036f90610100900460ff1681565b34801561096257600080fd5b506104146120d0565b34801561097757600080fd5b5061036f6109863660046130db565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b3480156109c057600080fd5b506103f160095481565b3480156109d657600080fd5b506103a46109e5366004612d7d565b6120df565b60006109f5826121ac565b92915050565b610a05828261221e565b5050565b6000546001600160a01b03163314610a565760405162461bcd60e51b815260206004820181905260248201526000805160206133ef83398151915260448201526064015b60405180910390fd5b600e80546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b03163314610ac05760405162461bcd60e51b815260206004820181905260248201526000805160206133ef8339815191526044820152606401610a4d565b6012805460ff610100808304821615810261ff0019909316929092179283905591041615610af657670214e8348c4f0000600955565b66b1a2bc2ec500006009555b565b606060038054610b1390613105565b80601f0160208091040260200160405190810160405280929190818152602001828054610b3f90613105565b8015610b8c5780601f10610b6157610100808354040283529160200191610b8c565b820191906000526020600020905b815481529060010190602001808311610b6f57829003601f168201915b5050505050905090565b6000610ba182612325565b610c025760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610a4d565b506000908152600660205260409020546001600160a01b031690565b6000610c29826113bb565b9050806001600160a01b0316836001600160a01b031603610cb25760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152608401610a4d565b336001600160a01b0382161480610cec57506001600160a01b038116600090815260076020908152604080832033845290915290205460ff165b610d5e5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610a4d565b610d68838361236f565b505050565b6000546001600160a01b03163314610db55760405162461bcd60e51b815260206004820181905260248201526000805160206133ef8339815191526044820152606401610a4d565b600a55565b600b8054610dc790613105565b80601f0160208091040260200160405190810160405280929190818152602001828054610df390613105565b8015610e405780601f10610e1557610100808354040283529160200191610e40565b820191906000526020600020905b815481529060010190602001808311610e2357829003601f168201915b505050505081565b6000546001600160a01b03163314610e905760405162461bcd60e51b815260206004820181905260248201526000805160206133ef8339815191526044820152606401610a4d565b600b610d6882848361318d565b6000546001600160a01b03163314610ee55760405162461bcd60e51b815260206004820181905260248201526000805160206133ef8339815191526044820152606401610a4d565b600554612616610ef58383613264565b1115610f435760405162461bcd60e51b815260206004820152600860248201527f4d41585f4d494e540000000000000000000000000000000000000000000000006044820152606401610a4d565b60085460fa90610f54908490613264565b1115610fa25760405162461bcd60e51b815260206004820152600860248201527f4e4f5f47494654530000000000000000000000000000000000000000000000006044820152606401610a4d565b60005b8281101561100f5760088054906000610fbd83613277565b9190505550610ffd848483818110610fd757610fd7613290565b9050602002016020810190610fec9190612d7d565b83610ff681613277565b94506123dd565b8061100781613277565b915050610fa5565b50505050565b6000546001600160a01b0316331461105d5760405162461bcd60e51b815260206004820181905260248201526000805160206133ef8339815191526044820152606401610a4d565b6001600160a01b03166000908152601160205260409020805460ff19169055565b6001600160a01b0383166110d45760405162461bcd60e51b815260206004820152601460248201527f696e76616c69642066726f6d20616464726573730000000000000000000000006044820152606401610a4d565b6001600160a01b03821661112a5760405162461bcd60e51b815260206004820152601260248201527f696e76616c696420746f206164647265737300000000000000000000000000006044820152606401610a4d565b6000811161117a5760405162461bcd60e51b815260206004820152600f60248201527f696e76616c696420746f6b656e496400000000000000000000000000000000006044820152606401610a4d565b61118433826123f7565b6111f65760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610a4d565b610d688383836124e1565b60008281526002602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046bffffffffffffffffffffffff169282019290925282916112805750604080518082019091526001546001600160a01b0381168252600160a01b90046bffffffffffffffffffffffff1660208201525b6020810151600090612710906112a4906bffffffffffffffffffffffff16876132a6565b6112ae91906132d3565b915196919550909350505050565b6000546001600160a01b031633146113045760405162461bcd60e51b815260206004820181905260248201526000805160206133ef8339815191526044820152606401610a4d565b600f546040516001600160a01b03909116904780156108fc02916000818181858888f1935050505015801561133d573d6000803e3d6000fd5b50565b610d6883838360405180602001604052806000815250611cec565b6000546001600160a01b031633146113a35760405162461bcd60e51b815260206004820181905260248201526000805160206133ef8339815191526044820152606401610a4d565b600d610d6882848361318d565b610d68838383612664565b600080600583815481106113d1576113d1613290565b6000918252602090912001546001600160a01b03169050806109f55760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e00000000000000000000000000000000000000000000006064820152608401610a4d565b60006001600160a01b0382166114d95760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f2061646472657373000000000000000000000000000000000000000000006064820152608401610a4d565b600554600090815b8181101561153757600581815481106114fc576114fc613290565b6000918252602090912001546001600160a01b03908116908616036115275761152483613277565b92505b61153081613277565b90506114e1565b50909392505050565b6000546001600160a01b031633146115885760405162461bcd60e51b815260206004820181905260248201526000805160206133ef8339815191526044820152606401610a4d565b610b02600061277c565b6005546000906115a4906126166132e7565b905090565b6000546001600160a01b031633146115f15760405162461bcd60e51b815260206004820181905260248201526000805160206133ef8339815191526044820152606401610a4d565b6012805460ff19811660ff90911615179055565b601254610100900460ff1615801561161f575060125460ff165b61166b5760405162461bcd60e51b815260206004820152600e60248201527f50524553414c455f434c4f5345440000000000000000000000000000000000006044820152606401610a4d565b33600090815260136020526040902054606490611689908390613264565b11156116d75760405162461bcd60e51b815260206004820152600c60248201527f4558434545445f414c4c4f4300000000000000000000000000000000000000006044820152606401610a4d565b60648111156117285760405162461bcd60e51b815260206004820152601260248201527f4558434545445f46525f5045525f4d494e5400000000000000000000000000006044820152606401610a4d565b348160095461173791906132a6565b11156117855760405162461bcd60e51b815260206004820152601060248201527f494e53554646494349454e545f455448000000000000000000000000000000006044820152606401610a4d565b3360009081526011602052604090205460ff16156117e55760405162461bcd60e51b815260206004820152601260248201527f4e4f545f415050524f5645445f425559455200000000000000000000000000006044820152606401610a4d565b600554600a546117f58383613264565b11156118435760405162461bcd60e51b815260206004820152601960248201527f4558434545445f4d41585f50524553414c455f535550504c59000000000000006044820152606401610a4d565b3360009081526013602052604081208054849290611862908490613264565b90915550600090505b8281101561189a57611888338361188181613277565b94506127cc565b8061189281613277565b91505061186b565b50600a548103610a05576012805461ffff1916610100179055670214e8348c4f00006009555050565b6000546001600160a01b0316331461190b5760405162461bcd60e51b815260206004820181905260248201526000805160206133ef8339815191526044820152606401610a4d565b600f80546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b031633146119755760405162461bcd60e51b815260206004820181905260248201526000805160206133ef8339815191526044820152606401610a4d565b600955565b6000546001600160a01b031633146119c25760405162461bcd60e51b815260206004820181905260248201526000805160206133ef8339815191526044820152606401610a4d565b600c610d6882848361318d565b606060048054610b1390613105565b336001600160a01b03831603611a365760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610a4d565b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6000546001600160a01b03163314611aea5760405162461bcd60e51b815260206004820181905260248201526000805160206133ef8339815191526044820152606401610a4d565b6103e8811115611b505760405162461bcd60e51b815260206004820152602b60248201527f50726f76696465206c6573732061646472657373657320696e206f6e6520667560448201526a1b98dd1a5bdb8818d85b1b60aa1b6064820152608401610a4d565b60005b81811015610d6857600160106000858585818110611b7357611b73613290565b9050602002016020810190611b889190612d7d565b6001600160a01b031681526020810191909152604001600020805460ff191691151591909117905580611bba81613277565b915050611b53565b610b026000600155565b6000546001600160a01b03163314611c145760405162461bcd60e51b815260206004820181905260248201526000805160206133ef8339815191526044820152606401610a4d565b612710811115611c7a5760405162461bcd60e51b815260206004820152602b60248201527f50726f76696465206c6573732061646472657373657320696e206f6e6520667560448201526a1b98dd1a5bdb8818d85b1b60aa1b6064820152608401610a4d565b60005b81811015610d6857600060106000858585818110611c9d57611c9d613290565b9050602002016020810190611cb29190612d7d565b6001600160a01b031681526020810191909152604001600020805460ff191691151591909117905580611ce481613277565b915050611c7d565b611cf633836123f7565b611d685760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610a4d565b61100f848484846128f4565b6000546001600160a01b03163314611dbc5760405162461bcd60e51b815260206004820181905260248201526000805160206133ef8339815191526044820152606401610a4d565b6001600160a01b03166000908152601160205260409020805460ff19166001179055565b6060611deb82612325565b611e5d5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e00000000000000000000000000000000006064820152608401610a4d565b600d611e6883612972565b604051602001611e799291906132fa565b6040516020818303038152906040529050919050565b601254610100900460ff16611ee65760405162461bcd60e51b815260206004820152600b60248201527f53414c455f434c4f5345440000000000000000000000000000000000000000006044820152606401610a4d565b60125460ff1615611f395760405162461bcd60e51b815260206004820152600c60248201527f4f4e4c595f50524553414c4500000000000000000000000000000000000000006044820152606401610a4d565b6064811115611f8a5760405162461bcd60e51b815260206004820152601260248201527f4558434545445f46525f5045525f4d494e5400000000000000000000000000006044820152606401610a4d565b3481600954611f9991906132a6565b1115611fe75760405162461bcd60e51b815260206004820152601060248201527f494e53554646494349454e545f455448000000000000000000000000000000006044820152606401610a4d565b3360009081526011602052604090205460ff16156120475760405162461bcd60e51b815260206004820152601260248201527f4e4f545f415050524f5645445f425559455200000000000000000000000000006044820152606401610a4d565b6005546126166120578383613264565b11156120a55760405162461bcd60e51b815260206004820152601660248201527f4558434545445f4d41585f53414c455f535550504c59000000000000000000006044820152606401610a4d565b60005b82811015610d68576120be338361188181613277565b806120c881613277565b9150506120a8565b6060600c8054610b1390613105565b6000546001600160a01b031633146121275760405162461bcd60e51b815260206004820181905260248201526000805160206133ef8339815191526044820152606401610a4d565b6001600160a01b0381166121a35760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610a4d565b61133d8161277c565b60006001600160e01b031982167f80ac58cd00000000000000000000000000000000000000000000000000000000148061220f57506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b806109f557506109f582612aa7565b6127106bffffffffffffffffffffffff821611156122915760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b6064820152608401610a4d565b6001600160a01b0382166122e75760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152606401610a4d565b604080518082019091526001600160a01b039092168083526bffffffffffffffffffffffff9091166020909201829052600160a01b90910217600155565b600554600090821080156109f5575060006001600160a01b03166005838154811061235257612352613290565b6000918252602090912001546001600160a01b0316141592915050565b600081815260066020526040902080546001600160a01b0319166001600160a01b03841690811790915581906123a4826113bb565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b610a05828260405180602001604052806000815250612b0e565b600061240282612325565b6124635760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610a4d565b600061246e836113bb565b9050806001600160a01b0316846001600160a01b031614806124a95750836001600160a01b031661249e84610b96565b6001600160a01b0316145b806124d957506001600160a01b0380821660009081526007602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b03166124f4826113bb565b6001600160a01b0316146125705760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201527f73206e6f74206f776e00000000000000000000000000000000000000000000006064820152608401610a4d565b6001600160a01b0382166125eb5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610a4d565b6125f660008261236f565b816005828154811061260a5761260a613290565b6000918252602082200180546001600160a01b0319166001600160a01b03938416179055604051839285811692908716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9190a4505050565b6127106bffffffffffffffffffffffff821611156126d75760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b6064820152608401610a4d565b6001600160a01b03821661272d5760405162461bcd60e51b815260206004820152601b60248201527f455243323938313a20496e76616c696420706172616d657465727300000000006044820152606401610a4d565b6040805180820182526001600160a01b0393841681526bffffffffffffffffffffffff92831660208083019182526000968752600290529190942093519051909116600160a01b029116179055565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b0382166128225760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610a4d565b61282b81612325565b156128785760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610a4d565b6005805460018101825560009182527f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db00180546001600160a01b0319166001600160a01b0385169081179091556040518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6128ff8484846124e1565b61290b84848484612b8c565b61100f5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610a4d565b6060816000036129b557505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b81156129df57806129c981613277565b91506129d89050600a836132d3565b91506129b9565b60008167ffffffffffffffff8111156129fa576129fa612fe9565b6040519080825280601f01601f191660200182016040528015612a24576020820181803683370190505b5090505b84156124d957612a396001836132e7565b9150612a46600a86613381565b612a51906030613264565b60f81b818381518110612a6657612a66613290565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350612aa0600a866132d3565b9450612a28565b60006001600160e01b031982167f2a55205a0000000000000000000000000000000000000000000000000000000014806109f557507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b03198316146109f5565b612b1883836127cc565b612b256000848484612b8c565b610d685760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610a4d565b60006001600160a01b0384163b15612ccd57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612bd0903390899088908890600401613395565b6020604051808303816000875af1925050508015612c0b575060408051601f3d908101601f19168201909252612c08918101906133d1565b60015b612cb3573d808015612c39576040519150601f19603f3d011682016040523d82523d6000602084013e612c3e565b606091505b508051600003612cab5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610a4d565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506124d9565b506001949350505050565b6001600160e01b03198116811461133d57600080fd5b600060208284031215612d0057600080fd5b8135612d0b81612cd8565b9392505050565b80356001600160a01b0381168114612d2957600080fd5b919050565b80356bffffffffffffffffffffffff81168114612d2957600080fd5b60008060408385031215612d5d57600080fd5b612d6683612d12565b9150612d7460208401612d2e565b90509250929050565b600060208284031215612d8f57600080fd5b612d0b82612d12565b60005b83811015612db3578181015183820152602001612d9b565b50506000910152565b60008151808452612dd4816020860160208601612d98565b601f01601f19169290920160200192915050565b602081526000612d0b6020830184612dbc565b600060208284031215612e0d57600080fd5b5035919050565b60008060408385031215612e2757600080fd5b612e3083612d12565b946020939093013593505050565b60008060208385031215612e5157600080fd5b823567ffffffffffffffff80821115612e6957600080fd5b818501915085601f830112612e7d57600080fd5b813581811115612e8c57600080fd5b866020828501011115612e9e57600080fd5b60209290920196919550909350505050565b60008060208385031215612ec357600080fd5b823567ffffffffffffffff80821115612edb57600080fd5b818501915085601f830112612eef57600080fd5b813581811115612efe57600080fd5b8660208260051b8501011115612e9e57600080fd5b600080600060608486031215612f2857600080fd5b612f3184612d12565b9250612f3f60208501612d12565b9150604084013590509250925092565b60008060408385031215612f6257600080fd5b50508035926020909101359150565b600080600060608486031215612f8657600080fd5b83359250612f9660208501612d12565b9150612fa460408501612d2e565b90509250925092565b60008060408385031215612fc057600080fd5b612fc983612d12565b915060208301358015158114612fde57600080fd5b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b6000806000806080858703121561301557600080fd5b61301e85612d12565b935061302c60208601612d12565b925060408501359150606085013567ffffffffffffffff8082111561305057600080fd5b818701915087601f83011261306457600080fd5b81358181111561307657613076612fe9565b604051601f8201601f19908116603f0116810190838211818310171561309e5761309e612fe9565b816040528281528a60208487010111156130b757600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b600080604083850312156130ee57600080fd5b6130f783612d12565b9150612d7460208401612d12565b600181811c9082168061311957607f821691505b60208210810361313957634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115610d6857600081815260208120601f850160051c810160208610156131665750805b601f850160051c820191505b8181101561318557828155600101613172565b505050505050565b67ffffffffffffffff8311156131a5576131a5612fe9565b6131b9836131b38354613105565b8361313f565b6000601f8411600181146131ed57600085156131d55750838201355b600019600387901b1c1916600186901b178355613247565b600083815260209020601f19861690835b8281101561321e57868501358255602094850194600190920191016131fe565b508682101561323b5760001960f88860031b161c19848701351681555b505060018560011b0183555b5050505050565b634e487b7160e01b600052601160045260246000fd5b808201808211156109f5576109f561324e565b6000600182016132895761328961324e565b5060010190565b634e487b7160e01b600052603260045260246000fd5b80820281158282048414176109f5576109f561324e565b634e487b7160e01b600052601260045260246000fd5b6000826132e2576132e26132bd565b500490565b818103818111156109f5576109f561324e565b600080845461330881613105565b60018281168015613320576001811461333557613364565b60ff1984168752821515830287019450613364565b8860005260208060002060005b8581101561335b5781548a820152908401908201613342565b50505082870194505b505050508351613378818360208801612d98565b01949350505050565b600082613390576133906132bd565b500690565b60006001600160a01b038087168352808616602084015250836040830152608060608301526133c76080830184612dbc565b9695505050505050565b6000602082840312156133e357600080fd5b8151612d0b81612cd856fe4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a264697066735822122021782ad9ed9e4c598b37bcf6fbc5106503bad897c1f9f3709d5cef0fe924430664736f6c63430008110033

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.