ETH Price: $3,476.14 (+6.00%)
Gas: 11 Gwei

Token

Hro DC (HroDC)
 

Overview

Max Total Supply

0 HroDC

Holders

167

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
Wormhole: NFT Bridge
Balance
1 HroDC
0x6FFd7EdE62328b3Af38FCD61461Bbfc52F5651fE
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:
HroToken

Compiler Version
v0.8.11+commit.d7f03943

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 17 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

File 2 of 17 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (interfaces/IERC165.sol)

pragma solidity ^0.8.0;

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

File 3 of 17 : IERC2981.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (interfaces/IERC2981.sol)

pragma solidity ^0.8.0;

import "./IERC165.sol";

/**
 * @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 4 of 17 : Pausable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/Pausable.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev Contract module which allows children to implement an emergency stop
 * mechanism that can be triggered by an authorized account.
 *
 * This module is used through inheritance. It will make available the
 * modifiers `whenNotPaused` and `whenPaused`, which can be applied to
 * the functions of your contract. Note that they will not be pausable by
 * simply including this module, only once the modifiers are put in place.
 */
abstract contract Pausable is Context {
    /**
     * @dev Emitted when the pause is triggered by `account`.
     */
    event Paused(address account);

    /**
     * @dev Emitted when the pause is lifted by `account`.
     */
    event Unpaused(address account);

    bool private _paused;

    /**
     * @dev Initializes the contract in unpaused state.
     */
    constructor() {
        _paused = false;
    }

    /**
     * @dev Returns true if the contract is paused, and false otherwise.
     */
    function paused() public view virtual returns (bool) {
        return _paused;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is not paused.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    modifier whenNotPaused() {
        require(!paused(), "Pausable: paused");
        _;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is paused.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    modifier whenPaused() {
        require(paused(), "Pausable: not paused");
        _;
    }

    /**
     * @dev Triggers stopped state.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    function _pause() internal virtual whenNotPaused {
        _paused = true;
        emit Paused(_msgSender());
    }

    /**
     * @dev Returns to normal state.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    function _unpause() internal virtual whenPaused {
        _paused = false;
        emit Unpaused(_msgSender());
    }
}

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

pragma solidity ^0.8.0;

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

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

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

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

        _transfer(from, to, tokenId);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfer(from, to, tokenId);

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

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

        emit Transfer(from, to, tokenId);

        _afterTokenTransfer(from, to, tokenId);
    }

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

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

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

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

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

File 6 of 17 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

File 7 of 17 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721Receiver.sol)

pragma solidity ^0.8.0;

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

File 8 of 17 : ERC721Pausable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/ERC721Pausable.sol)

pragma solidity ^0.8.0;

import "../ERC721.sol";
import "../../../security/Pausable.sol";

/**
 * @dev ERC721 token with pausable token transfers, minting and burning.
 *
 * Useful for scenarios such as preventing trades until the end of an evaluation
 * period, or having an emergency switch for freezing all token transfers in the
 * event of a large bug.
 */
abstract contract ERC721Pausable is ERC721, Pausable {
    /**
     * @dev See {ERC721-_beforeTokenTransfer}.
     *
     * Requirements:
     *
     * - the contract must not be paused.
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual override {
        super._beforeTokenTransfer(from, to, tokenId);

        require(!paused(), "ERC721Pausable: token transfer while paused");
    }
}

File 9 of 17 : ERC721Royalty.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/ERC721Royalty.sol)

pragma solidity ^0.8.0;

import "../ERC721.sol";
import "../../common/ERC2981.sol";
import "../../../utils/introspection/ERC165.sol";

/**
 * @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, ERC721 {
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override(ERC721, 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 10 of 17 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol)

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

File 11 of 17 : ERC2981.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/common/ERC2981.sol)

pragma solidity ^0.8.0;

import "../../interfaces/IERC2981.sol";
import "../../utils/introspection/ERC165.sol";

/**
 * @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
        virtual
        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 12 of 17 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

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

pragma solidity ^0.8.0;

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

File 17 of 17 : HROToken.sol
pragma solidity ^0.8.11;
// SPDX-License-Identifier: UNLICENSED

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Pausable.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Royalty.sol";

contract HroToken is ERC721, ERC721Pausable, ERC721Royalty, Ownable {
    event TokenCreated(string uuid, address to);
    event BaseURISet(string uri);

    address public proxyMinter; // only account that can call mintFor()
    string private _baseTokenURI;
    mapping (uint256 => bytes32) private tokenIdToUuid;  // Maps token id to UUID
    mapping (bytes32 => uint256) private uuidToTokenId;  // Maps UUID to token id
    mapping (uint256 => string) private tokenURIMap;

    constructor(string memory baseTokenURI) ERC721("Hro DC", "HroDC") {
        _baseTokenURI = baseTokenURI;
        proxyMinter = _msgSender();
        setDefaultRoyalty(_msgSender(), 1000);
    }

    function setTokenRoyalty(uint256 tokenId, address recipient, uint96 feeNumerator) public onlyOwner {
        _setTokenRoyalty(tokenId, recipient, feeNumerator);
    }

    function setDefaultRoyalty(address recipient, uint96 fraction) public onlyOwner {
        _setDefaultRoyalty(recipient, fraction);
    }

    function deleteDefaultRoyalty() public onlyOwner {
        _deleteDefaultRoyalty();
    }

    function createToken(uint256 tokenId, string memory uuid, address to) public onlyOwner {
        bytes32 uuidBytes32 = UUIDStringToBytes32(uuid);
        createTokenWithId(tokenId, uuidBytes32, to);
    }

    function burn(uint256 tokenId) public onlyOwner {
        _burn(tokenId);
    }

    function mintFor(address to, uint256 amount, bytes memory mintingBlob) public {
        require(proxyMinter == _msgSender(), "Caller is not the proxy minter.");
        (uint256[] memory tokenIds, bytes32[] memory uuids) = parseMintingBlob(mintingBlob, amount);
        for (uint i; i < tokenIds.length; i++) {
            createTokenWithId(tokenIds[i], uuids[i], to);
        }
    }

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

    function getTokenIdOfUUID(string memory uuid) public view returns (uint256) {
        bytes32 uuid32 = UUIDStringToBytes32(uuid);
        require(uuidExists(uuid32), "UUID does not exist.");
        return uuidToTokenId[uuid32];
    }

    function getUUIDOfTokenId(uint256 tokenId) public view returns (string memory) {
        require(_exists(tokenId), "Token does not exist.");
        return bytes32ToUUIDString(tokenIdToUuid[tokenId]);
    }

    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");
        if (bytes(tokenURIMap[tokenId]).length > 0) {
            return tokenURIMap[tokenId];
        }
        string memory uuid = bytes32ToUUIDString(tokenIdToUuid[tokenId]);
        string memory baseURI = _baseURI();
        return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, uuid)) : '';
    }

    function setBaseTokenURI(string memory uri) public onlyOwner {
        _baseTokenURI = uri;
        emit BaseURISet(uri);
    }

    function setTokenURI(uint256 tokenId, string memory uri) public onlyOwner {
        tokenURIMap[tokenId] = uri;
    }

    function clearTokenURI(uint256 tokenId) public onlyOwner {
        delete tokenURIMap[tokenId];
    }

    function pause() public virtual onlyOwner {
        _pause();
    }

    function unpause() public virtual onlyOwner {
        _unpause();
    }

    function setProxyMinter(address proxy) public onlyOwner {
        proxyMinter = proxy;
    }

    // ------- Internal functions below here:
    function createTokenWithId(uint256 tokenId, bytes32 uuid, address to) internal {
        require(!_exists(tokenId), "Token already exists.");
        _safeMint(to, tokenId);

        uuidToTokenId[uuid] = tokenId;
        tokenIdToUuid[tokenId] = uuid;
        emit TokenCreated(bytes32ToUUIDString(uuid), to);
    }

    // Parses a mintingBlob with {tokenId1}:{uuid1}{tokenId2}:{uuid2} and then returns them
    // Example: {1}:{e9071858-e63b-4f27-92d7-0603235c0b8c}{2}:{f23a1b52-e63b-3f77-42d7-3603235c1b42}
    function parseMintingBlob(bytes memory mintingBlob, uint256 amount) internal pure returns (uint256[] memory, bytes32[] memory) {
        uint256 offset = 0;
        uint256[] memory tokenIds = new uint256[](amount);
        bytes32[] memory uuids = new bytes32[](amount);
        bool isTokenId = true;
        for (uint i; i < mintingBlob.length; i++) {
            if (mintingBlob[i] == "{") {
                if (isTokenId) {
                    (uint256 tokenId, uint256 nextItem) = parseMintingBlobTokenId(mintingBlob, i + 1);
                    tokenIds[offset] = tokenId;
                    isTokenId = false;
                    i = nextItem;
                } else {
                    (bytes32 uuid, uint256 nextItem) = parseMintingBlobUUID(mintingBlob, i + 1);
                    uuids[offset] = uuid;
                    isTokenId = true;
                    offset++;
                    i = nextItem;
                }
            }
        }
        return (tokenIds, uuids);
    }

    function parseMintingBlobTokenId(bytes memory mintingBlob, uint start) internal pure returns (uint256, uint256) {
        uint256 result = 0;
        for (uint256 i = start; i < mintingBlob.length; i++) {
            if (mintingBlob[i] == "}") {
                return (result, i);
            }
            result = (result * 10) + (uint8(mintingBlob[i]) - 48);
        }
        return (result, mintingBlob.length);
    }

    function parseMintingBlobUUID(bytes memory mintingBlob, uint start) internal pure returns (bytes32, uint256) {
        bytes memory temp = new bytes(32);
        bytes32 result;
        uint32 index;
        for (uint i = start; i < mintingBlob.length; i++) {
            if (mintingBlob[i] == "}") {
                assembly {
                    result := mload(add(temp, 32))
                }
                return (result, i);
            }
            if (mintingBlob[i] == "-") {
                continue;
            }
            temp[index] = mintingBlob[i];
            index++;
        }
        assembly {
            result := mload(add(temp, 32))
        }
        return (result, mintingBlob.length);
    }

    function uuidExists(bytes32 uuid) internal view returns (bool) {
        return uuidToTokenId[uuid] != 0;
    }

    function _baseURI() internal view virtual override returns (string memory) {
        return _baseTokenURI;
    }

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

    function _burn(uint256 tokenId) internal virtual override(ERC721Royalty, ERC721) {
        super._burn(tokenId);
        _resetTokenRoyalty(tokenId);
    }

    // Converts a bytes32 UUID to a UUID string with dashes
    // e9071858e63b4f2792d70603235c0b8c => e9071858-e63b-4f27-92d7-0603235c0b8c
    function bytes32ToUUIDString(bytes32 b) internal pure returns (string memory) {
        bytes memory bytesArray = new bytes(36);
        uint j;
        for (uint256 i; i < 32; i++) {
            bytesArray[j] = b[i];
            // Add back in dashes at correct positions
            if (i == 7 || i == 11 || i == 15 || i == 19) {
                j++;
                bytesArray[j] = "-";
            }
            j++;
        }
        return string(bytesArray);
    }

    // Converts a UUID string with dashes into a bytes32 UUID without dashes
    // e9071858-e63b-4f27-92d7-0603235c0b8c => e9071858e63b4f2792d70603235c0b8c
    function UUIDStringToBytes32(string memory s) internal pure returns (bytes32) {
        bytes memory bytesArray = bytes(s);
        bytes memory noDashes = new bytes(32);
        uint index;
        for (uint256 i; i < bytesArray.length; i++) {
            if (bytesArray[i] == "-") {
                continue;
            }
            noDashes[index] = bytesArray[i];
            index++;
        }
        bytes32 result;
        assembly {
            result := mload(add(noDashes, 32))
        }
        return result;
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"baseTokenURI","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"uri","type":"string"}],"name":"BaseURISet","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":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"uuid","type":"string"},{"indexed":false,"internalType":"address","name":"to","type":"address"}],"name":"TokenCreated","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"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"clearTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"string","name":"uuid","type":"string"},{"internalType":"address","name":"to","type":"address"}],"name":"createToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"deleteDefaultRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"uuid","type":"string"}],"name":"getTokenIdOfUUID","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getUUIDOfTokenId","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"mintingBlob","type":"bytes"}],"name":"mintFor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"proxyMinter","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","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":[{"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":"setBaseTokenURI","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":"address","name":"proxy","type":"address"}],"name":"setProxyMinter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint96","name":"feeNumerator","type":"uint96"}],"name":"setTokenRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"string","name":"uri","type":"string"}],"name":"setTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"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":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b5060405162002f0e38038062002f0e83398101604081905262000034916200037a565b604080518082018252600681526548726f20444360d01b60208083019182528351808501909452600584526448726f444360d81b9084015281519192916200007f91600291620002be565b50805162000095906003906020840190620002be565b50506008805460ff1916905550620000ad33620000ed565b8051620000c290600a906020840190620002be565b50600980546001600160a01b03191633908117909155620000e6906103e862000147565b5062000493565b600880546001600160a01b03838116610100818102610100600160a81b031985161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6008546001600160a01b03610100909104163314620001ad5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b620001b98282620001bd565b5050565b6127106001600160601b03821611156200022d5760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b6064820152608401620001a4565b6001600160a01b038216620002855760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152606401620001a4565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600055565b828054620002cc9062000456565b90600052602060002090601f016020900481019282620002f057600085556200033b565b82601f106200030b57805160ff19168380011785556200033b565b828001600101855582156200033b579182015b828111156200033b5782518255916020019190600101906200031e565b50620003499291506200034d565b5090565b5b808211156200034957600081556001016200034e565b634e487b7160e01b600052604160045260246000fd5b600060208083850312156200038e57600080fd5b82516001600160401b0380821115620003a657600080fd5b818501915085601f830112620003bb57600080fd5b815181811115620003d057620003d062000364565b604051601f8201601f19908116603f01168101908382118183101715620003fb57620003fb62000364565b8160405282815288868487010111156200041457600080fd5b600093505b8284101562000438578484018601518185018701529285019262000419565b828411156200044a5760008684830101525b98975050505050505050565b600181811c908216806200046b57607f821691505b602082108114156200048d57634e487b7160e01b600052602260045260246000fd5b50919050565b612a6b80620004a36000396000f3fe608060405234801561001057600080fd5b50600436106101fb5760003560e01c80635944c7531161011a57806395d89b41116100ad578063b88d4fde1161007c578063b88d4fde14610436578063c87b56dd14610449578063c91b1c011461045c578063e985e9c51461046f578063f2fde38b146104ab57600080fd5b806395d89b4114610400578063a22cb46514610408578063a6e23daf1461041b578063aa1b103f1461042e57600080fd5b8063715018a6116100e9578063715018a6146103c757806380eae808146103cf5780638456cb59146103e25780638da5cb5b146103ea57600080fd5b80635944c753146103755780635c975abb146103885780636352211e1461039357806370a08231146103a657600080fd5b806319ee6e3f1161019257806330176e131161016157806330176e13146103345780633f4ba83a1461034757806342842e0e1461034f57806342966c681461036257600080fd5b806319ee6e3f146102c957806323b872dd146102dc578063299b1a86146102ef5780632a55205a1461030257600080fd5b8063081812fc116101ce578063081812fc14610265578063095ea7b31461029057806314c00ed3146102a3578063162094c4146102b657600080fd5b806301390f5c1461020057806301ffc9a71461021557806304634d8d1461023d57806306fdde0314610250575b600080fd5b61021361020e366004612292565b6104be565b005b6102286102233660046122c1565b610511565b60405190151581526020015b60405180910390f35b61021361024b366004612318565b610522565b610258610560565b60405161023491906123a3565b610278610273366004612292565b6105f2565b6040516001600160a01b039091168152602001610234565b61021361029e3660046123b6565b61067a565b6102586102b1366004612292565b610790565b6102136102c4366004612483565b6107f7565b6102136102d73660046124ca565b610846565b6102136102ea366004612521565b610914565b6102136102fd36600461255d565b610945565b6103156103103660046125b4565b610993565b604080516001600160a01b039093168352602083019190915201610234565b6102136103423660046125d6565b610a41565b610213610abf565b61021361035d366004612521565b610af9565b610213610370366004612292565b610b14565b61021361038336600461260b565b610b4d565b60085460ff16610228565b6102786103a1366004612292565b610b88565b6103b96103b436600461263e565b610bff565b604051908152602001610234565b610213610c86565b6102136103dd36600461263e565b610cc0565b610213610d12565b60085461010090046001600160a01b0316610278565b610258610d4a565b610213610416366004612659565b610d59565b6103b96104293660046125d6565b610d64565b610213610dda565b610213610444366004612695565b610e13565b610258610457366004612292565b610e45565b600954610278906001600160a01b031681565b61022861047d3660046126fd565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b6102136104b936600461263e565b610fe2565b6008546001600160a01b036101009091041633146104f75760405162461bcd60e51b81526004016104ee90612727565b60405180910390fd5b6000818152600d6020526040812061050e916121bf565b50565b600061051c82611080565b92915050565b6008546001600160a01b036101009091041633146105525760405162461bcd60e51b81526004016104ee90612727565b61055c828261108b565b5050565b60606002805461056f9061275c565b80601f016020809104026020016040519081016040528092919081815260200182805461059b9061275c565b80156105e85780601f106105bd576101008083540402835291602001916105e8565b820191906000526020600020905b8154815290600101906020018083116105cb57829003601f168201915b5050505050905090565b60006105fd82611145565b61065e5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016104ee565b506000908152600660205260409020546001600160a01b031690565b600061068582610b88565b9050806001600160a01b0316836001600160a01b031614156106f35760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084016104ee565b336001600160a01b038216148061070f575061070f813361047d565b6107815760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060648201526084016104ee565b61078b8383611162565b505050565b606061079b82611145565b6107df5760405162461bcd60e51b81526020600482015260156024820152742a37b5b2b7103237b2b9903737ba1032bc34b9ba1760591b60448201526064016104ee565b6000828152600b602052604090205461051c906111d0565b6008546001600160a01b036101009091041633146108275760405162461bcd60e51b81526004016104ee90612727565b6000828152600d60209081526040909120825161078b928401906121f9565b6009546001600160a01b031633146108a05760405162461bcd60e51b815260206004820152601f60248201527f43616c6c6572206973206e6f74207468652070726f7879206d696e7465722e0060448201526064016104ee565b6000806108ad83856112cf565b9150915060005b825181101561090c576108fa8382815181106108d2576108d2612797565b60200260200101518383815181106108ec576108ec612797565b602002602001015188611457565b80610904816127c3565b9150506108b4565b505050505050565b61091e3382611516565b61093a5760405162461bcd60e51b81526004016104ee906127de565b61078b8383836115fc565b6008546001600160a01b036101009091041633146109755760405162461bcd60e51b81526004016104ee90612727565b6000610980836117a3565b905061098d848284611457565b50505050565b60008281526001602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b0316928201929092528291610a085750604080518082019091526000546001600160a01b0381168252600160a01b90046001600160601b031660208201525b602081015160009061271090610a27906001600160601b03168761282f565b610a31919061284e565b91519350909150505b9250929050565b6008546001600160a01b03610100909104163314610a715760405162461bcd60e51b81526004016104ee90612727565b8051610a8490600a9060208401906121f9565b507ff9c7803e94e0d3c02900d8a90893a6d5e90dd04d32a4cfe825520f82bf9f32f681604051610ab491906123a3565b60405180910390a150565b6008546001600160a01b03610100909104163314610aef5760405162461bcd60e51b81526004016104ee90612727565b610af761187a565b565b61078b83838360405180602001604052806000815250610e13565b6008546001600160a01b03610100909104163314610b445760405162461bcd60e51b81526004016104ee90612727565b61050e8161190d565b6008546001600160a01b03610100909104163314610b7d5760405162461bcd60e51b81526004016104ee90612727565b61078b838383611927565b6000818152600460205260408120546001600160a01b03168061051c5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b60648201526084016104ee565b60006001600160a01b038216610c6a5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b60648201526084016104ee565b506001600160a01b031660009081526005602052604090205490565b6008546001600160a01b03610100909104163314610cb65760405162461bcd60e51b81526004016104ee90612727565b610af760006119f2565b6008546001600160a01b03610100909104163314610cf05760405162461bcd60e51b81526004016104ee90612727565b600980546001600160a01b0319166001600160a01b0392909216919091179055565b6008546001600160a01b03610100909104163314610d425760405162461bcd60e51b81526004016104ee90612727565b610af7611a4c565b60606003805461056f9061275c565b61055c338383611ac7565b600080610d70836117a3565b6000818152600c6020526040902054909150610dc55760405162461bcd60e51b81526020600482015260146024820152732aaaa4a2103237b2b9903737ba1032bc34b9ba1760611b60448201526064016104ee565b6000908152600c602052604090205492915050565b6008546001600160a01b03610100909104163314610e0a5760405162461bcd60e51b81526004016104ee90612727565b610af760008055565b610e1d3383611516565b610e395760405162461bcd60e51b81526004016104ee906127de565b61098d84848484611b96565b6060610e5082611145565b610eb45760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b60648201526084016104ee565b6000828152600d602052604081208054610ecd9061275c565b90501115610f73576000828152600d602052604090208054610eee9061275c565b80601f0160208091040260200160405190810160405280929190818152602001828054610f1a9061275c565b8015610f675780601f10610f3c57610100808354040283529160200191610f67565b820191906000526020600020905b815481529060010190602001808311610f4a57829003601f168201915b50505050509050919050565b6000828152600b6020526040812054610f8b906111d0565b90506000610f97611bc9565b90506000815111610fb75760405180602001604052806000815250610fda565b8082604051602001610fca929190612870565b6040516020818303038152906040525b949350505050565b6008546001600160a01b036101009091041633146110125760405162461bcd60e51b81526004016104ee90612727565b6001600160a01b0381166110775760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016104ee565b61050e816119f2565b600061051c82611bd8565b6127106001600160601b03821611156110b65760405162461bcd60e51b81526004016104ee9061289f565b6001600160a01b03821661110c5760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c69642072656365697665720000000000000060448201526064016104ee565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600055565b6000908152600460205260409020546001600160a01b0316151590565b600081815260066020526040902080546001600160a01b0319166001600160a01b038416908117909155819061119782610b88565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6040805160248082526060828101909352600091906020820181803683370190505090506000805b60208110156112c65784816020811061121357611213612797565b1a60f81b83838151811061122957611229612797565b60200101906001600160f81b031916908160001a905350806007148061124f575080600b145b8061125a575080600f145b806112655750806013145b156112a65781611274816127c3565b925050602d60f81b83838151811061128e5761128e612797565b60200101906001600160f81b031916908160001a9053505b816112b0816127c3565b92505080806112be906127c3565b9150506111f8565b50909392505050565b6060806000808467ffffffffffffffff8111156112ee576112ee6123e0565b604051908082528060200260200182016040528015611317578160200160208202803683370190505b50905060008567ffffffffffffffff811115611335576113356123e0565b60405190808252806020026020018201604052801561135e578160200160208202803683370190505b509050600160005b88518110156114495788818151811061138157611381612797565b6020910101516001600160f81b031916607b60f81b14156114375781156113e8576000806113b98b6113b48560016128e9565b611c18565b91509150818688815181106113d0576113d0612797565b60209081029190910101526000935091506114379050565b6000806113ff8b6113fa8560016128e9565b611cbb565b915091508185888151811061141657611416612797565b6020908102919091010152600193508661142f816127c3565b975090925050505b80611441816127c3565b915050611366565b509197909650945050505050565b61146083611145565b156114a55760405162461bcd60e51b81526020600482015260156024820152742a37b5b2b71030b63932b0b23c9032bc34b9ba399760591b60448201526064016104ee565b6114af8184611dde565b6000828152600c60209081526040808320869055858352600b90915290208290557ffdc90d498a1602314464a0907c52c51090745809fb1655b49df42e9333129f706114fa836111d0565b82604051611509929190612901565b60405180910390a1505050565b600061152182611145565b6115825760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016104ee565b600061158d83610b88565b9050806001600160a01b0316846001600160a01b031614806115c85750836001600160a01b03166115bd846105f2565b6001600160a01b0316145b80610fda57506001600160a01b0380821660009081526007602090815260408083209388168352929052205460ff16610fda565b826001600160a01b031661160f82610b88565b6001600160a01b0316146116735760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b60648201526084016104ee565b6001600160a01b0382166116d55760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016104ee565b6116e0838383611df8565b6116eb600082611162565b6001600160a01b038316600090815260056020526040812080546001929061171490849061292b565b90915550506001600160a01b03821660009081526005602052604081208054600192906117429084906128e9565b909155505060008181526004602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b604080516020808252818301909252600091839183916020820181803683370190505090506000805b835181101561186d578381815181106117e7576117e7612797565b6020910101516001600160f81b031916602d60f81b14156118075761185b565b83818151811061181957611819612797565b602001015160f81c60f81b83838151811061183657611836612797565b60200101906001600160f81b031916908160001a90535081611857816127c3565b9250505b80611865816127c3565b9150506117cc565b5050602001519392505050565b60085460ff166118c35760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b60448201526064016104ee565b6008805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b61191681611e03565b600090815260016020526040812055565b6127106001600160601b03821611156119525760405162461bcd60e51b81526004016104ee9061289f565b6001600160a01b0382166119a85760405162461bcd60e51b815260206004820152601b60248201527f455243323938313a20496e76616c696420706172616d6574657273000000000060448201526064016104ee565b6040805180820182526001600160a01b0393841681526001600160601b0392831660208083019182526000968752600190529190942093519051909116600160a01b029116179055565b600880546001600160a01b03838116610100818102610100600160a81b031985161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60085460ff1615611a925760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b60448201526064016104ee565b6008805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586118f03390565b816001600160a01b0316836001600160a01b03161415611b295760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016104ee565b6001600160a01b03838116600081815260076020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b611ba18484846115fc565b611bad84848484611e0c565b61098d5760405162461bcd60e51b81526004016104ee90612942565b6060600a805461056f9061275c565b60006001600160e01b031982166380ac58cd60e01b1480611c0957506001600160e01b03198216635b5e139f60e01b145b8061051c575061051c82611f0a565b60008080835b8551811015611cb057858181518110611c3957611c39612797565b6020910101516001600160f81b031916607d60f81b1415611c5e579092509050610a3a565b6030868281518110611c7257611c72612797565b0160200151611c84919060f81c612994565b60ff16611c9283600a61282f565b611c9c91906128e9565b915080611ca8816127c3565b915050611c1e565b509351939492505050565b60408051602080825281830190925260009182918291602082018180368337019050509050600080855b8751811015611dcd57878181518110611d0057611d00612797565b6020910101516001600160f81b031916607d60f81b1415611d2f57602093909301519450919250610a3a915050565b878181518110611d4157611d41612797565b6020910101516001600160f81b031916602d60f81b1415611d6157611dbb565b878181518110611d7357611d73612797565b602001015160f81c60f81b848363ffffffff1681518110611d9657611d96612797565b60200101906001600160f81b031916908160001a90535081611db7816129b7565b9250505b80611dc5816127c3565b915050611ce5565b505050602001519351939492505050565b61055c828260405180602001604052806000815250611f3f565b61078b838383611f72565b61191681611fd9565b60006001600160a01b0384163b15611eff57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611e509033908990889088906004016129db565b6020604051808303816000875af1925050508015611e8b575060408051601f3d908101601f19168201909252611e8891810190612a18565b60015b611ee5573d808015611eb9576040519150601f19603f3d011682016040523d82523d6000602084013e611ebe565b606091505b508051611edd5760405162461bcd60e51b81526004016104ee90612942565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050610fda565b506001949350505050565b60006001600160e01b0319821663152a902d60e11b148061051c57506301ffc9a760e01b6001600160e01b031983161461051c565b611f498383612080565b611f566000848484611e0c565b61078b5760405162461bcd60e51b81526004016104ee90612942565b60085460ff161561078b5760405162461bcd60e51b815260206004820152602b60248201527f4552433732315061757361626c653a20746f6b656e207472616e73666572207760448201526a1a1a5b19481c185d5cd95960aa1b60648201526084016104ee565b6000611fe482610b88565b9050611ff281600084611df8565b611ffd600083611162565b6001600160a01b038116600090815260056020526040812080546001929061202690849061292b565b909155505060008281526004602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b6001600160a01b0382166120d65760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016104ee565b6120df81611145565b1561212c5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016104ee565b61213860008383611df8565b6001600160a01b03821660009081526005602052604081208054600192906121619084906128e9565b909155505060008181526004602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b5080546121cb9061275c565b6000825580601f106121db575050565b601f01602090049060005260206000209081019061050e919061227d565b8280546122059061275c565b90600052602060002090601f016020900481019282612227576000855561226d565b82601f1061224057805160ff191683800117855561226d565b8280016001018555821561226d579182015b8281111561226d578251825591602001919060010190612252565b5061227992915061227d565b5090565b5b80821115612279576000815560010161227e565b6000602082840312156122a457600080fd5b5035919050565b6001600160e01b03198116811461050e57600080fd5b6000602082840312156122d357600080fd5b81356122de816122ab565b9392505050565b80356001600160a01b03811681146122fc57600080fd5b919050565b80356001600160601b03811681146122fc57600080fd5b6000806040838503121561232b57600080fd5b612334836122e5565b915061234260208401612301565b90509250929050565b60005b8381101561236657818101518382015260200161234e565b8381111561098d5750506000910152565b6000815180845261238f81602086016020860161234b565b601f01601f19169290920160200192915050565b6020815260006122de6020830184612377565b600080604083850312156123c957600080fd5b6123d2836122e5565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b600082601f83011261240757600080fd5b813567ffffffffffffffff80821115612422576124226123e0565b604051601f8301601f19908116603f0116810190828211818310171561244a5761244a6123e0565b8160405283815286602085880101111561246357600080fd5b836020870160208301376000602085830101528094505050505092915050565b6000806040838503121561249657600080fd5b82359150602083013567ffffffffffffffff8111156124b457600080fd5b6124c0858286016123f6565b9150509250929050565b6000806000606084860312156124df57600080fd5b6124e8846122e5565b925060208401359150604084013567ffffffffffffffff81111561250b57600080fd5b612517868287016123f6565b9150509250925092565b60008060006060848603121561253657600080fd5b61253f846122e5565b925061254d602085016122e5565b9150604084013590509250925092565b60008060006060848603121561257257600080fd5b83359250602084013567ffffffffffffffff81111561259057600080fd5b61259c868287016123f6565b9250506125ab604085016122e5565b90509250925092565b600080604083850312156125c757600080fd5b50508035926020909101359150565b6000602082840312156125e857600080fd5b813567ffffffffffffffff8111156125ff57600080fd5b610fda848285016123f6565b60008060006060848603121561262057600080fd5b83359250612630602085016122e5565b91506125ab60408501612301565b60006020828403121561265057600080fd5b6122de826122e5565b6000806040838503121561266c57600080fd5b612675836122e5565b91506020830135801515811461268a57600080fd5b809150509250929050565b600080600080608085870312156126ab57600080fd5b6126b4856122e5565b93506126c2602086016122e5565b925060408501359150606085013567ffffffffffffffff8111156126e557600080fd5b6126f1878288016123f6565b91505092959194509250565b6000806040838503121561271057600080fd5b612719836122e5565b9150612342602084016122e5565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600181811c9082168061277057607f821691505b6020821081141561279157634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60006000198214156127d7576127d76127ad565b5060010190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6000816000190483118215151615612849576128496127ad565b500290565b60008261286b57634e487b7160e01b600052601260045260246000fd5b500490565b6000835161288281846020880161234b565b83519083019061289681836020880161234b565b01949350505050565b6020808252602a908201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646040820152692073616c65507269636560b01b606082015260800190565b600082198211156128fc576128fc6127ad565b500190565b6040815260006129146040830185612377565b905060018060a01b03831660208301529392505050565b60008282101561293d5761293d6127ad565b500390565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b600060ff821660ff8416808210156129ae576129ae6127ad565b90039392505050565b600063ffffffff808316818114156129d1576129d16127ad565b6001019392505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612a0e90830184612377565b9695505050505050565b600060208284031215612a2a57600080fd5b81516122de816122ab56fea264697066735822122006dae868d59521e90a21f662a891acda3d2b06770664c23a374915d8089c484164736f6c634300080b00330000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000003568747470733a2f2f6170692d73746167696e67312e68726f2e67672f7075626c69632f76312f657468657265756d2f746f6b656e2f0000000000000000000000

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101fb5760003560e01c80635944c7531161011a57806395d89b41116100ad578063b88d4fde1161007c578063b88d4fde14610436578063c87b56dd14610449578063c91b1c011461045c578063e985e9c51461046f578063f2fde38b146104ab57600080fd5b806395d89b4114610400578063a22cb46514610408578063a6e23daf1461041b578063aa1b103f1461042e57600080fd5b8063715018a6116100e9578063715018a6146103c757806380eae808146103cf5780638456cb59146103e25780638da5cb5b146103ea57600080fd5b80635944c753146103755780635c975abb146103885780636352211e1461039357806370a08231146103a657600080fd5b806319ee6e3f1161019257806330176e131161016157806330176e13146103345780633f4ba83a1461034757806342842e0e1461034f57806342966c681461036257600080fd5b806319ee6e3f146102c957806323b872dd146102dc578063299b1a86146102ef5780632a55205a1461030257600080fd5b8063081812fc116101ce578063081812fc14610265578063095ea7b31461029057806314c00ed3146102a3578063162094c4146102b657600080fd5b806301390f5c1461020057806301ffc9a71461021557806304634d8d1461023d57806306fdde0314610250575b600080fd5b61021361020e366004612292565b6104be565b005b6102286102233660046122c1565b610511565b60405190151581526020015b60405180910390f35b61021361024b366004612318565b610522565b610258610560565b60405161023491906123a3565b610278610273366004612292565b6105f2565b6040516001600160a01b039091168152602001610234565b61021361029e3660046123b6565b61067a565b6102586102b1366004612292565b610790565b6102136102c4366004612483565b6107f7565b6102136102d73660046124ca565b610846565b6102136102ea366004612521565b610914565b6102136102fd36600461255d565b610945565b6103156103103660046125b4565b610993565b604080516001600160a01b039093168352602083019190915201610234565b6102136103423660046125d6565b610a41565b610213610abf565b61021361035d366004612521565b610af9565b610213610370366004612292565b610b14565b61021361038336600461260b565b610b4d565b60085460ff16610228565b6102786103a1366004612292565b610b88565b6103b96103b436600461263e565b610bff565b604051908152602001610234565b610213610c86565b6102136103dd36600461263e565b610cc0565b610213610d12565b60085461010090046001600160a01b0316610278565b610258610d4a565b610213610416366004612659565b610d59565b6103b96104293660046125d6565b610d64565b610213610dda565b610213610444366004612695565b610e13565b610258610457366004612292565b610e45565b600954610278906001600160a01b031681565b61022861047d3660046126fd565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b6102136104b936600461263e565b610fe2565b6008546001600160a01b036101009091041633146104f75760405162461bcd60e51b81526004016104ee90612727565b60405180910390fd5b6000818152600d6020526040812061050e916121bf565b50565b600061051c82611080565b92915050565b6008546001600160a01b036101009091041633146105525760405162461bcd60e51b81526004016104ee90612727565b61055c828261108b565b5050565b60606002805461056f9061275c565b80601f016020809104026020016040519081016040528092919081815260200182805461059b9061275c565b80156105e85780601f106105bd576101008083540402835291602001916105e8565b820191906000526020600020905b8154815290600101906020018083116105cb57829003601f168201915b5050505050905090565b60006105fd82611145565b61065e5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016104ee565b506000908152600660205260409020546001600160a01b031690565b600061068582610b88565b9050806001600160a01b0316836001600160a01b031614156106f35760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084016104ee565b336001600160a01b038216148061070f575061070f813361047d565b6107815760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060648201526084016104ee565b61078b8383611162565b505050565b606061079b82611145565b6107df5760405162461bcd60e51b81526020600482015260156024820152742a37b5b2b7103237b2b9903737ba1032bc34b9ba1760591b60448201526064016104ee565b6000828152600b602052604090205461051c906111d0565b6008546001600160a01b036101009091041633146108275760405162461bcd60e51b81526004016104ee90612727565b6000828152600d60209081526040909120825161078b928401906121f9565b6009546001600160a01b031633146108a05760405162461bcd60e51b815260206004820152601f60248201527f43616c6c6572206973206e6f74207468652070726f7879206d696e7465722e0060448201526064016104ee565b6000806108ad83856112cf565b9150915060005b825181101561090c576108fa8382815181106108d2576108d2612797565b60200260200101518383815181106108ec576108ec612797565b602002602001015188611457565b80610904816127c3565b9150506108b4565b505050505050565b61091e3382611516565b61093a5760405162461bcd60e51b81526004016104ee906127de565b61078b8383836115fc565b6008546001600160a01b036101009091041633146109755760405162461bcd60e51b81526004016104ee90612727565b6000610980836117a3565b905061098d848284611457565b50505050565b60008281526001602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b0316928201929092528291610a085750604080518082019091526000546001600160a01b0381168252600160a01b90046001600160601b031660208201525b602081015160009061271090610a27906001600160601b03168761282f565b610a31919061284e565b91519350909150505b9250929050565b6008546001600160a01b03610100909104163314610a715760405162461bcd60e51b81526004016104ee90612727565b8051610a8490600a9060208401906121f9565b507ff9c7803e94e0d3c02900d8a90893a6d5e90dd04d32a4cfe825520f82bf9f32f681604051610ab491906123a3565b60405180910390a150565b6008546001600160a01b03610100909104163314610aef5760405162461bcd60e51b81526004016104ee90612727565b610af761187a565b565b61078b83838360405180602001604052806000815250610e13565b6008546001600160a01b03610100909104163314610b445760405162461bcd60e51b81526004016104ee90612727565b61050e8161190d565b6008546001600160a01b03610100909104163314610b7d5760405162461bcd60e51b81526004016104ee90612727565b61078b838383611927565b6000818152600460205260408120546001600160a01b03168061051c5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b60648201526084016104ee565b60006001600160a01b038216610c6a5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b60648201526084016104ee565b506001600160a01b031660009081526005602052604090205490565b6008546001600160a01b03610100909104163314610cb65760405162461bcd60e51b81526004016104ee90612727565b610af760006119f2565b6008546001600160a01b03610100909104163314610cf05760405162461bcd60e51b81526004016104ee90612727565b600980546001600160a01b0319166001600160a01b0392909216919091179055565b6008546001600160a01b03610100909104163314610d425760405162461bcd60e51b81526004016104ee90612727565b610af7611a4c565b60606003805461056f9061275c565b61055c338383611ac7565b600080610d70836117a3565b6000818152600c6020526040902054909150610dc55760405162461bcd60e51b81526020600482015260146024820152732aaaa4a2103237b2b9903737ba1032bc34b9ba1760611b60448201526064016104ee565b6000908152600c602052604090205492915050565b6008546001600160a01b03610100909104163314610e0a5760405162461bcd60e51b81526004016104ee90612727565b610af760008055565b610e1d3383611516565b610e395760405162461bcd60e51b81526004016104ee906127de565b61098d84848484611b96565b6060610e5082611145565b610eb45760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b60648201526084016104ee565b6000828152600d602052604081208054610ecd9061275c565b90501115610f73576000828152600d602052604090208054610eee9061275c565b80601f0160208091040260200160405190810160405280929190818152602001828054610f1a9061275c565b8015610f675780601f10610f3c57610100808354040283529160200191610f67565b820191906000526020600020905b815481529060010190602001808311610f4a57829003601f168201915b50505050509050919050565b6000828152600b6020526040812054610f8b906111d0565b90506000610f97611bc9565b90506000815111610fb75760405180602001604052806000815250610fda565b8082604051602001610fca929190612870565b6040516020818303038152906040525b949350505050565b6008546001600160a01b036101009091041633146110125760405162461bcd60e51b81526004016104ee90612727565b6001600160a01b0381166110775760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016104ee565b61050e816119f2565b600061051c82611bd8565b6127106001600160601b03821611156110b65760405162461bcd60e51b81526004016104ee9061289f565b6001600160a01b03821661110c5760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c69642072656365697665720000000000000060448201526064016104ee565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600055565b6000908152600460205260409020546001600160a01b0316151590565b600081815260066020526040902080546001600160a01b0319166001600160a01b038416908117909155819061119782610b88565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6040805160248082526060828101909352600091906020820181803683370190505090506000805b60208110156112c65784816020811061121357611213612797565b1a60f81b83838151811061122957611229612797565b60200101906001600160f81b031916908160001a905350806007148061124f575080600b145b8061125a575080600f145b806112655750806013145b156112a65781611274816127c3565b925050602d60f81b83838151811061128e5761128e612797565b60200101906001600160f81b031916908160001a9053505b816112b0816127c3565b92505080806112be906127c3565b9150506111f8565b50909392505050565b6060806000808467ffffffffffffffff8111156112ee576112ee6123e0565b604051908082528060200260200182016040528015611317578160200160208202803683370190505b50905060008567ffffffffffffffff811115611335576113356123e0565b60405190808252806020026020018201604052801561135e578160200160208202803683370190505b509050600160005b88518110156114495788818151811061138157611381612797565b6020910101516001600160f81b031916607b60f81b14156114375781156113e8576000806113b98b6113b48560016128e9565b611c18565b91509150818688815181106113d0576113d0612797565b60209081029190910101526000935091506114379050565b6000806113ff8b6113fa8560016128e9565b611cbb565b915091508185888151811061141657611416612797565b6020908102919091010152600193508661142f816127c3565b975090925050505b80611441816127c3565b915050611366565b509197909650945050505050565b61146083611145565b156114a55760405162461bcd60e51b81526020600482015260156024820152742a37b5b2b71030b63932b0b23c9032bc34b9ba399760591b60448201526064016104ee565b6114af8184611dde565b6000828152600c60209081526040808320869055858352600b90915290208290557ffdc90d498a1602314464a0907c52c51090745809fb1655b49df42e9333129f706114fa836111d0565b82604051611509929190612901565b60405180910390a1505050565b600061152182611145565b6115825760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016104ee565b600061158d83610b88565b9050806001600160a01b0316846001600160a01b031614806115c85750836001600160a01b03166115bd846105f2565b6001600160a01b0316145b80610fda57506001600160a01b0380821660009081526007602090815260408083209388168352929052205460ff16610fda565b826001600160a01b031661160f82610b88565b6001600160a01b0316146116735760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b60648201526084016104ee565b6001600160a01b0382166116d55760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016104ee565b6116e0838383611df8565b6116eb600082611162565b6001600160a01b038316600090815260056020526040812080546001929061171490849061292b565b90915550506001600160a01b03821660009081526005602052604081208054600192906117429084906128e9565b909155505060008181526004602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b604080516020808252818301909252600091839183916020820181803683370190505090506000805b835181101561186d578381815181106117e7576117e7612797565b6020910101516001600160f81b031916602d60f81b14156118075761185b565b83818151811061181957611819612797565b602001015160f81c60f81b83838151811061183657611836612797565b60200101906001600160f81b031916908160001a90535081611857816127c3565b9250505b80611865816127c3565b9150506117cc565b5050602001519392505050565b60085460ff166118c35760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b60448201526064016104ee565b6008805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b61191681611e03565b600090815260016020526040812055565b6127106001600160601b03821611156119525760405162461bcd60e51b81526004016104ee9061289f565b6001600160a01b0382166119a85760405162461bcd60e51b815260206004820152601b60248201527f455243323938313a20496e76616c696420706172616d6574657273000000000060448201526064016104ee565b6040805180820182526001600160a01b0393841681526001600160601b0392831660208083019182526000968752600190529190942093519051909116600160a01b029116179055565b600880546001600160a01b03838116610100818102610100600160a81b031985161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60085460ff1615611a925760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b60448201526064016104ee565b6008805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586118f03390565b816001600160a01b0316836001600160a01b03161415611b295760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016104ee565b6001600160a01b03838116600081815260076020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b611ba18484846115fc565b611bad84848484611e0c565b61098d5760405162461bcd60e51b81526004016104ee90612942565b6060600a805461056f9061275c565b60006001600160e01b031982166380ac58cd60e01b1480611c0957506001600160e01b03198216635b5e139f60e01b145b8061051c575061051c82611f0a565b60008080835b8551811015611cb057858181518110611c3957611c39612797565b6020910101516001600160f81b031916607d60f81b1415611c5e579092509050610a3a565b6030868281518110611c7257611c72612797565b0160200151611c84919060f81c612994565b60ff16611c9283600a61282f565b611c9c91906128e9565b915080611ca8816127c3565b915050611c1e565b509351939492505050565b60408051602080825281830190925260009182918291602082018180368337019050509050600080855b8751811015611dcd57878181518110611d0057611d00612797565b6020910101516001600160f81b031916607d60f81b1415611d2f57602093909301519450919250610a3a915050565b878181518110611d4157611d41612797565b6020910101516001600160f81b031916602d60f81b1415611d6157611dbb565b878181518110611d7357611d73612797565b602001015160f81c60f81b848363ffffffff1681518110611d9657611d96612797565b60200101906001600160f81b031916908160001a90535081611db7816129b7565b9250505b80611dc5816127c3565b915050611ce5565b505050602001519351939492505050565b61055c828260405180602001604052806000815250611f3f565b61078b838383611f72565b61191681611fd9565b60006001600160a01b0384163b15611eff57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611e509033908990889088906004016129db565b6020604051808303816000875af1925050508015611e8b575060408051601f3d908101601f19168201909252611e8891810190612a18565b60015b611ee5573d808015611eb9576040519150601f19603f3d011682016040523d82523d6000602084013e611ebe565b606091505b508051611edd5760405162461bcd60e51b81526004016104ee90612942565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050610fda565b506001949350505050565b60006001600160e01b0319821663152a902d60e11b148061051c57506301ffc9a760e01b6001600160e01b031983161461051c565b611f498383612080565b611f566000848484611e0c565b61078b5760405162461bcd60e51b81526004016104ee90612942565b60085460ff161561078b5760405162461bcd60e51b815260206004820152602b60248201527f4552433732315061757361626c653a20746f6b656e207472616e73666572207760448201526a1a1a5b19481c185d5cd95960aa1b60648201526084016104ee565b6000611fe482610b88565b9050611ff281600084611df8565b611ffd600083611162565b6001600160a01b038116600090815260056020526040812080546001929061202690849061292b565b909155505060008281526004602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b6001600160a01b0382166120d65760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016104ee565b6120df81611145565b1561212c5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016104ee565b61213860008383611df8565b6001600160a01b03821660009081526005602052604081208054600192906121619084906128e9565b909155505060008181526004602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b5080546121cb9061275c565b6000825580601f106121db575050565b601f01602090049060005260206000209081019061050e919061227d565b8280546122059061275c565b90600052602060002090601f016020900481019282612227576000855561226d565b82601f1061224057805160ff191683800117855561226d565b8280016001018555821561226d579182015b8281111561226d578251825591602001919060010190612252565b5061227992915061227d565b5090565b5b80821115612279576000815560010161227e565b6000602082840312156122a457600080fd5b5035919050565b6001600160e01b03198116811461050e57600080fd5b6000602082840312156122d357600080fd5b81356122de816122ab565b9392505050565b80356001600160a01b03811681146122fc57600080fd5b919050565b80356001600160601b03811681146122fc57600080fd5b6000806040838503121561232b57600080fd5b612334836122e5565b915061234260208401612301565b90509250929050565b60005b8381101561236657818101518382015260200161234e565b8381111561098d5750506000910152565b6000815180845261238f81602086016020860161234b565b601f01601f19169290920160200192915050565b6020815260006122de6020830184612377565b600080604083850312156123c957600080fd5b6123d2836122e5565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b600082601f83011261240757600080fd5b813567ffffffffffffffff80821115612422576124226123e0565b604051601f8301601f19908116603f0116810190828211818310171561244a5761244a6123e0565b8160405283815286602085880101111561246357600080fd5b836020870160208301376000602085830101528094505050505092915050565b6000806040838503121561249657600080fd5b82359150602083013567ffffffffffffffff8111156124b457600080fd5b6124c0858286016123f6565b9150509250929050565b6000806000606084860312156124df57600080fd5b6124e8846122e5565b925060208401359150604084013567ffffffffffffffff81111561250b57600080fd5b612517868287016123f6565b9150509250925092565b60008060006060848603121561253657600080fd5b61253f846122e5565b925061254d602085016122e5565b9150604084013590509250925092565b60008060006060848603121561257257600080fd5b83359250602084013567ffffffffffffffff81111561259057600080fd5b61259c868287016123f6565b9250506125ab604085016122e5565b90509250925092565b600080604083850312156125c757600080fd5b50508035926020909101359150565b6000602082840312156125e857600080fd5b813567ffffffffffffffff8111156125ff57600080fd5b610fda848285016123f6565b60008060006060848603121561262057600080fd5b83359250612630602085016122e5565b91506125ab60408501612301565b60006020828403121561265057600080fd5b6122de826122e5565b6000806040838503121561266c57600080fd5b612675836122e5565b91506020830135801515811461268a57600080fd5b809150509250929050565b600080600080608085870312156126ab57600080fd5b6126b4856122e5565b93506126c2602086016122e5565b925060408501359150606085013567ffffffffffffffff8111156126e557600080fd5b6126f1878288016123f6565b91505092959194509250565b6000806040838503121561271057600080fd5b612719836122e5565b9150612342602084016122e5565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600181811c9082168061277057607f821691505b6020821081141561279157634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60006000198214156127d7576127d76127ad565b5060010190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6000816000190483118215151615612849576128496127ad565b500290565b60008261286b57634e487b7160e01b600052601260045260246000fd5b500490565b6000835161288281846020880161234b565b83519083019061289681836020880161234b565b01949350505050565b6020808252602a908201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646040820152692073616c65507269636560b01b606082015260800190565b600082198211156128fc576128fc6127ad565b500190565b6040815260006129146040830185612377565b905060018060a01b03831660208301529392505050565b60008282101561293d5761293d6127ad565b500390565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b600060ff821660ff8416808210156129ae576129ae6127ad565b90039392505050565b600063ffffffff808316818114156129d1576129d16127ad565b6001019392505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612a0e90830184612377565b9695505050505050565b600060208284031215612a2a57600080fd5b81516122de816122ab56fea264697066735822122006dae868d59521e90a21f662a891acda3d2b06770664c23a374915d8089c484164736f6c634300080b0033

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

0000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000003568747470733a2f2f6170692d73746167696e67312e68726f2e67672f7075626c69632f76312f657468657265756d2f746f6b656e2f0000000000000000000000

-----Decoded View---------------
Arg [0] : baseTokenURI (string): https://api-staging1.hro.gg/public/v1/ethereum/token/

-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000020
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000035
Arg [2] : 68747470733a2f2f6170692d73746167696e67312e68726f2e67672f7075626c
Arg [3] : 69632f76312f657468657265756d2f746f6b656e2f0000000000000000000000


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.