ETH Price: $2,364.82 (+1.58%)

Token

 

Overview

Max Total Supply

0

Holders

45

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
*zatanna🪄️.eth
0xcf7476d0f79a29888711a3be95dd9cf4c4542917
Loading...
Loading
Loading...
Loading
Loading...
Loading

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

Contract Source Code Verified (Exact Match)

Contract Name:
IROIROShikigami

Compiler Version
v0.8.18+commit.87f61d96

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 1 : IROIROShikigami.sol
// Sources flattened with hardhat v2.16.1 https://hardhat.org

// SPDX-License-Identifier: MIT

pragma solidity ^0.8.13;

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

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


// File @openzeppelin/contracts/access/[email protected]
// OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol)

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

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

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

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

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

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
    }

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

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

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


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

// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

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


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

// OpenZeppelin Contracts (last updated v4.9.0) (interfaces/IERC2981.sol)

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


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

// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)

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


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

// OpenZeppelin Contracts (last updated v4.9.0) (token/common/ERC2981.sol)


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

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

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

    /**
     * @inheritdoc IERC2981
     */
    function royaltyInfo(uint256 tokenId, uint256 salePrice) public view virtual override returns (address, uint256) {
        RoyaltyInfo memory royalty = _tokenRoyaltyInfo[tokenId];

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

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

        return (royalty.receiver, royaltyAmount);
    }

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

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

        _defaultRoyaltyInfo = RoyaltyInfo(receiver, feeNumerator);
    }

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

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

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

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


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

// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC1155/IERC1155.sol)

/**
 * @dev Required interface of an ERC1155 compliant contract, as defined in the
 * https://eips.ethereum.org/EIPS/eip-1155[EIP].
 *
 * _Available since v3.1._
 */
interface IERC1155 is IERC165 {
    /**
     * @dev Emitted when `value` tokens of token type `id` are transferred from `from` to `to` by `operator`.
     */
    event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value);

    /**
     * @dev Equivalent to multiple {TransferSingle} events, where `operator`, `from` and `to` are the same for all
     * transfers.
     */
    event TransferBatch(
        address indexed operator,
        address indexed from,
        address indexed to,
        uint256[] ids,
        uint256[] values
    );

    /**
     * @dev Emitted when `account` grants or revokes permission to `operator` to transfer their tokens, according to
     * `approved`.
     */
    event ApprovalForAll(address indexed account, address indexed operator, bool approved);

    /**
     * @dev Emitted when the URI for token type `id` changes to `value`, if it is a non-programmatic URI.
     *
     * If an {URI} event was emitted for `id`, the standard
     * https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[guarantees] that `value` will equal the value
     * returned by {IERC1155MetadataURI-uri}.
     */
    event URI(string value, uint256 indexed id);

    /**
     * @dev Returns the amount of tokens of token type `id` owned by `account`.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function balanceOf(address account, uint256 id) external view returns (uint256);

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}.
     *
     * Requirements:
     *
     * - `accounts` and `ids` must have the same length.
     */
    function balanceOfBatch(
        address[] calldata accounts,
        uint256[] calldata ids
    ) external view returns (uint256[] memory);

    /**
     * @dev Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`,
     *
     * Emits an {ApprovalForAll} event.
     *
     * Requirements:
     *
     * - `operator` cannot be the caller.
     */
    function setApprovalForAll(address operator, bool approved) external;

    /**
     * @dev Returns true if `operator` is approved to transfer ``account``'s tokens.
     *
     * See {setApprovalForAll}.
     */
    function isApprovedForAll(address account, address operator) external view returns (bool);

    /**
     * @dev Transfers `amount` tokens of token type `id` from `from` to `to`.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - If the caller is not `from`, it must have been approved to spend ``from``'s tokens via {setApprovalForAll}.
     * - `from` must have a balance of tokens of type `id` of at least `amount`.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
     * acceptance magic value.
     */
    function safeTransferFrom(address from, address to, uint256 id, uint256 amount, bytes calldata data) external;

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}.
     *
     * Emits a {TransferBatch} event.
     *
     * Requirements:
     *
     * - `ids` and `amounts` must have the same length.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the
     * acceptance magic value.
     */
    function safeBatchTransferFrom(
        address from,
        address to,
        uint256[] calldata ids,
        uint256[] calldata amounts,
        bytes calldata data
    ) external;
}


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

// OpenZeppelin Contracts v4.4.1 (token/ERC1155/extensions/IERC1155MetadataURI.sol)

/**
 * @dev Interface of the optional ERC1155MetadataExtension interface, as defined
 * in the https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[EIP].
 *
 * _Available since v3.1._
 */
interface IERC1155MetadataURI is IERC1155 {
    /**
     * @dev Returns the URI for token type `id`.
     *
     * If the `\{id\}` substring is present in the URI, it must be replaced by
     * clients with the actual token type ID.
     */
    function uri(uint256 id) external view returns (string memory);
}


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

// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC1155/IERC1155Receiver.sol)

/**
 * @dev _Available since v3.1._
 */
interface IERC1155Receiver is IERC165 {
    /**
     * @dev Handles the receipt of a single ERC1155 token type. This function is
     * called at the end of a `safeTransferFrom` after the balance has been updated.
     *
     * NOTE: To accept the transfer, this must return
     * `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))`
     * (i.e. 0xf23a6e61, or its own function selector).
     *
     * @param operator The address which initiated the transfer (i.e. msg.sender)
     * @param from The address which previously owned the token
     * @param id The ID of the token being transferred
     * @param value The amount of tokens being transferred
     * @param data Additional data with no specified format
     * @return `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` if transfer is allowed
     */
    function onERC1155Received(
        address operator,
        address from,
        uint256 id,
        uint256 value,
        bytes calldata data
    ) external returns (bytes4);

    /**
     * @dev Handles the receipt of a multiple ERC1155 token types. This function
     * is called at the end of a `safeBatchTransferFrom` after the balances have
     * been updated.
     *
     * NOTE: To accept the transfer(s), this must return
     * `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))`
     * (i.e. 0xbc197c81, or its own function selector).
     *
     * @param operator The address which initiated the batch transfer (i.e. msg.sender)
     * @param from The address which previously owned the token
     * @param ids An array containing ids of each token being transferred (order and length must match values array)
     * @param values An array containing amounts of each token being transferred (order and length must match ids array)
     * @param data Additional data with no specified format
     * @return `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` if transfer is allowed
     */
    function onERC1155BatchReceived(
        address operator,
        address from,
        uint256[] calldata ids,
        uint256[] calldata values,
        bytes calldata data
    ) external returns (bytes4);
}


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

// OpenZeppelin Contracts (last updated v4.9.0) (utils/Address.sol)


/**
 * @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
     *
     * Furthermore, `isContract` will also return true if the target contract within
     * the same transaction is already scheduled for destruction by `SELFDESTRUCT`,
     * which only has an effect at the end of a transaction.
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 0;
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://consensys.net/diligence/blog/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.8.0/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

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

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

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

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

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

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling
     * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.
     *
     * _Available since v4.8._
     */
    function verifyCallResultFromTarget(
        address target,
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        if (success) {
            if (returndata.length == 0) {
                // only check isContract if the call was successful and the return data is empty
                // otherwise we already know that it was a contract
                require(isContract(target), "Address: call to non-contract");
            }
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    /**
     * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason or using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    function _revert(bytes memory returndata, string memory errorMessage) private pure {
        // Look for revert reason and bubble it up if present
        if (returndata.length > 0) {
            // The easiest way to bubble the revert reason is using memory via assembly
            /// @solidity memory-safe-assembly
            assembly {
                let returndata_size := mload(returndata)
                revert(add(32, returndata), returndata_size)
            }
        } else {
            revert(errorMessage);
        }
    }
}


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

// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC1155/ERC1155.sol)


/**
 * @dev Implementation of the basic standard multi-token.
 * See https://eips.ethereum.org/EIPS/eip-1155
 * Originally based on code by Enjin: https://github.com/enjin/erc-1155
 *
 * _Available since v3.1._
 */
contract ERC1155 is Context, ERC165, IERC1155, IERC1155MetadataURI {
    using Address for address;

    // Mapping from token ID to account balances
    mapping(uint256 => mapping(address => uint256)) private _balances;

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

    // Used as the URI for all token types by relying on ID substitution, e.g. https://token-cdn-domain/{id}.json
    string private _uri;

    /**
     * @dev See {_setURI}.
     */
    constructor(string memory uri_) {
        _setURI(uri_);
    }

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

    /**
     * @dev See {IERC1155MetadataURI-uri}.
     *
     * This implementation returns the same URI for *all* token types. It relies
     * on the token type ID substitution mechanism
     * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP].
     *
     * Clients calling this function must replace the `\{id\}` substring with the
     * actual token type ID.
     */
    function uri(uint256) public view virtual override returns (string memory) {
        return _uri;
    }

    /**
     * @dev See {IERC1155-balanceOf}.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function balanceOf(address account, uint256 id) public view virtual override returns (uint256) {
        require(account != address(0), "ERC1155: address zero is not a valid owner");
        return _balances[id][account];
    }

    /**
     * @dev See {IERC1155-balanceOfBatch}.
     *
     * Requirements:
     *
     * - `accounts` and `ids` must have the same length.
     */
    function balanceOfBatch(
        address[] memory accounts,
        uint256[] memory ids
    ) public view virtual override returns (uint256[] memory) {
        require(accounts.length == ids.length, "ERC1155: accounts and ids length mismatch");

        uint256[] memory batchBalances = new uint256[](accounts.length);

        for (uint256 i = 0; i < accounts.length; ++i) {
            batchBalances[i] = balanceOf(accounts[i], ids[i]);
        }

        return batchBalances;
    }

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

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

    /**
     * @dev See {IERC1155-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) public virtual override {
        require(
            from == _msgSender() || isApprovedForAll(from, _msgSender()),
            "ERC1155: caller is not token owner or approved"
        );
        _safeTransferFrom(from, to, id, amount, data);
    }

    /**
     * @dev See {IERC1155-safeBatchTransferFrom}.
     */
    function safeBatchTransferFrom(
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) public virtual override {
        require(
            from == _msgSender() || isApprovedForAll(from, _msgSender()),
            "ERC1155: caller is not token owner or approved"
        );
        _safeBatchTransferFrom(from, to, ids, amounts, data);
    }

    /**
     * @dev Transfers `amount` tokens of token type `id` from `from` to `to`.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `from` must have a balance of tokens of type `id` of at least `amount`.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
     * acceptance magic value.
     */
    function _safeTransferFrom(
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) internal virtual {
        require(to != address(0), "ERC1155: transfer to the zero address");

        address operator = _msgSender();
        uint256[] memory ids = _asSingletonArray(id);
        uint256[] memory amounts = _asSingletonArray(amount);

        _beforeTokenTransfer(operator, from, to, ids, amounts, data);

        uint256 fromBalance = _balances[id][from];
        require(fromBalance >= amount, "ERC1155: insufficient balance for transfer");
        unchecked {
            _balances[id][from] = fromBalance - amount;
        }
        _balances[id][to] += amount;

        emit TransferSingle(operator, from, to, id, amount);

        _afterTokenTransfer(operator, from, to, ids, amounts, data);

        _doSafeTransferAcceptanceCheck(operator, from, to, id, amount, data);
    }

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_safeTransferFrom}.
     *
     * Emits a {TransferBatch} event.
     *
     * Requirements:
     *
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the
     * acceptance magic value.
     */
    function _safeBatchTransferFrom(
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual {
        require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch");
        require(to != address(0), "ERC1155: transfer to the zero address");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, from, to, ids, amounts, data);

        for (uint256 i = 0; i < ids.length; ++i) {
            uint256 id = ids[i];
            uint256 amount = amounts[i];

            uint256 fromBalance = _balances[id][from];
            require(fromBalance >= amount, "ERC1155: insufficient balance for transfer");
            unchecked {
                _balances[id][from] = fromBalance - amount;
            }
            _balances[id][to] += amount;
        }

        emit TransferBatch(operator, from, to, ids, amounts);

        _afterTokenTransfer(operator, from, to, ids, amounts, data);

        _doSafeBatchTransferAcceptanceCheck(operator, from, to, ids, amounts, data);
    }

    /**
     * @dev Sets a new URI for all token types, by relying on the token type ID
     * substitution mechanism
     * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP].
     *
     * By this mechanism, any occurrence of the `\{id\}` substring in either the
     * URI or any of the amounts in the JSON file at said URI will be replaced by
     * clients with the token type ID.
     *
     * For example, the `https://token-cdn-domain/\{id\}.json` URI would be
     * interpreted by clients as
     * `https://token-cdn-domain/000000000000000000000000000000000000000000000000000000000004cce0.json`
     * for token type ID 0x4cce0.
     *
     * See {uri}.
     *
     * Because these URIs cannot be meaningfully represented by the {URI} event,
     * this function emits no events.
     */
    function _setURI(string memory newuri) internal virtual {
        _uri = newuri;
    }

    /**
     * @dev Creates `amount` tokens of token type `id`, and assigns them to `to`.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
     * acceptance magic value.
     */
    function _mint(address to, uint256 id, uint256 amount, bytes memory data) internal virtual {
        require(to != address(0), "ERC1155: mint to the zero address");

        address operator = _msgSender();
        uint256[] memory ids = _asSingletonArray(id);
        uint256[] memory amounts = _asSingletonArray(amount);

        _beforeTokenTransfer(operator, address(0), to, ids, amounts, data);

        _balances[id][to] += amount;
        emit TransferSingle(operator, address(0), to, id, amount);

        _afterTokenTransfer(operator, address(0), to, ids, amounts, data);

        _doSafeTransferAcceptanceCheck(operator, address(0), to, id, amount, data);
    }

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_mint}.
     *
     * Emits a {TransferBatch} event.
     *
     * Requirements:
     *
     * - `ids` and `amounts` must have the same length.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the
     * acceptance magic value.
     */
    function _mintBatch(
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual {
        require(to != address(0), "ERC1155: mint to the zero address");
        require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, address(0), to, ids, amounts, data);

        for (uint256 i = 0; i < ids.length; i++) {
            _balances[ids[i]][to] += amounts[i];
        }

        emit TransferBatch(operator, address(0), to, ids, amounts);

        _afterTokenTransfer(operator, address(0), to, ids, amounts, data);

        _doSafeBatchTransferAcceptanceCheck(operator, address(0), to, ids, amounts, data);
    }

    /**
     * @dev Destroys `amount` tokens of token type `id` from `from`
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `from` must have at least `amount` tokens of token type `id`.
     */
    function _burn(address from, uint256 id, uint256 amount) internal virtual {
        require(from != address(0), "ERC1155: burn from the zero address");

        address operator = _msgSender();
        uint256[] memory ids = _asSingletonArray(id);
        uint256[] memory amounts = _asSingletonArray(amount);

        _beforeTokenTransfer(operator, from, address(0), ids, amounts, "");

        uint256 fromBalance = _balances[id][from];
        require(fromBalance >= amount, "ERC1155: burn amount exceeds balance");
        unchecked {
            _balances[id][from] = fromBalance - amount;
        }

        emit TransferSingle(operator, from, address(0), id, amount);

        _afterTokenTransfer(operator, from, address(0), ids, amounts, "");
    }

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_burn}.
     *
     * Emits a {TransferBatch} event.
     *
     * Requirements:
     *
     * - `ids` and `amounts` must have the same length.
     */
    function _burnBatch(address from, uint256[] memory ids, uint256[] memory amounts) internal virtual {
        require(from != address(0), "ERC1155: burn from the zero address");
        require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, from, address(0), ids, amounts, "");

        for (uint256 i = 0; i < ids.length; i++) {
            uint256 id = ids[i];
            uint256 amount = amounts[i];

            uint256 fromBalance = _balances[id][from];
            require(fromBalance >= amount, "ERC1155: burn amount exceeds balance");
            unchecked {
                _balances[id][from] = fromBalance - amount;
            }
        }

        emit TransferBatch(operator, from, address(0), ids, amounts);

        _afterTokenTransfer(operator, from, address(0), ids, amounts, "");
    }

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

    /**
     * @dev Hook that is called before any token transfer. This includes minting
     * and burning, as well as batched variants.
     *
     * The same hook is called on both single and batched variants. For single
     * transfers, the length of the `ids` and `amounts` arrays will be 1.
     *
     * Calling conditions (for each `id` and `amount` pair):
     *
     * - When `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * of token type `id` will be  transferred to `to`.
     * - When `from` is zero, `amount` tokens of token type `id` will be minted
     * for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens of token type `id`
     * will be burned.
     * - `from` and `to` are never both zero.
     * - `ids` and `amounts` have the same, non-zero length.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual {}

    /**
     * @dev Hook that is called after any token transfer. This includes minting
     * and burning, as well as batched variants.
     *
     * The same hook is called on both single and batched variants. For single
     * transfers, the length of the `id` and `amount` arrays will be 1.
     *
     * Calling conditions (for each `id` and `amount` pair):
     *
     * - When `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * of token type `id` will be  transferred to `to`.
     * - When `from` is zero, `amount` tokens of token type `id` will be minted
     * for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens of token type `id`
     * will be burned.
     * - `from` and `to` are never both zero.
     * - `ids` and `amounts` have the same, non-zero length.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(
        address operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual {}

    function _doSafeTransferAcceptanceCheck(
        address operator,
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) private {
        if (to.isContract()) {
            try IERC1155Receiver(to).onERC1155Received(operator, from, id, amount, data) returns (bytes4 response) {
                if (response != IERC1155Receiver.onERC1155Received.selector) {
                    revert("ERC1155: ERC1155Receiver rejected tokens");
                }
            } catch Error(string memory reason) {
                revert(reason);
            } catch {
                revert("ERC1155: transfer to non-ERC1155Receiver implementer");
            }
        }
    }

    function _doSafeBatchTransferAcceptanceCheck(
        address operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) private {
        if (to.isContract()) {
            try IERC1155Receiver(to).onERC1155BatchReceived(operator, from, ids, amounts, data) returns (
                bytes4 response
            ) {
                if (response != IERC1155Receiver.onERC1155BatchReceived.selector) {
                    revert("ERC1155: ERC1155Receiver rejected tokens");
                }
            } catch Error(string memory reason) {
                revert(reason);
            } catch {
                revert("ERC1155: transfer to non-ERC1155Receiver implementer");
            }
        }
    }

    function _asSingletonArray(uint256 element) private pure returns (uint256[] memory) {
        uint256[] memory array = new uint256[](1);
        array[0] = element;

        return array;
    }
}


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

// OpenZeppelin Contracts (last updated v4.9.0) (utils/math/Math.sol)
/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library Math {
    enum Rounding {
        Down, // Toward negative infinity
        Up, // Toward infinity
        Zero // Toward zero
    }

    /**
     * @dev Returns the largest of two numbers.
     */
    function max(uint256 a, uint256 b) internal pure returns (uint256) {
        return a > b ? a : b;
    }

    /**
     * @dev Returns the smallest of two numbers.
     */
    function min(uint256 a, uint256 b) internal pure returns (uint256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two numbers. The result is rounded towards
     * zero.
     */
    function average(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b) / 2 can overflow.
        return (a & b) + (a ^ b) / 2;
    }

    /**
     * @dev Returns the ceiling of the division of two numbers.
     *
     * This differs from standard division with `/` in that it rounds up instead
     * of rounding down.
     */
    function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b - 1) / b can overflow on addition, so we distribute.
        return a == 0 ? 0 : (a - 1) / b + 1;
    }

    /**
     * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0
     * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv)
     * with further edits by Uniswap Labs also under MIT license.
     */
    function mulDiv(uint256 x, uint256 y, uint256 denominator) internal pure returns (uint256 result) {
        unchecked {
            // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use
            // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256
            // variables such that product = prod1 * 2^256 + prod0.
            uint256 prod0; // Least significant 256 bits of the product
            uint256 prod1; // Most significant 256 bits of the product
            assembly {
                let mm := mulmod(x, y, not(0))
                prod0 := mul(x, y)
                prod1 := sub(sub(mm, prod0), lt(mm, prod0))
            }

            // Handle non-overflow cases, 256 by 256 division.
            if (prod1 == 0) {
                // Solidity will revert if denominator == 0, unlike the div opcode on its own.
                // The surrounding unchecked block does not change this fact.
                // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic.
                return prod0 / denominator;
            }

            // Make sure the result is less than 2^256. Also prevents denominator == 0.
            require(denominator > prod1, "Math: mulDiv overflow");

            ///////////////////////////////////////////////
            // 512 by 256 division.
            ///////////////////////////////////////////////

            // Make division exact by subtracting the remainder from [prod1 prod0].
            uint256 remainder;
            assembly {
                // Compute remainder using mulmod.
                remainder := mulmod(x, y, denominator)

                // Subtract 256 bit number from 512 bit number.
                prod1 := sub(prod1, gt(remainder, prod0))
                prod0 := sub(prod0, remainder)
            }

            // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1.
            // See https://cs.stackexchange.com/q/138556/92363.

            // Does not overflow because the denominator cannot be zero at this stage in the function.
            uint256 twos = denominator & (~denominator + 1);
            assembly {
                // Divide denominator by twos.
                denominator := div(denominator, twos)

                // Divide [prod1 prod0] by twos.
                prod0 := div(prod0, twos)

                // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.
                twos := add(div(sub(0, twos), twos), 1)
            }

            // Shift in bits from prod1 into prod0.
            prod0 |= prod1 * twos;

            // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such
            // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for
            // four bits. That is, denominator * inv = 1 mod 2^4.
            uint256 inverse = (3 * denominator) ^ 2;

            // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works
            // in modular arithmetic, doubling the correct bits in each step.
            inverse *= 2 - denominator * inverse; // inverse mod 2^8
            inverse *= 2 - denominator * inverse; // inverse mod 2^16
            inverse *= 2 - denominator * inverse; // inverse mod 2^32
            inverse *= 2 - denominator * inverse; // inverse mod 2^64
            inverse *= 2 - denominator * inverse; // inverse mod 2^128
            inverse *= 2 - denominator * inverse; // inverse mod 2^256

            // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.
            // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is
            // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1
            // is no longer required.
            result = prod0 * inverse;
            return result;
        }
    }

    /**
     * @notice Calculates x * y / denominator with full precision, following the selected rounding direction.
     */
    function mulDiv(uint256 x, uint256 y, uint256 denominator, Rounding rounding) internal pure returns (uint256) {
        uint256 result = mulDiv(x, y, denominator);
        if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) {
            result += 1;
        }
        return result;
    }

    /**
     * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down.
     *
     * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11).
     */
    function sqrt(uint256 a) internal pure returns (uint256) {
        if (a == 0) {
            return 0;
        }

        // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.
        //
        // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have
        // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.
        //
        // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`
        // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`
        // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`
        //
        // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.
        uint256 result = 1 << (log2(a) >> 1);

        // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,
        // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at
        // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision
        // into the expected uint128 result.
        unchecked {
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            return min(result, a / result);
        }
    }

    /**
     * @notice Calculates sqrt(a), following the selected rounding direction.
     */
    function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = sqrt(a);
            return result + (rounding == Rounding.Up && result * result < a ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 2, rounded down, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 128;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 64;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 32;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 16;
            }
            if (value >> 8 > 0) {
                value >>= 8;
                result += 8;
            }
            if (value >> 4 > 0) {
                value >>= 4;
                result += 4;
            }
            if (value >> 2 > 0) {
                value >>= 2;
                result += 2;
            }
            if (value >> 1 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 2, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log2(value);
            return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 10, rounded down, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >= 10 ** 64) {
                value /= 10 ** 64;
                result += 64;
            }
            if (value >= 10 ** 32) {
                value /= 10 ** 32;
                result += 32;
            }
            if (value >= 10 ** 16) {
                value /= 10 ** 16;
                result += 16;
            }
            if (value >= 10 ** 8) {
                value /= 10 ** 8;
                result += 8;
            }
            if (value >= 10 ** 4) {
                value /= 10 ** 4;
                result += 4;
            }
            if (value >= 10 ** 2) {
                value /= 10 ** 2;
                result += 2;
            }
            if (value >= 10 ** 1) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 10, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log10(value);
            return result + (rounding == Rounding.Up && 10 ** result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 256, rounded down, of a positive value.
     * Returns 0 if given 0.
     *
     * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.
     */
    function log256(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 16;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 8;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 4;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 2;
            }
            if (value >> 8 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 256, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log256(value);
            return result + (rounding == Rounding.Up && 1 << (result << 3) < value ? 1 : 0);
        }
    }
}


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

// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/SignedMath.sol)

/**
 * @dev Standard signed math utilities missing in the Solidity language.
 */
library SignedMath {
    /**
     * @dev Returns the largest of two signed numbers.
     */
    function max(int256 a, int256 b) internal pure returns (int256) {
        return a > b ? a : b;
    }

    /**
     * @dev Returns the smallest of two signed numbers.
     */
    function min(int256 a, int256 b) internal pure returns (int256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two signed numbers without overflow.
     * The result is rounded towards zero.
     */
    function average(int256 a, int256 b) internal pure returns (int256) {
        // Formula from the book "Hacker's Delight"
        int256 x = (a & b) + ((a ^ b) >> 1);
        return x + (int256(uint256(x) >> 255) & (a ^ b));
    }

    /**
     * @dev Returns the absolute unsigned value of a signed value.
     */
    function abs(int256 n) internal pure returns (uint256) {
        unchecked {
            // must be unchecked in order to support `n = type(int256).min`
            return uint256(n >= 0 ? n : -n);
        }
    }
}


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

// OpenZeppelin Contracts (last updated v4.9.0) (utils/Strings.sol)

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

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        unchecked {
            uint256 length = Math.log10(value) + 1;
            string memory buffer = new string(length);
            uint256 ptr;
            /// @solidity memory-safe-assembly
            assembly {
                ptr := add(buffer, add(32, length))
            }
            while (true) {
                ptr--;
                /// @solidity memory-safe-assembly
                assembly {
                    mstore8(ptr, byte(mod(value, 10), _SYMBOLS))
                }
                value /= 10;
                if (value == 0) break;
            }
            return buffer;
        }
    }

    /**
     * @dev Converts a `int256` to its ASCII `string` decimal representation.
     */
    function toString(int256 value) internal pure returns (string memory) {
        return string(abi.encodePacked(value < 0 ? "-" : "", toString(SignedMath.abs(value))));
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        unchecked {
            return toHexString(value, Math.log256(value) + 1);
        }
    }

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

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

    /**
     * @dev Returns true if the two strings are equal.
     */
    function equal(string memory a, string memory b) internal pure returns (bool) {
        return keccak256(bytes(a)) == keccak256(bytes(b));
    }
}


// File operator-filter-registry/src/[email protected]

interface IOperatorFilterRegistry {
    /**
     * @notice Returns true if operator is not filtered for a given token, either by address or codeHash. Also returns
     *         true if supplied registrant address is not registered.
     */
    function isOperatorAllowed(address registrant, address operator) external view returns (bool);

    /**
     * @notice Registers an address with the registry. May be called by address itself or by EIP-173 owner.
     */
    function register(address registrant) external;

    /**
     * @notice Registers an address with the registry and "subscribes" to another address's filtered operators and codeHashes.
     */
    function registerAndSubscribe(address registrant, address subscription) external;

    /**
     * @notice Registers an address with the registry and copies the filtered operators and codeHashes from another
     *         address without subscribing.
     */
    function registerAndCopyEntries(address registrant, address registrantToCopy) external;

    /**
     * @notice Unregisters an address with the registry and removes its subscription. May be called by address itself or by EIP-173 owner.
     *         Note that this does not remove any filtered addresses or codeHashes.
     *         Also note that any subscriptions to this registrant will still be active and follow the existing filtered addresses and codehashes.
     */
    function unregister(address addr) external;

    /**
     * @notice Update an operator address for a registered address - when filtered is true, the operator is filtered.
     */
    function updateOperator(address registrant, address operator, bool filtered) external;

    /**
     * @notice Update multiple operators for a registered address - when filtered is true, the operators will be filtered. Reverts on duplicates.
     */
    function updateOperators(address registrant, address[] calldata operators, bool filtered) external;

    /**
     * @notice Update a codeHash for a registered address - when filtered is true, the codeHash is filtered.
     */
    function updateCodeHash(address registrant, bytes32 codehash, bool filtered) external;

    /**
     * @notice Update multiple codeHashes for a registered address - when filtered is true, the codeHashes will be filtered. Reverts on duplicates.
     */
    function updateCodeHashes(address registrant, bytes32[] calldata codeHashes, bool filtered) external;

    /**
     * @notice Subscribe an address to another registrant's filtered operators and codeHashes. Will remove previous
     *         subscription if present.
     *         Note that accounts with subscriptions may go on to subscribe to other accounts - in this case,
     *         subscriptions will not be forwarded. Instead the former subscription's existing entries will still be
     *         used.
     */
    function subscribe(address registrant, address registrantToSubscribe) external;

    /**
     * @notice Unsubscribe an address from its current subscribed registrant, and optionally copy its filtered operators and codeHashes.
     */
    function unsubscribe(address registrant, bool copyExistingEntries) external;

    /**
     * @notice Get the subscription address of a given registrant, if any.
     */
    function subscriptionOf(address addr) external returns (address registrant);

    /**
     * @notice Get the set of addresses subscribed to a given registrant.
     *         Note that order is not guaranteed as updates are made.
     */
    function subscribers(address registrant) external returns (address[] memory);

    /**
     * @notice Get the subscriber at a given index in the set of addresses subscribed to a given registrant.
     *         Note that order is not guaranteed as updates are made.
     */
    function subscriberAt(address registrant, uint256 index) external returns (address);

    /**
     * @notice Copy filtered operators and codeHashes from a different registrantToCopy to addr.
     */
    function copyEntriesOf(address registrant, address registrantToCopy) external;

    /**
     * @notice Returns true if operator is filtered by a given address or its subscription.
     */
    function isOperatorFiltered(address registrant, address operator) external returns (bool);

    /**
     * @notice Returns true if the hash of an address's code is filtered by a given address or its subscription.
     */
    function isCodeHashOfFiltered(address registrant, address operatorWithCode) external returns (bool);

    /**
     * @notice Returns true if a codeHash is filtered by a given address or its subscription.
     */
    function isCodeHashFiltered(address registrant, bytes32 codeHash) external returns (bool);

    /**
     * @notice Returns a list of filtered operators for a given address or its subscription.
     */
    function filteredOperators(address addr) external returns (address[] memory);

    /**
     * @notice Returns the set of filtered codeHashes for a given address or its subscription.
     *         Note that order is not guaranteed as updates are made.
     */
    function filteredCodeHashes(address addr) external returns (bytes32[] memory);

    /**
     * @notice Returns the filtered operator at the given index of the set of filtered operators for a given address or
     *         its subscription.
     *         Note that order is not guaranteed as updates are made.
     */
    function filteredOperatorAt(address registrant, uint256 index) external returns (address);

    /**
     * @notice Returns the filtered codeHash at the given index of the list of filtered codeHashes for a given address or
     *         its subscription.
     *         Note that order is not guaranteed as updates are made.
     */
    function filteredCodeHashAt(address registrant, uint256 index) external returns (bytes32);

    /**
     * @notice Returns true if an address has registered
     */
    function isRegistered(address addr) external returns (bool);

    /**
     * @dev Convenience method to compute the code hash of an arbitrary contract
     */
    function codeHashOf(address addr) external returns (bytes32);
}


// File contracts/IROIROShikigami.sol

// Sources flattened with hardhat v2.16.1 https://hardhat.org

// File @openzeppelin/contracts/utils/[email protected]
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

abstract contract UpdatableOperatorFilterer {
    address private _owner;
    /// @dev Emitted when an operator is not allowed.
    error OperatorNotAllowed (address operator);
    /// @dev Emitted when someone other than the owner is trying to call an only owner function.
    error OnlyOwner();

    event OperatorFilterRegistryAddressUpdated(address newRegistry);

    IOperatorFilterRegistry public operatorFilterRegistry;

    /// @dev The constructor that is called when the contract is being deployed.
    constructor(address _registry, address subscriptionOrRegistrantToCopy, bool subscribe) {
        _owner = msg.sender;
        IOperatorFilterRegistry registry = IOperatorFilterRegistry(_registry);
        operatorFilterRegistry = registry;
        // If an inheriting token contract is deployed to a network without the registry deployed, the modifier
        // will not revert, but the contract will need to be registered with the registry once it is deployed in
        // order for the modifier to filter addresses.
        if (address(registry).code.length > 0) {
            if (subscribe) {
                registry.registerAndSubscribe(address(this), subscriptionOrRegistrantToCopy);
            } else {
                if (subscriptionOrRegistrantToCopy != address(0)) {
                    registry.registerAndCopyEntries(address(this), subscriptionOrRegistrantToCopy);
                } else {
                    registry.register(address(this));
                }
            }
        }
    }

    /**
     * @dev A helper function to check if the operator is allowed.
     */
    modifier onlyAllowedOperator(address from) virtual {
        // Allow spending tokens from addresses with balance
        // Note that this still allows listings and marketplaces with escrow to transfer tokens if transferred
        // from an EOA.
        if (from != msg.sender) {
            _checkFilterOperator(msg.sender);
        }
        _;
    }

    /**
     * @dev A helper function to check if the operator approval is allowed.
     */
    modifier onlyAllowedOperatorApproval(address operator) virtual {
        _checkFilterOperator(operator);
        _;
    }

    function transferOwnershipRegister(address newOwner) public virtual {
        require(msg.sender == _owner);
        _owner = newOwner;
    }

    /**
     * @notice Update the address that the contract will make OperatorFilter checks against. When set to the zero
     *         address, checks will be bypassed. OnlyOwner.
     */
    function updateOperatorFilterRegistryAddress(address newRegistry) public virtual {
        if (msg.sender != returnOwnerRegister()) {
            revert OnlyOwner();
        }
        operatorFilterRegistry = IOperatorFilterRegistry(newRegistry);
        emit OperatorFilterRegistryAddressUpdated(newRegistry);
    }

    /**
     * @dev Assume the contract has an owner, but leave specific Ownable implementation up to inheriting contract.
     */
    function returnOwnerRegister() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev A helper function to check if the operator is allowed.
     */
    function _checkFilterOperator(address operator) internal view virtual {
        IOperatorFilterRegistry registry = operatorFilterRegistry;
        // Check registry code length to facilitate testing in environments without a deployed registry.
        if (address(registry) != address(0) && address(registry).code.length > 0) {
            // under normal circumstances, this function will revert rather than return false, but inheriting contracts
            // may specify their own OperatorFilterRegistry implementations, which may behave differently
            if (!registry.isOperatorAllowed(address(this), operator)) {
                revert OperatorNotAllowed(operator);
            }
        }
    }
}

// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC1155/extensions/ERC1155Supply.sol)
/**
 * @dev Extension of ERC1155 that adds tracking of total supply per id.
 *
 * Useful for scenarios where Fungible and Non-fungible tokens have to be
 * clearly identified. Note: While a totalSupply of 1 might mean the
 * corresponding is an NFT, there is no guarantees that no other token with the
 * same id are not going to be minted.
 */
abstract contract ERC1155Custom is ERC1155 {
    using Strings for uint256;

    // Optional base URI
    string private _baseURI = "";

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

    /**
     * @dev See {IERC1155MetadataURI-uri}.
     *
     * This implementation returns the concatenation of the `_baseURI`
     * and the token-specific uri if the latter is set
     *
     * This enables the following behaviors:
     *
     * - if `_tokenURIs[tokenId]` is set, then the result is the concatenation
     *   of `_baseURI` and `_tokenURIs[tokenId]` (keep in mind that `_baseURI`
     *   is empty per default);
     *
     * - if `_tokenURIs[tokenId]` is NOT set then we fallback to `super.uri()`
     *   which in most cases will contain `ERC1155._uri`;
     *
     * - if `_tokenURIs[tokenId]` is NOT set, and if the parents do not have a
     *   uri value set, then the result is empty.
     */
    function uri(uint256 tokenId) public view virtual override returns (string memory) {
        string memory tokenURI = _tokenURIs[tokenId];

        // If token URI is set, concatenate base URI and tokenURI (via abi.encodePacked).
        return bytes(tokenURI).length > 0 ? string(abi.encodePacked(_baseURI, tokenURI)) : super.uri(tokenId);
    }

    /**
     * @dev Sets `tokenURI` as the tokenURI of `tokenId`.
     */
    function _setURI(uint256 tokenId, string memory tokenURI) internal virtual {
        _tokenURIs[tokenId] = tokenURI;
        emit URI(uri(tokenId), tokenId);
    }

    /**
     * @dev Sets `baseURI` as the `_baseURI` for all tokens
     */
    function _setBaseURI(string memory baseURI) internal virtual {
        _baseURI = baseURI;
    }

    mapping(uint256 => uint256) private _totalSupply;

    /**
     * @dev Total amount of tokens in with a given id.
     */
    function totalSupply(uint256 id) public view virtual returns (uint256) {
        return _totalSupply[id];
    }

    /**
     * @dev Indicates whether any token exist with a given id, or not.
     */
    function exists(uint256 id) public view virtual returns (bool) {
        return ERC1155Custom.totalSupply(id) > 0;
    }

    /**
     * @dev See {ERC1155-_beforeTokenTransfer}.
     */
    function _beforeTokenTransfer(
        address operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual override {
        super._beforeTokenTransfer(operator, from, to, ids, amounts, data);

        if (from == address(0)) {
            for (uint256 i = 0; i < ids.length; ++i) {
                _totalSupply[ids[i]] += amounts[i];
            }
        }

        if (to == address(0)) {
            for (uint256 i = 0; i < ids.length; ++i) {
                uint256 id = ids[i];
                uint256 amount = amounts[i];
                uint256 supply = _totalSupply[id];
                require(supply >= amount, "ERC1155: burn amount exceeds totalSupply");
                unchecked {
                    _totalSupply[id] = supply - amount;
                }
            }
        }
    }
}

contract IROIROShikigami is Ownable, ERC1155Custom, ERC2981, UpdatableOperatorFilterer {

    // *Important* 
    // IROIROShikigami contract should be deployed FIRST, before minter and burner!

    // Made with love by uwulabs <3

    //--------------------------------------------------------
    // Storage
    //--------------------------------------------------------
    
    using Strings for uint256;

    // Royalty
    uint96 constant private ROYALTY_FEE_NUMERATOR = 500;    // 500/10000 = 5%

    address public minterContract; // Shikigami Sale contract
    address public burnerContract; // IROIRORemix contract
    address public managerAddress; // Contract manager

    address private constant ADDRESS_ZERO = 0x0000000000000000000000000000000000000000; // Check for 0 address
    // ShikigamiId => Shikigami struct
    mapping (uint256 => uint256) public shikigamiChoices; // Shikigami ID => Choices
    mapping (uint256 => uint256) public burnedShikigamiCounter; // Shikigami ID => Burned Shikigamis
    uint256 public shikigamiCount; // Count for initialized Shikigamis

    //--------------------------------------------------------
    // Events
    //--------------------------------------------------------

    event NewShikigamiInitialized(uint256 indexed shikigamiId);

    event ShikigamiBurned(address from, uint256 indexed shikigamiId,  uint256 choice);

    event ShikigamiMinted(address to, uint256 indexed shikigamiId, uint256 amount);

    //--------------------------------------------------------
    // Modifiers
    //--------------------------------------------------------

    // Adding manager address to manage the contract
    modifier onlyOwnerOrManager() {
        require(msg.sender == owner() || msg.sender == managerAddress, "Caller is not the owner neither manager!" );
        _;
    }

    //--------------------------------------------------------
    // Constructor
    //--------------------------------------------------------

    constructor(address _manager, address ROYALTY_ADDRESS) ERC1155("") UpdatableOperatorFilterer(address(0x000000000000AAeB6D7670E522A718067333cd4E), address(0x3cc6CddA760b79bAfa08dF41ECFA224f810dCeB6), true){
        _setDefaultRoyalty( ROYALTY_ADDRESS, ROYALTY_FEE_NUMERATOR );
        managerAddress = _manager;
    }

    //--------------------------------------------------------
    // [Override] supportsInterface
    //--------------------------------------------------------

    function supportsInterface(bytes4 interfaceId) public view override( ERC1155, ERC2981 ) returns (bool) {
        return super.supportsInterface(interfaceId);
    }

    //--------------------------------------------------------
    // [External][onlyOwnerOrManager] for ERC2981
    //--------------------------------------------------------
    
    function setDefaultRoyalty( address receiver, uint96 feeNumerator ) external onlyOwnerOrManager { _setDefaultRoyalty( receiver, feeNumerator ); }
    function deleteDefaultRoyalty() external onlyOwnerOrManager { _deleteDefaultRoyalty(); }
    function setTokenRoyalty( uint256 tokenId, address receiver, uint96 feeNumerator ) external onlyOwnerOrManager { _setTokenRoyalty( tokenId, receiver, feeNumerator ); }
    function resetTokenRoyalty( uint256 tokenId ) external onlyOwnerOrManager { _resetTokenRoyalty( tokenId ); }

    //--------------------------------------------------------
    // [Public/Override/onlyAllowedOperatorApproval] for OperatorFilterCustom
    //--------------------------------------------------------

    function setApprovalForAll(address operator, bool approved) public override onlyAllowedOperatorApproval(operator) { super.setApprovalForAll(operator, approved); }
    function safeBatchTransferFrom(address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data) public override onlyAllowedOperator(from) { super.safeBatchTransferFrom(from, to, ids, amounts, data); }
    function safeTransferFrom(address from, address to, uint256 tokenId, uint256 amount, bytes memory data) public override onlyAllowedOperator(from) { super.safeTransferFrom(from, to, tokenId, amount, data); }

    //--------------------------------------------------------
    // [External][onlyOwner] Setters for Minter/Burner/Manager/Filter Register 
    //--------------------------------------------------------

    function setMinterContract (address _minterContract) external onlyOwner {
        require(_minterContract != ADDRESS_ZERO, "Address should be real!");
        require(_minterContract != minterContract, "Address already set!");

        minterContract = _minterContract;
    }

    function setBurnerContract (address _burnerContract) external onlyOwner {
        require(_burnerContract != ADDRESS_ZERO, "Address should be real!");
        require(_burnerContract != burnerContract, "Address already set!");

        burnerContract = _burnerContract;
    }

    function setManager(address to) external onlyOwner {
       managerAddress = to;
    }

    function setOperatorFilterRegistryAddress(address to) external onlyOwner {
        updateOperatorFilterRegistryAddress(to);
    }

    //--------------------------------------------------------
    // [External][onlyOwnerOrManager] Functions for managing Shikigami structs
    //--------------------------------------------------------

    // Creates new Shikigami sale struct and sets URI 
    function initializeShikigami(uint256 choiceCount, string calldata uri) external onlyOwnerOrManager {
        require(choiceCount >= 1 && choiceCount <= 10, "Amount of choices must be between 1 and 10!");
        require(keccak256(abi.encode(uri)) != keccak256(abi.encode("")), "uri can't be empty!");
        require(shikigamiChoices[shikigamiCount] == 0, "Shikigami with this ID already exists!");

        shikigamiChoices[shikigamiCount] = choiceCount;

        _setURI(shikigamiCount, uri); // Sets URI for this ID

        emit NewShikigamiInitialized(shikigamiCount);
        shikigamiCount++;
    }

    // Updates URI for a Shikigami sale struct
    function updateShikigamiURI(uint256 shikigamiId, string calldata uri) external onlyOwnerOrManager {
        require(shikigamiChoices[shikigamiId] != 0, "Shikigami with this ID doesn't exist!");
        require(keccak256(abi.encode(uri)) != keccak256(abi.encode("")), "uri can't be empty!");

        _setURI(shikigamiId, uri);
    }

    //--------------------------------------------------------
    // [Internal][onlyMinter/onlyBurner] Internal functions for minting/burning Shikigami NFTs
    //--------------------------------------------------------

    function mintShikigami(address to, uint256 shikigamiId, uint256 amount) external {
        require(msg.sender == minterContract, "Can only be called by the minter contract!"); // Checks for minter address
        require(shikigamiChoices[shikigamiId] != 0, "Shikigami with this ID doesn't exist!");

        _mint(to, shikigamiId, amount, "");

        emit ShikigamiMinted(to, shikigamiId, amount);
    }

    function burnShikigami(address from, uint256 shikigamiId, uint256 choice) external {
         require(msg.sender == burnerContract, "Can only be called by the burner contract!"); // Checks for burner address
         require(choice <= shikigamiChoiceCount(shikigamiId), "No such choice available!"); // Checks for input choice

         _burn(from, shikigamiId, 1);
         burnedShikigamiCounter[shikigamiId] += 1; // Records burned shikigami 

         emit ShikigamiBurned(from, shikigamiId, choice);
    }

    //--------------------------------------------------------
    // [View] Getters for Shikigami collection
    //--------------------------------------------------------

    // Returns array of all initialized Shikigami Structs
    function getAllShikigamiChoices() external view returns(uint256[] memory) {
        uint256[] memory result = new uint256[](shikigamiCount);
        for (uint256 i = 0; i < shikigamiCount; i++) {
          result[i]= (shikigamiChoices[i]);
        }
        return result; 
    }

    // Returns balance of every Shikigami ID for address
    function shikigamiCountForOwner(address owner) external view returns(uint256[] memory) {
        uint256[] memory result = new uint256[](shikigamiCount);
        for (uint i = 0; i < shikigamiCount; i++) {
           result[i]= (balanceOf(owner, i));
        }
        return result; 
    }

    // Returns Shikigami ID struct
    function shikigamiChoiceCount(uint256 shikigamiId) public view returns (uint) {
        return shikigamiChoices[shikigamiId]; 
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_manager","type":"address"},{"internalType":"address","name":"ROYALTY_ADDRESS","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"OnlyOwner","type":"error"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"OperatorNotAllowed","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"shikigamiId","type":"uint256"}],"name":"NewShikigamiInitialized","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"newRegistry","type":"address"}],"name":"OperatorFilterRegistryAddressUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"uint256","name":"shikigamiId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"choice","type":"uint256"}],"name":"ShikigamiBurned","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"shikigamiId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"ShikigamiMinted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"TransferBatch","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"TransferSingle","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"value","type":"string"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"URI","type":"event"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"uint256","name":"shikigamiId","type":"uint256"},{"internalType":"uint256","name":"choice","type":"uint256"}],"name":"burnShikigami","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"burnedShikigamiCounter","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"burnerContract","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"deleteDefaultRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"exists","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getAllShikigamiChoices","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"choiceCount","type":"uint256"},{"internalType":"string","name":"uri","type":"string"}],"name":"initializeShikigami","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"managerAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"shikigamiId","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mintShikigami","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"minterContract","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"operatorFilterRegistry","outputs":[{"internalType":"contract IOperatorFilterRegistry","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"resetTokenRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"returnOwnerRegister","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeBatchTransferFrom","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":"uint256","name":"amount","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":"address","name":"_burnerContract","type":"address"}],"name":"setBurnerContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint96","name":"feeNumerator","type":"uint96"}],"name":"setDefaultRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"}],"name":"setManager","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_minterContract","type":"address"}],"name":"setMinterContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"}],"name":"setOperatorFilterRegistryAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint96","name":"feeNumerator","type":"uint96"}],"name":"setTokenRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"shikigamiId","type":"uint256"}],"name":"shikigamiChoiceCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"shikigamiChoices","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"shikigamiCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"shikigamiCountForOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnershipRegister","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newRegistry","type":"address"}],"name":"updateOperatorFilterRegistryAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"shikigamiId","type":"uint256"},{"internalType":"string","name":"uri","type":"string"}],"name":"updateShikigamiURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"}]

608060405260405180602001604052806000815250600490816200002491906200086d565b503480156200003257600080fd5b5060405162006b3838038062006b388339818101604052810190620000589190620009be565b6daaeb6d7670e522a718067333cd4e733cc6cdda760b79bafa08df41ecfa224f810dceb6600160405180602001604052806000815250620000ae620000a26200036560201b60201c565b6200036d60201b60201c565b620000bf816200043160201b60201c565b5033600960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600083905080600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060008173ffffffffffffffffffffffffffffffffffffffff163b111562000304578115620001e6578073ffffffffffffffffffffffffffffffffffffffff16637d3e3dbe30856040518363ffffffff1660e01b8152600401620001ac92919062000a16565b600060405180830381600087803b158015620001c757600080fd5b505af1158015620001dc573d6000803e3d6000fd5b5050505062000303565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161462000292578073ffffffffffffffffffffffffffffffffffffffff1663a0af290330856040518363ffffffff1660e01b81526004016200025892919062000a16565b600060405180830381600087803b1580156200027357600080fd5b505af115801562000288573d6000803e3d6000fd5b5050505062000302565b8073ffffffffffffffffffffffffffffffffffffffff16634420e486306040518263ffffffff1660e01b8152600401620002cd919062000a43565b600060405180830381600087803b158015620002e857600080fd5b505af1158015620002fd573d6000803e3d6000fd5b505050505b5b5b505050506200031c816101f46200044660201b60201c565b81600d60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550505062000b7b565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b80600390816200044291906200086d565b5050565b62000456620005e960201b60201c565b6bffffffffffffffffffffffff16816bffffffffffffffffffffffff161115620004b7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620004ae9062000ae7565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160362000529576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620005209062000b59565b60405180910390fd5b60405180604001604052808373ffffffffffffffffffffffffffffffffffffffff168152602001826bffffffffffffffffffffffff16815250600760008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff1602179055509050505050565b6000612710905090565b600081519050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806200067557607f821691505b6020821081036200068b576200068a6200062d565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302620006f57fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82620006b6565b620007018683620006b6565b95508019841693508086168417925050509392505050565b6000819050919050565b6000819050919050565b60006200074e62000748620007428462000719565b62000723565b62000719565b9050919050565b6000819050919050565b6200076a836200072d565b62000782620007798262000755565b848454620006c3565b825550505050565b600090565b620007996200078a565b620007a68184846200075f565b505050565b5b81811015620007ce57620007c26000826200078f565b600181019050620007ac565b5050565b601f8211156200081d57620007e78162000691565b620007f284620006a6565b8101602085101562000802578190505b6200081a6200081185620006a6565b830182620007ab565b50505b505050565b600082821c905092915050565b6000620008426000198460080262000822565b1980831691505092915050565b60006200085d83836200082f565b9150826002028217905092915050565b6200087882620005f3565b67ffffffffffffffff811115620008945762000893620005fe565b5b620008a082546200065c565b620008ad828285620007d2565b600060209050601f831160018114620008e55760008415620008d0578287015190505b620008dc85826200084f565b8655506200094c565b601f198416620008f58662000691565b60005b828110156200091f57848901518255600182019150602085019450602081019050620008f8565b868310156200093f57848901516200093b601f8916826200082f565b8355505b6001600288020188555050505b505050505050565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000620009868262000959565b9050919050565b620009988162000979565b8114620009a457600080fd5b50565b600081519050620009b8816200098d565b92915050565b60008060408385031215620009d857620009d762000954565b5b6000620009e885828601620009a7565b9250506020620009fb85828601620009a7565b9150509250929050565b62000a108162000979565b82525050565b600060408201905062000a2d600083018562000a05565b62000a3c602083018462000a05565b9392505050565b600060208201905062000a5a600083018462000a05565b92915050565b600082825260208201905092915050565b7f455243323938313a20726f79616c7479206665652077696c6c2065786365656460008201527f2073616c65507269636500000000000000000000000000000000000000000000602082015250565b600062000acf602a8362000a60565b915062000adc8262000a71565b604082019050919050565b6000602082019050818103600083015262000b028162000ac0565b9050919050565b7f455243323938313a20696e76616c696420726563656976657200000000000000600082015250565b600062000b4160198362000a60565b915062000b4e8262000b09565b602082019050919050565b6000602082019050818103600083015262000b748162000b32565b9050919050565b615fad8062000b8b6000396000f3fe608060405234801561001057600080fd5b506004361061023c5760003560e01c806377342bdf1161013b578063b8d1e532116100b8578063e72571d21161007c578063e72571d2146106ac578063e985e9c5146106ca578063f242432a146106fa578063f2fde38b14610716578063fcffc2dc146107325761023c565b8063b8d1e5321461060a578063baf3ff6014610626578063bd85b03914610642578063cf73a1bc14610672578063d0ebdbe7146106905761023c565b8063a22cb465116100ff578063a22cb4651461058c578063aa1b103f146105a8578063acb8dbc9146105b2578063aea0bbd0146105ce578063b0ccc31e146105ec5761023c565b806377342bdf146104e6578063832aea98146105045780638a616bc0146105345780638da5cb5b1461055057806392f002331461056e5761023c565b806344345c24116101c95780635944c7531161018d5780635944c7531461046a578063674ca5221461048657806369d6cc5b146104a257806369f5f475146104c0578063715018a6146104dc5761023c565b806344345c24146103a257806347282f8a146103be5780634e1273f4146103da5780634f558e791461040a578063588632fc1461043a5761023c565b80631c39a122116102105780631c39a122146102ed5780632a55205a1461031d5780632eb2c2d61461034e5780633426d5001461036a57806338478ae7146103865761023c565b8062fdd58e1461024157806301ffc9a71461027157806304634d8d146102a15780630e89341c146102bd575b600080fd5b61025b60048036038101906102569190613c8f565b610762565b6040516102689190613cde565b60405180910390f35b61028b60048036038101906102869190613d51565b61082b565b6040516102989190613d99565b60405180910390f35b6102bb60048036038101906102b69190613df8565b61083d565b005b6102d760048036038101906102d29190613e38565b610918565b6040516102e49190613ef5565b60405180910390f35b61030760048036038101906103029190613e38565b6109fd565b6040516103149190613cde565b60405180910390f35b61033760048036038101906103329190613f17565b610a1a565b604051610345929190613f66565b60405180910390f35b6103686004803603810190610363919061418c565b610c04565b005b610384600480360381019061037f91906142b6565b610c57565b005b6103a0600480360381019061039b9190614316565b610f11565b005b6103bc60048036038101906103b79190614343565b61105c565b005b6103d860048036038101906103d391906142b6565b61119c565b005b6103f460048036038101906103ef9190614459565b6113a0565b604051610401919061458f565b60405180910390f35b610424600480360381019061041f9190613e38565b6114b9565b6040516104319190613d99565b60405180910390f35b610454600480360381019061044f9190613e38565b6114cd565b6040516104619190613cde565b60405180910390f35b610484600480360381019061047f91906145b1565b6114e5565b005b6104a0600480360381019061049b9190614316565b6115c2565b005b6104aa61170d565b6040516104b7919061458f565b60405180910390f35b6104da60048036038101906104d59190614343565b6117b9565b005b6104e461190a565b005b6104ee61191e565b6040516104fb9190614604565b60405180910390f35b61051e60048036038101906105199190614316565b611944565b60405161052b919061458f565b60405180910390f35b61054e60048036038101906105499190613e38565b6119e8565b005b610558611ac1565b6040516105659190614604565b60405180910390f35b610576611aea565b6040516105839190614604565b60405180910390f35b6105a660048036038101906105a1919061464b565b611b10565b005b6105b0611b29565b005b6105cc60048036038101906105c79190614316565b611c00565b005b6105d6611c9e565b6040516105e39190613cde565b60405180910390f35b6105f4611ca4565b60405161060191906146ea565b60405180910390f35b610624600480360381019061061f9190614316565b611cca565b005b610640600480360381019061063b9190614316565b611db1565b005b61065c60048036038101906106579190613e38565b611dc5565b6040516106699190613cde565b60405180910390f35b61067a611de2565b6040516106879190614604565b60405180910390f35b6106aa60048036038101906106a59190614316565b611e08565b005b6106b4611e54565b6040516106c19190614604565b60405180910390f35b6106e460048036038101906106df9190614705565b611e7e565b6040516106f19190613d99565b60405180910390f35b610714600480360381019061070f9190614745565b611f12565b005b610730600480360381019061072b9190614316565b611f65565b005b61074c60048036038101906107479190613e38565b611fe8565b6040516107599190613cde565b60405180910390f35b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036107d2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107c99061484e565b60405180910390fd5b6001600083815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b600061083682612000565b9050919050565b610845611ac1565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614806108cb5750600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b61090a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610901906148e0565b60405180910390fd5b610914828261207a565b5050565b6060600060056000848152602001908152602001600020805461093a9061492f565b80601f01602080910402602001604051908101604052809291908181526020018280546109669061492f565b80156109b35780601f10610988576101008083540402835291602001916109b3565b820191906000526020600020905b81548152906001019060200180831161099657829003601f168201915b5050505050905060008151116109d1576109cc8361220f565b6109f5565b6004816040516020016109e5929190614a34565b6040516020818303038152906040525b915050919050565b6000600e6000838152602001908152602001600020549050919050565b6000806000600860008681526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1603610baf5760076040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff168152505090505b6000610bb96122a3565b6bffffffffffffffffffffffff1682602001516bffffffffffffffffffffffff1686610be59190614a87565b610bef9190614af8565b90508160000151819350935050509250929050565b843373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610c4257610c41336122ad565b5b610c4f86868686866123ef565b505050505050565b610c5f611ac1565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161480610ce55750600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b610d24576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d1b906148e0565b60405180910390fd5b60018310158015610d365750600a8311155b610d75576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d6c90614b9b565b60405180910390fd5b604051602001610d8490614be1565b604051602081830303815290604052805190602001208282604051602001610dad929190614c2e565b6040516020818303038152906040528051906020012003610e03576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dfa90614c9e565b60405180910390fd5b6000600e600060105481526020019081526020016000205414610e5b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e5290614d30565b60405180910390fd5b82600e6000601054815260200190815260200160002081905550610ec560105483838080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f82011690508083019250505050505050612490565b6010547ff3497c94b3b8e9173374c3238a8df85a74b38da75221d507edb6098a61e2f3bd60405160405180910390a260106000815480929190610f0790614d50565b9190505550505050565b610f196124f5565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610f88576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f7f90614de4565b60405180910390fd5b600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611018576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161100f90614e50565b60405180910390fd5b80600b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146110ec576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110e390614ee2565b60405180910390fd5b6000600e60008481526020019081526020016000205403611142576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161113990614f74565b60405180910390fd5b61115d83838360405180602001604052806000815250612573565b817f477d762a056e503332bfe8ca73912720b1806d8bd47554d706871f576c4b558b848360405161118f929190613f66565b60405180910390a2505050565b6111a4611ac1565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16148061122a5750600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b611269576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611260906148e0565b60405180910390fd5b6000600e600085815260200190815260200160002054036112bf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112b690614f74565b60405180910390fd5b6040516020016112ce90614be1565b6040516020818303038152906040528051906020012082826040516020016112f7929190614c2e565b604051602081830303815290604052805190602001200361134d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161134490614c9e565b60405180910390fd5b61139b8383838080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f82011690508083019250505050505050612490565b505050565b606081518351146113e6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113dd90615006565b60405180910390fd5b6000835167ffffffffffffffff81111561140357611402613f94565b5b6040519080825280602002602001820160405280156114315781602001602082028036833780820191505090505b50905060005b84518110156114ae5761147e85828151811061145657611455615026565b5b602002602001015185838151811061147157611470615026565b5b6020026020010151610762565b82828151811061149157611490615026565b5b602002602001018181525050806114a790614d50565b9050611437565b508091505092915050565b6000806114c583611dc5565b119050919050565b600e6020528060005260406000206000915090505481565b6114ed611ac1565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614806115735750600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b6115b2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115a9906148e0565b60405180910390fd5b6115bd838383612724565b505050565b6115ca6124f5565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611639576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161163090614de4565b60405180910390fd5b600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036116c9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116c090614e50565b60405180910390fd5b80600c60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6060600060105467ffffffffffffffff81111561172d5761172c613f94565b5b60405190808252806020026020018201604052801561175b5781602001602082028036833780820191505090505b50905060005b6010548110156117b157600e60008281526020019081526020016000205482828151811061179257611791615026565b5b60200260200101818152505080806117a990614d50565b915050611761565b508091505090565b600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611849576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611840906150c7565b60405180910390fd5b611852826109fd565b811115611894576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161188b90615133565b60405180910390fd5b6118a0838360016128cb565b6001600f600084815260200190815260200160002060008282546118c49190615153565b92505081905550817f5c5c1d0052a8bafd61c01ec3a6026cc64be50ffa795ae78adf4711676dbf3c9984836040516118fd929190613f66565b60405180910390a2505050565b6119126124f5565b61191c6000612b13565b565b600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6060600060105467ffffffffffffffff81111561196457611963613f94565b5b6040519080825280602002602001820160405280156119925781602001602082028036833780820191505090505b50905060005b6010548110156119de576119ac8482610762565b8282815181106119bf576119be615026565b5b60200260200101818152505080806119d690614d50565b915050611998565b5080915050919050565b6119f0611ac1565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161480611a765750600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b611ab5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611aac906148e0565b60405180910390fd5b611abe81612bd7565b50565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b81611b1a816122ad565b611b248383612c36565b505050565b611b31611ac1565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161480611bb75750600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b611bf6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bed906148e0565b60405180910390fd5b611bfe612c4c565b565b600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611c5a57600080fd5b80600960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60105481565b600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b611cd2611e54565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611d36576040517f5fc483c500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507f9f513fe86dc42fdbac355fa4d9b1d5be7b5e6cd2df67e30db8003766568de47681604051611da69190614604565b60405180910390a150565b611db96124f5565b611dc281611cca565b50565b600060066000838152602001908152602001600020549050919050565b600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b611e106124f5565b80600d60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6000600260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b843373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614611f5057611f4f336122ad565b5b611f5d8686868686612c99565b505050505050565b611f6d6124f5565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611fdc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fd3906151f9565b60405180910390fd5b611fe581612b13565b50565b600f6020528060005260406000206000915090505481565b60007f2a55205a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612073575061207282612d3a565b5b9050919050565b6120826122a3565b6bffffffffffffffffffffffff16816bffffffffffffffffffffffff1611156120e0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120d79061528b565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361214f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612146906152f7565b60405180910390fd5b60405180604001604052808373ffffffffffffffffffffffffffffffffffffffff168152602001826bffffffffffffffffffffffff16815250600760008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff1602179055509050505050565b60606003805461221e9061492f565b80601f016020809104026020016040519081016040528092919081815260200182805461224a9061492f565b80156122975780601f1061226c57610100808354040283529160200191612297565b820191906000526020600020905b81548152906001019060200180831161227a57829003601f168201915b50505050509050919050565b6000612710905090565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614158015612328575060008173ffffffffffffffffffffffffffffffffffffffff163b115b156123eb578073ffffffffffffffffffffffffffffffffffffffff1663c617113430846040518363ffffffff1660e01b8152600401612368929190615317565b602060405180830381865afa158015612385573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123a99190615355565b6123ea57816040517fede71dcc0000000000000000000000000000000000000000000000000000000081526004016123e19190614604565b60405180910390fd5b5b5050565b6123f7612e1c565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16148061243d575061243c85612437612e1c565b611e7e565b5b61247c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612473906153f4565b60405180910390fd5b6124898585858585612e24565b5050505050565b806005600084815260200190815260200160002090816124b091906155a1565b50817f6bb7ff708619ba0610cba295a58592e0451dee2622938c8755667688daf3529b6124dc84610918565b6040516124e99190613ef5565b60405180910390a25050565b6124fd612e1c565b73ffffffffffffffffffffffffffffffffffffffff1661251b611ac1565b73ffffffffffffffffffffffffffffffffffffffff1614612571576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612568906156bf565b60405180910390fd5b565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16036125e2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125d990615751565b60405180910390fd5b60006125ec612e1c565b905060006125f985613148565b9050600061260685613148565b9050612617836000898585896131c2565b846001600088815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546126779190615153565b925050819055508673ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6289896040516126f5929190615771565b60405180910390a461270c83600089858589613392565b61271b8360008989898961339a565b50505050505050565b61272c6122a3565b6bffffffffffffffffffffffff16816bffffffffffffffffffffffff16111561278a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127819061528b565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036127f9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127f0906157e6565b60405180910390fd5b60405180604001604052808373ffffffffffffffffffffffffffffffffffffffff168152602001826bffffffffffffffffffffffff168152506008600085815260200190815260200160002060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff160217905550905050505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff160361293a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161293190615878565b60405180910390fd5b6000612944612e1c565b9050600061295184613148565b9050600061295e84613148565b905061297e838760008585604051806020016040528060008152506131c2565b60006001600087815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905084811015612a16576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a0d9061590a565b60405180910390fd5b8481036001600088815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600073ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628989604051612ae4929190615771565b60405180910390a4612b0a84886000868660405180602001604052806000815250613392565b50505050505050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60086000828152602001908152602001600020600080820160006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556000820160146101000a8154906bffffffffffffffffffffffff0219169055505050565b612c48612c41612e1c565b8383613571565b5050565b6007600080820160006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556000820160146101000a8154906bffffffffffffffffffffffff02191690555050565b612ca1612e1c565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161480612ce75750612ce685612ce1612e1c565b611e7e565b5b612d26576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d1d906153f4565b60405180910390fd5b612d3385858585856136dd565b5050505050565b60007fd9b67a26000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612e0557507f0e89341c000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80612e155750612e148261397b565b5b9050919050565b600033905090565b8151835114612e68576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e5f9061599c565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603612ed7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ece90615a2e565b60405180910390fd5b6000612ee1612e1c565b9050612ef18187878787876131c2565b60005b84518110156130a5576000858281518110612f1257612f11615026565b5b602002602001015190506000858381518110612f3157612f30615026565b5b6020026020010151905060006001600084815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015612fd3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612fca90615ac0565b60405180910390fd5b8181036001600085815260200190815260200160002060008c73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550816001600085815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461308a9190615153565b925050819055505050508061309e90614d50565b9050612ef4565b508473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb878760405161311c929190615ae0565b60405180910390a4613132818787878787613392565b6131408187878787876139e5565b505050505050565b60606000600167ffffffffffffffff81111561316757613166613f94565b5b6040519080825280602002602001820160405280156131955781602001602082028036833780820191505090505b50905082816000815181106131ad576131ac615026565b5b60200260200101818152505080915050919050565b6131d0868686868686613bbc565b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16036132815760005b835181101561327f5782818151811061322357613222615026565b5b60200260200101516006600086848151811061324257613241615026565b5b6020026020010151815260200190815260200160002060008282546132679190615153565b925050819055508061327890614d50565b9050613207565b505b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff160361338a5760005b83518110156133885760008482815181106132d6576132d5615026565b5b6020026020010151905060008483815181106132f5576132f4615026565b5b602002602001015190506000600660008481526020019081526020016000205490508181101561335a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161335190615b89565b60405180910390fd5b81810360066000858152602001908152602001600020819055505050508061338190614d50565b90506132b8565b505b505050505050565b505050505050565b6133b98473ffffffffffffffffffffffffffffffffffffffff16613bc4565b15613569578373ffffffffffffffffffffffffffffffffffffffff1663f23a6e6187878686866040518663ffffffff1660e01b81526004016133ff959493929190615bfe565b6020604051808303816000875af192505050801561343b57506040513d601f19601f820116820180604052508101906134389190615c6d565b60015b6134e057613447615ca7565b806308c379a0036134a3575061345b615cc9565b8061346657506134a5565b806040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161349a9190613ef5565b60405180910390fd5b505b6040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016134d790615dcb565b60405180910390fd5b63f23a6e6160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614613567576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161355e90615e5d565b60405180910390fd5b505b505050505050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036135df576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016135d690615eef565b60405180910390fd5b80600260008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516136d09190613d99565b60405180910390a3505050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff160361374c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161374390615a2e565b60405180910390fd5b6000613756612e1c565b9050600061376385613148565b9050600061377085613148565b90506137808389898585896131c2565b60006001600088815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905085811015613818576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161380f90615ac0565b60405180910390fd5b8581036001600089815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550856001600089815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546138cf9190615153565b925050819055508773ffffffffffffffffffffffffffffffffffffffff168973ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628a8a60405161394c929190615771565b60405180910390a4613962848a8a86868a613392565b613970848a8a8a8a8a61339a565b505050505050505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b613a048473ffffffffffffffffffffffffffffffffffffffff16613bc4565b15613bb4578373ffffffffffffffffffffffffffffffffffffffff1663bc197c8187878686866040518663ffffffff1660e01b8152600401613a4a959493929190615f0f565b6020604051808303816000875af1925050508015613a8657506040513d601f19601f82011682018060405250810190613a839190615c6d565b60015b613b2b57613a92615ca7565b806308c379a003613aee5750613aa6615cc9565b80613ab15750613af0565b806040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613ae59190613ef5565b60405180910390fd5b505b6040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613b2290615dcb565b60405180910390fd5b63bc197c8160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614613bb2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613ba990615e5d565b60405180910390fd5b505b505050505050565b505050505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000613c2682613bfb565b9050919050565b613c3681613c1b565b8114613c4157600080fd5b50565b600081359050613c5381613c2d565b92915050565b6000819050919050565b613c6c81613c59565b8114613c7757600080fd5b50565b600081359050613c8981613c63565b92915050565b60008060408385031215613ca657613ca5613bf1565b5b6000613cb485828601613c44565b9250506020613cc585828601613c7a565b9150509250929050565b613cd881613c59565b82525050565b6000602082019050613cf36000830184613ccf565b92915050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b613d2e81613cf9565b8114613d3957600080fd5b50565b600081359050613d4b81613d25565b92915050565b600060208284031215613d6757613d66613bf1565b5b6000613d7584828501613d3c565b91505092915050565b60008115159050919050565b613d9381613d7e565b82525050565b6000602082019050613dae6000830184613d8a565b92915050565b60006bffffffffffffffffffffffff82169050919050565b613dd581613db4565b8114613de057600080fd5b50565b600081359050613df281613dcc565b92915050565b60008060408385031215613e0f57613e0e613bf1565b5b6000613e1d85828601613c44565b9250506020613e2e85828601613de3565b9150509250929050565b600060208284031215613e4e57613e4d613bf1565b5b6000613e5c84828501613c7a565b91505092915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015613e9f578082015181840152602081019050613e84565b60008484015250505050565b6000601f19601f8301169050919050565b6000613ec782613e65565b613ed18185613e70565b9350613ee1818560208601613e81565b613eea81613eab565b840191505092915050565b60006020820190508181036000830152613f0f8184613ebc565b905092915050565b60008060408385031215613f2e57613f2d613bf1565b5b6000613f3c85828601613c7a565b9250506020613f4d85828601613c7a565b9150509250929050565b613f6081613c1b565b82525050565b6000604082019050613f7b6000830185613f57565b613f886020830184613ccf565b9392505050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b613fcc82613eab565b810181811067ffffffffffffffff82111715613feb57613fea613f94565b5b80604052505050565b6000613ffe613be7565b905061400a8282613fc3565b919050565b600067ffffffffffffffff82111561402a57614029613f94565b5b602082029050602081019050919050565b600080fd5b600061405361404e8461400f565b613ff4565b905080838252602082019050602084028301858111156140765761407561403b565b5b835b8181101561409f578061408b8882613c7a565b845260208401935050602081019050614078565b5050509392505050565b600082601f8301126140be576140bd613f8f565b5b81356140ce848260208601614040565b91505092915050565b600080fd5b600067ffffffffffffffff8211156140f7576140f6613f94565b5b61410082613eab565b9050602081019050919050565b82818337600083830152505050565b600061412f61412a846140dc565b613ff4565b90508281526020810184848401111561414b5761414a6140d7565b5b61415684828561410d565b509392505050565b600082601f83011261417357614172613f8f565b5b813561418384826020860161411c565b91505092915050565b600080600080600060a086880312156141a8576141a7613bf1565b5b60006141b688828901613c44565b95505060206141c788828901613c44565b945050604086013567ffffffffffffffff8111156141e8576141e7613bf6565b5b6141f4888289016140a9565b935050606086013567ffffffffffffffff81111561421557614214613bf6565b5b614221888289016140a9565b925050608086013567ffffffffffffffff81111561424257614241613bf6565b5b61424e8882890161415e565b9150509295509295909350565b600080fd5b60008083601f84011261427657614275613f8f565b5b8235905067ffffffffffffffff8111156142935761429261425b565b5b6020830191508360018202830111156142af576142ae61403b565b5b9250929050565b6000806000604084860312156142cf576142ce613bf1565b5b60006142dd86828701613c7a565b935050602084013567ffffffffffffffff8111156142fe576142fd613bf6565b5b61430a86828701614260565b92509250509250925092565b60006020828403121561432c5761432b613bf1565b5b600061433a84828501613c44565b91505092915050565b60008060006060848603121561435c5761435b613bf1565b5b600061436a86828701613c44565b935050602061437b86828701613c7a565b925050604061438c86828701613c7a565b9150509250925092565b600067ffffffffffffffff8211156143b1576143b0613f94565b5b602082029050602081019050919050565b60006143d56143d084614396565b613ff4565b905080838252602082019050602084028301858111156143f8576143f761403b565b5b835b81811015614421578061440d8882613c44565b8452602084019350506020810190506143fa565b5050509392505050565b600082601f8301126144405761443f613f8f565b5b81356144508482602086016143c2565b91505092915050565b600080604083850312156144705761446f613bf1565b5b600083013567ffffffffffffffff81111561448e5761448d613bf6565b5b61449a8582860161442b565b925050602083013567ffffffffffffffff8111156144bb576144ba613bf6565b5b6144c7858286016140a9565b9150509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b61450681613c59565b82525050565b600061451883836144fd565b60208301905092915050565b6000602082019050919050565b600061453c826144d1565b61454681856144dc565b9350614551836144ed565b8060005b83811015614582578151614569888261450c565b975061457483614524565b925050600181019050614555565b5085935050505092915050565b600060208201905081810360008301526145a98184614531565b905092915050565b6000806000606084860312156145ca576145c9613bf1565b5b60006145d886828701613c7a565b93505060206145e986828701613c44565b92505060406145fa86828701613de3565b9150509250925092565b60006020820190506146196000830184613f57565b92915050565b61462881613d7e565b811461463357600080fd5b50565b6000813590506146458161461f565b92915050565b6000806040838503121561466257614661613bf1565b5b600061467085828601613c44565b925050602061468185828601614636565b9150509250929050565b6000819050919050565b60006146b06146ab6146a684613bfb565b61468b565b613bfb565b9050919050565b60006146c282614695565b9050919050565b60006146d4826146b7565b9050919050565b6146e4816146c9565b82525050565b60006020820190506146ff60008301846146db565b92915050565b6000806040838503121561471c5761471b613bf1565b5b600061472a85828601613c44565b925050602061473b85828601613c44565b9150509250929050565b600080600080600060a0868803121561476157614760613bf1565b5b600061476f88828901613c44565b955050602061478088828901613c44565b945050604061479188828901613c7a565b93505060606147a288828901613c7a565b925050608086013567ffffffffffffffff8111156147c3576147c2613bf6565b5b6147cf8882890161415e565b9150509295509295909350565b7f455243313135353a2061646472657373207a65726f206973206e6f742061207660008201527f616c6964206f776e657200000000000000000000000000000000000000000000602082015250565b6000614838602a83613e70565b9150614843826147dc565b604082019050919050565b600060208201905081810360008301526148678161482b565b9050919050565b7f43616c6c6572206973206e6f7420746865206f776e6572206e6569746865722060008201527f6d616e6167657221000000000000000000000000000000000000000000000000602082015250565b60006148ca602883613e70565b91506148d58261486e565b604082019050919050565b600060208201905081810360008301526148f9816148bd565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061494757607f821691505b60208210810361495a57614959614900565b5b50919050565b600081905092915050565b60008190508160005260206000209050919050565b6000815461498d8161492f565b6149978186614960565b945060018216600081146149b257600181146149c7576149fa565b60ff19831686528115158202860193506149fa565b6149d08561496b565b60005b838110156149f2578154818901526001820191506020810190506149d3565b838801955050505b50505092915050565b6000614a0e82613e65565b614a188185614960565b9350614a28818560208601613e81565b80840191505092915050565b6000614a408285614980565b9150614a4c8284614a03565b91508190509392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000614a9282613c59565b9150614a9d83613c59565b9250828202614aab81613c59565b91508282048414831517614ac257614ac1614a58565b5b5092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000614b0382613c59565b9150614b0e83613c59565b925082614b1e57614b1d614ac9565b5b828204905092915050565b7f416d6f756e74206f662063686f69636573206d7573742062652062657477656560008201527f6e203120616e6420313021000000000000000000000000000000000000000000602082015250565b6000614b85602b83613e70565b9150614b9082614b29565b604082019050919050565b60006020820190508181036000830152614bb481614b78565b9050919050565b50565b6000614bcb600083613e70565b9150614bd682614bbb565b600082019050919050565b60006020820190508181036000830152614bfa81614bbe565b9050919050565b6000614c0d8385613e70565b9350614c1a83858461410d565b614c2383613eab565b840190509392505050565b60006020820190508181036000830152614c49818486614c01565b90509392505050565b7f7572692063616e277420626520656d7074792100000000000000000000000000600082015250565b6000614c88601383613e70565b9150614c9382614c52565b602082019050919050565b60006020820190508181036000830152614cb781614c7b565b9050919050565b7f5368696b6967616d692077697468207468697320494420616c7265616479206560008201527f7869737473210000000000000000000000000000000000000000000000000000602082015250565b6000614d1a602683613e70565b9150614d2582614cbe565b604082019050919050565b60006020820190508181036000830152614d4981614d0d565b9050919050565b6000614d5b82613c59565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203614d8d57614d8c614a58565b5b600182019050919050565b7f416464726573732073686f756c64206265207265616c21000000000000000000600082015250565b6000614dce601783613e70565b9150614dd982614d98565b602082019050919050565b60006020820190508181036000830152614dfd81614dc1565b9050919050565b7f4164647265737320616c72656164792073657421000000000000000000000000600082015250565b6000614e3a601483613e70565b9150614e4582614e04565b602082019050919050565b60006020820190508181036000830152614e6981614e2d565b9050919050565b7f43616e206f6e6c792062652063616c6c656420627920746865206d696e74657260008201527f20636f6e74726163742100000000000000000000000000000000000000000000602082015250565b6000614ecc602a83613e70565b9150614ed782614e70565b604082019050919050565b60006020820190508181036000830152614efb81614ebf565b9050919050565b7f5368696b6967616d692077697468207468697320494420646f65736e2774206560008201527f7869737421000000000000000000000000000000000000000000000000000000602082015250565b6000614f5e602583613e70565b9150614f6982614f02565b604082019050919050565b60006020820190508181036000830152614f8d81614f51565b9050919050565b7f455243313135353a206163636f756e747320616e6420696473206c656e67746860008201527f206d69736d617463680000000000000000000000000000000000000000000000602082015250565b6000614ff0602983613e70565b9150614ffb82614f94565b604082019050919050565b6000602082019050818103600083015261501f81614fe3565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f43616e206f6e6c792062652063616c6c656420627920746865206275726e657260008201527f20636f6e74726163742100000000000000000000000000000000000000000000602082015250565b60006150b1602a83613e70565b91506150bc82615055565b604082019050919050565b600060208201905081810360008301526150e0816150a4565b9050919050565b7f4e6f20737563682063686f69636520617661696c61626c652100000000000000600082015250565b600061511d601983613e70565b9150615128826150e7565b602082019050919050565b6000602082019050818103600083015261514c81615110565b9050919050565b600061515e82613c59565b915061516983613c59565b925082820190508082111561518157615180614a58565b5b92915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006151e3602683613e70565b91506151ee82615187565b604082019050919050565b60006020820190508181036000830152615212816151d6565b9050919050565b7f455243323938313a20726f79616c7479206665652077696c6c2065786365656460008201527f2073616c65507269636500000000000000000000000000000000000000000000602082015250565b6000615275602a83613e70565b915061528082615219565b604082019050919050565b600060208201905081810360008301526152a481615268565b9050919050565b7f455243323938313a20696e76616c696420726563656976657200000000000000600082015250565b60006152e1601983613e70565b91506152ec826152ab565b602082019050919050565b60006020820190508181036000830152615310816152d4565b9050919050565b600060408201905061532c6000830185613f57565b6153396020830184613f57565b9392505050565b60008151905061534f8161461f565b92915050565b60006020828403121561536b5761536a613bf1565b5b600061537984828501615340565b91505092915050565b7f455243313135353a2063616c6c6572206973206e6f7420746f6b656e206f776e60008201527f6572206f7220617070726f766564000000000000000000000000000000000000602082015250565b60006153de602e83613e70565b91506153e982615382565b604082019050919050565b6000602082019050818103600083015261540d816153d1565b9050919050565b60006020601f8301049050919050565b600082821b905092915050565b6000600883026154617fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82615424565b61546b8683615424565b95508019841693508086168417925050509392505050565b600061549e61549961549484613c59565b61468b565b613c59565b9050919050565b6000819050919050565b6154b883615483565b6154cc6154c4826154a5565b848454615431565b825550505050565b600090565b6154e16154d4565b6154ec8184846154af565b505050565b5b81811015615510576155056000826154d9565b6001810190506154f2565b5050565b601f821115615555576155268161496b565b61552f84615414565b8101602085101561553e578190505b61555261554a85615414565b8301826154f1565b50505b505050565b600082821c905092915050565b60006155786000198460080261555a565b1980831691505092915050565b60006155918383615567565b9150826002028217905092915050565b6155aa82613e65565b67ffffffffffffffff8111156155c3576155c2613f94565b5b6155cd825461492f565b6155d8828285615514565b600060209050601f83116001811461560b57600084156155f9578287015190505b6156038582615585565b86555061566b565b601f1984166156198661496b565b60005b828110156156415784890151825560018201915060208501945060208101905061561c565b8683101561565e578489015161565a601f891682615567565b8355505b6001600288020188555050505b505050505050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006156a9602083613e70565b91506156b482615673565b602082019050919050565b600060208201905081810360008301526156d88161569c565b9050919050565b7f455243313135353a206d696e7420746f20746865207a65726f2061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b600061573b602183613e70565b9150615746826156df565b604082019050919050565b6000602082019050818103600083015261576a8161572e565b9050919050565b60006040820190506157866000830185613ccf565b6157936020830184613ccf565b9392505050565b7f455243323938313a20496e76616c696420706172616d65746572730000000000600082015250565b60006157d0601b83613e70565b91506157db8261579a565b602082019050919050565b600060208201905081810360008301526157ff816157c3565b9050919050565b7f455243313135353a206275726e2066726f6d20746865207a65726f206164647260008201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b6000615862602383613e70565b915061586d82615806565b604082019050919050565b6000602082019050818103600083015261589181615855565b9050919050565b7f455243313135353a206275726e20616d6f756e7420657863656564732062616c60008201527f616e636500000000000000000000000000000000000000000000000000000000602082015250565b60006158f4602483613e70565b91506158ff82615898565b604082019050919050565b60006020820190508181036000830152615923816158e7565b9050919050565b7f455243313135353a2069647320616e6420616d6f756e7473206c656e6774682060008201527f6d69736d61746368000000000000000000000000000000000000000000000000602082015250565b6000615986602883613e70565b91506159918261592a565b604082019050919050565b600060208201905081810360008301526159b581615979565b9050919050565b7f455243313135353a207472616e7366657220746f20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b6000615a18602583613e70565b9150615a23826159bc565b604082019050919050565b60006020820190508181036000830152615a4781615a0b565b9050919050565b7f455243313135353a20696e73756666696369656e742062616c616e636520666f60008201527f72207472616e7366657200000000000000000000000000000000000000000000602082015250565b6000615aaa602a83613e70565b9150615ab582615a4e565b604082019050919050565b60006020820190508181036000830152615ad981615a9d565b9050919050565b60006040820190508181036000830152615afa8185614531565b90508181036020830152615b0e8184614531565b90509392505050565b7f455243313135353a206275726e20616d6f756e74206578636565647320746f7460008201527f616c537570706c79000000000000000000000000000000000000000000000000602082015250565b6000615b73602883613e70565b9150615b7e82615b17565b604082019050919050565b60006020820190508181036000830152615ba281615b66565b9050919050565b600081519050919050565b600082825260208201905092915050565b6000615bd082615ba9565b615bda8185615bb4565b9350615bea818560208601613e81565b615bf381613eab565b840191505092915050565b600060a082019050615c136000830188613f57565b615c206020830187613f57565b615c2d6040830186613ccf565b615c3a6060830185613ccf565b8181036080830152615c4c8184615bc5565b90509695505050505050565b600081519050615c6781613d25565b92915050565b600060208284031215615c8357615c82613bf1565b5b6000615c9184828501615c58565b91505092915050565b60008160e01c9050919050565b600060033d1115615cc65760046000803e615cc3600051615c9a565b90505b90565b600060443d10615d5657615cdb613be7565b60043d036004823e80513d602482011167ffffffffffffffff82111715615d03575050615d56565b808201805167ffffffffffffffff811115615d215750505050615d56565b80602083010160043d038501811115615d3e575050505050615d56565b615d4d82602001850186613fc3565b82955050505050505b90565b7f455243313135353a207472616e7366657220746f206e6f6e2d4552433131353560008201527f526563656976657220696d706c656d656e746572000000000000000000000000602082015250565b6000615db5603483613e70565b9150615dc082615d59565b604082019050919050565b60006020820190508181036000830152615de481615da8565b9050919050565b7f455243313135353a204552433131353552656365697665722072656a6563746560008201527f6420746f6b656e73000000000000000000000000000000000000000000000000602082015250565b6000615e47602883613e70565b9150615e5282615deb565b604082019050919050565b60006020820190508181036000830152615e7681615e3a565b9050919050565b7f455243313135353a2073657474696e6720617070726f76616c2073746174757360008201527f20666f722073656c660000000000000000000000000000000000000000000000602082015250565b6000615ed9602983613e70565b9150615ee482615e7d565b604082019050919050565b60006020820190508181036000830152615f0881615ecc565b9050919050565b600060a082019050615f246000830188613f57565b615f316020830187613f57565b8181036040830152615f438186614531565b90508181036060830152615f578185614531565b90508181036080830152615f6b8184615bc5565b9050969550505050505056fea26469706673582212209fa46d804abce0ed811f39a41e54aaa91849b06d3e661019a4f4e9d9bd01cbcf64736f6c6343000812003300000000000000000000000060dd0cf42b571dc2e437cf37a8b2a98ab9551e29000000000000000000000000c78b8e9f12edbc74a708f9b5a0472b33b3b286ce

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061023c5760003560e01c806377342bdf1161013b578063b8d1e532116100b8578063e72571d21161007c578063e72571d2146106ac578063e985e9c5146106ca578063f242432a146106fa578063f2fde38b14610716578063fcffc2dc146107325761023c565b8063b8d1e5321461060a578063baf3ff6014610626578063bd85b03914610642578063cf73a1bc14610672578063d0ebdbe7146106905761023c565b8063a22cb465116100ff578063a22cb4651461058c578063aa1b103f146105a8578063acb8dbc9146105b2578063aea0bbd0146105ce578063b0ccc31e146105ec5761023c565b806377342bdf146104e6578063832aea98146105045780638a616bc0146105345780638da5cb5b1461055057806392f002331461056e5761023c565b806344345c24116101c95780635944c7531161018d5780635944c7531461046a578063674ca5221461048657806369d6cc5b146104a257806369f5f475146104c0578063715018a6146104dc5761023c565b806344345c24146103a257806347282f8a146103be5780634e1273f4146103da5780634f558e791461040a578063588632fc1461043a5761023c565b80631c39a122116102105780631c39a122146102ed5780632a55205a1461031d5780632eb2c2d61461034e5780633426d5001461036a57806338478ae7146103865761023c565b8062fdd58e1461024157806301ffc9a71461027157806304634d8d146102a15780630e89341c146102bd575b600080fd5b61025b60048036038101906102569190613c8f565b610762565b6040516102689190613cde565b60405180910390f35b61028b60048036038101906102869190613d51565b61082b565b6040516102989190613d99565b60405180910390f35b6102bb60048036038101906102b69190613df8565b61083d565b005b6102d760048036038101906102d29190613e38565b610918565b6040516102e49190613ef5565b60405180910390f35b61030760048036038101906103029190613e38565b6109fd565b6040516103149190613cde565b60405180910390f35b61033760048036038101906103329190613f17565b610a1a565b604051610345929190613f66565b60405180910390f35b6103686004803603810190610363919061418c565b610c04565b005b610384600480360381019061037f91906142b6565b610c57565b005b6103a0600480360381019061039b9190614316565b610f11565b005b6103bc60048036038101906103b79190614343565b61105c565b005b6103d860048036038101906103d391906142b6565b61119c565b005b6103f460048036038101906103ef9190614459565b6113a0565b604051610401919061458f565b60405180910390f35b610424600480360381019061041f9190613e38565b6114b9565b6040516104319190613d99565b60405180910390f35b610454600480360381019061044f9190613e38565b6114cd565b6040516104619190613cde565b60405180910390f35b610484600480360381019061047f91906145b1565b6114e5565b005b6104a0600480360381019061049b9190614316565b6115c2565b005b6104aa61170d565b6040516104b7919061458f565b60405180910390f35b6104da60048036038101906104d59190614343565b6117b9565b005b6104e461190a565b005b6104ee61191e565b6040516104fb9190614604565b60405180910390f35b61051e60048036038101906105199190614316565b611944565b60405161052b919061458f565b60405180910390f35b61054e60048036038101906105499190613e38565b6119e8565b005b610558611ac1565b6040516105659190614604565b60405180910390f35b610576611aea565b6040516105839190614604565b60405180910390f35b6105a660048036038101906105a1919061464b565b611b10565b005b6105b0611b29565b005b6105cc60048036038101906105c79190614316565b611c00565b005b6105d6611c9e565b6040516105e39190613cde565b60405180910390f35b6105f4611ca4565b60405161060191906146ea565b60405180910390f35b610624600480360381019061061f9190614316565b611cca565b005b610640600480360381019061063b9190614316565b611db1565b005b61065c60048036038101906106579190613e38565b611dc5565b6040516106699190613cde565b60405180910390f35b61067a611de2565b6040516106879190614604565b60405180910390f35b6106aa60048036038101906106a59190614316565b611e08565b005b6106b4611e54565b6040516106c19190614604565b60405180910390f35b6106e460048036038101906106df9190614705565b611e7e565b6040516106f19190613d99565b60405180910390f35b610714600480360381019061070f9190614745565b611f12565b005b610730600480360381019061072b9190614316565b611f65565b005b61074c60048036038101906107479190613e38565b611fe8565b6040516107599190613cde565b60405180910390f35b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036107d2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107c99061484e565b60405180910390fd5b6001600083815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b600061083682612000565b9050919050565b610845611ac1565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614806108cb5750600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b61090a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610901906148e0565b60405180910390fd5b610914828261207a565b5050565b6060600060056000848152602001908152602001600020805461093a9061492f565b80601f01602080910402602001604051908101604052809291908181526020018280546109669061492f565b80156109b35780601f10610988576101008083540402835291602001916109b3565b820191906000526020600020905b81548152906001019060200180831161099657829003601f168201915b5050505050905060008151116109d1576109cc8361220f565b6109f5565b6004816040516020016109e5929190614a34565b6040516020818303038152906040525b915050919050565b6000600e6000838152602001908152602001600020549050919050565b6000806000600860008681526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1603610baf5760076040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff168152505090505b6000610bb96122a3565b6bffffffffffffffffffffffff1682602001516bffffffffffffffffffffffff1686610be59190614a87565b610bef9190614af8565b90508160000151819350935050509250929050565b843373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610c4257610c41336122ad565b5b610c4f86868686866123ef565b505050505050565b610c5f611ac1565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161480610ce55750600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b610d24576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d1b906148e0565b60405180910390fd5b60018310158015610d365750600a8311155b610d75576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d6c90614b9b565b60405180910390fd5b604051602001610d8490614be1565b604051602081830303815290604052805190602001208282604051602001610dad929190614c2e565b6040516020818303038152906040528051906020012003610e03576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dfa90614c9e565b60405180910390fd5b6000600e600060105481526020019081526020016000205414610e5b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e5290614d30565b60405180910390fd5b82600e6000601054815260200190815260200160002081905550610ec560105483838080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f82011690508083019250505050505050612490565b6010547ff3497c94b3b8e9173374c3238a8df85a74b38da75221d507edb6098a61e2f3bd60405160405180910390a260106000815480929190610f0790614d50565b9190505550505050565b610f196124f5565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610f88576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f7f90614de4565b60405180910390fd5b600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611018576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161100f90614e50565b60405180910390fd5b80600b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146110ec576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110e390614ee2565b60405180910390fd5b6000600e60008481526020019081526020016000205403611142576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161113990614f74565b60405180910390fd5b61115d83838360405180602001604052806000815250612573565b817f477d762a056e503332bfe8ca73912720b1806d8bd47554d706871f576c4b558b848360405161118f929190613f66565b60405180910390a2505050565b6111a4611ac1565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16148061122a5750600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b611269576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611260906148e0565b60405180910390fd5b6000600e600085815260200190815260200160002054036112bf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112b690614f74565b60405180910390fd5b6040516020016112ce90614be1565b6040516020818303038152906040528051906020012082826040516020016112f7929190614c2e565b604051602081830303815290604052805190602001200361134d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161134490614c9e565b60405180910390fd5b61139b8383838080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f82011690508083019250505050505050612490565b505050565b606081518351146113e6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113dd90615006565b60405180910390fd5b6000835167ffffffffffffffff81111561140357611402613f94565b5b6040519080825280602002602001820160405280156114315781602001602082028036833780820191505090505b50905060005b84518110156114ae5761147e85828151811061145657611455615026565b5b602002602001015185838151811061147157611470615026565b5b6020026020010151610762565b82828151811061149157611490615026565b5b602002602001018181525050806114a790614d50565b9050611437565b508091505092915050565b6000806114c583611dc5565b119050919050565b600e6020528060005260406000206000915090505481565b6114ed611ac1565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614806115735750600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b6115b2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115a9906148e0565b60405180910390fd5b6115bd838383612724565b505050565b6115ca6124f5565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611639576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161163090614de4565b60405180910390fd5b600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036116c9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116c090614e50565b60405180910390fd5b80600c60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6060600060105467ffffffffffffffff81111561172d5761172c613f94565b5b60405190808252806020026020018201604052801561175b5781602001602082028036833780820191505090505b50905060005b6010548110156117b157600e60008281526020019081526020016000205482828151811061179257611791615026565b5b60200260200101818152505080806117a990614d50565b915050611761565b508091505090565b600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611849576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611840906150c7565b60405180910390fd5b611852826109fd565b811115611894576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161188b90615133565b60405180910390fd5b6118a0838360016128cb565b6001600f600084815260200190815260200160002060008282546118c49190615153565b92505081905550817f5c5c1d0052a8bafd61c01ec3a6026cc64be50ffa795ae78adf4711676dbf3c9984836040516118fd929190613f66565b60405180910390a2505050565b6119126124f5565b61191c6000612b13565b565b600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6060600060105467ffffffffffffffff81111561196457611963613f94565b5b6040519080825280602002602001820160405280156119925781602001602082028036833780820191505090505b50905060005b6010548110156119de576119ac8482610762565b8282815181106119bf576119be615026565b5b60200260200101818152505080806119d690614d50565b915050611998565b5080915050919050565b6119f0611ac1565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161480611a765750600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b611ab5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611aac906148e0565b60405180910390fd5b611abe81612bd7565b50565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b81611b1a816122ad565b611b248383612c36565b505050565b611b31611ac1565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161480611bb75750600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b611bf6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bed906148e0565b60405180910390fd5b611bfe612c4c565b565b600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611c5a57600080fd5b80600960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60105481565b600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b611cd2611e54565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611d36576040517f5fc483c500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507f9f513fe86dc42fdbac355fa4d9b1d5be7b5e6cd2df67e30db8003766568de47681604051611da69190614604565b60405180910390a150565b611db96124f5565b611dc281611cca565b50565b600060066000838152602001908152602001600020549050919050565b600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b611e106124f5565b80600d60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6000600260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b843373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614611f5057611f4f336122ad565b5b611f5d8686868686612c99565b505050505050565b611f6d6124f5565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611fdc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fd3906151f9565b60405180910390fd5b611fe581612b13565b50565b600f6020528060005260406000206000915090505481565b60007f2a55205a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612073575061207282612d3a565b5b9050919050565b6120826122a3565b6bffffffffffffffffffffffff16816bffffffffffffffffffffffff1611156120e0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120d79061528b565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361214f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612146906152f7565b60405180910390fd5b60405180604001604052808373ffffffffffffffffffffffffffffffffffffffff168152602001826bffffffffffffffffffffffff16815250600760008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff1602179055509050505050565b60606003805461221e9061492f565b80601f016020809104026020016040519081016040528092919081815260200182805461224a9061492f565b80156122975780601f1061226c57610100808354040283529160200191612297565b820191906000526020600020905b81548152906001019060200180831161227a57829003601f168201915b50505050509050919050565b6000612710905090565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614158015612328575060008173ffffffffffffffffffffffffffffffffffffffff163b115b156123eb578073ffffffffffffffffffffffffffffffffffffffff1663c617113430846040518363ffffffff1660e01b8152600401612368929190615317565b602060405180830381865afa158015612385573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123a99190615355565b6123ea57816040517fede71dcc0000000000000000000000000000000000000000000000000000000081526004016123e19190614604565b60405180910390fd5b5b5050565b6123f7612e1c565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16148061243d575061243c85612437612e1c565b611e7e565b5b61247c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612473906153f4565b60405180910390fd5b6124898585858585612e24565b5050505050565b806005600084815260200190815260200160002090816124b091906155a1565b50817f6bb7ff708619ba0610cba295a58592e0451dee2622938c8755667688daf3529b6124dc84610918565b6040516124e99190613ef5565b60405180910390a25050565b6124fd612e1c565b73ffffffffffffffffffffffffffffffffffffffff1661251b611ac1565b73ffffffffffffffffffffffffffffffffffffffff1614612571576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612568906156bf565b60405180910390fd5b565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16036125e2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125d990615751565b60405180910390fd5b60006125ec612e1c565b905060006125f985613148565b9050600061260685613148565b9050612617836000898585896131c2565b846001600088815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546126779190615153565b925050819055508673ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6289896040516126f5929190615771565b60405180910390a461270c83600089858589613392565b61271b8360008989898961339a565b50505050505050565b61272c6122a3565b6bffffffffffffffffffffffff16816bffffffffffffffffffffffff16111561278a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127819061528b565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036127f9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127f0906157e6565b60405180910390fd5b60405180604001604052808373ffffffffffffffffffffffffffffffffffffffff168152602001826bffffffffffffffffffffffff168152506008600085815260200190815260200160002060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff160217905550905050505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff160361293a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161293190615878565b60405180910390fd5b6000612944612e1c565b9050600061295184613148565b9050600061295e84613148565b905061297e838760008585604051806020016040528060008152506131c2565b60006001600087815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905084811015612a16576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a0d9061590a565b60405180910390fd5b8481036001600088815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600073ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628989604051612ae4929190615771565b60405180910390a4612b0a84886000868660405180602001604052806000815250613392565b50505050505050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60086000828152602001908152602001600020600080820160006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556000820160146101000a8154906bffffffffffffffffffffffff0219169055505050565b612c48612c41612e1c565b8383613571565b5050565b6007600080820160006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556000820160146101000a8154906bffffffffffffffffffffffff02191690555050565b612ca1612e1c565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161480612ce75750612ce685612ce1612e1c565b611e7e565b5b612d26576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d1d906153f4565b60405180910390fd5b612d3385858585856136dd565b5050505050565b60007fd9b67a26000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612e0557507f0e89341c000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80612e155750612e148261397b565b5b9050919050565b600033905090565b8151835114612e68576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e5f9061599c565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603612ed7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ece90615a2e565b60405180910390fd5b6000612ee1612e1c565b9050612ef18187878787876131c2565b60005b84518110156130a5576000858281518110612f1257612f11615026565b5b602002602001015190506000858381518110612f3157612f30615026565b5b6020026020010151905060006001600084815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015612fd3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612fca90615ac0565b60405180910390fd5b8181036001600085815260200190815260200160002060008c73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550816001600085815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461308a9190615153565b925050819055505050508061309e90614d50565b9050612ef4565b508473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb878760405161311c929190615ae0565b60405180910390a4613132818787878787613392565b6131408187878787876139e5565b505050505050565b60606000600167ffffffffffffffff81111561316757613166613f94565b5b6040519080825280602002602001820160405280156131955781602001602082028036833780820191505090505b50905082816000815181106131ad576131ac615026565b5b60200260200101818152505080915050919050565b6131d0868686868686613bbc565b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16036132815760005b835181101561327f5782818151811061322357613222615026565b5b60200260200101516006600086848151811061324257613241615026565b5b6020026020010151815260200190815260200160002060008282546132679190615153565b925050819055508061327890614d50565b9050613207565b505b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff160361338a5760005b83518110156133885760008482815181106132d6576132d5615026565b5b6020026020010151905060008483815181106132f5576132f4615026565b5b602002602001015190506000600660008481526020019081526020016000205490508181101561335a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161335190615b89565b60405180910390fd5b81810360066000858152602001908152602001600020819055505050508061338190614d50565b90506132b8565b505b505050505050565b505050505050565b6133b98473ffffffffffffffffffffffffffffffffffffffff16613bc4565b15613569578373ffffffffffffffffffffffffffffffffffffffff1663f23a6e6187878686866040518663ffffffff1660e01b81526004016133ff959493929190615bfe565b6020604051808303816000875af192505050801561343b57506040513d601f19601f820116820180604052508101906134389190615c6d565b60015b6134e057613447615ca7565b806308c379a0036134a3575061345b615cc9565b8061346657506134a5565b806040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161349a9190613ef5565b60405180910390fd5b505b6040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016134d790615dcb565b60405180910390fd5b63f23a6e6160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614613567576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161355e90615e5d565b60405180910390fd5b505b505050505050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036135df576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016135d690615eef565b60405180910390fd5b80600260008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516136d09190613d99565b60405180910390a3505050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff160361374c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161374390615a2e565b60405180910390fd5b6000613756612e1c565b9050600061376385613148565b9050600061377085613148565b90506137808389898585896131c2565b60006001600088815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905085811015613818576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161380f90615ac0565b60405180910390fd5b8581036001600089815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550856001600089815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546138cf9190615153565b925050819055508773ffffffffffffffffffffffffffffffffffffffff168973ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628a8a60405161394c929190615771565b60405180910390a4613962848a8a86868a613392565b613970848a8a8a8a8a61339a565b505050505050505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b613a048473ffffffffffffffffffffffffffffffffffffffff16613bc4565b15613bb4578373ffffffffffffffffffffffffffffffffffffffff1663bc197c8187878686866040518663ffffffff1660e01b8152600401613a4a959493929190615f0f565b6020604051808303816000875af1925050508015613a8657506040513d601f19601f82011682018060405250810190613a839190615c6d565b60015b613b2b57613a92615ca7565b806308c379a003613aee5750613aa6615cc9565b80613ab15750613af0565b806040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613ae59190613ef5565b60405180910390fd5b505b6040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613b2290615dcb565b60405180910390fd5b63bc197c8160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614613bb2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613ba990615e5d565b60405180910390fd5b505b505050505050565b505050505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000613c2682613bfb565b9050919050565b613c3681613c1b565b8114613c4157600080fd5b50565b600081359050613c5381613c2d565b92915050565b6000819050919050565b613c6c81613c59565b8114613c7757600080fd5b50565b600081359050613c8981613c63565b92915050565b60008060408385031215613ca657613ca5613bf1565b5b6000613cb485828601613c44565b9250506020613cc585828601613c7a565b9150509250929050565b613cd881613c59565b82525050565b6000602082019050613cf36000830184613ccf565b92915050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b613d2e81613cf9565b8114613d3957600080fd5b50565b600081359050613d4b81613d25565b92915050565b600060208284031215613d6757613d66613bf1565b5b6000613d7584828501613d3c565b91505092915050565b60008115159050919050565b613d9381613d7e565b82525050565b6000602082019050613dae6000830184613d8a565b92915050565b60006bffffffffffffffffffffffff82169050919050565b613dd581613db4565b8114613de057600080fd5b50565b600081359050613df281613dcc565b92915050565b60008060408385031215613e0f57613e0e613bf1565b5b6000613e1d85828601613c44565b9250506020613e2e85828601613de3565b9150509250929050565b600060208284031215613e4e57613e4d613bf1565b5b6000613e5c84828501613c7a565b91505092915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015613e9f578082015181840152602081019050613e84565b60008484015250505050565b6000601f19601f8301169050919050565b6000613ec782613e65565b613ed18185613e70565b9350613ee1818560208601613e81565b613eea81613eab565b840191505092915050565b60006020820190508181036000830152613f0f8184613ebc565b905092915050565b60008060408385031215613f2e57613f2d613bf1565b5b6000613f3c85828601613c7a565b9250506020613f4d85828601613c7a565b9150509250929050565b613f6081613c1b565b82525050565b6000604082019050613f7b6000830185613f57565b613f886020830184613ccf565b9392505050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b613fcc82613eab565b810181811067ffffffffffffffff82111715613feb57613fea613f94565b5b80604052505050565b6000613ffe613be7565b905061400a8282613fc3565b919050565b600067ffffffffffffffff82111561402a57614029613f94565b5b602082029050602081019050919050565b600080fd5b600061405361404e8461400f565b613ff4565b905080838252602082019050602084028301858111156140765761407561403b565b5b835b8181101561409f578061408b8882613c7a565b845260208401935050602081019050614078565b5050509392505050565b600082601f8301126140be576140bd613f8f565b5b81356140ce848260208601614040565b91505092915050565b600080fd5b600067ffffffffffffffff8211156140f7576140f6613f94565b5b61410082613eab565b9050602081019050919050565b82818337600083830152505050565b600061412f61412a846140dc565b613ff4565b90508281526020810184848401111561414b5761414a6140d7565b5b61415684828561410d565b509392505050565b600082601f83011261417357614172613f8f565b5b813561418384826020860161411c565b91505092915050565b600080600080600060a086880312156141a8576141a7613bf1565b5b60006141b688828901613c44565b95505060206141c788828901613c44565b945050604086013567ffffffffffffffff8111156141e8576141e7613bf6565b5b6141f4888289016140a9565b935050606086013567ffffffffffffffff81111561421557614214613bf6565b5b614221888289016140a9565b925050608086013567ffffffffffffffff81111561424257614241613bf6565b5b61424e8882890161415e565b9150509295509295909350565b600080fd5b60008083601f84011261427657614275613f8f565b5b8235905067ffffffffffffffff8111156142935761429261425b565b5b6020830191508360018202830111156142af576142ae61403b565b5b9250929050565b6000806000604084860312156142cf576142ce613bf1565b5b60006142dd86828701613c7a565b935050602084013567ffffffffffffffff8111156142fe576142fd613bf6565b5b61430a86828701614260565b92509250509250925092565b60006020828403121561432c5761432b613bf1565b5b600061433a84828501613c44565b91505092915050565b60008060006060848603121561435c5761435b613bf1565b5b600061436a86828701613c44565b935050602061437b86828701613c7a565b925050604061438c86828701613c7a565b9150509250925092565b600067ffffffffffffffff8211156143b1576143b0613f94565b5b602082029050602081019050919050565b60006143d56143d084614396565b613ff4565b905080838252602082019050602084028301858111156143f8576143f761403b565b5b835b81811015614421578061440d8882613c44565b8452602084019350506020810190506143fa565b5050509392505050565b600082601f8301126144405761443f613f8f565b5b81356144508482602086016143c2565b91505092915050565b600080604083850312156144705761446f613bf1565b5b600083013567ffffffffffffffff81111561448e5761448d613bf6565b5b61449a8582860161442b565b925050602083013567ffffffffffffffff8111156144bb576144ba613bf6565b5b6144c7858286016140a9565b9150509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b61450681613c59565b82525050565b600061451883836144fd565b60208301905092915050565b6000602082019050919050565b600061453c826144d1565b61454681856144dc565b9350614551836144ed565b8060005b83811015614582578151614569888261450c565b975061457483614524565b925050600181019050614555565b5085935050505092915050565b600060208201905081810360008301526145a98184614531565b905092915050565b6000806000606084860312156145ca576145c9613bf1565b5b60006145d886828701613c7a565b93505060206145e986828701613c44565b92505060406145fa86828701613de3565b9150509250925092565b60006020820190506146196000830184613f57565b92915050565b61462881613d7e565b811461463357600080fd5b50565b6000813590506146458161461f565b92915050565b6000806040838503121561466257614661613bf1565b5b600061467085828601613c44565b925050602061468185828601614636565b9150509250929050565b6000819050919050565b60006146b06146ab6146a684613bfb565b61468b565b613bfb565b9050919050565b60006146c282614695565b9050919050565b60006146d4826146b7565b9050919050565b6146e4816146c9565b82525050565b60006020820190506146ff60008301846146db565b92915050565b6000806040838503121561471c5761471b613bf1565b5b600061472a85828601613c44565b925050602061473b85828601613c44565b9150509250929050565b600080600080600060a0868803121561476157614760613bf1565b5b600061476f88828901613c44565b955050602061478088828901613c44565b945050604061479188828901613c7a565b93505060606147a288828901613c7a565b925050608086013567ffffffffffffffff8111156147c3576147c2613bf6565b5b6147cf8882890161415e565b9150509295509295909350565b7f455243313135353a2061646472657373207a65726f206973206e6f742061207660008201527f616c6964206f776e657200000000000000000000000000000000000000000000602082015250565b6000614838602a83613e70565b9150614843826147dc565b604082019050919050565b600060208201905081810360008301526148678161482b565b9050919050565b7f43616c6c6572206973206e6f7420746865206f776e6572206e6569746865722060008201527f6d616e6167657221000000000000000000000000000000000000000000000000602082015250565b60006148ca602883613e70565b91506148d58261486e565b604082019050919050565b600060208201905081810360008301526148f9816148bd565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061494757607f821691505b60208210810361495a57614959614900565b5b50919050565b600081905092915050565b60008190508160005260206000209050919050565b6000815461498d8161492f565b6149978186614960565b945060018216600081146149b257600181146149c7576149fa565b60ff19831686528115158202860193506149fa565b6149d08561496b565b60005b838110156149f2578154818901526001820191506020810190506149d3565b838801955050505b50505092915050565b6000614a0e82613e65565b614a188185614960565b9350614a28818560208601613e81565b80840191505092915050565b6000614a408285614980565b9150614a4c8284614a03565b91508190509392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000614a9282613c59565b9150614a9d83613c59565b9250828202614aab81613c59565b91508282048414831517614ac257614ac1614a58565b5b5092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000614b0382613c59565b9150614b0e83613c59565b925082614b1e57614b1d614ac9565b5b828204905092915050565b7f416d6f756e74206f662063686f69636573206d7573742062652062657477656560008201527f6e203120616e6420313021000000000000000000000000000000000000000000602082015250565b6000614b85602b83613e70565b9150614b9082614b29565b604082019050919050565b60006020820190508181036000830152614bb481614b78565b9050919050565b50565b6000614bcb600083613e70565b9150614bd682614bbb565b600082019050919050565b60006020820190508181036000830152614bfa81614bbe565b9050919050565b6000614c0d8385613e70565b9350614c1a83858461410d565b614c2383613eab565b840190509392505050565b60006020820190508181036000830152614c49818486614c01565b90509392505050565b7f7572692063616e277420626520656d7074792100000000000000000000000000600082015250565b6000614c88601383613e70565b9150614c9382614c52565b602082019050919050565b60006020820190508181036000830152614cb781614c7b565b9050919050565b7f5368696b6967616d692077697468207468697320494420616c7265616479206560008201527f7869737473210000000000000000000000000000000000000000000000000000602082015250565b6000614d1a602683613e70565b9150614d2582614cbe565b604082019050919050565b60006020820190508181036000830152614d4981614d0d565b9050919050565b6000614d5b82613c59565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203614d8d57614d8c614a58565b5b600182019050919050565b7f416464726573732073686f756c64206265207265616c21000000000000000000600082015250565b6000614dce601783613e70565b9150614dd982614d98565b602082019050919050565b60006020820190508181036000830152614dfd81614dc1565b9050919050565b7f4164647265737320616c72656164792073657421000000000000000000000000600082015250565b6000614e3a601483613e70565b9150614e4582614e04565b602082019050919050565b60006020820190508181036000830152614e6981614e2d565b9050919050565b7f43616e206f6e6c792062652063616c6c656420627920746865206d696e74657260008201527f20636f6e74726163742100000000000000000000000000000000000000000000602082015250565b6000614ecc602a83613e70565b9150614ed782614e70565b604082019050919050565b60006020820190508181036000830152614efb81614ebf565b9050919050565b7f5368696b6967616d692077697468207468697320494420646f65736e2774206560008201527f7869737421000000000000000000000000000000000000000000000000000000602082015250565b6000614f5e602583613e70565b9150614f6982614f02565b604082019050919050565b60006020820190508181036000830152614f8d81614f51565b9050919050565b7f455243313135353a206163636f756e747320616e6420696473206c656e67746860008201527f206d69736d617463680000000000000000000000000000000000000000000000602082015250565b6000614ff0602983613e70565b9150614ffb82614f94565b604082019050919050565b6000602082019050818103600083015261501f81614fe3565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f43616e206f6e6c792062652063616c6c656420627920746865206275726e657260008201527f20636f6e74726163742100000000000000000000000000000000000000000000602082015250565b60006150b1602a83613e70565b91506150bc82615055565b604082019050919050565b600060208201905081810360008301526150e0816150a4565b9050919050565b7f4e6f20737563682063686f69636520617661696c61626c652100000000000000600082015250565b600061511d601983613e70565b9150615128826150e7565b602082019050919050565b6000602082019050818103600083015261514c81615110565b9050919050565b600061515e82613c59565b915061516983613c59565b925082820190508082111561518157615180614a58565b5b92915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006151e3602683613e70565b91506151ee82615187565b604082019050919050565b60006020820190508181036000830152615212816151d6565b9050919050565b7f455243323938313a20726f79616c7479206665652077696c6c2065786365656460008201527f2073616c65507269636500000000000000000000000000000000000000000000602082015250565b6000615275602a83613e70565b915061528082615219565b604082019050919050565b600060208201905081810360008301526152a481615268565b9050919050565b7f455243323938313a20696e76616c696420726563656976657200000000000000600082015250565b60006152e1601983613e70565b91506152ec826152ab565b602082019050919050565b60006020820190508181036000830152615310816152d4565b9050919050565b600060408201905061532c6000830185613f57565b6153396020830184613f57565b9392505050565b60008151905061534f8161461f565b92915050565b60006020828403121561536b5761536a613bf1565b5b600061537984828501615340565b91505092915050565b7f455243313135353a2063616c6c6572206973206e6f7420746f6b656e206f776e60008201527f6572206f7220617070726f766564000000000000000000000000000000000000602082015250565b60006153de602e83613e70565b91506153e982615382565b604082019050919050565b6000602082019050818103600083015261540d816153d1565b9050919050565b60006020601f8301049050919050565b600082821b905092915050565b6000600883026154617fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82615424565b61546b8683615424565b95508019841693508086168417925050509392505050565b600061549e61549961549484613c59565b61468b565b613c59565b9050919050565b6000819050919050565b6154b883615483565b6154cc6154c4826154a5565b848454615431565b825550505050565b600090565b6154e16154d4565b6154ec8184846154af565b505050565b5b81811015615510576155056000826154d9565b6001810190506154f2565b5050565b601f821115615555576155268161496b565b61552f84615414565b8101602085101561553e578190505b61555261554a85615414565b8301826154f1565b50505b505050565b600082821c905092915050565b60006155786000198460080261555a565b1980831691505092915050565b60006155918383615567565b9150826002028217905092915050565b6155aa82613e65565b67ffffffffffffffff8111156155c3576155c2613f94565b5b6155cd825461492f565b6155d8828285615514565b600060209050601f83116001811461560b57600084156155f9578287015190505b6156038582615585565b86555061566b565b601f1984166156198661496b565b60005b828110156156415784890151825560018201915060208501945060208101905061561c565b8683101561565e578489015161565a601f891682615567565b8355505b6001600288020188555050505b505050505050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006156a9602083613e70565b91506156b482615673565b602082019050919050565b600060208201905081810360008301526156d88161569c565b9050919050565b7f455243313135353a206d696e7420746f20746865207a65726f2061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b600061573b602183613e70565b9150615746826156df565b604082019050919050565b6000602082019050818103600083015261576a8161572e565b9050919050565b60006040820190506157866000830185613ccf565b6157936020830184613ccf565b9392505050565b7f455243323938313a20496e76616c696420706172616d65746572730000000000600082015250565b60006157d0601b83613e70565b91506157db8261579a565b602082019050919050565b600060208201905081810360008301526157ff816157c3565b9050919050565b7f455243313135353a206275726e2066726f6d20746865207a65726f206164647260008201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b6000615862602383613e70565b915061586d82615806565b604082019050919050565b6000602082019050818103600083015261589181615855565b9050919050565b7f455243313135353a206275726e20616d6f756e7420657863656564732062616c60008201527f616e636500000000000000000000000000000000000000000000000000000000602082015250565b60006158f4602483613e70565b91506158ff82615898565b604082019050919050565b60006020820190508181036000830152615923816158e7565b9050919050565b7f455243313135353a2069647320616e6420616d6f756e7473206c656e6774682060008201527f6d69736d61746368000000000000000000000000000000000000000000000000602082015250565b6000615986602883613e70565b91506159918261592a565b604082019050919050565b600060208201905081810360008301526159b581615979565b9050919050565b7f455243313135353a207472616e7366657220746f20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b6000615a18602583613e70565b9150615a23826159bc565b604082019050919050565b60006020820190508181036000830152615a4781615a0b565b9050919050565b7f455243313135353a20696e73756666696369656e742062616c616e636520666f60008201527f72207472616e7366657200000000000000000000000000000000000000000000602082015250565b6000615aaa602a83613e70565b9150615ab582615a4e565b604082019050919050565b60006020820190508181036000830152615ad981615a9d565b9050919050565b60006040820190508181036000830152615afa8185614531565b90508181036020830152615b0e8184614531565b90509392505050565b7f455243313135353a206275726e20616d6f756e74206578636565647320746f7460008201527f616c537570706c79000000000000000000000000000000000000000000000000602082015250565b6000615b73602883613e70565b9150615b7e82615b17565b604082019050919050565b60006020820190508181036000830152615ba281615b66565b9050919050565b600081519050919050565b600082825260208201905092915050565b6000615bd082615ba9565b615bda8185615bb4565b9350615bea818560208601613e81565b615bf381613eab565b840191505092915050565b600060a082019050615c136000830188613f57565b615c206020830187613f57565b615c2d6040830186613ccf565b615c3a6060830185613ccf565b8181036080830152615c4c8184615bc5565b90509695505050505050565b600081519050615c6781613d25565b92915050565b600060208284031215615c8357615c82613bf1565b5b6000615c9184828501615c58565b91505092915050565b60008160e01c9050919050565b600060033d1115615cc65760046000803e615cc3600051615c9a565b90505b90565b600060443d10615d5657615cdb613be7565b60043d036004823e80513d602482011167ffffffffffffffff82111715615d03575050615d56565b808201805167ffffffffffffffff811115615d215750505050615d56565b80602083010160043d038501811115615d3e575050505050615d56565b615d4d82602001850186613fc3565b82955050505050505b90565b7f455243313135353a207472616e7366657220746f206e6f6e2d4552433131353560008201527f526563656976657220696d706c656d656e746572000000000000000000000000602082015250565b6000615db5603483613e70565b9150615dc082615d59565b604082019050919050565b60006020820190508181036000830152615de481615da8565b9050919050565b7f455243313135353a204552433131353552656365697665722072656a6563746560008201527f6420746f6b656e73000000000000000000000000000000000000000000000000602082015250565b6000615e47602883613e70565b9150615e5282615deb565b604082019050919050565b60006020820190508181036000830152615e7681615e3a565b9050919050565b7f455243313135353a2073657474696e6720617070726f76616c2073746174757360008201527f20666f722073656c660000000000000000000000000000000000000000000000602082015250565b6000615ed9602983613e70565b9150615ee482615e7d565b604082019050919050565b60006020820190508181036000830152615f0881615ecc565b9050919050565b600060a082019050615f246000830188613f57565b615f316020830187613f57565b8181036040830152615f438186614531565b90508181036060830152615f578185614531565b90508181036080830152615f6b8184615bc5565b9050969550505050505056fea26469706673582212209fa46d804abce0ed811f39a41e54aaa91849b06d3e661019a4f4e9d9bd01cbcf64736f6c63430008120033

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

00000000000000000000000060dd0cf42b571dc2e437cf37a8b2a98ab9551e29000000000000000000000000c78b8e9f12edbc74a708f9b5a0472b33b3b286ce

-----Decoded View---------------
Arg [0] : _manager (address): 0x60dD0cF42b571Dc2E437cF37A8B2a98AB9551E29
Arg [1] : ROYALTY_ADDRESS (address): 0xc78b8E9f12EDbc74A708F9B5A0472B33b3B286ce

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 00000000000000000000000060dd0cf42b571dc2e437cf37a8b2a98ab9551e29
Arg [1] : 000000000000000000000000c78b8e9f12edbc74a708f9b5a0472b33b3b286ce


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

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