Mumbai Testnet

Token

Valorem (VFNFT)
ERC-721
FxChild

Overview

Max Total Supply

0 VFNFT

Holders

1

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-
Balance
0 VFNFT
0xade23e4ddb4de63b59af29c61ac339b2b3c01505
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information

Contract Source Code Verified (Exact Match)

Contract Name:
VFContract

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 1 : VFContract.sol
// File: @openzeppelin/contracts/GSN/Context.sol
// File: @openzeppelin/contracts/introspection/IERC165.sol
// File: @openzeppelin/contracts/token/ERC721/IERC721.sol
// File: @openzeppelin/contracts/token/ERC721/IERC721Metadata.sol
// File: @openzeppelin/contracts/token/ERC721/IERC721Enumerable.sol
// File: @openzeppelin/contracts/token/ERC721/IERC721Receiver.sol
// File: @openzeppelin/contracts/introspection/ERC165.sol
// File: @openzeppelin/contracts/math/SafeMath.sol
// File: @openzeppelin/contracts/utils/Address.sol
// File: @openzeppelin/contracts/utils/EnumerableSet.sol
// File: @openzeppelin/contracts/utils/EnumerableMap.sol
// File: @openzeppelin/contracts/utils/Strings.sol
// File: @openzeppelin/contracts/token/ERC721/ERC721.sol
// File: @openzeppelin/contracts/access/AccessControl.sol
// File: contracts/common/AccessControlMixin.sol
// File: contracts/child/ChildToken/IChildToken.sol
// File: contracts/common/Initializable.sol
// File: contracts/common/EIP712Base.sol
// File: contracts/common/NativeMetaTransaction.sol
// File: contracts/common/ContextMixin.sol
// File: contracts/child/ChildToken/VFContract.sol

// SPDX-License-Identifier: MIT
// [email protected]

pragma solidity >=0.4.22 <0.9.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 GSN 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 payable) {
        return payable(msg.sender);
    }

    function _msgData() internal view virtual returns (bytes memory) {
        this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
        return msg.data;
    }
}

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

/**
 * @dev Required interface of an ERC721 compliant contract.
 */
interface IERC721 is IERC165 {
    /**
     * @dev Emitted when `tokenId` token is transfered 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;
}

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

/**
 * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Enumerable is IERC721 {
    /**
     * @dev Returns the total amount of tokens stored by the contract.
     */
    function totalSupply() external view returns (uint256);

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

    /**
     * @dev Returns a token ID at a given `index` of all the tokens stored by the contract.
     * Use along with {totalSupply} to enumerate all tokens.
     */
    function tokenByIndex(uint256 index) external view returns (uint256);
}

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

/**
 * @dev Implementation of the {IERC165} interface.
 *
 * Contracts may inherit from this and call {_registerInterface} to declare
 * their support of an interface.
 */
abstract contract ERC165 is IERC165 {
    /*
     * bytes4(keccak256('supportsInterface(bytes4)')) == 0x01ffc9a7
     */
    bytes4 private constant _INTERFACE_ID_ERC165 = 0x01ffc9a7;

    /**
     * @dev Mapping of interface ids to whether or not it's supported.
     */
    mapping(bytes4 => bool) private _supportedInterfaces;

    constructor() {
        // Derived contracts need only register support for their own interfaces,
        // we register support for ERC165 itself here
        _registerInterface(_INTERFACE_ID_ERC165);
    }

    /**
     * @dev See {IERC165-supportsInterface}.
     *
     * Time complexity O(1), guaranteed to always use less than 30 000 gas.
     */
    function supportsInterface(bytes4 interfaceId)
        public
        view
        override
        returns (bool)
    {
        return _supportedInterfaces[interfaceId];
    }

    /**
     * @dev Registers the contract as an implementer of the interface defined by
     * `interfaceId`. Support of the actual ERC165 interface is automatic and
     * registering its interface id is not required.
     *
     * See {IERC165-supportsInterface}.
     *
     * Requirements:
     *
     * - `interfaceId` cannot be the ERC165 invalid interface (`0xffffffff`).
     */
    function _registerInterface(bytes4 interfaceId) internal virtual {
        require(interfaceId != 0xffffffff, "ERC165: invalid interface id");
        _supportedInterfaces[interfaceId] = true;
    }
}

/**
 * @dev Wrappers over Solidity's arithmetic operations with added overflow
 * checks.
 *
 * Arithmetic operations in Solidity wrap on overflow. This can easily result
 * in bugs, because programmers usually assume that an overflow raises an
 * error, which is the standard behavior in high level programming languages.
 * `SafeMath` restores this intuition by reverting the transaction when an
 * operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 c = a + b;
        require(c >= a, "SafeMath: addition overflow");

        return c;
    }

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

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        require(b <= a, errorMessage);
        uint256 c = a - b;

        return c;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
        // benefit is lost if 'b' is also tested.
        // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
        if (a == 0) {
            return 0;
        }

        uint256 c = a * b;
        require(c / a == b, "SafeMath: multiplication overflow");

        return c;
    }

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

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

        return c;
    }

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

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

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // According to EIP-1052, 0x0 is the value returned for not-yet created accounts
        // and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 is returned
        // for accounts without code, i.e. `keccak256('')`
        bytes32 codehash;
        bytes32 accountHash = 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470;
        // solhint-disable-next-line no-inline-assembly
        assembly {
            codehash := extcodehash(account)
        }
        return (codehash != accountHash && codehash != 0x0);
    }

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

        // solhint-disable-next-line avoid-low-level-calls, avoid-call-value
        (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"
        );
        return _functionCallWithValue(target, data, value, errorMessage);
    }

    function _functionCallWithValue(
        address target,
        bytes memory data,
        uint256 weiValue,
        string memory errorMessage
    ) private returns (bytes memory) {
        require(isContract(target), "Address: call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.call{value: weiValue}(
            data
        );
        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

                // solhint-disable-next-line no-inline-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

/**
 * @dev Library for managing
 * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
 * types.
 *
 * Sets have the following properties:
 *
 * - Elements are added, removed, and checked for existence in constant time
 * (O(1)).
 * - Elements are enumerated in O(n). No guarantees are made on the ordering.
 *
 * ```
 * contract Example {
 *     // Add the library methods
 *     using EnumerableSet for EnumerableSet.AddressSet;
 *
 *     // Declare a set state variable
 *     EnumerableSet.AddressSet private mySet;
 * }
 * ```
 *
 * As of v3.0.0, only sets of type `address` (`AddressSet`) and `uint256`
 * (`UintSet`) are supported.
 */
library EnumerableSet {
    // To implement this library for multiple types with as little code
    // repetition as possible, we write it in terms of a generic Set type with
    // bytes32 values.
    // The Set implementation uses private functions, and user-facing
    // implementations (such as AddressSet) are just wrappers around the
    // underlying Set.
    // This means that we can only create new EnumerableSets for types that fit
    // in bytes32.

    struct Set {
        // Storage of set values
        bytes32[] _values;
        // Position of the value in the `values` array, plus 1 because index 0
        // means a value is not in the set.
        mapping(bytes32 => uint256) _indexes;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function _add(Set storage set, bytes32 value) private returns (bool) {
        if (!_contains(set, value)) {
            set._values.push(value);
            // The value is stored at length-1, but we add 1 to all indexes
            // and use 0 as a sentinel value
            set._indexes[value] = set._values.length;
            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function _remove(Set storage set, bytes32 value) private returns (bool) {
        // We read and store the value's index to prevent multiple reads from the same storage slot
        uint256 valueIndex = set._indexes[value];

        if (valueIndex != 0) {
            // Equivalent to contains(set, value)
            // To delete an element from the _values array in O(1), we swap the element to delete with the last one in
            // the array, and then remove the last element (sometimes called as 'swap and pop').
            // This modifies the order of the array, as noted in {at}.

            uint256 toDeleteIndex = valueIndex - 1;
            uint256 lastIndex = set._values.length - 1;

            // When the value to delete is the last one, the swap operation is unnecessary. However, since this occurs
            // so rarely, we still do the swap anyway to avoid the gas cost of adding an 'if' statement.

            bytes32 lastvalue = set._values[lastIndex];

            // Move the last value to the index where the value to delete is
            set._values[toDeleteIndex] = lastvalue;
            // Update the index for the moved value
            set._indexes[lastvalue] = toDeleteIndex + 1; // All indexes are 1-based

            // Delete the slot where the moved value was stored
            set._values.pop();

            // Delete the index for the deleted slot
            delete set._indexes[value];

            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function _contains(Set storage set, bytes32 value)
        private
        view
        returns (bool)
    {
        return set._indexes[value] != 0;
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function _length(Set storage set) private view returns (uint256) {
        return set._values.length;
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function _at(Set storage set, uint256 index)
        private
        view
        returns (bytes32)
    {
        require(
            set._values.length > index,
            "EnumerableSet: index out of bounds"
        );
        return set._values[index];
    }

    // AddressSet

    struct AddressSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(AddressSet storage set, address value)
        internal
        returns (bool)
    {
        uint256 _addr = uint256(uint160(address(value)));
        return _add(set._inner, bytes32(_addr));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(AddressSet storage set, address value)
        internal
        returns (bool)
    {
        uint256 _addr = uint256(uint160(address(value)));
        return _remove(set._inner, bytes32(_addr));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(AddressSet storage set, address value)
        internal
        view
        returns (bool)
    {
        uint256 _addr = uint256(uint160(address(value)));
        return _contains(set._inner, bytes32(_addr));
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(AddressSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(AddressSet storage set, uint256 index)
        internal
        view
        returns (address)
    {
        return address(uint160(uint256(_at(set._inner, index))));
    }

    // UintSet

    struct UintSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(UintSet storage set, uint256 value) internal returns (bool) {
        return _add(set._inner, bytes32(value));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(UintSet storage set, uint256 value)
        internal
        returns (bool)
    {
        return _remove(set._inner, bytes32(value));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(UintSet storage set, uint256 value)
        internal
        view
        returns (bool)
    {
        return _contains(set._inner, bytes32(value));
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function length(UintSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(UintSet storage set, uint256 index)
        internal
        view
        returns (uint256)
    {
        return uint256(_at(set._inner, index));
    }
}

/**
 * @dev Library for managing an enumerable variant of Solidity's
 * https://solidity.readthedocs.io/en/latest/types.html#mapping-types[`mapping`]
 * type.
 *
 * Maps have the following properties:
 *
 * - Entries are added, removed, and checked for existence in constant time
 * (O(1)).
 * - Entries are enumerated in O(n). No guarantees are made on the ordering.
 *
 * ```
 * contract Example {
 *     // Add the library methods
 *     using EnumerableMap for EnumerableMap.UintToAddressMap;
 *
 *     // Declare a set state variable
 *     EnumerableMap.UintToAddressMap private myMap;
 * }
 * ```
 *
 * As of v3.0.0, only maps of type `uint256 -> address` (`UintToAddressMap`) are
 * supported.
 */
library EnumerableMap {
    // To implement this library for multiple types with as little code
    // repetition as possible, we write it in terms of a generic Map type with
    // bytes32 keys and values.
    // The Map implementation uses private functions, and user-facing
    // implementations (such as Uint256ToAddressMap) are just wrappers around
    // the underlying Map.
    // This means that we can only create new EnumerableMaps for types that fit
    // in bytes32.

    struct MapEntry {
        bytes32 _key;
        bytes32 _value;
    }

    struct Map {
        // Storage of map keys and values
        MapEntry[] _entries;
        // Position of the entry defined by a key in the `entries` array, plus 1
        // because index 0 means a key is not in the map.
        mapping(bytes32 => uint256) _indexes;
    }

    /**
     * @dev Adds a key-value pair to a map, or updates the value for an existing
     * key. O(1).
     *
     * Returns true if the key was added to the map, that is if it was not
     * already present.
     */
    function _set(
        Map storage map,
        bytes32 key,
        bytes32 value
    ) private returns (bool) {
        // We read and store the key's index to prevent multiple reads from the same storage slot
        uint256 keyIndex = map._indexes[key];

        if (keyIndex == 0) {
            // Equivalent to !contains(map, key)
            map._entries.push(MapEntry({_key: key, _value: value}));
            // The entry is stored at length-1, but we add 1 to all indexes
            // and use 0 as a sentinel value
            map._indexes[key] = map._entries.length;
            return true;
        } else {
            map._entries[keyIndex - 1]._value = value;
            return false;
        }
    }

    /**
     * @dev Removes a key-value pair from a map. O(1).
     *
     * Returns true if the key was removed from the map, that is if it was present.
     */
    function _remove(Map storage map, bytes32 key) private returns (bool) {
        // We read and store the key's index to prevent multiple reads from the same storage slot
        uint256 keyIndex = map._indexes[key];

        if (keyIndex != 0) {
            // Equivalent to contains(map, key)
            // To delete a key-value pair from the _entries array in O(1), we swap the entry to delete with the last one
            // in the array, and then remove the last entry (sometimes called as 'swap and pop').
            // This modifies the order of the array, as noted in {at}.

            uint256 toDeleteIndex = keyIndex - 1;
            uint256 lastIndex = map._entries.length - 1;

            // When the entry to delete is the last one, the swap operation is unnecessary. However, since this occurs
            // so rarely, we still do the swap anyway to avoid the gas cost of adding an 'if' statement.

            MapEntry storage lastEntry = map._entries[lastIndex];

            // Move the last entry to the index where the entry to delete is
            map._entries[toDeleteIndex] = lastEntry;
            // Update the index for the moved entry
            map._indexes[lastEntry._key] = toDeleteIndex + 1; // All indexes are 1-based

            // Delete the slot where the moved entry was stored
            map._entries.pop();

            // Delete the index for the deleted slot
            delete map._indexes[key];

            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Returns true if the key is in the map. O(1).
     */
    function _contains(Map storage map, bytes32 key)
        private
        view
        returns (bool)
    {
        return map._indexes[key] != 0;
    }

    /**
     * @dev Returns the number of key-value pairs in the map. O(1).
     */
    function _length(Map storage map) private view returns (uint256) {
        return map._entries.length;
    }

    /**
     * @dev Returns the key-value pair stored at position `index` in the map. O(1).
     *
     * Note that there are no guarantees on the ordering of entries inside the
     * array, and it may change when more entries are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function _at(Map storage map, uint256 index)
        private
        view
        returns (bytes32, bytes32)
    {
        require(
            map._entries.length > index,
            "EnumerableMap: index out of bounds"
        );

        MapEntry storage entry = map._entries[index];
        return (entry._key, entry._value);
    }

    /**
     * @dev Returns the value associated with `key`.  O(1).
     *
     * Requirements:
     *
     * - `key` must be in the map.
     */
    function _get(Map storage map, bytes32 key) private view returns (bytes32) {
        return _get(map, key, "EnumerableMap: nonexistent key");
    }

    /**
     * @dev Same as {_get}, with a custom error message when `key` is not in the map.
     */
    function _get(
        Map storage map,
        bytes32 key,
        string memory errorMessage
    ) private view returns (bytes32) {
        uint256 keyIndex = map._indexes[key];
        require(keyIndex != 0, errorMessage); // Equivalent to contains(map, key)
        return map._entries[keyIndex - 1]._value; // All indexes are 1-based
    }

    // UintToAddressMap

    struct UintToAddressMap {
        Map _inner;
    }

    /**
     * @dev Adds a key-value pair to a map, or updates the value for an existing
     * key. O(1).
     *
     * Returns true if the key was added to the map, that is if it was not
     * already present.
     */
    function set(
        UintToAddressMap storage map,
        uint256 key,
        address value
    ) internal returns (bool) {
        uint256 _addr = uint256(uint160(address(value)));
        return _set(map._inner, bytes32(key), bytes32(_addr));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the key was removed from the map, that is if it was present.
     */
    function remove(UintToAddressMap storage map, uint256 key)
        internal
        returns (bool)
    {
        return _remove(map._inner, bytes32(key));
    }

    /**
     * @dev Returns true if the key is in the map. O(1).
     */
    function contains(UintToAddressMap storage map, uint256 key)
        internal
        view
        returns (bool)
    {
        return _contains(map._inner, bytes32(key));
    }

    /**
     * @dev Returns the number of elements in the map. O(1).
     */
    function length(UintToAddressMap storage map)
        internal
        view
        returns (uint256)
    {
        return _length(map._inner);
    }

    /**
     * @dev Returns the element stored at position `index` in the set. O(1).
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(UintToAddressMap storage map, uint256 index)
        internal
        view
        returns (uint256, address)
    {
        (bytes32 key, bytes32 value) = _at(map._inner, index);
        return (uint256(key), address(uint160(uint256(value))));
    }

    /**
     * @dev Returns the value associated with `key`.  O(1).
     *
     * Requirements:
     *
     * - `key` must be in the map.
     */
    function get(UintToAddressMap storage map, uint256 key)
        internal
        view
        returns (address)
    {
        return address(uint160(uint256(_get(map._inner, bytes32(key)))));
    }

    /**
     * @dev Same as {get}, with a custom error message when `key` is not in the map.
     */
    function get(
        UintToAddressMap storage map,
        uint256 key,
        string memory errorMessage
    ) internal view returns (address) {
        return
            address(
                uint160(uint256(_get(map._inner, bytes32(key), errorMessage)))
            );
    }
}

/**
 * @dev String operations.
 */
library Strings {
    /**
     * @dev Converts a `uint256` to its ASCII `string` 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);
        uint256 index = digits - 1;
        temp = value;
        while (temp != 0) {
            buffer[index--] = bytes1(uint8(48 + (temp % 10)));
            temp /= 10;
        }
        return string(buffer);
    }
}

/**
 * @title ERC721 Non-Fungible Token Standard basic implementation
 * @dev see https://eips.ethereum.org/EIPS/eip-721
 */
contract ERC721 is
    Context,
    ERC165,
    IERC721,
    IERC721Metadata,
    IERC721Enumerable
{
    using SafeMath for uint256;
    using Address for address;
    using EnumerableSet for EnumerableSet.UintSet;
    using EnumerableMap for EnumerableMap.UintToAddressMap;
    using Strings for uint256;

    // Equals to `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))`
    // which can be also obtained as `IERC721Receiver(0).onERC721Received.selector`
    bytes4 private constant _ERC721_RECEIVED = 0x150b7a02;

    // Mapping from holder address to their (enumerable) set of owned tokens
    mapping(address => EnumerableSet.UintSet) private _holderTokens;

    // Enumerable mapping from token ids to their owners
    EnumerableMap.UintToAddressMap private _tokenOwners;

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

    // Base URI
    string private _baseURI;

    /*
     *     bytes4(keccak256('balanceOf(address)')) == 0x70a08231
     *     bytes4(keccak256('ownerOf(uint256)')) == 0x6352211e
     *     bytes4(keccak256('approve(address,uint256)')) == 0x095ea7b3
     *     bytes4(keccak256('getApproved(uint256)')) == 0x081812fc
     *     bytes4(keccak256('setApprovalForAll(address,bool)')) == 0xa22cb465
     *     bytes4(keccak256('isApprovedForAll(address,address)')) == 0xe985e9c5
     *     bytes4(keccak256('transferFrom(address,address,uint256)')) == 0x23b872dd
     *     bytes4(keccak256('safeTransferFrom(address,address,uint256)')) == 0x42842e0e
     *     bytes4(keccak256('safeTransferFrom(address,address,uint256,bytes)')) == 0xb88d4fde
     *
     *     => 0x70a08231 ^ 0x6352211e ^ 0x095ea7b3 ^ 0x081812fc ^
     *        0xa22cb465 ^ 0xe985e9c ^ 0x23b872dd ^ 0x42842e0e ^ 0xb88d4fde == 0x80ac58cd
     */
    bytes4 private constant _INTERFACE_ID_ERC721 = 0x80ac58cd;

    /*
     *     bytes4(keccak256('name()')) == 0x06fdde03
     *     bytes4(keccak256('symbol()')) == 0x95d89b41
     *     bytes4(keccak256('tokenURI(uint256)')) == 0xc87b56dd
     *
     *     => 0x06fdde03 ^ 0x95d89b41 ^ 0xc87b56dd == 0x5b5e139f
     */
    bytes4 private constant _INTERFACE_ID_ERC721_METADATA = 0x5b5e139f;

    /*
     *     bytes4(keccak256('totalSupply()')) == 0x18160ddd
     *     bytes4(keccak256('tokenOfOwnerByIndex(address,uint256)')) == 0x2f745c59
     *     bytes4(keccak256('tokenByIndex(uint256)')) == 0x4f6ccce7
     *
     *     => 0x18160ddd ^ 0x2f745c59 ^ 0x4f6ccce7 == 0x780e9d63
     */
    bytes4 private constant _INTERFACE_ID_ERC721_ENUMERABLE = 0x780e9d63;

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

        // register the supported interfaces to conform to ERC721 via ERC165
        _registerInterface(_INTERFACE_ID_ERC721);
        _registerInterface(_INTERFACE_ID_ERC721_METADATA);
        _registerInterface(_INTERFACE_ID_ERC721_ENUMERABLE);
    }

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

        return _holderTokens[owner].length();
    }

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view override returns (address) {
        return
            _tokenOwners.get(
                tokenId,
                "ERC721: owner query for nonexistent token"
            );
    }

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

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

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

        string memory _tokenURI = _tokenURIs[tokenId];

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

    /**
     * @dev Returns the base URI set via {_setBaseURI}. This will be
     * automatically added as a prefix in {tokenURI} to each token's URI, or
     * to the token ID if no specific URI is set for that token ID.
     */
    function baseURI() public view returns (string memory) {
        return _baseURI;
    }

    /**
     * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index)
        public
        view
        override
        returns (uint256)
    {
        return _holderTokens[owner].at(index);
    }

    /**
     * @dev See {IERC721Enumerable-totalSupply}.
     */
    function totalSupply() public view override returns (uint256) {
        // _tokenOwners are indexed by tokenIds, so .length() returns the number of tokenIds
        return _tokenOwners.length();
    }

    /**
     * @dev See {IERC721Enumerable-tokenByIndex}.
     */
    function tokenByIndex(uint256 index)
        public
        view
        override
        returns (uint256)
    {
        (uint256 tokenId, ) = _tokenOwners.at(index);
        return tokenId;
    }

    /**
     * @dev See {IERC721-approve}.
     */
    function approve(address to, uint256 tokenId) public virtual override {
        address owner = 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
        override
        returns (address)
    {
        require(
            _exists(tokenId),
            "ERC721: approved query for nonexistent token"
        );

        return _tokenApprovals[tokenId];
    }

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

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

    /**
     * @dev See {IERC721-isApprovedForAll}.
     */
    function isApprovedForAll(address owner, address operator)
        public
        view
        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 mecanisms 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 returns (bool) {
        return _tokenOwners.contains(tokenId);
    }

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

    /**
     * @dev Safely mints `tokenId` and transfers it to `to`.
     *
     * Requirements:
     d*
     * - `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);

        _holderTokens[to].add(tokenId);

        _tokenOwners.set(tokenId, to);

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

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

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

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

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

        _holderTokens[owner].remove(tokenId);

        _tokenOwners.remove(tokenId);

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

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

        _beforeTokenTransfer(from, to, tokenId);

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

        _holderTokens[from].remove(tokenId);
        _holderTokens[to].add(tokenId);

        _tokenOwners.set(tokenId, to);

        emit Transfer(from, to, tokenId);
    }

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

    /**
     * @dev Internal function to set the base URI for all token IDs. It is
     * automatically added as a prefix to the value returned in {tokenURI},
     * or to the token ID if {tokenURI} is empty.
     */
    function _setBaseURI(string memory baseURI_) internal virtual {
        _baseURI = baseURI_;
    }

    /**
     * @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()) {
            return true;
        }
        bytes memory returndata = to.functionCall(
            abi.encodeWithSelector(
                IERC721Receiver(to).onERC721Received.selector,
                _msgSender(),
                from,
                tokenId,
                _data
            ),
            "ERC721: transfer to non ERC721Receiver implementer"
        );
        bytes4 retval = abi.decode(returndata, (bytes4));
        return (retval == _ERC721_RECEIVED);
    }

    function _approve(address to, uint256 tokenId) private {
        _tokenApprovals[tokenId] = to;
        emit Approval(ownerOf(tokenId), to, tokenId);
    }

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

/**
 * @dev Contract module that allows children to implement role-based access
 * control mechanisms.
 *
 * Roles are referred to by their `bytes32` identifier. These should be exposed
 * in the external API and be unique. The best way to achieve this is by
 * using `public constant` hash digests:
 *
 * ```
 * bytes32 public constant MY_ROLE = keccak256("MY_ROLE");
 * ```
 *
 * Roles can be used to represent a set of permissions. To restrict access to a
 * function call, use {hasRole}:
 *
 * ```
 * function foo() public {
 *     require(hasRole(MY_ROLE, msg.sender));
 *     ...
 * }
 * ```
 *
 * Roles can be granted and revoked dynamically via the {grantRole} and
 * {revokeRole} functions. Each role has an associated admin role, and only
 * accounts that have a role's admin role can call {grantRole} and {revokeRole}.
 *
 * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means
 * that only accounts with this role will be able to grant or revoke other
 * roles. More complex role relationships can be created by using
 * {_setRoleAdmin}.
 *
 * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to
 * grant and revoke this role. Extra precautions should be taken to secure
 * accounts that have been granted it.
 */
abstract contract AccessControl is Context {
    using EnumerableSet for EnumerableSet.AddressSet;
    using Address for address;

    struct RoleData {
        EnumerableSet.AddressSet members;
        bytes32 adminRole;
    }

    mapping(bytes32 => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

    /**
     * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`
     *
     * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite
     * {RoleAdminChanged} not being emitted signaling this.
     *
     * _Available since v3.1._
     */
    event RoleAdminChanged(
        bytes32 indexed role,
        bytes32 indexed previousAdminRole,
        bytes32 indexed newAdminRole
    );

    /**
     * @dev Emitted when `account` is granted `role`.
     *
     * `sender` is the account that originated the contract call, an admin role
     * bearer except when using {_setupRole}.
     */
    event RoleGranted(
        bytes32 indexed role,
        address indexed account,
        address indexed sender
    );

    /**
     * @dev Emitted when `account` is revoked `role`.
     *
     * `sender` is the account that originated the contract call:
     *   - if using `revokeRole`, it is the admin role bearer
     *   - if using `renounceRole`, it is the role bearer (i.e. `account`)
     */
    event RoleRevoked(
        bytes32 indexed role,
        address indexed account,
        address indexed sender
    );

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) public view returns (bool) {
        return _roles[role].members.contains(account);
    }

    /**
     * @dev Returns the number of accounts that have `role`. Can be used
     * together with {getRoleMember} to enumerate all bearers of a role.
     */
    function getRoleMemberCount(bytes32 role) public view returns (uint256) {
        return _roles[role].members.length();
    }

    /**
     * @dev Returns one of the accounts that have `role`. `index` must be a
     * value between 0 and {getRoleMemberCount}, non-inclusive.
     *
     * Role bearers are not sorted in any particular way, and their ordering may
     * change at any point.
     *
     * WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure
     * you perform all queries on the same block. See the following
     * https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post]
     * for more information.
     */
    function getRoleMember(bytes32 role, uint256 index)
        public
        view
        returns (address)
    {
        return _roles[role].members.at(index);
    }

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) public view returns (bytes32) {
        return _roles[role].adminRole;
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function grantRole(bytes32 role, address account) public virtual {
        require(
            hasRole(_roles[role].adminRole, _msgSender()),
            "AccessControl: sender must be an admin to grant"
        );

        _grantRole(role, account);
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function revokeRole(bytes32 role, address account) public virtual {
        require(
            hasRole(_roles[role].adminRole, _msgSender()),
            "AccessControl: sender must be an admin to revoke"
        );

        _revokeRole(role, account);
    }

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been granted `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     */
    function renounceRole(bytes32 role, address account) public virtual {
        require(
            account == _msgSender(),
            "AccessControl: can only renounce roles for self"
        );

        _revokeRole(role, account);
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event. Note that unlike {grantRole}, this function doesn't perform any
     * checks on the calling account.
     *
     * [WARNING]
     * ====
     * This function should only be called from the constructor when setting
     * up the initial roles for the system.
     *
     * Using this function in any other way is effectively circumventing the admin
     * system imposed by {AccessControl}.
     * ====
     */
    function _setupRole(bytes32 role, address account) internal virtual {
        _grantRole(role, account);
    }

    /**
     * @dev Sets `adminRole` as ``role``'s admin role.
     *
     * Emits a {RoleAdminChanged} event.
     */
    function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual {
        emit RoleAdminChanged(role, _roles[role].adminRole, adminRole);
        _roles[role].adminRole = adminRole;
    }

    function _grantRole(bytes32 role, address account) private {
        if (_roles[role].members.add(account)) {
            emit RoleGranted(role, account, _msgSender());
        }
    }

    function _revokeRole(bytes32 role, address account) private {
        if (_roles[role].members.remove(account)) {
            emit RoleRevoked(role, account, _msgSender());
        }
    }
}

contract AccessControlMixin is AccessControl {
    string private _revertMsg;

    function _setupContractId(string memory contractId) internal {
        _revertMsg = string(
            abi.encodePacked(contractId, ": INSUFFICIENT_PERMISSIONS")
        );
    }

    modifier only(bytes32 role) {
        require(hasRole(role, _msgSender()), _revertMsg);
        _;
    }
}

interface IChildToken {
    function deposit(address user, bytes calldata depositData) external;
}

contract Initializable {
    bool inited = false;

    modifier initializer() {
        require(!inited, "already inited");
        _;
        inited = true;
    }
}

contract EIP712Base is Initializable {
    struct EIP712Domain {
        string name;
        string version;
        address verifyingContract;
        bytes32 salt;
    }

    string public constant ERC712_VERSION = "1";

    bytes32 internal constant EIP712_DOMAIN_TYPEHASH =
        keccak256(
            bytes(
                "EIP712Domain(string name,string version,address verifyingContract,bytes32 salt)"
            )
        );
    bytes32 internal domainSeperator;

    // supposed to be called once while initializing.
    // one of the contractsa that inherits this contract follows proxy pattern
    // so it is not possible to do this in a constructor
    function _initializeEIP712(string memory name) internal initializer {
        _setDomainSeperator(name);
    }

    function _setDomainSeperator(string memory name) internal {
        domainSeperator = keccak256(
            abi.encode(
                EIP712_DOMAIN_TYPEHASH,
                keccak256(bytes(name)),
                keccak256(bytes(ERC712_VERSION)),
                address(this),
                bytes32(getChainId())
            )
        );
    }

    function getDomainSeperator() public view returns (bytes32) {
        return domainSeperator;
    }

    function getChainId() public view returns (uint256) {
        uint256 id;
        assembly {
            id := chainid()
        }
        return id;
    }

    /**
     * Accept message hash and returns hash message in EIP712 compatible form
     * So that it can be used to recover signer from signature signed using EIP712 formatted data
     * https://eips.ethereum.org/EIPS/eip-712
     * "\\x19" makes the encoding deterministic
     * "\\x01" is the version byte to make it compatible to EIP-191
     */
    function toTypedMessageHash(bytes32 messageHash)
        internal
        view
        returns (bytes32)
    {
        return
            keccak256(
                abi.encodePacked("\x19\x01", getDomainSeperator(), messageHash)
            );
    }
}

contract NativeMetaTransaction is EIP712Base {
    using SafeMath for uint256;
    bytes32 private constant META_TRANSACTION_TYPEHASH =
        keccak256(
            bytes(
                "MetaTransaction(uint256 nonce,address from,bytes functionSignature)"
            )
        );
    event MetaTransactionExecuted(
        address userAddress,
        address payable relayerAddress,
        bytes functionSignature
    );
    mapping(address => uint256) nonces;

    /*
     * Meta transaction structure.
     * No point of including value field here as if user is doing value transfer then he has the funds to pay for gas
     * He should call the desired function directly in that case.
     */
    struct MetaTransaction {
        uint256 nonce;
        address from;
        bytes functionSignature;
    }

    function executeMetaTransaction(
        address userAddress,
        bytes memory functionSignature,
        bytes32 sigR,
        bytes32 sigS,
        uint8 sigV
    ) public payable returns (bytes memory) {
        MetaTransaction memory metaTx = MetaTransaction({
            nonce: nonces[userAddress],
            from: userAddress,
            functionSignature: functionSignature
        });

        require(
            verify(userAddress, metaTx, sigR, sigS, sigV),
            "Signer and signature do not match"
        );

        // increase nonce for user (to avoid re-use)
        nonces[userAddress] = nonces[userAddress].add(1);

        emit MetaTransactionExecuted(
            userAddress,
            payable(msg.sender),
            functionSignature
        );

        // Append userAddress and relayer address at the end to extract it from calling context
        (bool success, bytes memory returnData) = address(this).call(
            abi.encodePacked(functionSignature, userAddress)
        );
        require(success, "Function call not successful");

        return returnData;
    }

    function hashMetaTransaction(MetaTransaction memory metaTx)
        internal
        pure
        returns (bytes32)
    {
        return
            keccak256(
                abi.encode(
                    META_TRANSACTION_TYPEHASH,
                    metaTx.nonce,
                    metaTx.from,
                    keccak256(metaTx.functionSignature)
                )
            );
    }

    function getNonce(address user) public view returns (uint256 nonce) {
        nonce = nonces[user];
    }

    function verify(
        address signer,
        MetaTransaction memory metaTx,
        bytes32 sigR,
        bytes32 sigS,
        uint8 sigV
    ) internal view returns (bool) {
        require(signer != address(0), "NativeMetaTransaction: INVALID_SIGNER");
        return
            signer ==
            ecrecover(
                toTypedMessageHash(hashMetaTransaction(metaTx)),
                sigV,
                sigR,
                sigS
            );
    }
}

abstract contract ContextMixin {
    function msgSender() internal view returns (address payable sender) {
        if (msg.sender == address(this)) {
            bytes memory array = msg.data;
            uint256 index = msg.data.length;
            assembly {
                // Load the 32 bytes word from memory with the address on the lower 20 bytes, and mask those.
                sender := and(
                    mload(add(array, index)),
                    0xffffffffffffffffffffffffffffffffffffffff
                )
            }
        } else {
            sender = payable(msg.sender);
        }
        return sender;
    }
}

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

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

    //https://docs.soliditylang.org/en/v0.8.6/control-structures.html?#checked-or-unchecked-arithmetic
    function increment(Counter storage counter) internal {
        counter._value += 1;
    }

    //https://docs.soliditylang.org/en/v0.8.6/control-structures.html?#checked-or-unchecked-arithmetic
    function decrement(Counter storage counter) internal {
        uint256 value = counter._value;
        require(value > 0, "Counter: decrement overflow");
        //unchecked { counter._value = value - 1; }
        counter._value = value - 1;
    }

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

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

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

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

        // If the signature is valid (and not malleable), return the signer address
        address signer = ecrecover(hash, v, r, s);
        require(signer != address(0), "ECDSA: invalid signature");

        return signer;
    }

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

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

pragma solidity 0.8.9;

contract VFContract is
    ERC721,
    IChildToken,
    AccessControlMixin,
    NativeMetaTransaction,
    ContextMixin
{
    bytes32 public constant DEPOSITOR_ROLE = keccak256("DEPOSITOR_ROLE");
    mapping(uint256 => bool) public withdrawnTokens;

    // limit batching of tokens due to gas limit restrictions
    uint256 public constant BATCH_LIMIT = 20;

    event WithdrawnBatch(address indexed user, uint256[] tokenIds);
    event TransferWithMetadata(
        address indexed from,
        address indexed to,
        uint256 indexed tokenId,
        bytes metaData
    );
    // bytes newAsset,
    // bytes assetIndex,
    // bytes assetName,
    // bytes currentValue,
    // bytes percentageIndex,
    // bytes percentage

    /* VFCONTRACT */
    /************ */

    using Counters for Counters.Counter;
    using ECDSA for bytes32;
    using SafeMath for uint256;

    Counters.Counter private _tokenIdTracker;

    // "devmode" turn off validation for relay transactions
    bool private _devMode = false; // dev mode testing

    uint256 private _tokenId; //last token minted

    //bool private _isNewAsset; //new asset? on mint...

    /**
     * @dev update devmode
     */
    function updateDevMode(
        bool _mode,
        bytes32 message,
        uint256 nonce,
        bytes calldata signature
    ) external {
        require(
            _isOwner(message, nonce, signature),
            "VFContract: Not Authorized to Update DevMode"
        );
        // require(
        //     hasRole(_roles[role].adminRole, _msgSender()),
        //     "VFContract: No AdminRole to Update DevMode"
        // );
        _devMode = _mode;
    }

    /**
     * @dev Asset details update purchaseAmount on transfer
     */
    struct Asset {
        string name;
        uint256 currentValue;
        uint256 usedValue;
    }

    /**
     * @dev Percentage of asset owned
     */
    struct Percentage {
        uint256 percentage;
    }

    /**
     * @dev asset state at mint time
     */
    struct AssetStateOnMint {
        bool state;
    }

    Asset[] private assets;
    AssetStateOnMint[] private assetStateOnMints;
    Percentage[] private percentages;

    //map asset state on mint to tokenId
    mapping(uint256 => uint256) public assetMintStateToToken;

    //map asset to tokenId
    mapping(uint256 => uint256) public assetToToken;

    //map percentage to tokenId
    mapping(uint256 => uint256) public percentageToToken;

    //prevent re-runs
    mapping(address => mapping(uint256 => bool)) usedNonces;

    address private _owner; //for itx extra relay transaction owner address, previous contract

    constructor(
        string memory name_,
        string memory symbol_,
        address childChainManager,
        string memory baseURI_
    ) ERC721(name_, symbol_) {
        _setupContractId("VFContract");
        _owner = _msgSender();
        _setupRole(DEFAULT_ADMIN_ROLE, _msgSender());
        _setupRole(DEPOSITOR_ROLE, childChainManager);
        _initializeEIP712(name_);
        _setBaseURI(baseURI_);
    }

    /**
     * @dev return asset from token id
     */
    function getAssetFromTokenId(uint256 tokenId)
        external
        view
        returns (
            string memory name,
            uint256 currentValue,
            uint256 usedValue
        )
    {
        uint256 _id = assetToToken[tokenId];
        Asset memory p = assets[_id];
        return (p.name, p.currentValue, p.usedValue);
    }

    /**
     * @dev return asset from struct id
     */
    function getAssetFromStructIndex(uint256 index)
        external
        view
        returns (
            string memory name,
            uint256 currentValue,
            uint256 usedValue
        )
    {
        Asset memory p = assets[index];
        return (p.name, p.currentValue, p.usedValue);
    }

    /**
     * @dev returns asset currentValue from token id
     */
    function getAssetCurrentValue(uint256 tokenId)
        external
        view
        returns (uint256 currentValue)
    {
        uint256 _id = assetToToken[tokenId];
        Asset memory p = assets[_id];
        return p.currentValue;
    }

    /**
     * @dev returns asset usedValue (1-100 %)
     */
    function getAssetUsedValue(uint256 tokenId)
        external
        view
        returns (uint256 usedValue)
    {
        uint256 _id = assetToToken[tokenId];
        Asset memory p = assets[_id];
        return p.usedValue;
    }

    /**
     * @dev returns asset Name
     */
    function getAssetName(uint256 tokenId)
        external
        view
        returns (string memory name)
    {
        uint256 _id = assetToToken[tokenId];
        Asset memory p = assets[_id];
        return p.name;
    }

    /**
     * @dev private add new asset uri to mapping set on mint
     */
    function _setAssetOnMint(
        uint256 tokenId,
        string memory _name,
        uint256 _currentValue,
        uint256 _percentage
    ) internal {
        assets.push(Asset(_name, _currentValue, _percentage));
        uint256 id = assets.length - 1;
        assetToToken[tokenId] = id;
    }

    /**
     * @dev private add new asset uri to mapping set on mint
     */
    function _setExistingAssetOnMint(
        uint256 tokenId,
        uint256 assetIndex,
        uint256 percentage
    ) internal returns (bool) {
        Asset storage _asset = assets[assetIndex];
        uint256 currentValue = _asset.usedValue;
        uint256 result = currentValue.add(percentage);
        if (result <= 10000) {
            _asset.usedValue = result;
            assets[assetIndex] = _asset;
            assetToToken[tokenId] = assetIndex;
            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev set percentage value of asset
     */
    function getPercentageValueOfAsset(uint256 tokenId)
        external
        view
        returns (uint256 percentage)
    {
        uint256 _assetId = assetToToken[tokenId];
        Asset storage _asset = assets[_assetId];
        uint256 _currentValue = _asset.currentValue;

        uint256 _percentageId = percentageToToken[tokenId];
        Percentage storage _p = percentages[_percentageId];
        uint256 _percentage = _p.percentage;

        uint256 basispoint = _percentage;
        return calculateAssetPercentage(_currentValue, basispoint);
    }

    /**
     * @dev update asset currentValue on appraisal/update
     */
    function updateAssetCurrentValue(
        uint256 index,
        uint256 _currentValue,
        bytes32 message,
        uint256 nonce,
        bytes calldata signature
    ) external {
        require(
            _isOwner(message, nonce, signature),
            "VFContract: Not Authorized to Update Asset Value"
        );
        Asset storage _asset = assets[index];
        _asset.currentValue = _currentValue;
        assets[index] = _asset;
    }

    /**
     * @dev update asset name
     * TODO:
     */
    function updateAssetName(
        uint256 index,
        string calldata _name,
        bytes32 message,
        uint256 nonce,
        bytes calldata signature
    ) external {
        require(
            _isOwner(message, nonce, signature),
            "VFContract: Not Authorized to Update Asset Name"
        );
        Asset storage _asset = assets[index];
        _asset.name = _name;
        assets[index] = _asset;
    }

    /**
     * @dev private add new asset uri to mapping set on mint
     */
    function _setPercentageOnMint(uint256 tokenId, uint256 _percentage)
        internal
    {
        percentages.push(Percentage(_percentage));
        uint256 id = percentages.length - 1;
        percentageToToken[tokenId] = id;
    }

    /**
     * @dev private add new asset uri to mapping set on mint
     */
    function _setAssetStateOnMint(uint256 tokenId, bool _state) internal {
        assetStateOnMints.push(AssetStateOnMint(_state));
        uint256 id = assetStateOnMints.length - 1;
        assetMintStateToToken[tokenId] = id;
    }

    // added for relay services i.e. itx infura
    // _msgSender not same set in constructor for
    // future transactions ...
    function _isOwner(
        bytes32 message,
        uint256 nonce,
        bytes memory signature
    ) internal returns (bool) {
        if (_devMode) return true;
        require(!usedNonces[_owner][nonce], "VFContract: _isOwner Bad Nonce");
        address signer = ECDSA.recover(message, signature);
        if (signer == _owner) {
            usedNonces[signer][nonce] = true;
            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Creates a new token for `to`. Its token ID will be automatically
     * assigned (and available on the emitted {IERC721-Transfer} event), and the token
     * URI autogenerated based on the base URI passed at construction.
     *
     * See {ERC721-_mint}.
     *
     * Requirements:
     *
     * - the caller must be authorized to mint via _isOwner
     *
     * Extra:
     * - set last token minted: _tokenId
     * - set asset uri address if you want or value to add to base
     *
     * ~ plan is to mint here use DEFAULT_ADMIN_ROLE
     */
    function mint(
        address to,
        bool newAsset, // new or existing asset?
        uint256 assetIndex, // if existing what index?
        string memory _assetName,
        uint256 _currentValue, //ethers.utils.parseUnits(n, 2)
        uint256 _percentage,
        bytes32 message,
        uint256 nonce,
        bytes memory signature
    ) public virtual {
        require(
            _isOwner(message, nonce, signature),
            "VFContract: Not Authorized to Mint"
        );
        _tokenId = _tokenIdTracker.current();
        require(
            //!withdrawnTokens[tokenId],
            !withdrawnTokens[_tokenId],
            "VFContract: TOKEN_EXISTS_ON_ROOT_CHAIN"
        );
        _setAssetStateOnMint(_tokenId, newAsset);
        _mint(to, _tokenId);

        if (newAsset) {
            _setAssetOnMint(_tokenId, _assetName, _currentValue, _percentage);
        } else {
            require(
                _setExistingAssetOnMint(_tokenId, assetIndex, _percentage),
                "VFContract: Asset % Exceeds Availablity"
            );
            Asset storage _asset = assets[assetIndex];
            _currentValue = _asset.currentValue;
        }
        _setPercentageOnMint(_tokenId, _percentage);

        _tokenIdTracker.increment();
    }

    function calculateAssetPercentage(uint256 amount, uint256 basispoint)
        internal
        pure
        returns (uint256)
    {
        //theNumber is never a decimal
        return amount.mul(basispoint).div(10000); //returns bps add .00
    }

    /************ */
    /* VFCONTRACT */

    // This is to support Native meta transactions
    // never use msg.sender directly, use _msgSender() instead
    function _msgSender()
        internal
        view
        override
        returns (address payable sender)
    {
        return ContextMixin.msgSender();
    }

    /**
     * @notice called when token is deposited on root chain
     * @dev Should be callable only by ChildChainManager
     * Should handle deposit by minting the required tokenId(s) for user
     * Should set `withdrawnTokens` mapping to `false` for the tokenId being deposited
     * Minting can also be done by other functions
     * @param user user address for whom deposit is being done
     * @param depositData abi encoded tokenIds. Batch deposit also supported.
     */
    function deposit(address user, bytes calldata depositData)
        external
        override
        only(DEPOSITOR_ROLE)
    {
        // deposit single
        if (depositData.length == 32) {
            uint256 tokenId = abi.decode(depositData, (uint256));
            withdrawnTokens[tokenId] = false;
            _mint(user, tokenId);

            // deposit batch
        } else {
            uint256[] memory tokenIds = abi.decode(depositData, (uint256[]));
            uint256 length = tokenIds.length;
            for (uint256 i; i < length; i++) {
                withdrawnTokens[tokenIds[i]] = false;
                _mint(user, tokenIds[i]);
            }
        }
    }

    /**
     * @notice called when user wants to withdraw token back to root chain
     * @dev Should handle withraw by burning user's token.
     * Should set `withdrawnTokens` mapping to `true` for the tokenId being withdrawn
     * This transaction will be verified when exiting on root chain
     * @param tokenId tokenId to withdraw
     */
    function withdraw(uint256 tokenId) external {
        require(
            _msgSender() == ownerOf(tokenId),
            "VFContract: INVALID_TOKEN_OWNER"
        );
        withdrawnTokens[tokenId] = true;
        _burn(tokenId);
    }

    /**
     * @notice called when user wants to withdraw multiple tokens back to root chain
     * @dev Should burn user's tokens. This transaction will be verified when exiting on root chain
     * @param tokenIds tokenId list to withdraw
     */
    function withdrawBatch(uint256[] calldata tokenIds) external {
        uint256 length = tokenIds.length;
        require(length <= BATCH_LIMIT, "VFContract: EXCEEDS_BATCH_LIMIT");

        // Iteratively burn ERC721 tokens, for performing
        // batch withdraw
        for (uint256 i; i < length; i++) {
            uint256 tokenId = tokenIds[i];

            require(
                _msgSender() == ownerOf(tokenId),
                string(
                    abi.encodePacked(
                        "VFContract: INVALID_TOKEN_OWNER ",
                        tokenId
                    )
                )
            );
            withdrawnTokens[tokenId] = true;
            _burn(tokenId);
        }

        // At last emit this event, which will be used
        // in MintableERC721 predicate contract on L1
        // while verifying burn proof
        emit WithdrawnBatch(_msgSender(), tokenIds);
    }

    /**
     * @notice called when user wants to withdraw token back to root chain with token URI
     * @dev Should handle withraw by burning user's token.
     * Should set `withdrawnTokens` mapping to `true` for the tokenId being withdrawn
     * This transaction will be verified when exiting on root chain
     *
     * @param tokenId tokenId to withdraw
     */
    function withdrawWithMetadata(uint256 tokenId) external {
        require(
            _msgSender() == ownerOf(tokenId),
            "VFContract: INVALID_TOKEN_OWNER"
        );
        withdrawnTokens[tokenId] = true;

        // Encoding metadata associated with tokenId & emitting event
        emit TransferWithMetadata(
            ownerOf(tokenId),
            address(0),
            tokenId,
            this.encodeTokenMetadata(tokenId)
            // this.encodeNewAsset(tokenId),
            // this.encodeAssetIndex(tokenId),
            // this.encodeAssetName(tokenId),
            // this.encodeCurrentValue(tokenId),
            // this.encodePercentageIndex(tokenId),
            // this.encodePercentage(tokenId)
        );

        _burn(tokenId);
    }

    /**
     * @notice This method is supposed to be called by client when withdrawing token with metadata
     * and pass return value of this function as second paramter of `withdrawWithMetadata` method
     *
     * It can be overridden by clients to encode data in a different form, which needs to
     * be decoded back by them correctly during exiting
     *
     * @param tokenId Token for which URI to be fetched
     */
    function encodeTokenMetadata(uint256 tokenId)
        external
        view
        virtual
        returns (bytes memory)
    {
        // You're always free to change this default implementation
        // and pack more data in byte array which can be decoded back
        // in L1
        return abi.encode(tokenURI(tokenId));
    }

    /**
     * @notice This method is supposed to be called by client when withdrawing token with metadata
     * and pass return value of this function as second paramter of `withdrawWithMetadata` method
     *
     * It can be overridden by clients to encode data in a different form, which needs to
     * be decoded back by them correctly during exiting
     *
     * @param tokenId Token to get asset state on mint to reconstruct on exit
     */
    function encodeNewAsset(uint256 tokenId)
        external
        view
        virtual
        returns (bytes memory)
    {
        // You're always free to change this default implementation
        // and pack more data in byte array which can be decoded back
        // in L1
        uint256 _id = assetMintStateToToken[tokenId];
        AssetStateOnMint memory asom = assetStateOnMints[_id];
        return abi.encode(asom.state);
    }

    /**
     * @notice This method is supposed to be called by client when withdrawing token with metadata
     * and pass return value of this function as second paramter of `withdrawWithMetadata` method
     *
     * It can be overridden by clients to encode data in a different form, which needs to
     * be decoded back by them correctly during exiting
     *
     * @param tokenId Token to get asset index with name and reconstruct on exit
     */
    function encodeAssetName(uint256 tokenId)
        external
        view
        virtual
        returns (bytes memory)
    {
        // You're always free to change this default implementation
        // and pack more data in byte array which can be decoded back
        // in L1
        uint256 _id = assetToToken[tokenId];
        Asset memory p = assets[_id];
        return abi.encode(p.name);
    }

    /**
     * @notice This method is supposed to be called by client when withdrawing token with metadata
     * and pass return value of this function as second paramter of `withdrawWithMetadata` method
     *
     * It can be overridden by clients to encode data in a different form, which needs to
     * be decoded back by them correctly during exiting
     *
     * @param tokenId Token to get asset index with current value and reconstruct on exit
     */
    function encodeCurrentValue(uint256 tokenId)
        external
        view
        virtual
        returns (bytes memory)
    {
        // You're always free to change this default implementation
        // and pack more data in byte array which can be decoded back
        // in L1
        uint256 _id = assetToToken[tokenId];
        Asset memory p = assets[_id];
        return abi.encode(p.currentValue);
    }

    /**
     * @notice This method is supposed to be called by client when withdrawing token with metadata
     * and pass return value of this function as second paramter of `withdrawWithMetadata` method
     *
     * It can be overridden by clients to encode data in a different form, which needs to
     * be decoded back by them correctly during exiting
     *
     * @param tokenId Token to get asset index with current used value and reconstruct on exit
     */
    function encodeAssetIndex(uint256 tokenId)
        external
        view
        virtual
        returns (bytes memory)
    {
        // You're always free to change this default implementation
        // and pack more data in byte array which can be decoded back
        // in L1
        uint256 _id = assetToToken[tokenId];
        return abi.encode(_id);
    }

    /**
     * @notice This method is supposed to be called by client when withdrawing token with metadata
     * and pass return value of this function as second paramter of `withdrawWithMetadata` method
     *
     * It can be overridden by clients to encode data in a different form, which needs to
     * be decoded back by them correctly during exiting
     *
     * @param tokenId Token to get percentage index and reconstruct on exit
     */
    function encodePercentageIndex(uint256 tokenId)
        external
        view
        virtual
        returns (bytes memory)
    {
        // You're always free to change this default implementation
        // and pack more data in byte array which can be decoded back
        // in L1

        uint256 _percentageId = percentageToToken[tokenId];
        // Percentage storage _p = percentages[_percentageId];
        // uint256 _percentage = _p.percentage;

        return abi.encode(_percentageId);
    }

    /**
     * @notice This method is supposed to be called by client when withdrawing token with metadata
     * and pass return value of this function as second paramter of `withdrawWithMetadata` method
     *
     * It can be overridden by clients to encode data in a different form, which needs to
     * be decoded back by them correctly during exiting
     *
     * @param tokenId Token to get percentage value and reconstruct on exit
     */
    function encodePercentage(uint256 tokenId)
        external
        view
        virtual
        returns (bytes memory)
    {
        // You're always free to change this default implementation
        // and pack more data in byte array which can be decoded back
        // in L1

        uint256 _percentageId = percentageToToken[tokenId];
        Percentage storage _p = percentages[_percentageId];
        uint256 _percentage = _p.percentage;

        return abi.encode(_percentage);
    }

    // /**
    //  * @notice Example function to handle minting tokens on matic chain
    //  * @dev Minting can be done as per requirement,
    //  * This implementation allows only admin to mint tokens but it can be changed as per requirement
    //  * Should verify if token is withdrawn by checking `withdrawnTokens` mapping
    //  * @param user user for whom tokens are being minted
    //  * @param tokenId tokenId to mint
    //  */
    // function mint(address user, uint256 tokenId)
    //     public
    //     only(DEFAULT_ADMIN_ROLE)
    // {
    //     require(
    //         !withdrawnTokens[tokenId],
    //         "VFContract: TOKEN_EXISTS_ON_ROOT_CHAIN"
    //     );
    //     _mint(user, tokenId);
    // }
}

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

Contract ABI

[{"inputs":[{"internalType":"string","name":"name_","type":"string"},{"internalType":"string","name":"symbol_","type":"string"},{"internalType":"address","name":"childChainManager","type":"address"},{"internalType":"string","name":"baseURI_","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":"address","name":"userAddress","type":"address"},{"indexed":false,"internalType":"address payable","name":"relayerAddress","type":"address"},{"indexed":false,"internalType":"bytes","name":"functionSignature","type":"bytes"}],"name":"MetaTransactionExecuted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","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":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"bytes","name":"metaData","type":"bytes"}],"name":"TransferWithMetadata","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"WithdrawnBatch","type":"event"},{"inputs":[],"name":"BATCH_LIMIT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEPOSITOR_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ERC712_VERSION","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"assetMintStateToToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"assetToToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"},{"internalType":"bytes","name":"depositData","type":"bytes"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"encodeAssetIndex","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"encodeAssetName","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"encodeCurrentValue","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"encodeNewAsset","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"encodePercentage","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"encodePercentageIndex","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"encodeTokenMetadata","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"userAddress","type":"address"},{"internalType":"bytes","name":"functionSignature","type":"bytes"},{"internalType":"bytes32","name":"sigR","type":"bytes32"},{"internalType":"bytes32","name":"sigS","type":"bytes32"},{"internalType":"uint8","name":"sigV","type":"uint8"}],"name":"executeMetaTransaction","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getAssetCurrentValue","outputs":[{"internalType":"uint256","name":"currentValue","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"getAssetFromStructIndex","outputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"uint256","name":"currentValue","type":"uint256"},{"internalType":"uint256","name":"usedValue","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getAssetFromTokenId","outputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"uint256","name":"currentValue","type":"uint256"},{"internalType":"uint256","name":"usedValue","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getAssetName","outputs":[{"internalType":"string","name":"name","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getAssetUsedValue","outputs":[{"internalType":"uint256","name":"usedValue","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getChainId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getDomainSeperator","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"getNonce","outputs":[{"internalType":"uint256","name":"nonce","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getPercentageValueOfAsset","outputs":[{"internalType":"uint256","name":"percentage","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"getRoleMember","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleMemberCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":"bool","name":"newAsset","type":"bool"},{"internalType":"uint256","name":"assetIndex","type":"uint256"},{"internalType":"string","name":"_assetName","type":"string"},{"internalType":"uint256","name":"_currentValue","type":"uint256"},{"internalType":"uint256","name":"_percentage","type":"uint256"},{"internalType":"bytes32","name":"message","type":"bytes32"},{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"percentageToToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"},{"internalType":"uint256","name":"_currentValue","type":"uint256"},{"internalType":"bytes32","name":"message","type":"bytes32"},{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"updateAssetCurrentValue","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"},{"internalType":"string","name":"_name","type":"string"},{"internalType":"bytes32","name":"message","type":"bytes32"},{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"updateAssetName","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_mode","type":"bool"},{"internalType":"bytes32","name":"message","type":"bytes32"},{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"updateDevMode","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"withdrawBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"withdrawWithMetadata","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"withdrawnTokens","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"}]

6080604052600c805460ff199081169091556011805490911690553480156200002757600080fd5b50604051620055c9380380620055c98339810160408190526200004a916200064a565b83836200005e6301ffc9a760e01b6200017a565b815162000073906006906020850190620004ca565b50805162000089906007906020840190620004ca565b506200009c6380ac58cd60e01b6200017a565b620000ae635b5e139f60e01b6200017a565b620000c063780e9d6360e01b6200017a565b505060408051808201909152600a815269159190dbdb9d1c9858dd60b21b6020820152620000ee90620001ff565b620000f86200023c565b601a80546001600160a01b0319166001600160a01b03929092169190911790556200012e6000620001286200023c565b62000258565b6200015a7f8f4f2da22e8ac8f11e15f9fc141cddbb5deea8800186560abb6e68c5496619a98362000258565b620001658462000264565b6200017081620002c5565b505050506200077d565b6001600160e01b03198082161415620001da5760405162461bcd60e51b815260206004820152601c60248201527f4552433136353a20696e76616c696420696e746572666163652069640000000060448201526064015b60405180910390fd5b6001600160e01b0319166000908152602081905260409020805460ff19166001179055565b80604051602001620002129190620006fd565b604051602081830303815290604052600b908051906020019062000238929190620004ca565b5050565b600062000253620002da60201b620027c41760201c565b905090565b62000238828262000339565b600c5460ff1615620002aa5760405162461bcd60e51b815260206004820152600e60248201526d185b1c9958591e481a5b9a5d195960921b6044820152606401620001d1565b620002b581620003b4565b50600c805460ff19166001179055565b805162000238906009906020840190620004ca565b6000333014156200033357600080368080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505050503601516001600160a01b03169150620003369050565b50335b90565b6000828152600a60209081526040909120620003609183906200282162000456821b17901c565b156200023857620003706200023c565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6040518060800160405280604f81526020016200557a604f9139805160209182012082519282019290922060408051808201825260018152603160f81b90840152805180840194909452838101919091527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc660608401523060808401524660a0808501919091528151808503909101815260c090930190528151910120600d55565b60006001600160a01b0382166200046e848262000478565b9150505b92915050565b6000818152600183016020526040812054620004c15750815460018181018455600084815260208082209093018490558454848252828601909352604090209190915562000472565b50600062000472565b828054620004d89062000740565b90600052602060002090601f016020900481019282620004fc576000855562000547565b82601f106200051757805160ff191683800117855562000547565b8280016001018555821562000547579182015b82811115620005475782518255916020019190600101906200052a565b506200055592915062000559565b5090565b5b808211156200055557600081556001016200055a565b634e487b7160e01b600052604160045260246000fd5b60005b83811015620005a357818101518382015260200162000589565b83811115620005b3576000848401525b50505050565b600082601f830112620005cb57600080fd5b81516001600160401b0380821115620005e857620005e862000570565b604051601f8301601f19908116603f0116810190828211818310171562000613576200061362000570565b816040528381528660208588010111156200062d57600080fd5b6200064084602083016020890162000586565b9695505050505050565b600080600080608085870312156200066157600080fd5b84516001600160401b03808211156200067957600080fd5b6200068788838901620005b9565b955060208701519150808211156200069e57600080fd5b620006ac88838901620005b9565b604088015190955091506001600160a01b0382168214620006cc57600080fd5b606087015191935080821115620006e257600080fd5b50620006f187828801620005b9565b91505092959194509250565b600082516200071181846020870162000586565b7f3a20494e53554646494349454e545f5045524d495353494f4e53000000000000920191825250601a01919050565b600181811c908216806200075557607f821691505b602082108114156200077757634e487b7160e01b600052602260045260246000fd5b50919050565b614ded806200078d6000396000f3fe6080604052600436106103765760003560e01c80636c0360eb116101d1578063a5e584dc11610102578063ca15c873116100a0578063d547741f1161006f578063d547741f14610a98578063d5f19bd114610ab8578063e985e9c514610ad8578063f684908914610b2157600080fd5b8063ca15c87314610a18578063ca9706a714610a38578063cf2c52cb14610a58578063d161aa2a14610a7857600080fd5b8063bb61a6d2116100dc578063bb61a6d21461098b578063bbcd7be0146109b8578063c1497aef146109d8578063c87b56dd146109f857600080fd5b8063a5e584dc1461092b578063a65bfb8e1461094b578063b88d4fde1461096b57600080fd5b806395b6f5391161016f5780639c8d4156116101495780639c8d4156146108a2578063a217fddf146108c2578063a22cb465146108d7578063a3b0b5a3146108f757600080fd5b806395b6f5391461084d57806395d89b411461086d57806397d7692a1461088257600080fd5b80639010d07c116101ab5780639010d07c146107d857806391d14854146107f85780639384f70d146108185780639559c0bd1461083857600080fd5b80636c0360eb1461078357806370a08231146107985780638538eb72146107b857600080fd5b80632d0335ab116102ab57806342842e0e11610249578063561e735411610223578063561e7354146106f45780635de41ef4146107235780636352211e1461074357806369c1a1bb1461076357600080fd5b806342842e0e14610694578063440da887146106b45780634f6ccce7146106d457600080fd5b80632f745c59116102855780632f745c59146106215780633408e4701461064157806336568abe1461065457806340777f781461067457600080fd5b80632d0335ab146105ab5780632e1a7d4d146105e15780632f2ff15d1461060157600080fd5b80631653c39a1161031857806322aab758116102f257806322aab7581461050e57806323b872dd1461053b578063248a9ca31461055b57806324fc099b1461058b57600080fd5b80631653c39a146104b657806318160ddd146104d657806320379ee5146104f957600080fd5b8063081812fc11610354578063081812fc1461041c578063095ea7b3146104545780630c53c51c146104765780630f7e59701461048957600080fd5b806301ffc9a71461037b57806306fdde03146103ca57806307a974fc146103ec575b600080fd5b34801561038757600080fd5b506103b5610396366004614183565b6001600160e01b03191660009081526020819052604090205460ff1690565b60405190151581526020015b60405180910390f35b3480156103d657600080fd5b506103df610b4e565b6040516103c191906141f8565b3480156103f857600080fd5b506103b561040736600461420b565b600f6020526000908152604090205460ff1681565b34801561042857600080fd5b5061043c61043736600461420b565b610be0565b6040516001600160a01b0390911681526020016103c1565b34801561046057600080fd5b5061047461046f366004614240565b610c6d565b005b6103df610484366004614335565b610d95565b34801561049557600080fd5b506103df604051806040016040528060018152602001603160f81b81525081565b3480156104c257600080fd5b506103df6104d136600461420b565b610f7f565b3480156104e257600080fd5b506104eb610fb0565b6040519081526020016103c1565b34801561050557600080fd5b50600d546104eb565b34801561051a57600080fd5b506104eb61052936600461420b565b60166020526000908152604090205481565b34801561054757600080fd5b506104746105563660046143b0565b610fc1565b34801561056757600080fd5b506104eb61057636600461420b565b6000908152600a602052604090206002015490565b34801561059757600080fd5b506103df6105a636600461420b565b610ff9565b3480156105b757600080fd5b506104eb6105c63660046143ec565b6001600160a01b03166000908152600e602052604090205490565b3480156105ed57600080fd5b506104746105fc36600461420b565b6110ea565b34801561060d57600080fd5b5061047461061c366004614407565b61117f565b34801561062d57600080fd5b506104eb61063c366004614240565b61120f565b34801561064d57600080fd5b50466104eb565b34801561066057600080fd5b5061047461066f366004614407565b61123a565b34801561068057600080fd5b5061047461068f366004614474565b6112c4565b3480156106a057600080fd5b506104746106af3660046143b0565b6113f6565b3480156106c057600080fd5b506104746106cf3660046144ed565b611411565b3480156106e057600080fd5b506104eb6106ef36600461420b565b6114cb565b34801561070057600080fd5b5061071461070f36600461420b565b6114e1565b6040516103c193929190614554565b34801561072f57600080fd5b506103df61073e36600461420b565b6115d5565b34801561074f57600080fd5b5061043c61075e36600461420b565b611641565b34801561076f57600080fd5b5061071461077e36600461420b565b611669565b34801561078f57600080fd5b506103df611776565b3480156107a457600080fd5b506104eb6107b33660046143ec565b611785565b3480156107c457600080fd5b506104746107d3366004614579565b611811565b3480156107e457600080fd5b5061043c6107f3366004614605565b611948565b34801561080457600080fd5b506103b5610813366004614407565b611960565b34801561082457600080fd5b506104eb61083336600461420b565b611978565b34801561084457600080fd5b506104eb601481565b34801561085957600080fd5b506103df61086836600461420b565b611a6d565b34801561087957600080fd5b506103df611aa6565b34801561088e57600080fd5b506104eb61089d36600461420b565b611ab5565b3480156108ae57600080fd5b506104746108bd366004614627565b611ba5565b3480156108ce57600080fd5b506104eb600081565b3480156108e357600080fd5b506104746108f236600461469b565b611d33565b34801561090357600080fd5b506104eb7f8f4f2da22e8ac8f11e15f9fc141cddbb5deea8800186560abb6e68c5496619a981565b34801561093757600080fd5b5061047461094636600461420b565b611e35565b34801561095757600080fd5b506104746109663660046146c5565b611f93565b34801561097757600080fd5b50610474610986366004614791565b612154565b34801561099757600080fd5b506104eb6109a636600461420b565b60176020526000908152604090205481565b3480156109c457600080fd5b506104eb6109d336600461420b565b612193565b3480156109e457600080fd5b506103df6109f336600461420b565b612227565b348015610a0457600080fd5b506103df610a1336600461420b565b612325565b348015610a2457600080fd5b506104eb610a3336600461420b565b61247f565b348015610a4457600080fd5b506103df610a5336600461420b565b612496565b348015610a6457600080fd5b50610474610a733660046147f8565b6124ed565b348015610a8457600080fd5b506103df610a9336600461420b565b61261b565b348015610aa457600080fd5b50610474610ab3366004614407565b61271b565b348015610ac457600080fd5b506103df610ad336600461420b565b61279e565b348015610ae457600080fd5b506103b5610af336600461484a565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b348015610b2d57600080fd5b506104eb610b3c36600461420b565b60186020526000908152604090205481565b606060068054610b5d90614874565b80601f0160208091040260200160405190810160405280929190818152602001828054610b8990614874565b8015610bd65780601f10610bab57610100808354040283529160200191610bd6565b820191906000526020600020905b815481529060010190602001808311610bb957829003601f168201915b5050505050905090565b6000610beb8261283f565b610c515760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b6000610c7882611641565b9050806001600160a01b0316836001600160a01b03161415610ce65760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610c48565b806001600160a01b0316610cf861284c565b6001600160a01b03161480610d145750610d1481610af361284c565b610d865760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610c48565b610d908383612856565b505050565b60408051606081810183526001600160a01b0388166000818152600e602090815290859020548452830152918101869052610dd387828787876128c4565b610e295760405162461bcd60e51b815260206004820152602160248201527f5369676e657220616e64207369676e617475726520646f206e6f74206d6174636044820152600d60fb1b6064820152608401610c48565b6001600160a01b0387166000908152600e6020526040902054610e4d9060016129b4565b6001600160a01b0388166000908152600e60205260409081902091909155517f5845892132946850460bff5a0083f71031bc5bf9aadcd40f1de79423eac9b10b90610e9d90899033908a906148af565b60405180910390a1600080306001600160a01b0316888a604051602001610ec59291906148db565b60408051601f1981840301815290829052610edf91614912565b6000604051808303816000865af19150503d8060008114610f1c576040519150601f19603f3d011682016040523d82523d6000602084013e610f21565b606091505b509150915081610f735760405162461bcd60e51b815260206004820152601c60248201527f46756e6374696f6e2063616c6c206e6f74207375636365737366756c000000006044820152606401610c48565b98975050505050505050565b6060610f8a82612325565b604051602001610f9a91906141f8565b6040516020818303038152906040529050919050565b6000610fbc6002612a13565b905090565b610fd2610fcc61284c565b82612a1d565b610fee5760405162461bcd60e51b8152600401610c489061492e565b610d90838383612b03565b600081815260176020526040812054601380546060939190839081106110215761102161497f565b906000526020600020906003020160405180606001604052908160008201805461104a90614874565b80601f016020809104026020016040519081016040528092919081815260200182805461107690614874565b80156110c35780601f10611098576101008083540402835291602001916110c3565b820191906000526020600020905b8154815290600101906020018083116110a657829003601f168201915b50505091835250506001820154602082015260029091015460409091015251949350505050565b6110f381611641565b6001600160a01b031661110461284c565b6001600160a01b03161461115a5760405162461bcd60e51b815260206004820152601f60248201527f5646436f6e74726163743a20494e56414c49445f544f4b454e5f4f574e4552006044820152606401610c48565b6000818152600f60205260409020805460ff1916600117905561117c81612c84565b50565b6000828152600a602052604090206002015461119d9061081361284c565b6112015760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e60448201526e0818591b5a5b881d1bc819dc985b9d608a1b6064820152608401610c48565b61120b8282612d3e565b5050565b6001600160a01b03821660009081526001602052604081206112319083612da7565b90505b92915050565b61124261284c565b6001600160a01b0316816001600160a01b0316146112ba5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b6064820152608401610c48565b61120b8282612db3565b611305848484848080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250612e1c92505050565b61136a5760405162461bcd60e51b815260206004820152603060248201527f5646436f6e74726163743a204e6f7420417574686f72697a656420746f20557060448201526f646174652041737365742056616c756560801b6064820152608401610c48565b60006013878154811061137f5761137f61497f565b9060005260206000209060030201905085816001018190555080601388815481106113ac576113ac61497f565b906000526020600020906003020160008201816000019080546113ce90614874565b6113d9929190613fab565b506001828101549082015560029182015491015550505050505050565b610d9083838360405180602001604052806000815250612154565b611452848484848080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250612e1c92505050565b6114b35760405162461bcd60e51b815260206004820152602c60248201527f5646436f6e74726163743a204e6f7420417574686f72697a656420746f20557060448201526b64617465204465764d6f646560a01b6064820152608401610c48565b50506011805460ff1916931515939093179092555050565b6000806114d9600284612f11565b509392505050565b60606000806000601385815481106114fb576114fb61497f565b906000526020600020906003020160405180606001604052908160008201805461152490614874565b80601f016020809104026020016040519081016040528092919081815260200182805461155090614874565b801561159d5780601f106115725761010080835404028352916020019161159d565b820191906000526020600020905b81548152906001019060200180831161158057829003601f168201915b505050918352505060018201546020808301919091526002909201546040918201528251918301519201519097919650945092505050565b600081815260166020526040812054601480546060939190839081106115fd576115fd61497f565b6000918252602091829020604080518085018252929091015460ff161515808352815193840152909250015b60405160208183030381529060405292505050919050565b600061123482604051806060016040528060298152602001614d8f6029913960029190612f2f565b606060008060006017600086815260200190815260200160002054905060006013828154811061169b5761169b61497f565b90600052602060002090600302016040518060600160405290816000820180546116c490614874565b80601f01602080910402602001604051908101604052809291908181526020018280546116f090614874565b801561173d5780601f106117125761010080835404028352916020019161173d565b820191906000526020600020905b81548152906001019060200180831161172057829003601f168201915b50505091835250506001820154602080830191909152600290920154604091820152825191830151920151909891975095509350505050565b606060098054610b5d90614874565b60006001600160a01b0382166117f05760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610c48565b6001600160a01b038216600090815260016020526040902061123490612a13565b611852848484848080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250612e1c92505050565b6118b65760405162461bcd60e51b815260206004820152602f60248201527f5646436f6e74726163743a204e6f7420417574686f72697a656420746f20557060448201526e64617465204173736574204e616d6560881b6064820152608401610c48565b6000601388815481106118cb576118cb61497f565b6000918252602090912060039091020190506118e8818888614036565b5080601389815481106118fd576118fd61497f565b9060005260206000209060030201600082018160000190805461191f90614874565b61192a929190613fab565b50600182810154908201556002918201549101555050505050505050565b6000828152600a602052604081206112319083612da7565b6000828152600a602052604081206112319083612f3c565b600081815260176020526040812054601380548391908390811061199e5761199e61497f565b90600052602060002090600302016040518060600160405290816000820180546119c790614874565b80601f01602080910402602001604051908101604052809291908181526020018280546119f390614874565b8015611a405780601f10611a1557610100808354040283529160200191611a40565b820191906000526020600020905b815481529060010190602001808311611a2357829003601f168201915b50505050508152602001600182015481526020016002820154815250509050806020015192505050919050565b6000818152601760209081526040918290205482519182018190526060929091015b604051602081830303815290604052915050919050565b606060078054610b5d90614874565b6000818152601760205260408120546013805483919083908110611adb57611adb61497f565b9060005260206000209060030201604051806060016040529081600082018054611b0490614874565b80601f0160208091040260200160405190810160405280929190818152602001828054611b3090614874565b8015611b7d5780601f10611b5257610100808354040283529160200191611b7d565b820191906000526020600020905b815481529060010190602001808311611b6057829003601f168201915b5050509183525050600182015460208201526002909101546040918201520151949350505050565b806014811115611bf75760405162461bcd60e51b815260206004820152601f60248201527f5646436f6e74726163743a20455843454544535f42415443485f4c494d4954006044820152606401610c48565b60005b81811015611ce3576000848483818110611c1657611c1661497f565b905060200201359050611c2881611641565b6001600160a01b0316611c3961284c565b6001600160a01b03161481604051602001611c8091907f5646436f6e74726163743a20494e56414c49445f544f4b454e5f4f574e4552208152602081019190915260400190565b60405160208183030381529060405290611cad5760405162461bcd60e51b8152600401610c4891906141f8565b506000818152600f60205260409020805460ff19166001179055611cd081612c84565b5080611cdb816149ab565b915050611bfa565b50611cec61284c565b6001600160a01b03167ff871896b17e9cb7a64941c62c188a4f5c621b86800e3d15452ece01ce56073df8484604051611d269291906149c6565b60405180910390a2505050565b611d3b61284c565b6001600160a01b0316826001600160a01b03161415611d9c5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610c48565b8060056000611da961284c565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff191692151592909217909155611ded61284c565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611e29911515815260200190565b60405180910390a35050565b611e3e81611641565b6001600160a01b0316611e4f61284c565b6001600160a01b031614611ea55760405162461bcd60e51b815260206004820152601f60248201527f5646436f6e74726163743a20494e56414c49445f544f4b454e5f4f574e4552006044820152606401610c48565b6000818152600f60205260408120805460ff191660011790558190611ec982611641565b6001600160a01b03167ff94915c6d1fd521cee85359239227480c7e8776d7caf1fc3bacad5c269b66a14306001600160a01b0316631653c39a866040518263ffffffff1660e01b8152600401611f2191815260200190565b60006040518083038186803b158015611f3957600080fd5b505afa158015611f4d573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611f759190810190614a02565b604051611f8291906141f8565b60405180910390a461117c81612c84565b611f9e838383612e1c565b611ff55760405162461bcd60e51b815260206004820152602260248201527f5646436f6e74726163743a204e6f7420417574686f72697a656420746f204d696044820152611b9d60f21b6064820152608401610c48565b60105460128190556000908152600f602052604090205460ff161561206b5760405162461bcd60e51b815260206004820152602660248201527f5646436f6e74726163743a20544f4b454e5f4558495354535f4f4e5f524f4f546044820152652fa1a420a4a760d11b6064820152608401610c48565b61207760125489612f61565b61208389601254612fda565b871561209c576120976012548787876130f2565b612133565b6120a9601254888661319c565b6121055760405162461bcd60e51b815260206004820152602760248201527f5646436f6e74726163743a2041737365742025204578636565647320417661696044820152666c61626c69747960c81b6064820152608401610c48565b60006013888154811061211a5761211a61497f565b9060005260206000209060030201905080600101549550505b61213f6012548561326b565b61214960106132d6565b505050505050505050565b61216561215f61284c565b83612a1d565b6121815760405162461bcd60e51b8152600401610c489061492e565b61218d848484846132f3565b50505050565b60008181526017602052604081205460138054839190839081106121b9576121b961497f565b906000526020600020906003020190506000816001015490506000601860008781526020019081526020016000205490506000601582815481106121ff576121ff61497f565b600091825260209091200180549091508061221a8582613371565b9998505050505050505050565b6000818152601760205260408120546013805460609391908390811061224f5761224f61497f565b906000526020600020906003020160405180606001604052908160008201805461227890614874565b80601f01602080910402602001604051908101604052809291908181526020018280546122a490614874565b80156122f15780601f106122c6576101008083540402835291602001916122f1565b820191906000526020600020905b8154815290600101906020018083116122d457829003601f168201915b50505050508152602001600182015481526020016002820154815250509050806000015160405160200161162991906141f8565b60606123308261283f565b6123945760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610c48565b600082815260086020526040812080546123ad90614874565b80601f01602080910402602001604051908101604052809291908181526020018280546123d990614874565b80156124265780601f106123fb57610100808354040283529160200191612426565b820191906000526020600020905b81548152906001019060200180831161240957829003601f168201915b505050505090506009805461243a90614874565b151590506124485792915050565b80511561246357600981604051602001611a8f929190614a6f565b600961246e84613389565b604051602001611a8f929190614a6f565b6000818152600a6020526040812061123490612a13565b600081815260186020526040812054601580546060939190839081106124be576124be61497f565b600091825260209182902001546040805180840192909252805180830390930183529081019052949350505050565b7f8f4f2da22e8ac8f11e15f9fc141cddbb5deea8800186560abb6e68c5496619a961251a8161081361284c565b600b9061253a5760405162461bcd60e51b8152600401610c489190614af2565b50602082141561257a5760006125528385018561420b565b6000818152600f60205260409020805460ff1916905590506125748582612fda565b5061218d565b600061258883850185614b77565b805190915060005b81811015612612576000600f60008584815181106125b0576125b061497f565b6020026020010151815260200190815260200160002060006101000a81548160ff021916908315150217905550612600878483815181106125f3576125f361497f565b6020026020010151612fda565b8061260a816149ab565b915050612590565b50505050505050565b600081815260176020526040812054601380546060939190839081106126435761264361497f565b906000526020600020906003020160405180606001604052908160008201805461266c90614874565b80601f016020809104026020016040519081016040528092919081815260200182805461269890614874565b80156126e55780601f106126ba576101008083540402835291602001916126e5565b820191906000526020600020905b8154815290600101906020018083116126c857829003601f168201915b50505050508152602001600182015481526020016002820154815250509050806020015160405160200161162991815260200190565b6000828152600a60205260409020600201546127399061081361284c565b6112ba5760405162461bcd60e51b815260206004820152603060248201527f416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e60448201526f2061646d696e20746f207265766f6b6560801b6064820152608401610c48565b600081815260186020908152604091829020548251918201819052606092909101611a8f565b60003330141561281b57600080368080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505050503601516001600160a01b0316915061281e9050565b50335b90565b60006001600160a01b038216612837848261349f565b949350505050565b60006112346002836134ee565b6000610fbc6127c4565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061288b82611641565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006001600160a01b03861661292a5760405162461bcd60e51b815260206004820152602560248201527f4e61746976654d6574615472616e73616374696f6e3a20494e56414c49445f5360448201526424a3a722a960d91b6064820152608401610c48565b600161293d61293887613506565b613583565b6040805160008152602081018083529290925260ff851690820152606081018690526080810185905260a0016020604051602081039080840390855afa15801561298b573d6000803e3d6000fd5b505050602060405103516001600160a01b0316866001600160a01b031614905095945050505050565b6000806129c18385614c10565b9050838110156112315760405162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f7700000000006044820152606401610c48565b6000611234825490565b6000612a288261283f565b612a895760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610c48565b6000612a9483611641565b9050806001600160a01b0316846001600160a01b03161480612acf5750836001600160a01b0316612ac484610be0565b6001600160a01b0316145b8061283757506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff16612837565b826001600160a01b0316612b1682611641565b6001600160a01b031614612b7e5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610c48565b6001600160a01b038216612be05760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610c48565b612beb600082612856565b6001600160a01b0383166000908152600160205260409020612c0d90826135b3565b506001600160a01b0382166000908152600160205260409020612c3090826135bf565b50612c3d600282846135cb565b5080826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b6000612c8f82611641565b9050612c9c600083612856565b60008281526008602052604090208054612cb590614874565b159050612cd3576000828152600860205260408120612cd3916140aa565b6001600160a01b0381166000908152600160205260409020612cf590836135b3565b50612d016002836135eb565b5060405182906000906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b6000828152600a60205260409020612d569082612821565b1561120b57612d6361284c565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b600061123183836135f7565b6000828152600a60205260409020612dcb908261367d565b1561120b57612dd861284c565b6001600160a01b0316816001600160a01b0316837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45050565b60115460009060ff1615612e3257506001612f0a565b601a546001600160a01b0316600090815260196020908152604080832086845290915290205460ff1615612ea85760405162461bcd60e51b815260206004820152601e60248201527f5646436f6e74726163743a205f69734f776e657220426164204e6f6e636500006044820152606401610c48565b6000612eb48584613693565b601a549091506001600160a01b0380831691161415612f04576001600160a01b031660009081526019602090815260408083208684529091529020805460ff191660019081179091559050612f0a565b60009150505b9392505050565b6000808080612f208686613737565b909450925050505b9250929050565b60006128378484846137d4565b6001600160a01b03811660008181526001840160205260408120549091901515612837565b604080516020810190915281151581526014805460018082018355600083815293517fce6d7b5282bd9a3661ae061feed1dbda4e52ab073b1f9285be6e155d9c38d4ec909201805460ff1916921515929092179091559054612fc39190614c28565b600093845260166020526040909320929092555050565b6001600160a01b0382166130305760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610c48565b6130398161283f565b156130865760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610c48565b6001600160a01b03821660009081526001602052604090206130a890826135bf565b506130b5600282846135cb565b5060405181906001600160a01b038416906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6040805160608101825284815260208082018590529181018390526013805460018101825560009190915281518051929360039092027f66de8ffda797e3de9c05e8fc57b3bf0ec28a930d40b0d285d93c06501cf6a090019261315892849201906140e4565b5060208201518160010155604082015181600201555050600060016013805490506131839190614c28565b6000958652601760205260409095209490945550505050565b600080601384815481106131b2576131b261497f565b600091825260208220600260039092020190810154909250906131d582866129b4565b9050612710811161325f5780836002018190555082601387815481106131fd576131fd61497f565b9060005260206000209060030201600082018160000190805461321f90614874565b61322a929190613fab565b5060018281015482820155600292830154929091019190915560008881526017602052604090208790559350612f0a92505050565b60009350505050612f0a565b60408051602081019091528181526015805460018181018355600083815293517f55f448fdea98c4d29eb340757ef0a66cd03dbb9538908a6a81d96026b71ec4759092019190915590546132bf9190614c28565b600093845260186020526040909320929092555050565b60018160000160008282546132eb9190614c10565b909155505050565b6132fe848484612b03565b61330a8484848461383d565b61218d5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610c48565b6000611231612710613383858561391c565b9061399b565b6060816133ad5750506040805180820190915260018152600360fc1b602082015290565b8160005b81156133d757806133c1816149ab565b91506133d09050600a83614c55565b91506133b1565b6000816001600160401b038111156133f1576133f161426a565b6040519080825280601f01601f19166020018201604052801561341b576020820181803683370190505b509050600061342b600184614c28565b90508593505b831561349657613442600a85614c69565b61344d906030614c10565b60f81b828261345b81614c7d565b93508151811061346d5761346d61497f565b60200101906001600160f81b031916908160001a90535061348f600a85614c55565b9350613431565b50949350505050565b60008181526001830160205260408120546134e657508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155611234565b506000611234565b60008181526001830160205260408120541515611231565b6000604051806080016040528060438152602001614d4c6043913980516020918201208351848301516040808701518051908601209051613566950193845260208401929092526001600160a01b03166040830152606082015260800190565b604051602081830303815290604052805190602001209050919050565b600061358e600d5490565b60405161190160f01b6020820152602281019190915260428101839052606201613566565b600061123183836139dd565b6000611231838361349f565b60006001600160a01b0382166135e2858583613ad0565b95945050505050565b60006112318383613b71565b815460009082106136555760405162461bcd60e51b815260206004820152602260248201527f456e756d657261626c655365743a20696e646578206f7574206f6620626f756e604482015261647360f01b6064820152608401610c48565b82600001828154811061366a5761366a61497f565b9060005260206000200154905092915050565b60006001600160a01b03821661283784826139dd565b60008151604114156136c75760208201516040830151606084015160001a6136bd86828585613c78565b9350505050611234565b8151604014156136ef57602082015160408301516136e6858383613e18565b92505050611234565b60405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610c48565b8154600090819083106137975760405162461bcd60e51b815260206004820152602260248201527f456e756d657261626c654d61703a20696e646578206f7574206f6620626f756e604482015261647360f01b6064820152608401610c48565b60008460000184815481106137ae576137ae61497f565b906000526020600020906002020190508060000154816001015492509250509250929050565b600082815260018401602052604081205482816138045760405162461bcd60e51b8152600401610c4891906141f8565b5084613811600183614c28565b815481106138215761382161497f565b9060005260206000209060020201600101549150509392505050565b6000613851846001600160a01b0316613e42565b61385d57506001612837565b60006138e5630a85bd0160e11b61387261284c565b8887876040516024016138889493929190614c94565b604051602081830303815290604052906001600160e01b0319166020820180516001600160e01b038381831617835250505050604051806060016040528060328152602001614d1a603291396001600160a01b0388169190613e7b565b90506000818060200190518101906138fd9190614cc7565b6001600160e01b031916630a85bd0160e11b1492505050949350505050565b60008261392b57506000611234565b60006139378385614ce4565b9050826139448583614c55565b146112315760405162461bcd60e51b815260206004820152602160248201527f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f6044820152607760f81b6064820152608401610c48565b600061123183836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250613e8a565b60008181526001830160205260408120548015613ac6576000613a01600183614c28565b8554909150600090613a1590600190614c28565b90506000866000018281548110613a2e57613a2e61497f565b9060005260206000200154905080876000018481548110613a5157613a5161497f565b600091825260209091200155613a68836001614c10565b60008281526001890160205260409020558654879080613a8a57613a8a614d03565b60019003818190600052602060002001600090559055866001016000878152602001908152602001600020600090556001945050505050611234565b6000915050611234565b600082815260018401602052604081205480613b35575050604080518082018252838152602080820184815286546001818101895560008981528481209551600290930290950191825591519082015586548684528188019092529290912055612f0a565b8285613b42600184614c28565b81548110613b5257613b5261497f565b9060005260206000209060020201600101819055506000915050612f0a565b60008181526001830160205260408120548015613ac6576000613b95600183614c28565b8554909150600090613ba990600190614c28565b90506000866000018281548110613bc257613bc261497f565b9060005260206000209060020201905080876000018481548110613be857613be861497f565b60009182526020909120825460029092020190815560019182015490820155613c12908490614c10565b815460009081526001890160205260409020558654879080613c3657613c36614d03565b60008281526020808220600260001990940193840201828155600190810183905592909355888152898201909252604082209190915594506112349350505050565b60007f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0821115613cf55760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610c48565b8360ff16601b1480613d0a57508360ff16601c145b613d615760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610c48565b6040805160008082526020820180845288905260ff871692820192909252606081018590526080810184905260019060a0016020604051602081039080840390855afa158015613db5573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166135e25760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610c48565b60006001600160ff1b03821660ff83901c601b01613e3886828785613c78565b9695505050505050565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470818114801590612837575050151592915050565b60606128378484600085613eb8565b60008183613eab5760405162461bcd60e51b8152600401610c4891906141f8565b5060006135e28486614c55565b6060613ec385613e42565b613f0f5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610c48565b600080866001600160a01b03168587604051613f2b9190614912565b60006040518083038185875af1925050503d8060008114613f68576040519150601f19603f3d011682016040523d82523d6000602084013e613f6d565b606091505b50915091508115613f815791506128379050565b805115613f915780518082602001fd5b8360405162461bcd60e51b8152600401610c4891906141f8565b828054613fb790614874565b90600052602060002090601f016020900481019282613fd95760008555614026565b82601f10613fea5780548555614026565b8280016001018555821561402657600052602060002091601f016020900482015b8281111561402657825482559160010191906001019061400b565b50614032929150614158565b5090565b82805461404290614874565b90600052602060002090601f0160209004810192826140645760008555614026565b82601f1061407d5782800160ff19823516178555614026565b82800160010185558215614026579182015b8281111561402657823582559160200191906001019061408f565b5080546140b690614874565b6000825580601f106140c6575050565b601f01602090049060005260206000209081019061117c9190614158565b8280546140f090614874565b90600052602060002090601f0160209004810192826141125760008555614026565b82601f1061412b57805160ff1916838001178555614026565b82800160010185558215614026579182015b8281111561402657825182559160200191906001019061413d565b5b808211156140325760008155600101614159565b6001600160e01b03198116811461117c57600080fd5b60006020828403121561419557600080fd5b81356112318161416d565b60005b838110156141bb5781810151838201526020016141a3565b8381111561218d5750506000910152565b600081518084526141e48160208601602086016141a0565b601f01601f19169290920160200192915050565b60208152600061123160208301846141cc565b60006020828403121561421d57600080fd5b5035919050565b80356001600160a01b038116811461423b57600080fd5b919050565b6000806040838503121561425357600080fd5b61425c83614224565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b03811182821017156142a8576142a861426a565b604052919050565b60006001600160401b038211156142c9576142c961426a565b50601f01601f191660200190565b60006142ea6142e5846142b0565b614280565b90508281528383830111156142fe57600080fd5b828260208301376000602084830101529392505050565b600082601f83011261432657600080fd5b611231838335602085016142d7565b600080600080600060a0868803121561434d57600080fd5b61435686614224565b945060208601356001600160401b0381111561437157600080fd5b61437d88828901614315565b9450506040860135925060608601359150608086013560ff811681146143a257600080fd5b809150509295509295909350565b6000806000606084860312156143c557600080fd5b6143ce84614224565b92506143dc60208501614224565b9150604084013590509250925092565b6000602082840312156143fe57600080fd5b61123182614224565b6000806040838503121561441a57600080fd5b8235915061442a60208401614224565b90509250929050565b60008083601f84011261444557600080fd5b5081356001600160401b0381111561445c57600080fd5b602083019150836020828501011115612f2857600080fd5b60008060008060008060a0878903121561448d57600080fd5b8635955060208701359450604087013593506060870135925060808701356001600160401b038111156144bf57600080fd5b6144cb89828a01614433565b979a9699509497509295939492505050565b8035801515811461423b57600080fd5b60008060008060006080868803121561450557600080fd5b61450e866144dd565b9450602086013593506040860135925060608601356001600160401b0381111561453757600080fd5b61454388828901614433565b969995985093965092949392505050565b60608152600061456760608301866141cc565b60208301949094525060400152919050565b600080600080600080600060a0888a03121561459457600080fd5b8735965060208801356001600160401b03808211156145b257600080fd5b6145be8b838c01614433565b909850965060408a0135955060608a0135945060808a01359150808211156145e557600080fd5b506145f28a828b01614433565b989b979a50959850939692959293505050565b6000806040838503121561461857600080fd5b50508035926020909101359150565b6000806020838503121561463a57600080fd5b82356001600160401b038082111561465157600080fd5b818501915085601f83011261466557600080fd5b81358181111561467457600080fd5b8660208260051b850101111561468957600080fd5b60209290920196919550909350505050565b600080604083850312156146ae57600080fd5b6146b783614224565b915061442a602084016144dd565b60008060008060008060008060006101208a8c0312156146e457600080fd5b6146ed8a614224565b98506146fb60208b016144dd565b975060408a0135965060608a01356001600160401b038082111561471e57600080fd5b818c0191508c601f83011261473257600080fd5b6147418d8335602085016142d7565b975060808c0135965060a08c0135955060c08c0135945060e08c013593506101008c013591508082111561477457600080fd5b506147818c828d01614315565b9150509295985092959850929598565b600080600080608085870312156147a757600080fd5b6147b085614224565b93506147be60208601614224565b92506040850135915060608501356001600160401b038111156147e057600080fd5b6147ec87828801614315565b91505092959194509250565b60008060006040848603121561480d57600080fd5b61481684614224565b925060208401356001600160401b0381111561483157600080fd5b61483d86828701614433565b9497909650939450505050565b6000806040838503121561485d57600080fd5b61486683614224565b915061442a60208401614224565b600181811c9082168061488857607f821691505b602082108114156148a957634e487b7160e01b600052602260045260246000fd5b50919050565b6001600160a01b038481168252831660208201526060604082018190526000906135e2908301846141cc565b600083516148ed8184602088016141a0565b60609390931b6bffffffffffffffffffffffff19169190920190815260140192915050565b600082516149248184602087016141a0565b9190910192915050565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60006000198214156149bf576149bf614995565b5060010190565b6020808252810182905260006001600160fb1b038311156149e657600080fd5b8260051b80856040850137600092016040019182525092915050565b600060208284031215614a1457600080fd5b81516001600160401b03811115614a2a57600080fd5b8201601f81018413614a3b57600080fd5b8051614a496142e5826142b0565b818152856020838501011115614a5e57600080fd5b6135e28260208301602086016141a0565b6000808454614a7d81614874565b60018281168015614a955760018114614aa657614ad5565b60ff19841687528287019450614ad5565b8860005260208060002060005b85811015614acc5781548a820152908401908201614ab3565b50505082870194505b505050508351614ae98183602088016141a0565b01949350505050565b6000602080835260008454614b0681614874565b80848701526040600180841660008114614b275760018114614b3b57614b69565b60ff19851689840152606089019550614b69565b896000528660002060005b85811015614b615781548b8201860152908301908801614b46565b8a0184019650505b509398975050505050505050565b60006020808385031215614b8a57600080fd5b82356001600160401b0380821115614ba157600080fd5b818501915085601f830112614bb557600080fd5b813581811115614bc757614bc761426a565b8060051b9150614bd8848301614280565b8181529183018401918481019088841115614bf257600080fd5b938501935b83851015610f7357843582529385019390850190614bf7565b60008219821115614c2357614c23614995565b500190565b600082821015614c3a57614c3a614995565b500390565b634e487b7160e01b600052601260045260246000fd5b600082614c6457614c64614c3f565b500490565b600082614c7857614c78614c3f565b500690565b600081614c8c57614c8c614995565b506000190190565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090613e38908301846141cc565b600060208284031215614cd957600080fd5b81516112318161416d565b6000816000190483118215151615614cfe57614cfe614995565b500290565b634e487b7160e01b600052603160045260246000fdfe4552433732313a207472616e7366657220746f206e6f6e20455243373231526563656976657220696d706c656d656e7465724d6574615472616e73616374696f6e2875696e74323536206e6f6e63652c616464726573732066726f6d2c62797465732066756e6374696f6e5369676e6174757265294552433732313a206f776e657220717565727920666f72206e6f6e6578697374656e7420746f6b656ea26469706673582212207c21182e0f63eaf51a73d883b564f0225dd98eef674191566c1a07a9a0a61b7764736f6c63430008090033454950373132446f6d61696e28737472696e67206e616d652c737472696e672076657273696f6e2c6164647265737320766572696679696e67436f6e74726163742c627974657333322073616c7429000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000b5505a6d998549090530911180f38ac5130101c60000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000756616c6f72656d00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000556464e4654000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002a68747470733a2f2f61646d696e2e616476616c6f72656d2e696f2f6170692f4e66742f746f6b656e732f00000000000000000000000000000000000000000000

Deployed Bytecode

0x6080604052600436106103765760003560e01c80636c0360eb116101d1578063a5e584dc11610102578063ca15c873116100a0578063d547741f1161006f578063d547741f14610a98578063d5f19bd114610ab8578063e985e9c514610ad8578063f684908914610b2157600080fd5b8063ca15c87314610a18578063ca9706a714610a38578063cf2c52cb14610a58578063d161aa2a14610a7857600080fd5b8063bb61a6d2116100dc578063bb61a6d21461098b578063bbcd7be0146109b8578063c1497aef146109d8578063c87b56dd146109f857600080fd5b8063a5e584dc1461092b578063a65bfb8e1461094b578063b88d4fde1461096b57600080fd5b806395b6f5391161016f5780639c8d4156116101495780639c8d4156146108a2578063a217fddf146108c2578063a22cb465146108d7578063a3b0b5a3146108f757600080fd5b806395b6f5391461084d57806395d89b411461086d57806397d7692a1461088257600080fd5b80639010d07c116101ab5780639010d07c146107d857806391d14854146107f85780639384f70d146108185780639559c0bd1461083857600080fd5b80636c0360eb1461078357806370a08231146107985780638538eb72146107b857600080fd5b80632d0335ab116102ab57806342842e0e11610249578063561e735411610223578063561e7354146106f45780635de41ef4146107235780636352211e1461074357806369c1a1bb1461076357600080fd5b806342842e0e14610694578063440da887146106b45780634f6ccce7146106d457600080fd5b80632f745c59116102855780632f745c59146106215780633408e4701461064157806336568abe1461065457806340777f781461067457600080fd5b80632d0335ab146105ab5780632e1a7d4d146105e15780632f2ff15d1461060157600080fd5b80631653c39a1161031857806322aab758116102f257806322aab7581461050e57806323b872dd1461053b578063248a9ca31461055b57806324fc099b1461058b57600080fd5b80631653c39a146104b657806318160ddd146104d657806320379ee5146104f957600080fd5b8063081812fc11610354578063081812fc1461041c578063095ea7b3146104545780630c53c51c146104765780630f7e59701461048957600080fd5b806301ffc9a71461037b57806306fdde03146103ca57806307a974fc146103ec575b600080fd5b34801561038757600080fd5b506103b5610396366004614183565b6001600160e01b03191660009081526020819052604090205460ff1690565b60405190151581526020015b60405180910390f35b3480156103d657600080fd5b506103df610b4e565b6040516103c191906141f8565b3480156103f857600080fd5b506103b561040736600461420b565b600f6020526000908152604090205460ff1681565b34801561042857600080fd5b5061043c61043736600461420b565b610be0565b6040516001600160a01b0390911681526020016103c1565b34801561046057600080fd5b5061047461046f366004614240565b610c6d565b005b6103df610484366004614335565b610d95565b34801561049557600080fd5b506103df604051806040016040528060018152602001603160f81b81525081565b3480156104c257600080fd5b506103df6104d136600461420b565b610f7f565b3480156104e257600080fd5b506104eb610fb0565b6040519081526020016103c1565b34801561050557600080fd5b50600d546104eb565b34801561051a57600080fd5b506104eb61052936600461420b565b60166020526000908152604090205481565b34801561054757600080fd5b506104746105563660046143b0565b610fc1565b34801561056757600080fd5b506104eb61057636600461420b565b6000908152600a602052604090206002015490565b34801561059757600080fd5b506103df6105a636600461420b565b610ff9565b3480156105b757600080fd5b506104eb6105c63660046143ec565b6001600160a01b03166000908152600e602052604090205490565b3480156105ed57600080fd5b506104746105fc36600461420b565b6110ea565b34801561060d57600080fd5b5061047461061c366004614407565b61117f565b34801561062d57600080fd5b506104eb61063c366004614240565b61120f565b34801561064d57600080fd5b50466104eb565b34801561066057600080fd5b5061047461066f366004614407565b61123a565b34801561068057600080fd5b5061047461068f366004614474565b6112c4565b3480156106a057600080fd5b506104746106af3660046143b0565b6113f6565b3480156106c057600080fd5b506104746106cf3660046144ed565b611411565b3480156106e057600080fd5b506104eb6106ef36600461420b565b6114cb565b34801561070057600080fd5b5061071461070f36600461420b565b6114e1565b6040516103c193929190614554565b34801561072f57600080fd5b506103df61073e36600461420b565b6115d5565b34801561074f57600080fd5b5061043c61075e36600461420b565b611641565b34801561076f57600080fd5b5061071461077e36600461420b565b611669565b34801561078f57600080fd5b506103df611776565b3480156107a457600080fd5b506104eb6107b33660046143ec565b611785565b3480156107c457600080fd5b506104746107d3366004614579565b611811565b3480156107e457600080fd5b5061043c6107f3366004614605565b611948565b34801561080457600080fd5b506103b5610813366004614407565b611960565b34801561082457600080fd5b506104eb61083336600461420b565b611978565b34801561084457600080fd5b506104eb601481565b34801561085957600080fd5b506103df61086836600461420b565b611a6d565b34801561087957600080fd5b506103df611aa6565b34801561088e57600080fd5b506104eb61089d36600461420b565b611ab5565b3480156108ae57600080fd5b506104746108bd366004614627565b611ba5565b3480156108ce57600080fd5b506104eb600081565b3480156108e357600080fd5b506104746108f236600461469b565b611d33565b34801561090357600080fd5b506104eb7f8f4f2da22e8ac8f11e15f9fc141cddbb5deea8800186560abb6e68c5496619a981565b34801561093757600080fd5b5061047461094636600461420b565b611e35565b34801561095757600080fd5b506104746109663660046146c5565b611f93565b34801561097757600080fd5b50610474610986366004614791565b612154565b34801561099757600080fd5b506104eb6109a636600461420b565b60176020526000908152604090205481565b3480156109c457600080fd5b506104eb6109d336600461420b565b612193565b3480156109e457600080fd5b506103df6109f336600461420b565b612227565b348015610a0457600080fd5b506103df610a1336600461420b565b612325565b348015610a2457600080fd5b506104eb610a3336600461420b565b61247f565b348015610a4457600080fd5b506103df610a5336600461420b565b612496565b348015610a6457600080fd5b50610474610a733660046147f8565b6124ed565b348015610a8457600080fd5b506103df610a9336600461420b565b61261b565b348015610aa457600080fd5b50610474610ab3366004614407565b61271b565b348015610ac457600080fd5b506103df610ad336600461420b565b61279e565b348015610ae457600080fd5b506103b5610af336600461484a565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b348015610b2d57600080fd5b506104eb610b3c36600461420b565b60186020526000908152604090205481565b606060068054610b5d90614874565b80601f0160208091040260200160405190810160405280929190818152602001828054610b8990614874565b8015610bd65780601f10610bab57610100808354040283529160200191610bd6565b820191906000526020600020905b815481529060010190602001808311610bb957829003601f168201915b5050505050905090565b6000610beb8261283f565b610c515760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b6000610c7882611641565b9050806001600160a01b0316836001600160a01b03161415610ce65760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610c48565b806001600160a01b0316610cf861284c565b6001600160a01b03161480610d145750610d1481610af361284c565b610d865760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610c48565b610d908383612856565b505050565b60408051606081810183526001600160a01b0388166000818152600e602090815290859020548452830152918101869052610dd387828787876128c4565b610e295760405162461bcd60e51b815260206004820152602160248201527f5369676e657220616e64207369676e617475726520646f206e6f74206d6174636044820152600d60fb1b6064820152608401610c48565b6001600160a01b0387166000908152600e6020526040902054610e4d9060016129b4565b6001600160a01b0388166000908152600e60205260409081902091909155517f5845892132946850460bff5a0083f71031bc5bf9aadcd40f1de79423eac9b10b90610e9d90899033908a906148af565b60405180910390a1600080306001600160a01b0316888a604051602001610ec59291906148db565b60408051601f1981840301815290829052610edf91614912565b6000604051808303816000865af19150503d8060008114610f1c576040519150601f19603f3d011682016040523d82523d6000602084013e610f21565b606091505b509150915081610f735760405162461bcd60e51b815260206004820152601c60248201527f46756e6374696f6e2063616c6c206e6f74207375636365737366756c000000006044820152606401610c48565b98975050505050505050565b6060610f8a82612325565b604051602001610f9a91906141f8565b6040516020818303038152906040529050919050565b6000610fbc6002612a13565b905090565b610fd2610fcc61284c565b82612a1d565b610fee5760405162461bcd60e51b8152600401610c489061492e565b610d90838383612b03565b600081815260176020526040812054601380546060939190839081106110215761102161497f565b906000526020600020906003020160405180606001604052908160008201805461104a90614874565b80601f016020809104026020016040519081016040528092919081815260200182805461107690614874565b80156110c35780601f10611098576101008083540402835291602001916110c3565b820191906000526020600020905b8154815290600101906020018083116110a657829003601f168201915b50505091835250506001820154602082015260029091015460409091015251949350505050565b6110f381611641565b6001600160a01b031661110461284c565b6001600160a01b03161461115a5760405162461bcd60e51b815260206004820152601f60248201527f5646436f6e74726163743a20494e56414c49445f544f4b454e5f4f574e4552006044820152606401610c48565b6000818152600f60205260409020805460ff1916600117905561117c81612c84565b50565b6000828152600a602052604090206002015461119d9061081361284c565b6112015760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e60448201526e0818591b5a5b881d1bc819dc985b9d608a1b6064820152608401610c48565b61120b8282612d3e565b5050565b6001600160a01b03821660009081526001602052604081206112319083612da7565b90505b92915050565b61124261284c565b6001600160a01b0316816001600160a01b0316146112ba5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b6064820152608401610c48565b61120b8282612db3565b611305848484848080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250612e1c92505050565b61136a5760405162461bcd60e51b815260206004820152603060248201527f5646436f6e74726163743a204e6f7420417574686f72697a656420746f20557060448201526f646174652041737365742056616c756560801b6064820152608401610c48565b60006013878154811061137f5761137f61497f565b9060005260206000209060030201905085816001018190555080601388815481106113ac576113ac61497f565b906000526020600020906003020160008201816000019080546113ce90614874565b6113d9929190613fab565b506001828101549082015560029182015491015550505050505050565b610d9083838360405180602001604052806000815250612154565b611452848484848080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250612e1c92505050565b6114b35760405162461bcd60e51b815260206004820152602c60248201527f5646436f6e74726163743a204e6f7420417574686f72697a656420746f20557060448201526b64617465204465764d6f646560a01b6064820152608401610c48565b50506011805460ff1916931515939093179092555050565b6000806114d9600284612f11565b509392505050565b60606000806000601385815481106114fb576114fb61497f565b906000526020600020906003020160405180606001604052908160008201805461152490614874565b80601f016020809104026020016040519081016040528092919081815260200182805461155090614874565b801561159d5780601f106115725761010080835404028352916020019161159d565b820191906000526020600020905b81548152906001019060200180831161158057829003601f168201915b505050918352505060018201546020808301919091526002909201546040918201528251918301519201519097919650945092505050565b600081815260166020526040812054601480546060939190839081106115fd576115fd61497f565b6000918252602091829020604080518085018252929091015460ff161515808352815193840152909250015b60405160208183030381529060405292505050919050565b600061123482604051806060016040528060298152602001614d8f6029913960029190612f2f565b606060008060006017600086815260200190815260200160002054905060006013828154811061169b5761169b61497f565b90600052602060002090600302016040518060600160405290816000820180546116c490614874565b80601f01602080910402602001604051908101604052809291908181526020018280546116f090614874565b801561173d5780601f106117125761010080835404028352916020019161173d565b820191906000526020600020905b81548152906001019060200180831161172057829003601f168201915b50505091835250506001820154602080830191909152600290920154604091820152825191830151920151909891975095509350505050565b606060098054610b5d90614874565b60006001600160a01b0382166117f05760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610c48565b6001600160a01b038216600090815260016020526040902061123490612a13565b611852848484848080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250612e1c92505050565b6118b65760405162461bcd60e51b815260206004820152602f60248201527f5646436f6e74726163743a204e6f7420417574686f72697a656420746f20557060448201526e64617465204173736574204e616d6560881b6064820152608401610c48565b6000601388815481106118cb576118cb61497f565b6000918252602090912060039091020190506118e8818888614036565b5080601389815481106118fd576118fd61497f565b9060005260206000209060030201600082018160000190805461191f90614874565b61192a929190613fab565b50600182810154908201556002918201549101555050505050505050565b6000828152600a602052604081206112319083612da7565b6000828152600a602052604081206112319083612f3c565b600081815260176020526040812054601380548391908390811061199e5761199e61497f565b90600052602060002090600302016040518060600160405290816000820180546119c790614874565b80601f01602080910402602001604051908101604052809291908181526020018280546119f390614874565b8015611a405780601f10611a1557610100808354040283529160200191611a40565b820191906000526020600020905b815481529060010190602001808311611a2357829003601f168201915b50505050508152602001600182015481526020016002820154815250509050806020015192505050919050565b6000818152601760209081526040918290205482519182018190526060929091015b604051602081830303815290604052915050919050565b606060078054610b5d90614874565b6000818152601760205260408120546013805483919083908110611adb57611adb61497f565b9060005260206000209060030201604051806060016040529081600082018054611b0490614874565b80601f0160208091040260200160405190810160405280929190818152602001828054611b3090614874565b8015611b7d5780601f10611b5257610100808354040283529160200191611b7d565b820191906000526020600020905b815481529060010190602001808311611b6057829003601f168201915b5050509183525050600182015460208201526002909101546040918201520151949350505050565b806014811115611bf75760405162461bcd60e51b815260206004820152601f60248201527f5646436f6e74726163743a20455843454544535f42415443485f4c494d4954006044820152606401610c48565b60005b81811015611ce3576000848483818110611c1657611c1661497f565b905060200201359050611c2881611641565b6001600160a01b0316611c3961284c565b6001600160a01b03161481604051602001611c8091907f5646436f6e74726163743a20494e56414c49445f544f4b454e5f4f574e4552208152602081019190915260400190565b60405160208183030381529060405290611cad5760405162461bcd60e51b8152600401610c4891906141f8565b506000818152600f60205260409020805460ff19166001179055611cd081612c84565b5080611cdb816149ab565b915050611bfa565b50611cec61284c565b6001600160a01b03167ff871896b17e9cb7a64941c62c188a4f5c621b86800e3d15452ece01ce56073df8484604051611d269291906149c6565b60405180910390a2505050565b611d3b61284c565b6001600160a01b0316826001600160a01b03161415611d9c5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610c48565b8060056000611da961284c565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff191692151592909217909155611ded61284c565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611e29911515815260200190565b60405180910390a35050565b611e3e81611641565b6001600160a01b0316611e4f61284c565b6001600160a01b031614611ea55760405162461bcd60e51b815260206004820152601f60248201527f5646436f6e74726163743a20494e56414c49445f544f4b454e5f4f574e4552006044820152606401610c48565b6000818152600f60205260408120805460ff191660011790558190611ec982611641565b6001600160a01b03167ff94915c6d1fd521cee85359239227480c7e8776d7caf1fc3bacad5c269b66a14306001600160a01b0316631653c39a866040518263ffffffff1660e01b8152600401611f2191815260200190565b60006040518083038186803b158015611f3957600080fd5b505afa158015611f4d573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611f759190810190614a02565b604051611f8291906141f8565b60405180910390a461117c81612c84565b611f9e838383612e1c565b611ff55760405162461bcd60e51b815260206004820152602260248201527f5646436f6e74726163743a204e6f7420417574686f72697a656420746f204d696044820152611b9d60f21b6064820152608401610c48565b60105460128190556000908152600f602052604090205460ff161561206b5760405162461bcd60e51b815260206004820152602660248201527f5646436f6e74726163743a20544f4b454e5f4558495354535f4f4e5f524f4f546044820152652fa1a420a4a760d11b6064820152608401610c48565b61207760125489612f61565b61208389601254612fda565b871561209c576120976012548787876130f2565b612133565b6120a9601254888661319c565b6121055760405162461bcd60e51b815260206004820152602760248201527f5646436f6e74726163743a2041737365742025204578636565647320417661696044820152666c61626c69747960c81b6064820152608401610c48565b60006013888154811061211a5761211a61497f565b9060005260206000209060030201905080600101549550505b61213f6012548561326b565b61214960106132d6565b505050505050505050565b61216561215f61284c565b83612a1d565b6121815760405162461bcd60e51b8152600401610c489061492e565b61218d848484846132f3565b50505050565b60008181526017602052604081205460138054839190839081106121b9576121b961497f565b906000526020600020906003020190506000816001015490506000601860008781526020019081526020016000205490506000601582815481106121ff576121ff61497f565b600091825260209091200180549091508061221a8582613371565b9998505050505050505050565b6000818152601760205260408120546013805460609391908390811061224f5761224f61497f565b906000526020600020906003020160405180606001604052908160008201805461227890614874565b80601f01602080910402602001604051908101604052809291908181526020018280546122a490614874565b80156122f15780601f106122c6576101008083540402835291602001916122f1565b820191906000526020600020905b8154815290600101906020018083116122d457829003601f168201915b50505050508152602001600182015481526020016002820154815250509050806000015160405160200161162991906141f8565b60606123308261283f565b6123945760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610c48565b600082815260086020526040812080546123ad90614874565b80601f01602080910402602001604051908101604052809291908181526020018280546123d990614874565b80156124265780601f106123fb57610100808354040283529160200191612426565b820191906000526020600020905b81548152906001019060200180831161240957829003601f168201915b505050505090506009805461243a90614874565b151590506124485792915050565b80511561246357600981604051602001611a8f929190614a6f565b600961246e84613389565b604051602001611a8f929190614a6f565b6000818152600a6020526040812061123490612a13565b600081815260186020526040812054601580546060939190839081106124be576124be61497f565b600091825260209182902001546040805180840192909252805180830390930183529081019052949350505050565b7f8f4f2da22e8ac8f11e15f9fc141cddbb5deea8800186560abb6e68c5496619a961251a8161081361284c565b600b9061253a5760405162461bcd60e51b8152600401610c489190614af2565b50602082141561257a5760006125528385018561420b565b6000818152600f60205260409020805460ff1916905590506125748582612fda565b5061218d565b600061258883850185614b77565b805190915060005b81811015612612576000600f60008584815181106125b0576125b061497f565b6020026020010151815260200190815260200160002060006101000a81548160ff021916908315150217905550612600878483815181106125f3576125f361497f565b6020026020010151612fda565b8061260a816149ab565b915050612590565b50505050505050565b600081815260176020526040812054601380546060939190839081106126435761264361497f565b906000526020600020906003020160405180606001604052908160008201805461266c90614874565b80601f016020809104026020016040519081016040528092919081815260200182805461269890614874565b80156126e55780601f106126ba576101008083540402835291602001916126e5565b820191906000526020600020905b8154815290600101906020018083116126c857829003601f168201915b50505050508152602001600182015481526020016002820154815250509050806020015160405160200161162991815260200190565b6000828152600a60205260409020600201546127399061081361284c565b6112ba5760405162461bcd60e51b815260206004820152603060248201527f416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e60448201526f2061646d696e20746f207265766f6b6560801b6064820152608401610c48565b600081815260186020908152604091829020548251918201819052606092909101611a8f565b60003330141561281b57600080368080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505050503601516001600160a01b0316915061281e9050565b50335b90565b60006001600160a01b038216612837848261349f565b949350505050565b60006112346002836134ee565b6000610fbc6127c4565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061288b82611641565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006001600160a01b03861661292a5760405162461bcd60e51b815260206004820152602560248201527f4e61746976654d6574615472616e73616374696f6e3a20494e56414c49445f5360448201526424a3a722a960d91b6064820152608401610c48565b600161293d61293887613506565b613583565b6040805160008152602081018083529290925260ff851690820152606081018690526080810185905260a0016020604051602081039080840390855afa15801561298b573d6000803e3d6000fd5b505050602060405103516001600160a01b0316866001600160a01b031614905095945050505050565b6000806129c18385614c10565b9050838110156112315760405162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f7700000000006044820152606401610c48565b6000611234825490565b6000612a288261283f565b612a895760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610c48565b6000612a9483611641565b9050806001600160a01b0316846001600160a01b03161480612acf5750836001600160a01b0316612ac484610be0565b6001600160a01b0316145b8061283757506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff16612837565b826001600160a01b0316612b1682611641565b6001600160a01b031614612b7e5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610c48565b6001600160a01b038216612be05760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610c48565b612beb600082612856565b6001600160a01b0383166000908152600160205260409020612c0d90826135b3565b506001600160a01b0382166000908152600160205260409020612c3090826135bf565b50612c3d600282846135cb565b5080826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b6000612c8f82611641565b9050612c9c600083612856565b60008281526008602052604090208054612cb590614874565b159050612cd3576000828152600860205260408120612cd3916140aa565b6001600160a01b0381166000908152600160205260409020612cf590836135b3565b50612d016002836135eb565b5060405182906000906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b6000828152600a60205260409020612d569082612821565b1561120b57612d6361284c565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b600061123183836135f7565b6000828152600a60205260409020612dcb908261367d565b1561120b57612dd861284c565b6001600160a01b0316816001600160a01b0316837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45050565b60115460009060ff1615612e3257506001612f0a565b601a546001600160a01b0316600090815260196020908152604080832086845290915290205460ff1615612ea85760405162461bcd60e51b815260206004820152601e60248201527f5646436f6e74726163743a205f69734f776e657220426164204e6f6e636500006044820152606401610c48565b6000612eb48584613693565b601a549091506001600160a01b0380831691161415612f04576001600160a01b031660009081526019602090815260408083208684529091529020805460ff191660019081179091559050612f0a565b60009150505b9392505050565b6000808080612f208686613737565b909450925050505b9250929050565b60006128378484846137d4565b6001600160a01b03811660008181526001840160205260408120549091901515612837565b604080516020810190915281151581526014805460018082018355600083815293517fce6d7b5282bd9a3661ae061feed1dbda4e52ab073b1f9285be6e155d9c38d4ec909201805460ff1916921515929092179091559054612fc39190614c28565b600093845260166020526040909320929092555050565b6001600160a01b0382166130305760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610c48565b6130398161283f565b156130865760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610c48565b6001600160a01b03821660009081526001602052604090206130a890826135bf565b506130b5600282846135cb565b5060405181906001600160a01b038416906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6040805160608101825284815260208082018590529181018390526013805460018101825560009190915281518051929360039092027f66de8ffda797e3de9c05e8fc57b3bf0ec28a930d40b0d285d93c06501cf6a090019261315892849201906140e4565b5060208201518160010155604082015181600201555050600060016013805490506131839190614c28565b6000958652601760205260409095209490945550505050565b600080601384815481106131b2576131b261497f565b600091825260208220600260039092020190810154909250906131d582866129b4565b9050612710811161325f5780836002018190555082601387815481106131fd576131fd61497f565b9060005260206000209060030201600082018160000190805461321f90614874565b61322a929190613fab565b5060018281015482820155600292830154929091019190915560008881526017602052604090208790559350612f0a92505050565b60009350505050612f0a565b60408051602081019091528181526015805460018181018355600083815293517f55f448fdea98c4d29eb340757ef0a66cd03dbb9538908a6a81d96026b71ec4759092019190915590546132bf9190614c28565b600093845260186020526040909320929092555050565b60018160000160008282546132eb9190614c10565b909155505050565b6132fe848484612b03565b61330a8484848461383d565b61218d5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610c48565b6000611231612710613383858561391c565b9061399b565b6060816133ad5750506040805180820190915260018152600360fc1b602082015290565b8160005b81156133d757806133c1816149ab565b91506133d09050600a83614c55565b91506133b1565b6000816001600160401b038111156133f1576133f161426a565b6040519080825280601f01601f19166020018201604052801561341b576020820181803683370190505b509050600061342b600184614c28565b90508593505b831561349657613442600a85614c69565b61344d906030614c10565b60f81b828261345b81614c7d565b93508151811061346d5761346d61497f565b60200101906001600160f81b031916908160001a90535061348f600a85614c55565b9350613431565b50949350505050565b60008181526001830160205260408120546134e657508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155611234565b506000611234565b60008181526001830160205260408120541515611231565b6000604051806080016040528060438152602001614d4c6043913980516020918201208351848301516040808701518051908601209051613566950193845260208401929092526001600160a01b03166040830152606082015260800190565b604051602081830303815290604052805190602001209050919050565b600061358e600d5490565b60405161190160f01b6020820152602281019190915260428101839052606201613566565b600061123183836139dd565b6000611231838361349f565b60006001600160a01b0382166135e2858583613ad0565b95945050505050565b60006112318383613b71565b815460009082106136555760405162461bcd60e51b815260206004820152602260248201527f456e756d657261626c655365743a20696e646578206f7574206f6620626f756e604482015261647360f01b6064820152608401610c48565b82600001828154811061366a5761366a61497f565b9060005260206000200154905092915050565b60006001600160a01b03821661283784826139dd565b60008151604114156136c75760208201516040830151606084015160001a6136bd86828585613c78565b9350505050611234565b8151604014156136ef57602082015160408301516136e6858383613e18565b92505050611234565b60405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610c48565b8154600090819083106137975760405162461bcd60e51b815260206004820152602260248201527f456e756d657261626c654d61703a20696e646578206f7574206f6620626f756e604482015261647360f01b6064820152608401610c48565b60008460000184815481106137ae576137ae61497f565b906000526020600020906002020190508060000154816001015492509250509250929050565b600082815260018401602052604081205482816138045760405162461bcd60e51b8152600401610c4891906141f8565b5084613811600183614c28565b815481106138215761382161497f565b9060005260206000209060020201600101549150509392505050565b6000613851846001600160a01b0316613e42565b61385d57506001612837565b60006138e5630a85bd0160e11b61387261284c565b8887876040516024016138889493929190614c94565b604051602081830303815290604052906001600160e01b0319166020820180516001600160e01b038381831617835250505050604051806060016040528060328152602001614d1a603291396001600160a01b0388169190613e7b565b90506000818060200190518101906138fd9190614cc7565b6001600160e01b031916630a85bd0160e11b1492505050949350505050565b60008261392b57506000611234565b60006139378385614ce4565b9050826139448583614c55565b146112315760405162461bcd60e51b815260206004820152602160248201527f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f6044820152607760f81b6064820152608401610c48565b600061123183836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250613e8a565b60008181526001830160205260408120548015613ac6576000613a01600183614c28565b8554909150600090613a1590600190614c28565b90506000866000018281548110613a2e57613a2e61497f565b9060005260206000200154905080876000018481548110613a5157613a5161497f565b600091825260209091200155613a68836001614c10565b60008281526001890160205260409020558654879080613a8a57613a8a614d03565b60019003818190600052602060002001600090559055866001016000878152602001908152602001600020600090556001945050505050611234565b6000915050611234565b600082815260018401602052604081205480613b35575050604080518082018252838152602080820184815286546001818101895560008981528481209551600290930290950191825591519082015586548684528188019092529290912055612f0a565b8285613b42600184614c28565b81548110613b5257613b5261497f565b9060005260206000209060020201600101819055506000915050612f0a565b60008181526001830160205260408120548015613ac6576000613b95600183614c28565b8554909150600090613ba990600190614c28565b90506000866000018281548110613bc257613bc261497f565b9060005260206000209060020201905080876000018481548110613be857613be861497f565b60009182526020909120825460029092020190815560019182015490820155613c12908490614c10565b815460009081526001890160205260409020558654879080613c3657613c36614d03565b60008281526020808220600260001990940193840201828155600190810183905592909355888152898201909252604082209190915594506112349350505050565b60007f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0821115613cf55760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610c48565b8360ff16601b1480613d0a57508360ff16601c145b613d615760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610c48565b6040805160008082526020820180845288905260ff871692820192909252606081018590526080810184905260019060a0016020604051602081039080840390855afa158015613db5573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166135e25760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610c48565b60006001600160ff1b03821660ff83901c601b01613e3886828785613c78565b9695505050505050565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470818114801590612837575050151592915050565b60606128378484600085613eb8565b60008183613eab5760405162461bcd60e51b8152600401610c4891906141f8565b5060006135e28486614c55565b6060613ec385613e42565b613f0f5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610c48565b600080866001600160a01b03168587604051613f2b9190614912565b60006040518083038185875af1925050503d8060008114613f68576040519150601f19603f3d011682016040523d82523d6000602084013e613f6d565b606091505b50915091508115613f815791506128379050565b805115613f915780518082602001fd5b8360405162461bcd60e51b8152600401610c4891906141f8565b828054613fb790614874565b90600052602060002090601f016020900481019282613fd95760008555614026565b82601f10613fea5780548555614026565b8280016001018555821561402657600052602060002091601f016020900482015b8281111561402657825482559160010191906001019061400b565b50614032929150614158565b5090565b82805461404290614874565b90600052602060002090601f0160209004810192826140645760008555614026565b82601f1061407d5782800160ff19823516178555614026565b82800160010185558215614026579182015b8281111561402657823582559160200191906001019061408f565b5080546140b690614874565b6000825580601f106140c6575050565b601f01602090049060005260206000209081019061117c9190614158565b8280546140f090614874565b90600052602060002090601f0160209004810192826141125760008555614026565b82601f1061412b57805160ff1916838001178555614026565b82800160010185558215614026579182015b8281111561402657825182559160200191906001019061413d565b5b808211156140325760008155600101614159565b6001600160e01b03198116811461117c57600080fd5b60006020828403121561419557600080fd5b81356112318161416d565b60005b838110156141bb5781810151838201526020016141a3565b8381111561218d5750506000910152565b600081518084526141e48160208601602086016141a0565b601f01601f19169290920160200192915050565b60208152600061123160208301846141cc565b60006020828403121561421d57600080fd5b5035919050565b80356001600160a01b038116811461423b57600080fd5b919050565b6000806040838503121561425357600080fd5b61425c83614224565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b03811182821017156142a8576142a861426a565b604052919050565b60006001600160401b038211156142c9576142c961426a565b50601f01601f191660200190565b60006142ea6142e5846142b0565b614280565b90508281528383830111156142fe57600080fd5b828260208301376000602084830101529392505050565b600082601f83011261432657600080fd5b611231838335602085016142d7565b600080600080600060a0868803121561434d57600080fd5b61435686614224565b945060208601356001600160401b0381111561437157600080fd5b61437d88828901614315565b9450506040860135925060608601359150608086013560ff811681146143a257600080fd5b809150509295509295909350565b6000806000606084860312156143c557600080fd5b6143ce84614224565b92506143dc60208501614224565b9150604084013590509250925092565b6000602082840312156143fe57600080fd5b61123182614224565b6000806040838503121561441a57600080fd5b8235915061442a60208401614224565b90509250929050565b60008083601f84011261444557600080fd5b5081356001600160401b0381111561445c57600080fd5b602083019150836020828501011115612f2857600080fd5b60008060008060008060a0878903121561448d57600080fd5b8635955060208701359450604087013593506060870135925060808701356001600160401b038111156144bf57600080fd5b6144cb89828a01614433565b979a9699509497509295939492505050565b8035801515811461423b57600080fd5b60008060008060006080868803121561450557600080fd5b61450e866144dd565b9450602086013593506040860135925060608601356001600160401b0381111561453757600080fd5b61454388828901614433565b969995985093965092949392505050565b60608152600061456760608301866141cc565b60208301949094525060400152919050565b600080600080600080600060a0888a03121561459457600080fd5b8735965060208801356001600160401b03808211156145b257600080fd5b6145be8b838c01614433565b909850965060408a0135955060608a0135945060808a01359150808211156145e557600080fd5b506145f28a828b01614433565b989b979a50959850939692959293505050565b6000806040838503121561461857600080fd5b50508035926020909101359150565b6000806020838503121561463a57600080fd5b82356001600160401b038082111561465157600080fd5b818501915085601f83011261466557600080fd5b81358181111561467457600080fd5b8660208260051b850101111561468957600080fd5b60209290920196919550909350505050565b600080604083850312156146ae57600080fd5b6146b783614224565b915061442a602084016144dd565b60008060008060008060008060006101208a8c0312156146e457600080fd5b6146ed8a614224565b98506146fb60208b016144dd565b975060408a0135965060608a01356001600160401b038082111561471e57600080fd5b818c0191508c601f83011261473257600080fd5b6147418d8335602085016142d7565b975060808c0135965060a08c0135955060c08c0135945060e08c013593506101008c013591508082111561477457600080fd5b506147818c828d01614315565b9150509295985092959850929598565b600080600080608085870312156147a757600080fd5b6147b085614224565b93506147be60208601614224565b92506040850135915060608501356001600160401b038111156147e057600080fd5b6147ec87828801614315565b91505092959194509250565b60008060006040848603121561480d57600080fd5b61481684614224565b925060208401356001600160401b0381111561483157600080fd5b61483d86828701614433565b9497909650939450505050565b6000806040838503121561485d57600080fd5b61486683614224565b915061442a60208401614224565b600181811c9082168061488857607f821691505b602082108114156148a957634e487b7160e01b600052602260045260246000fd5b50919050565b6001600160a01b038481168252831660208201526060604082018190526000906135e2908301846141cc565b600083516148ed8184602088016141a0565b60609390931b6bffffffffffffffffffffffff19169190920190815260140192915050565b600082516149248184602087016141a0565b9190910192915050565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60006000198214156149bf576149bf614995565b5060010190565b6020808252810182905260006001600160fb1b038311156149e657600080fd5b8260051b80856040850137600092016040019182525092915050565b600060208284031215614a1457600080fd5b81516001600160401b03811115614a2a57600080fd5b8201601f81018413614a3b57600080fd5b8051614a496142e5826142b0565b818152856020838501011115614a5e57600080fd5b6135e28260208301602086016141a0565b6000808454614a7d81614874565b60018281168015614a955760018114614aa657614ad5565b60ff19841687528287019450614ad5565b8860005260208060002060005b85811015614acc5781548a820152908401908201614ab3565b50505082870194505b505050508351614ae98183602088016141a0565b01949350505050565b6000602080835260008454614b0681614874565b80848701526040600180841660008114614b275760018114614b3b57614b69565b60ff19851689840152606089019550614b69565b896000528660002060005b85811015614b615781548b8201860152908301908801614b46565b8a0184019650505b509398975050505050505050565b60006020808385031215614b8a57600080fd5b82356001600160401b0380821115614ba157600080fd5b818501915085601f830112614bb557600080fd5b813581811115614bc757614bc761426a565b8060051b9150614bd8848301614280565b8181529183018401918481019088841115614bf257600080fd5b938501935b83851015610f7357843582529385019390850190614bf7565b60008219821115614c2357614c23614995565b500190565b600082821015614c3a57614c3a614995565b500390565b634e487b7160e01b600052601260045260246000fd5b600082614c6457614c64614c3f565b500490565b600082614c7857614c78614c3f565b500690565b600081614c8c57614c8c614995565b506000190190565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090613e38908301846141cc565b600060208284031215614cd957600080fd5b81516112318161416d565b6000816000190483118215151615614cfe57614cfe614995565b500290565b634e487b7160e01b600052603160045260246000fdfe4552433732313a207472616e7366657220746f206e6f6e20455243373231526563656976657220696d706c656d656e7465724d6574615472616e73616374696f6e2875696e74323536206e6f6e63652c616464726573732066726f6d2c62797465732066756e6374696f6e5369676e6174757265294552433732313a206f776e657220717565727920666f72206e6f6e6578697374656e7420746f6b656ea26469706673582212207c21182e0f63eaf51a73d883b564f0225dd98eef674191566c1a07a9a0a61b7764736f6c63430008090033

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

000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000b5505a6d998549090530911180f38ac5130101c60000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000756616c6f72656d00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000556464e4654000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002a68747470733a2f2f61646d696e2e616476616c6f72656d2e696f2f6170692f4e66742f746f6b656e732f00000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : name_ (string): Valorem
Arg [1] : symbol_ (string): VFNFT
Arg [2] : childChainManager (address): 0xb5505a6d998549090530911180f38aC5130101c6
Arg [3] : baseURI_ (string): https://admin.advalorem.io/api/Nft/tokens/

-----Encoded View---------------
11 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [2] : 000000000000000000000000b5505a6d998549090530911180f38ac5130101c6
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000100
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000007
Arg [5] : 56616c6f72656d00000000000000000000000000000000000000000000000000
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [7] : 56464e4654000000000000000000000000000000000000000000000000000000
Arg [8] : 000000000000000000000000000000000000000000000000000000000000002a
Arg [9] : 68747470733a2f2f61646d696e2e616476616c6f72656d2e696f2f6170692f4e
Arg [10] : 66742f746f6b656e732f00000000000000000000000000000000000000000000


[ 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.