ETH Price: $3,127.46 (+2.28%)

Token

LazyComics ()
 

Overview

Max Total Supply

1,206

Holders

710

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
0x0b0ec2a26a8eae1282785e1b3807339d8220e40b
Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

Lazy Comics NFT #1 A Glitch in Time The first instalment of the Lazy Lions comic book series explores the origins of Glitch and his journey to become the antagonist who intends on destroying the Metaverse.

# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
LazyComics

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 15 : LazyComics.sol
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/token/ERC1155/extensions/ERC1155Burnable.sol";
import "@openzeppelin/contracts/token/ERC1155/extensions/ERC1155Supply.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/access/AccessControl.sol";


contract LazyComics is ERC1155Burnable, ERC1155Supply, Ownable, AccessControl {
    using Strings for uint256;
    bytes32 public constant drop_manager = keccak256("drop_manager");

    constructor() ERC1155('ipfs://QmaBK7t9zvoN6cx8jkckbSHEz5RK42dQVz5VCc6vZrVukz/') {
        _setupRole(0x00, msg.sender);
        _setRoleAdmin(drop_manager, DEFAULT_ADMIN_ROLE);
        // _setupRole(drop_manager, )
    }
    function _beforeTokenTransfer(
        address operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual override(ERC1155, ERC1155Supply){
        ERC1155Supply._beforeTokenTransfer(operator, from, to, ids, amounts, data);
    }

    function set_drop_manager(address _manager) public onlyRole(DEFAULT_ADMIN_ROLE) {
        _setupRole(drop_manager, _manager);
    }
    function supportsInterface(bytes4 interfaceId) public view virtual override(ERC1155, AccessControl)
        returns (bool) 
    {
        return 
            interfaceId == type(IERC1155).interfaceId ||
            interfaceId == type(IERC1155MetadataURI).interfaceId || 
            interfaceId == type(IAccessControl).interfaceId ||
            super.supportsInterface(interfaceId);
    }

    function mint(
        address _to,
        uint256 _id,
        uint256 _amount,
        bytes memory _data
    ) public onlyRole(drop_manager) returns (bool) {
        _mint(_to, _id, _amount, _data);
        return true;
    }

    function setURI(string memory newuri) public onlyOwner {
        _setURI(newuri);
    }

    function uri(
        uint256 _id
    ) public view virtual override(ERC1155) returns (string memory) {
        require(exists(_id), "Nonexistent Token");
        return string(abi.encodePacked(super.uri(0), _id.toString()));
    }

}

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

pragma solidity ^0.8.0;

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

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

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

File 6 of 15 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 7 of 15 : IERC1155MetadataURI.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC1155/extensions/IERC1155MetadataURI.sol)

pragma solidity ^0.8.0;

import "../IERC1155.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 8 of 15 : ERC1155Supply.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC1155/extensions/ERC1155Supply.sol)

pragma solidity ^0.8.0;

import "../ERC1155.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 ERC1155Supply is ERC1155 {
    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 ERC1155Supply.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;
                }
            }
        }
    }
}

File 9 of 15 : ERC1155Burnable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC1155/extensions/ERC1155Burnable.sol)

pragma solidity ^0.8.0;

import "../ERC1155.sol";

/**
 * @dev Extension of {ERC1155} that allows token holders to destroy both their
 * own tokens and those that they have been approved to use.
 *
 * _Available since v3.1._
 */
abstract contract ERC1155Burnable is ERC1155 {
    function burn(
        address account,
        uint256 id,
        uint256 value
    ) public virtual {
        require(
            account == _msgSender() || isApprovedForAll(account, _msgSender()),
            "ERC1155: caller is not owner nor approved"
        );

        _burn(account, id, value);
    }

    function burnBatch(
        address account,
        uint256[] memory ids,
        uint256[] memory values
    ) public virtual {
        require(
            account == _msgSender() || isApprovedForAll(account, _msgSender()),
            "ERC1155: caller is not owner nor approved"
        );

        _burnBatch(account, ids, values);
    }
}

File 10 of 15 : IERC1155Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC1155/IERC1155Receiver.sol)

pragma solidity ^0.8.0;

import "../../utils/introspection/IERC165.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 11 of 15 : IERC1155.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC1155/IERC1155.sol)

pragma solidity ^0.8.0;

import "../../utils/introspection/IERC165.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 be 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 12 of 15 : ERC1155.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC1155/ERC1155.sol)

pragma solidity ^0.8.0;

import "./IERC1155.sol";
import "./IERC1155Receiver.sol";
import "./extensions/IERC1155MetadataURI.sol";
import "../../utils/Address.sol";
import "../../utils/Context.sol";
import "../../utils/introspection/ERC165.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: balance query for the zero address");
        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 owner nor 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: transfer caller is not owner nor 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}.
     *
     * 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`
     *
     * 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}.
     *
     * 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 a {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 `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 _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 13 of 15 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

File 14 of 15 : IAccessControl.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol)

pragma solidity ^0.8.0;

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

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

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

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) external view returns (bool);

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {AccessControl-_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) external view returns (bytes32);

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function grantRole(bytes32 role, address account) external;

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function revokeRole(bytes32 role, address account) external;

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

File 15 of 15 : AccessControl.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (access/AccessControl.sol)

pragma solidity ^0.8.0;

import "./IAccessControl.sol";
import "../utils/Context.sol";
import "../utils/Strings.sol";
import "../utils/introspection/ERC165.sol";

/**
 * @dev Contract module that allows children to implement role-based access
 * control mechanisms. This is a lightweight version that doesn't allow enumerating role
 * members except through off-chain means by accessing the contract event logs. Some
 * applications may benefit from on-chain enumerability, for those cases see
 * {AccessControlEnumerable}.
 *
 * Roles are referred to by their `bytes32` identifier. These should be exposed
 * in the external API and be unique. The best way to achieve this is by
 * using `public constant` hash digests:
 *
 * ```
 * bytes32 public constant MY_ROLE = keccak256("MY_ROLE");
 * ```
 *
 * Roles can be used to represent a set of permissions. To restrict access to a
 * function call, use {hasRole}:
 *
 * ```
 * function foo() public {
 *     require(hasRole(MY_ROLE, msg.sender));
 *     ...
 * }
 * ```
 *
 * Roles can be granted and revoked dynamically via the {grantRole} and
 * {revokeRole} functions. Each role has an associated admin role, and only
 * accounts that have a role's admin role can call {grantRole} and {revokeRole}.
 *
 * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means
 * that only accounts with this role will be able to grant or revoke other
 * roles. More complex role relationships can be created by using
 * {_setRoleAdmin}.
 *
 * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to
 * grant and revoke this role. Extra precautions should be taken to secure
 * accounts that have been granted it.
 */
abstract contract AccessControl is Context, IAccessControl, ERC165 {
    struct RoleData {
        mapping(address => bool) members;
        bytes32 adminRole;
    }

    mapping(bytes32 => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

    /**
     * @dev Modifier that checks that an account has a specific role. Reverts
     * with a standardized message including the required role.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
     *
     * _Available since v4.1._
     */
    modifier onlyRole(bytes32 role) {
        _checkRole(role);
        _;
    }

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

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

    /**
     * @dev Revert with a standard message if `_msgSender()` is missing `role`.
     * Overriding this function changes the behavior of the {onlyRole} modifier.
     *
     * Format of the revert message is described in {_checkRole}.
     *
     * _Available since v4.6._
     */
    function _checkRole(bytes32 role) internal view virtual {
        _checkRole(role, _msgSender());
    }

    /**
     * @dev Revert with a standard message if `account` is missing `role`.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
     */
    function _checkRole(bytes32 role, address account) internal view virtual {
        if (!hasRole(role, account)) {
            revert(
                string(
                    abi.encodePacked(
                        "AccessControl: account ",
                        Strings.toHexString(uint160(account), 20),
                        " is missing role ",
                        Strings.toHexString(uint256(role), 32)
                    )
                )
            );
        }
    }

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

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
        _grantRole(role, account);
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
        _revokeRole(role, account);
    }

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

        _revokeRole(role, account);
    }

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

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

    /**
     * @dev Grants `role` to `account`.
     *
     * Internal function without access restriction.
     */
    function _grantRole(bytes32 role, address account) internal virtual {
        if (!hasRole(role, account)) {
            _roles[role].members[account] = true;
            emit RoleGranted(role, account, _msgSender());
        }
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * Internal function without access restriction.
     */
    function _revokeRole(bytes32 role, address account) internal virtual {
        if (hasRole(role, account)) {
            _roles[role].members[account] = false;
            emit RoleRevoked(role, account, _msgSender());
        }
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"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":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"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":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"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":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"burnBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"drop_manager","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"exists","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"mint","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","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":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"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":"id","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":"string","name":"newuri","type":"string"}],"name":"setURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_manager","type":"address"}],"name":"set_drop_manager","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"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":"uint256","name":"_id","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"}]

60806040523480156200001157600080fd5b506040518060600160405280603681526020016200507d603691396200003d81620000ae60201b60201c565b506200005e62000052620000ca60201b60201c565b620000d260201b60201c565b620000736000801b336200019860201b60201c565b620000a87fe5dd4be1462c58a0c462c80440b28407d36c5a0a2750afad754ad036ff08ec3f6000801b620001ae60201b60201c565b620004a4565b8060029080519060200190620000c69291906200038f565b5050565b600033905090565b6000600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b620001aa82826200021260201b60201c565b5050565b6000620001c1836200030460201b60201c565b90508160056000858152602001908152602001600020600101819055508181847fbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff60405160405180910390a4505050565b6200022482826200032460201b60201c565b620003005760016005600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550620002a5620000ca60201b60201c565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b600060056000838152602001908152602001600020600101549050919050565b60006005600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b8280546200039d906200043f565b90600052602060002090601f016020900481019282620003c157600085556200040d565b82601f10620003dc57805160ff19168380011785556200040d565b828001600101855582156200040d579182015b828111156200040c578251825591602001919060010190620003ef565b5b5090506200041c919062000420565b5090565b5b808211156200043b57600081600090555060010162000421565b5090565b600060028204905060018216806200045857607f821691505b602082108114156200046f576200046e62000475565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b614bc980620004b46000396000f3fe608060405234801561001057600080fd5b50600436106101725760003560e01c8063715018a6116100de578063bd85b03911610097578063e985e9c511610071578063e985e9c51461046b578063f242432a1461049b578063f2fde38b146104b7578063f5298aca146104d357610172565b8063bd85b03914610403578063c5d6d7c614610433578063d547741f1461044f57610172565b8063715018a614610341578063731133e91461034b5780638da5cb5b1461037b57806391d1485414610399578063a217fddf146103c9578063a22cb465146103e757610172565b80632f2ff15d116101305780632f2ff15d1461026f57806336568abe1461028b57806341a0e00a146102a75780634e1273f4146102c55780634f558e79146102f55780636b20c4541461032557610172565b8062fdd58e1461017757806301ffc9a7146101a757806302fe5305146101d75780630e89341c146101f3578063248a9ca3146102235780632eb2c2d614610253575b600080fd5b610191600480360381019061018c91906133b4565b6104ef565b60405161019e9190613f0e565b60405180910390f35b6101c160048036038101906101bc91906135af565b6105b8565b6040516101ce9190613c56565b60405180910390f35b6101f160048036038101906101ec9190613609565b610702565b005b61020d60048036038101906102089190613652565b61078a565b60405161021a9190613c8c565b60405180910390f35b61023d60048036038101906102389190613542565b61080e565b60405161024a9190613c71565b60405180910390f35b61026d60048036038101906102689190613183565b61082e565b005b6102896004803603810190610284919061356f565b6108cf565b005b6102a560048036038101906102a0919061356f565b6108f0565b005b6102af610973565b6040516102bc9190613c71565b60405180910390f35b6102df60048036038101906102da91906134ca565b610997565b6040516102ec9190613bfd565b60405180910390f35b61030f600480360381019061030a9190613652565b610ab0565b60405161031c9190613c56565b60405180910390f35b61033f600480360381019061033a91906132e9565b610ac4565b005b610349610b61565b005b61036560048036038101906103609190613447565b610be9565b6040516103729190613c56565b60405180910390f35b610383610c2e565b6040516103909190613b20565b60405180910390f35b6103b360048036038101906103ae919061356f565b610c58565b6040516103c09190613c56565b60405180910390f35b6103d1610cc3565b6040516103de9190613c71565b60405180910390f35b61040160048036038101906103fc9190613374565b610cca565b005b61041d60048036038101906104189190613652565b610ce0565b60405161042a9190613f0e565b60405180910390f35b61044d60048036038101906104489190613116565b610cfd565b005b6104696004803603810190610464919061356f565b610d38565b005b61048560048036038101906104809190613143565b610d59565b6040516104929190613c56565b60405180910390f35b6104b560048036038101906104b09190613252565b610ded565b005b6104d160048036038101906104cc9190613116565b610e8e565b005b6104ed60048036038101906104e891906133f4565b610f86565b005b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610560576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161055790613d0e565b60405180910390fd5b60008083815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b60007fd9b67a26000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061068357507f0e89341c000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806106eb57507f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806106fb57506106fa82611023565b5b9050919050565b61070a61109d565b73ffffffffffffffffffffffffffffffffffffffff16610728610c2e565b73ffffffffffffffffffffffffffffffffffffffff161461077e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161077590613e2e565b60405180910390fd5b610787816110a5565b50565b606061079582610ab0565b6107d4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107cb90613e0e565b60405180910390fd5b6107de60006110bf565b6107e783611153565b6040516020016107f8929190613ac2565b6040516020818303038152906040529050919050565b600060056000838152602001908152602001600020600101549050919050565b61083661109d565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16148061087c575061087b8561087661109d565b610d59565b5b6108bb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108b290613dae565b60405180910390fd5b6108c885858585856112b4565b5050505050565b6108d88261080e565b6108e1816115d6565b6108eb83836115ea565b505050565b6108f861109d565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610965576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161095c90613eee565b60405180910390fd5b61096f82826116cb565b5050565b7fe5dd4be1462c58a0c462c80440b28407d36c5a0a2750afad754ad036ff08ec3f81565b606081518351146109dd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109d490613e8e565b60405180910390fd5b6000835167ffffffffffffffff8111156109fa576109f9614445565b5b604051908082528060200260200182016040528015610a285781602001602082028036833780820191505090505b50905060005b8451811015610aa557610a75858281518110610a4d57610a4c614416565b5b6020026020010151858381518110610a6857610a67614416565b5b60200260200101516104ef565b828281518110610a8857610a87614416565b5b60200260200101818152505080610a9e9061430f565b9050610a2e565b508091505092915050565b600080610abc83610ce0565b119050919050565b610acc61109d565b73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161480610b125750610b1183610b0c61109d565b610d59565b5b610b51576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b4890613d6e565b60405180910390fd5b610b5c8383836117ad565b505050565b610b6961109d565b73ffffffffffffffffffffffffffffffffffffffff16610b87610c2e565b73ffffffffffffffffffffffffffffffffffffffff1614610bdd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bd490613e2e565b60405180910390fd5b610be76000611a7c565b565b60007fe5dd4be1462c58a0c462c80440b28407d36c5a0a2750afad754ad036ff08ec3f610c15816115d6565b610c2186868686611b42565b6001915050949350505050565b6000600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60006005600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6000801b81565b610cdc610cd561109d565b8383611cf3565b5050565b600060036000838152602001908152602001600020549050919050565b6000801b610d0a816115d6565b610d347fe5dd4be1462c58a0c462c80440b28407d36c5a0a2750afad754ad036ff08ec3f83611e60565b5050565b610d418261080e565b610d4a816115d6565b610d5483836116cb565b505050565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b610df561109d565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161480610e3b5750610e3a85610e3561109d565b610d59565b5b610e7a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e7190613d6e565b60405180910390fd5b610e878585858585611e6e565b5050505050565b610e9661109d565b73ffffffffffffffffffffffffffffffffffffffff16610eb4610c2e565b73ffffffffffffffffffffffffffffffffffffffff1614610f0a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f0190613e2e565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610f7a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f7190613d2e565b60405180910390fd5b610f8381611a7c565b50565b610f8e61109d565b73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161480610fd45750610fd383610fce61109d565b610d59565b5b611013576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161100a90613d6e565b60405180910390fd5b61101e83838361210a565b505050565b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611096575061109582612351565b5b9050919050565b600033905090565b80600290805190602001906110bb929190612dd9565b5050565b6060600280546110ce906142ac565b80601f01602080910402602001604051908101604052809291908181526020018280546110fa906142ac565b80156111475780601f1061111c57610100808354040283529160200191611147565b820191906000526020600020905b81548152906001019060200180831161112a57829003601f168201915b50505050509050919050565b6060600082141561119b576040518060400160405280600181526020017f300000000000000000000000000000000000000000000000000000000000000081525090506112af565b600082905060005b600082146111cd5780806111b69061430f565b915050600a826111c69190614103565b91506111a3565b60008167ffffffffffffffff8111156111e9576111e8614445565b5b6040519080825280601f01601f19166020018201604052801561121b5781602001600182028036833780820191505090505b5090505b600085146112a857600182611234919061418e565b9150600a856112439190614358565b603061124f91906140ad565b60f81b81838151811061126557611264614416565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a856112a19190614103565b945061121f565b8093505050505b919050565b81518351146112f8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112ef90613eae565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415611368576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161135f90613d8e565b60405180910390fd5b600061137261109d565b9050611382818787878787612433565b60005b84518110156115335760008582815181106113a3576113a2614416565b5b6020026020010151905060008583815181106113c2576113c1614416565b5b60200260200101519050600080600084815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015611463576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161145a90613dee565b60405180910390fd5b81810360008085815260200190815260200160002060008c73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508160008085815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461151891906140ad565b925050819055505050508061152c9061430f565b9050611385565b508473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb87876040516115aa929190613c1f565b60405180910390a46115c0818787878787612449565b6115ce818787878787612451565b505050505050565b6115e7816115e261109d565b612638565b50565b6115f48282610c58565b6116c75760016005600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555061166c61109d565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b6116d58282610c58565b156117a95760006005600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555061174e61109d565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561181d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161181490613dce565b60405180910390fd5b8051825114611861576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161185890613eae565b60405180910390fd5b600061186b61109d565b905061188b81856000868660405180602001604052806000815250612433565b60005b83518110156119d85760008482815181106118ac576118ab614416565b5b6020026020010151905060008483815181106118cb576118ca614416565b5b60200260200101519050600080600084815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490508181101561196c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161196390613d4e565b60405180910390fd5b81810360008085815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555050505080806119d09061430f565b91505061188e565b50600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8686604051611a50929190613c1f565b60405180910390a4611a7681856000868660405180602001604052806000815250612449565b50505050565b6000600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415611bb2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ba990613ece565b60405180910390fd5b6000611bbc61109d565b90506000611bc9856126d5565b90506000611bd6856126d5565b9050611be783600089858589612433565b8460008088815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611c4691906140ad565b925050819055508673ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628989604051611cc4929190613f29565b60405180910390a4611cdb83600089858589612449565b611cea8360008989898961274f565b50505050505050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415611d62576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d5990613e6e565b60405180910390fd5b80600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611e539190613c56565b60405180910390a3505050565b611e6a82826115ea565b5050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415611ede576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ed590613d8e565b60405180910390fd5b6000611ee861109d565b90506000611ef5856126d5565b90506000611f02856126d5565b9050611f12838989858589612433565b600080600088815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905085811015611fa9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fa090613dee565b60405180910390fd5b85810360008089815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508560008089815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461205e91906140ad565b925050819055508773ffffffffffffffffffffffffffffffffffffffff168973ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628a8a6040516120db929190613f29565b60405180910390a46120f1848a8a86868a612449565b6120ff848a8a8a8a8a61274f565b505050505050505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561217a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161217190613dce565b60405180910390fd5b600061218461109d565b90506000612191846126d5565b9050600061219e846126d5565b90506121be83876000858560405180602001604052806000815250612433565b600080600087815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905084811015612255576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161224c90613d4e565b60405180910390fd5b84810360008088815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600073ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628989604051612322929190613f29565b60405180910390a461234884886000868660405180602001604052806000815250612449565b50505050505050565b60007fd9b67a26000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061241c57507f0e89341c000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061242c575061242b82612936565b5b9050919050565b6124418686868686866129a0565b505050505050565b505050505050565b6124708473ffffffffffffffffffffffffffffffffffffffff16612b72565b15612630578373ffffffffffffffffffffffffffffffffffffffff1663bc197c8187878686866040518663ffffffff1660e01b81526004016124b6959493929190613b3b565b602060405180830381600087803b1580156124d057600080fd5b505af192505050801561250157506040513d601f19601f820116820180604052508101906124fe91906135dc565b60015b6125a75761250d614474565b806308c379a0141561256a5750612522614a8a565b8061252d575061256c565b806040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125619190613c8c565b60405180910390fd5b505b6040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161259e90613cae565b60405180910390fd5b63bc197c8160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161461262e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161262590613cee565b60405180910390fd5b505b505050505050565b6126428282610c58565b6126d1576126678173ffffffffffffffffffffffffffffffffffffffff166014612b95565b6126758360001c6020612b95565b604051602001612686929190613ae6565b6040516020818303038152906040526040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126c89190613c8c565b60405180910390fd5b5050565b60606000600167ffffffffffffffff8111156126f4576126f3614445565b5b6040519080825280602002602001820160405280156127225781602001602082028036833780820191505090505b509050828160008151811061273a57612739614416565b5b60200260200101818152505080915050919050565b61276e8473ffffffffffffffffffffffffffffffffffffffff16612b72565b1561292e578373ffffffffffffffffffffffffffffffffffffffff1663f23a6e6187878686866040518663ffffffff1660e01b81526004016127b4959493929190613ba3565b602060405180830381600087803b1580156127ce57600080fd5b505af19250505080156127ff57506040513d601f19601f820116820180604052508101906127fc91906135dc565b60015b6128a55761280b614474565b806308c379a014156128685750612820614a8a565b8061282b575061286a565b806040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161285f9190613c8c565b60405180910390fd5b505b6040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161289c90613cae565b60405180910390fd5b63f23a6e6160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161461292c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161292390613cee565b60405180910390fd5b505b505050505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6129ae868686868686612dd1565b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161415612a605760005b8351811015612a5e57828181518110612a0257612a01614416565b5b602002602001015160036000868481518110612a2157612a20614416565b5b602002602001015181526020019081526020016000206000828254612a4691906140ad565b9250508190555080612a579061430f565b90506129e6565b505b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415612b6a5760005b8351811015612b68576000848281518110612ab657612ab5614416565b5b602002602001015190506000848381518110612ad557612ad4614416565b5b6020026020010151905060006003600084815260200190815260200160002054905081811015612b3a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b3190613e4e565b60405180910390fd5b818103600360008581526020019081526020016000208190555050505080612b619061430f565b9050612a98565b505b505050505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b606060006002836002612ba89190614134565b612bb291906140ad565b67ffffffffffffffff811115612bcb57612bca614445565b5b6040519080825280601f01601f191660200182016040528015612bfd5781602001600182028036833780820191505090505b5090507f300000000000000000000000000000000000000000000000000000000000000081600081518110612c3557612c34614416565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110612c9957612c98614416565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060006001846002612cd99190614134565b612ce391906140ad565b90505b6001811115612d83577f3031323334353637383961626364656600000000000000000000000000000000600f861660108110612d2557612d24614416565b5b1a60f81b828281518110612d3c57612d3b614416565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c945080612d7c90614282565b9050612ce6565b5060008414612dc7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612dbe90613cce565b60405180910390fd5b8091505092915050565b505050505050565b828054612de5906142ac565b90600052602060002090601f016020900481019282612e075760008555612e4e565b82601f10612e2057805160ff1916838001178555612e4e565b82800160010185558215612e4e579182015b82811115612e4d578251825591602001919060010190612e32565b5b509050612e5b9190612e5f565b5090565b5b80821115612e78576000816000905550600101612e60565b5090565b6000612e8f612e8a84613f77565b613f52565b90508083825260208201905082856020860282011115612eb257612eb161449b565b5b60005b85811015612ee25781612ec88882612fe0565b845260208401935060208301925050600181019050612eb5565b5050509392505050565b6000612eff612efa84613fa3565b613f52565b90508083825260208201905082856020860282011115612f2257612f2161449b565b5b60005b85811015612f525781612f388882613101565b845260208401935060208301925050600181019050612f25565b5050509392505050565b6000612f6f612f6a84613fcf565b613f52565b905082815260208101848484011115612f8b57612f8a6144a0565b5b612f96848285614240565b509392505050565b6000612fb1612fac84614000565b613f52565b905082815260208101848484011115612fcd57612fcc6144a0565b5b612fd8848285614240565b509392505050565b600081359050612fef81614b20565b92915050565b600082601f83011261300a57613009614496565b5b813561301a848260208601612e7c565b91505092915050565b600082601f83011261303857613037614496565b5b8135613048848260208601612eec565b91505092915050565b60008135905061306081614b37565b92915050565b60008135905061307581614b4e565b92915050565b60008135905061308a81614b65565b92915050565b60008151905061309f81614b65565b92915050565b600082601f8301126130ba576130b9614496565b5b81356130ca848260208601612f5c565b91505092915050565b600082601f8301126130e8576130e7614496565b5b81356130f8848260208601612f9e565b91505092915050565b60008135905061311081614b7c565b92915050565b60006020828403121561312c5761312b6144aa565b5b600061313a84828501612fe0565b91505092915050565b6000806040838503121561315a576131596144aa565b5b600061316885828601612fe0565b925050602061317985828601612fe0565b9150509250929050565b600080600080600060a0868803121561319f5761319e6144aa565b5b60006131ad88828901612fe0565b95505060206131be88828901612fe0565b945050604086013567ffffffffffffffff8111156131df576131de6144a5565b5b6131eb88828901613023565b935050606086013567ffffffffffffffff81111561320c5761320b6144a5565b5b61321888828901613023565b925050608086013567ffffffffffffffff811115613239576132386144a5565b5b613245888289016130a5565b9150509295509295909350565b600080600080600060a0868803121561326e5761326d6144aa565b5b600061327c88828901612fe0565b955050602061328d88828901612fe0565b945050604061329e88828901613101565b93505060606132af88828901613101565b925050608086013567ffffffffffffffff8111156132d0576132cf6144a5565b5b6132dc888289016130a5565b9150509295509295909350565b600080600060608486031215613302576133016144aa565b5b600061331086828701612fe0565b935050602084013567ffffffffffffffff811115613331576133306144a5565b5b61333d86828701613023565b925050604084013567ffffffffffffffff81111561335e5761335d6144a5565b5b61336a86828701613023565b9150509250925092565b6000806040838503121561338b5761338a6144aa565b5b600061339985828601612fe0565b92505060206133aa85828601613051565b9150509250929050565b600080604083850312156133cb576133ca6144aa565b5b60006133d985828601612fe0565b92505060206133ea85828601613101565b9150509250929050565b60008060006060848603121561340d5761340c6144aa565b5b600061341b86828701612fe0565b935050602061342c86828701613101565b925050604061343d86828701613101565b9150509250925092565b60008060008060808587031215613461576134606144aa565b5b600061346f87828801612fe0565b945050602061348087828801613101565b935050604061349187828801613101565b925050606085013567ffffffffffffffff8111156134b2576134b16144a5565b5b6134be878288016130a5565b91505092959194509250565b600080604083850312156134e1576134e06144aa565b5b600083013567ffffffffffffffff8111156134ff576134fe6144a5565b5b61350b85828601612ff5565b925050602083013567ffffffffffffffff81111561352c5761352b6144a5565b5b61353885828601613023565b9150509250929050565b600060208284031215613558576135576144aa565b5b600061356684828501613066565b91505092915050565b60008060408385031215613586576135856144aa565b5b600061359485828601613066565b92505060206135a585828601612fe0565b9150509250929050565b6000602082840312156135c5576135c46144aa565b5b60006135d38482850161307b565b91505092915050565b6000602082840312156135f2576135f16144aa565b5b600061360084828501613090565b91505092915050565b60006020828403121561361f5761361e6144aa565b5b600082013567ffffffffffffffff81111561363d5761363c6144a5565b5b613649848285016130d3565b91505092915050565b600060208284031215613668576136676144aa565b5b600061367684828501613101565b91505092915050565b600061368b8383613aa4565b60208301905092915050565b6136a0816141c2565b82525050565b60006136b182614041565b6136bb818561406f565b93506136c683614031565b8060005b838110156136f75781516136de888261367f565b97506136e983614062565b9250506001810190506136ca565b5085935050505092915050565b61370d816141d4565b82525050565b61371c816141e0565b82525050565b600061372d8261404c565b6137378185614080565b935061374781856020860161424f565b613750816144af565b840191505092915050565b600061376682614057565b6137708185614091565b935061378081856020860161424f565b613789816144af565b840191505092915050565b600061379f82614057565b6137a981856140a2565b93506137b981856020860161424f565b80840191505092915050565b60006137d2603483614091565b91506137dd826144cd565b604082019050919050565b60006137f5602083614091565b91506138008261451c565b602082019050919050565b6000613818602883614091565b915061382382614545565b604082019050919050565b600061383b602b83614091565b915061384682614594565b604082019050919050565b600061385e602683614091565b9150613869826145e3565b604082019050919050565b6000613881602483614091565b915061388c82614632565b604082019050919050565b60006138a4602983614091565b91506138af82614681565b604082019050919050565b60006138c7602583614091565b91506138d2826146d0565b604082019050919050565b60006138ea603283614091565b91506138f58261471f565b604082019050919050565b600061390d602383614091565b91506139188261476e565b604082019050919050565b6000613930602a83614091565b915061393b826147bd565b604082019050919050565b6000613953601183614091565b915061395e8261480c565b602082019050919050565b6000613976602083614091565b915061398182614835565b602082019050919050565b6000613999602883614091565b91506139a48261485e565b604082019050919050565b60006139bc6017836140a2565b91506139c7826148ad565b601782019050919050565b60006139df602983614091565b91506139ea826148d6565b604082019050919050565b6000613a02602983614091565b9150613a0d82614925565b604082019050919050565b6000613a25602883614091565b9150613a3082614974565b604082019050919050565b6000613a48602183614091565b9150613a53826149c3565b604082019050919050565b6000613a6b6011836140a2565b9150613a7682614a12565b601182019050919050565b6000613a8e602f83614091565b9150613a9982614a3b565b604082019050919050565b613aad81614236565b82525050565b613abc81614236565b82525050565b6000613ace8285613794565b9150613ada8284613794565b91508190509392505050565b6000613af1826139af565b9150613afd8285613794565b9150613b0882613a5e565b9150613b148284613794565b91508190509392505050565b6000602082019050613b356000830184613697565b92915050565b600060a082019050613b506000830188613697565b613b5d6020830187613697565b8181036040830152613b6f81866136a6565b90508181036060830152613b8381856136a6565b90508181036080830152613b978184613722565b90509695505050505050565b600060a082019050613bb86000830188613697565b613bc56020830187613697565b613bd26040830186613ab3565b613bdf6060830185613ab3565b8181036080830152613bf18184613722565b90509695505050505050565b60006020820190508181036000830152613c1781846136a6565b905092915050565b60006040820190508181036000830152613c3981856136a6565b90508181036020830152613c4d81846136a6565b90509392505050565b6000602082019050613c6b6000830184613704565b92915050565b6000602082019050613c866000830184613713565b92915050565b60006020820190508181036000830152613ca6818461375b565b905092915050565b60006020820190508181036000830152613cc7816137c5565b9050919050565b60006020820190508181036000830152613ce7816137e8565b9050919050565b60006020820190508181036000830152613d078161380b565b9050919050565b60006020820190508181036000830152613d278161382e565b9050919050565b60006020820190508181036000830152613d4781613851565b9050919050565b60006020820190508181036000830152613d6781613874565b9050919050565b60006020820190508181036000830152613d8781613897565b9050919050565b60006020820190508181036000830152613da7816138ba565b9050919050565b60006020820190508181036000830152613dc7816138dd565b9050919050565b60006020820190508181036000830152613de781613900565b9050919050565b60006020820190508181036000830152613e0781613923565b9050919050565b60006020820190508181036000830152613e2781613946565b9050919050565b60006020820190508181036000830152613e4781613969565b9050919050565b60006020820190508181036000830152613e678161398c565b9050919050565b60006020820190508181036000830152613e87816139d2565b9050919050565b60006020820190508181036000830152613ea7816139f5565b9050919050565b60006020820190508181036000830152613ec781613a18565b9050919050565b60006020820190508181036000830152613ee781613a3b565b9050919050565b60006020820190508181036000830152613f0781613a81565b9050919050565b6000602082019050613f236000830184613ab3565b92915050565b6000604082019050613f3e6000830185613ab3565b613f4b6020830184613ab3565b9392505050565b6000613f5c613f6d565b9050613f6882826142de565b919050565b6000604051905090565b600067ffffffffffffffff821115613f9257613f91614445565b5b602082029050602081019050919050565b600067ffffffffffffffff821115613fbe57613fbd614445565b5b602082029050602081019050919050565b600067ffffffffffffffff821115613fea57613fe9614445565b5b613ff3826144af565b9050602081019050919050565b600067ffffffffffffffff82111561401b5761401a614445565b5b614024826144af565b9050602081019050919050565b6000819050602082019050919050565b600081519050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b60006140b882614236565b91506140c383614236565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156140f8576140f7614389565b5b828201905092915050565b600061410e82614236565b915061411983614236565b925082614129576141286143b8565b5b828204905092915050565b600061413f82614236565b915061414a83614236565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561418357614182614389565b5b828202905092915050565b600061419982614236565b91506141a483614236565b9250828210156141b7576141b6614389565b5b828203905092915050565b60006141cd82614216565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b82818337600083830152505050565b60005b8381101561426d578082015181840152602081019050614252565b8381111561427c576000848401525b50505050565b600061428d82614236565b915060008214156142a1576142a0614389565b5b600182039050919050565b600060028204905060018216806142c457607f821691505b602082108114156142d8576142d76143e7565b5b50919050565b6142e7826144af565b810181811067ffffffffffffffff8211171561430657614305614445565b5b80604052505050565b600061431a82614236565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561434d5761434c614389565b5b600182019050919050565b600061436382614236565b915061436e83614236565b92508261437e5761437d6143b8565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600060033d11156144935760046000803e6144906000516144c0565b90505b90565b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b60008160e01c9050919050565b7f455243313135353a207472616e7366657220746f206e6f6e204552433131353560008201527f526563656976657220696d706c656d656e746572000000000000000000000000602082015250565b7f537472696e67733a20686578206c656e67746820696e73756666696369656e74600082015250565b7f455243313135353a204552433131353552656365697665722072656a6563746560008201527f6420746f6b656e73000000000000000000000000000000000000000000000000602082015250565b7f455243313135353a2062616c616e636520717565727920666f7220746865207a60008201527f65726f2061646472657373000000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f455243313135353a206275726e20616d6f756e7420657863656564732062616c60008201527f616e636500000000000000000000000000000000000000000000000000000000602082015250565b7f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260008201527f20617070726f7665640000000000000000000000000000000000000000000000602082015250565b7f455243313135353a207472616e7366657220746f20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b7f455243313135353a207472616e736665722063616c6c6572206973206e6f742060008201527f6f776e6572206e6f7220617070726f7665640000000000000000000000000000602082015250565b7f455243313135353a206275726e2066726f6d20746865207a65726f206164647260008201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b7f455243313135353a20696e73756666696369656e742062616c616e636520666f60008201527f72207472616e7366657200000000000000000000000000000000000000000000602082015250565b7f4e6f6e6578697374656e7420546f6b656e000000000000000000000000000000600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f455243313135353a206275726e20616d6f756e74206578636565647320746f7460008201527f616c537570706c79000000000000000000000000000000000000000000000000602082015250565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000600082015250565b7f455243313135353a2073657474696e6720617070726f76616c2073746174757360008201527f20666f722073656c660000000000000000000000000000000000000000000000602082015250565b7f455243313135353a206163636f756e747320616e6420696473206c656e67746860008201527f206d69736d617463680000000000000000000000000000000000000000000000602082015250565b7f455243313135353a2069647320616e6420616d6f756e7473206c656e6774682060008201527f6d69736d61746368000000000000000000000000000000000000000000000000602082015250565b7f455243313135353a206d696e7420746f20746865207a65726f2061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000600082015250565b7f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560008201527f20726f6c657320666f722073656c660000000000000000000000000000000000602082015250565b600060443d1015614a9a57614b1d565b614aa2613f6d565b60043d036004823e80513d602482011167ffffffffffffffff82111715614aca575050614b1d565b808201805167ffffffffffffffff811115614ae85750505050614b1d565b80602083010160043d038501811115614b05575050505050614b1d565b614b14826020018501866142de565b82955050505050505b90565b614b29816141c2565b8114614b3457600080fd5b50565b614b40816141d4565b8114614b4b57600080fd5b50565b614b57816141e0565b8114614b6257600080fd5b50565b614b6e816141ea565b8114614b7957600080fd5b50565b614b8581614236565b8114614b9057600080fd5b5056fea2646970667358221220b729209228ab4cfb28fe05380ce8c3263daa2c4cbd5367973f3fd0be680e7f1e64736f6c63430008070033697066733a2f2f516d61424b3774397a766f4e366378386a6b636b625348457a35524b34326451567a3556436336765a7256756b7a2f

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101725760003560e01c8063715018a6116100de578063bd85b03911610097578063e985e9c511610071578063e985e9c51461046b578063f242432a1461049b578063f2fde38b146104b7578063f5298aca146104d357610172565b8063bd85b03914610403578063c5d6d7c614610433578063d547741f1461044f57610172565b8063715018a614610341578063731133e91461034b5780638da5cb5b1461037b57806391d1485414610399578063a217fddf146103c9578063a22cb465146103e757610172565b80632f2ff15d116101305780632f2ff15d1461026f57806336568abe1461028b57806341a0e00a146102a75780634e1273f4146102c55780634f558e79146102f55780636b20c4541461032557610172565b8062fdd58e1461017757806301ffc9a7146101a757806302fe5305146101d75780630e89341c146101f3578063248a9ca3146102235780632eb2c2d614610253575b600080fd5b610191600480360381019061018c91906133b4565b6104ef565b60405161019e9190613f0e565b60405180910390f35b6101c160048036038101906101bc91906135af565b6105b8565b6040516101ce9190613c56565b60405180910390f35b6101f160048036038101906101ec9190613609565b610702565b005b61020d60048036038101906102089190613652565b61078a565b60405161021a9190613c8c565b60405180910390f35b61023d60048036038101906102389190613542565b61080e565b60405161024a9190613c71565b60405180910390f35b61026d60048036038101906102689190613183565b61082e565b005b6102896004803603810190610284919061356f565b6108cf565b005b6102a560048036038101906102a0919061356f565b6108f0565b005b6102af610973565b6040516102bc9190613c71565b60405180910390f35b6102df60048036038101906102da91906134ca565b610997565b6040516102ec9190613bfd565b60405180910390f35b61030f600480360381019061030a9190613652565b610ab0565b60405161031c9190613c56565b60405180910390f35b61033f600480360381019061033a91906132e9565b610ac4565b005b610349610b61565b005b61036560048036038101906103609190613447565b610be9565b6040516103729190613c56565b60405180910390f35b610383610c2e565b6040516103909190613b20565b60405180910390f35b6103b360048036038101906103ae919061356f565b610c58565b6040516103c09190613c56565b60405180910390f35b6103d1610cc3565b6040516103de9190613c71565b60405180910390f35b61040160048036038101906103fc9190613374565b610cca565b005b61041d60048036038101906104189190613652565b610ce0565b60405161042a9190613f0e565b60405180910390f35b61044d60048036038101906104489190613116565b610cfd565b005b6104696004803603810190610464919061356f565b610d38565b005b61048560048036038101906104809190613143565b610d59565b6040516104929190613c56565b60405180910390f35b6104b560048036038101906104b09190613252565b610ded565b005b6104d160048036038101906104cc9190613116565b610e8e565b005b6104ed60048036038101906104e891906133f4565b610f86565b005b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610560576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161055790613d0e565b60405180910390fd5b60008083815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b60007fd9b67a26000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061068357507f0e89341c000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806106eb57507f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806106fb57506106fa82611023565b5b9050919050565b61070a61109d565b73ffffffffffffffffffffffffffffffffffffffff16610728610c2e565b73ffffffffffffffffffffffffffffffffffffffff161461077e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161077590613e2e565b60405180910390fd5b610787816110a5565b50565b606061079582610ab0565b6107d4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107cb90613e0e565b60405180910390fd5b6107de60006110bf565b6107e783611153565b6040516020016107f8929190613ac2565b6040516020818303038152906040529050919050565b600060056000838152602001908152602001600020600101549050919050565b61083661109d565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16148061087c575061087b8561087661109d565b610d59565b5b6108bb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108b290613dae565b60405180910390fd5b6108c885858585856112b4565b5050505050565b6108d88261080e565b6108e1816115d6565b6108eb83836115ea565b505050565b6108f861109d565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610965576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161095c90613eee565b60405180910390fd5b61096f82826116cb565b5050565b7fe5dd4be1462c58a0c462c80440b28407d36c5a0a2750afad754ad036ff08ec3f81565b606081518351146109dd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109d490613e8e565b60405180910390fd5b6000835167ffffffffffffffff8111156109fa576109f9614445565b5b604051908082528060200260200182016040528015610a285781602001602082028036833780820191505090505b50905060005b8451811015610aa557610a75858281518110610a4d57610a4c614416565b5b6020026020010151858381518110610a6857610a67614416565b5b60200260200101516104ef565b828281518110610a8857610a87614416565b5b60200260200101818152505080610a9e9061430f565b9050610a2e565b508091505092915050565b600080610abc83610ce0565b119050919050565b610acc61109d565b73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161480610b125750610b1183610b0c61109d565b610d59565b5b610b51576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b4890613d6e565b60405180910390fd5b610b5c8383836117ad565b505050565b610b6961109d565b73ffffffffffffffffffffffffffffffffffffffff16610b87610c2e565b73ffffffffffffffffffffffffffffffffffffffff1614610bdd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bd490613e2e565b60405180910390fd5b610be76000611a7c565b565b60007fe5dd4be1462c58a0c462c80440b28407d36c5a0a2750afad754ad036ff08ec3f610c15816115d6565b610c2186868686611b42565b6001915050949350505050565b6000600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60006005600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6000801b81565b610cdc610cd561109d565b8383611cf3565b5050565b600060036000838152602001908152602001600020549050919050565b6000801b610d0a816115d6565b610d347fe5dd4be1462c58a0c462c80440b28407d36c5a0a2750afad754ad036ff08ec3f83611e60565b5050565b610d418261080e565b610d4a816115d6565b610d5483836116cb565b505050565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b610df561109d565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161480610e3b5750610e3a85610e3561109d565b610d59565b5b610e7a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e7190613d6e565b60405180910390fd5b610e878585858585611e6e565b5050505050565b610e9661109d565b73ffffffffffffffffffffffffffffffffffffffff16610eb4610c2e565b73ffffffffffffffffffffffffffffffffffffffff1614610f0a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f0190613e2e565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610f7a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f7190613d2e565b60405180910390fd5b610f8381611a7c565b50565b610f8e61109d565b73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161480610fd45750610fd383610fce61109d565b610d59565b5b611013576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161100a90613d6e565b60405180910390fd5b61101e83838361210a565b505050565b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611096575061109582612351565b5b9050919050565b600033905090565b80600290805190602001906110bb929190612dd9565b5050565b6060600280546110ce906142ac565b80601f01602080910402602001604051908101604052809291908181526020018280546110fa906142ac565b80156111475780601f1061111c57610100808354040283529160200191611147565b820191906000526020600020905b81548152906001019060200180831161112a57829003601f168201915b50505050509050919050565b6060600082141561119b576040518060400160405280600181526020017f300000000000000000000000000000000000000000000000000000000000000081525090506112af565b600082905060005b600082146111cd5780806111b69061430f565b915050600a826111c69190614103565b91506111a3565b60008167ffffffffffffffff8111156111e9576111e8614445565b5b6040519080825280601f01601f19166020018201604052801561121b5781602001600182028036833780820191505090505b5090505b600085146112a857600182611234919061418e565b9150600a856112439190614358565b603061124f91906140ad565b60f81b81838151811061126557611264614416565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a856112a19190614103565b945061121f565b8093505050505b919050565b81518351146112f8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112ef90613eae565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415611368576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161135f90613d8e565b60405180910390fd5b600061137261109d565b9050611382818787878787612433565b60005b84518110156115335760008582815181106113a3576113a2614416565b5b6020026020010151905060008583815181106113c2576113c1614416565b5b60200260200101519050600080600084815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015611463576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161145a90613dee565b60405180910390fd5b81810360008085815260200190815260200160002060008c73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508160008085815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461151891906140ad565b925050819055505050508061152c9061430f565b9050611385565b508473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb87876040516115aa929190613c1f565b60405180910390a46115c0818787878787612449565b6115ce818787878787612451565b505050505050565b6115e7816115e261109d565b612638565b50565b6115f48282610c58565b6116c75760016005600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555061166c61109d565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b6116d58282610c58565b156117a95760006005600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555061174e61109d565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561181d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161181490613dce565b60405180910390fd5b8051825114611861576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161185890613eae565b60405180910390fd5b600061186b61109d565b905061188b81856000868660405180602001604052806000815250612433565b60005b83518110156119d85760008482815181106118ac576118ab614416565b5b6020026020010151905060008483815181106118cb576118ca614416565b5b60200260200101519050600080600084815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490508181101561196c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161196390613d4e565b60405180910390fd5b81810360008085815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555050505080806119d09061430f565b91505061188e565b50600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8686604051611a50929190613c1f565b60405180910390a4611a7681856000868660405180602001604052806000815250612449565b50505050565b6000600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415611bb2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ba990613ece565b60405180910390fd5b6000611bbc61109d565b90506000611bc9856126d5565b90506000611bd6856126d5565b9050611be783600089858589612433565b8460008088815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611c4691906140ad565b925050819055508673ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628989604051611cc4929190613f29565b60405180910390a4611cdb83600089858589612449565b611cea8360008989898961274f565b50505050505050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415611d62576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d5990613e6e565b60405180910390fd5b80600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611e539190613c56565b60405180910390a3505050565b611e6a82826115ea565b5050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415611ede576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ed590613d8e565b60405180910390fd5b6000611ee861109d565b90506000611ef5856126d5565b90506000611f02856126d5565b9050611f12838989858589612433565b600080600088815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905085811015611fa9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fa090613dee565b60405180910390fd5b85810360008089815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508560008089815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461205e91906140ad565b925050819055508773ffffffffffffffffffffffffffffffffffffffff168973ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628a8a6040516120db929190613f29565b60405180910390a46120f1848a8a86868a612449565b6120ff848a8a8a8a8a61274f565b505050505050505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561217a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161217190613dce565b60405180910390fd5b600061218461109d565b90506000612191846126d5565b9050600061219e846126d5565b90506121be83876000858560405180602001604052806000815250612433565b600080600087815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905084811015612255576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161224c90613d4e565b60405180910390fd5b84810360008088815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600073ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628989604051612322929190613f29565b60405180910390a461234884886000868660405180602001604052806000815250612449565b50505050505050565b60007fd9b67a26000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061241c57507f0e89341c000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061242c575061242b82612936565b5b9050919050565b6124418686868686866129a0565b505050505050565b505050505050565b6124708473ffffffffffffffffffffffffffffffffffffffff16612b72565b15612630578373ffffffffffffffffffffffffffffffffffffffff1663bc197c8187878686866040518663ffffffff1660e01b81526004016124b6959493929190613b3b565b602060405180830381600087803b1580156124d057600080fd5b505af192505050801561250157506040513d601f19601f820116820180604052508101906124fe91906135dc565b60015b6125a75761250d614474565b806308c379a0141561256a5750612522614a8a565b8061252d575061256c565b806040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125619190613c8c565b60405180910390fd5b505b6040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161259e90613cae565b60405180910390fd5b63bc197c8160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161461262e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161262590613cee565b60405180910390fd5b505b505050505050565b6126428282610c58565b6126d1576126678173ffffffffffffffffffffffffffffffffffffffff166014612b95565b6126758360001c6020612b95565b604051602001612686929190613ae6565b6040516020818303038152906040526040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126c89190613c8c565b60405180910390fd5b5050565b60606000600167ffffffffffffffff8111156126f4576126f3614445565b5b6040519080825280602002602001820160405280156127225781602001602082028036833780820191505090505b509050828160008151811061273a57612739614416565b5b60200260200101818152505080915050919050565b61276e8473ffffffffffffffffffffffffffffffffffffffff16612b72565b1561292e578373ffffffffffffffffffffffffffffffffffffffff1663f23a6e6187878686866040518663ffffffff1660e01b81526004016127b4959493929190613ba3565b602060405180830381600087803b1580156127ce57600080fd5b505af19250505080156127ff57506040513d601f19601f820116820180604052508101906127fc91906135dc565b60015b6128a55761280b614474565b806308c379a014156128685750612820614a8a565b8061282b575061286a565b806040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161285f9190613c8c565b60405180910390fd5b505b6040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161289c90613cae565b60405180910390fd5b63f23a6e6160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161461292c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161292390613cee565b60405180910390fd5b505b505050505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6129ae868686868686612dd1565b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161415612a605760005b8351811015612a5e57828181518110612a0257612a01614416565b5b602002602001015160036000868481518110612a2157612a20614416565b5b602002602001015181526020019081526020016000206000828254612a4691906140ad565b9250508190555080612a579061430f565b90506129e6565b505b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415612b6a5760005b8351811015612b68576000848281518110612ab657612ab5614416565b5b602002602001015190506000848381518110612ad557612ad4614416565b5b6020026020010151905060006003600084815260200190815260200160002054905081811015612b3a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b3190613e4e565b60405180910390fd5b818103600360008581526020019081526020016000208190555050505080612b619061430f565b9050612a98565b505b505050505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b606060006002836002612ba89190614134565b612bb291906140ad565b67ffffffffffffffff811115612bcb57612bca614445565b5b6040519080825280601f01601f191660200182016040528015612bfd5781602001600182028036833780820191505090505b5090507f300000000000000000000000000000000000000000000000000000000000000081600081518110612c3557612c34614416565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110612c9957612c98614416565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060006001846002612cd99190614134565b612ce391906140ad565b90505b6001811115612d83577f3031323334353637383961626364656600000000000000000000000000000000600f861660108110612d2557612d24614416565b5b1a60f81b828281518110612d3c57612d3b614416565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c945080612d7c90614282565b9050612ce6565b5060008414612dc7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612dbe90613cce565b60405180910390fd5b8091505092915050565b505050505050565b828054612de5906142ac565b90600052602060002090601f016020900481019282612e075760008555612e4e565b82601f10612e2057805160ff1916838001178555612e4e565b82800160010185558215612e4e579182015b82811115612e4d578251825591602001919060010190612e32565b5b509050612e5b9190612e5f565b5090565b5b80821115612e78576000816000905550600101612e60565b5090565b6000612e8f612e8a84613f77565b613f52565b90508083825260208201905082856020860282011115612eb257612eb161449b565b5b60005b85811015612ee25781612ec88882612fe0565b845260208401935060208301925050600181019050612eb5565b5050509392505050565b6000612eff612efa84613fa3565b613f52565b90508083825260208201905082856020860282011115612f2257612f2161449b565b5b60005b85811015612f525781612f388882613101565b845260208401935060208301925050600181019050612f25565b5050509392505050565b6000612f6f612f6a84613fcf565b613f52565b905082815260208101848484011115612f8b57612f8a6144a0565b5b612f96848285614240565b509392505050565b6000612fb1612fac84614000565b613f52565b905082815260208101848484011115612fcd57612fcc6144a0565b5b612fd8848285614240565b509392505050565b600081359050612fef81614b20565b92915050565b600082601f83011261300a57613009614496565b5b813561301a848260208601612e7c565b91505092915050565b600082601f83011261303857613037614496565b5b8135613048848260208601612eec565b91505092915050565b60008135905061306081614b37565b92915050565b60008135905061307581614b4e565b92915050565b60008135905061308a81614b65565b92915050565b60008151905061309f81614b65565b92915050565b600082601f8301126130ba576130b9614496565b5b81356130ca848260208601612f5c565b91505092915050565b600082601f8301126130e8576130e7614496565b5b81356130f8848260208601612f9e565b91505092915050565b60008135905061311081614b7c565b92915050565b60006020828403121561312c5761312b6144aa565b5b600061313a84828501612fe0565b91505092915050565b6000806040838503121561315a576131596144aa565b5b600061316885828601612fe0565b925050602061317985828601612fe0565b9150509250929050565b600080600080600060a0868803121561319f5761319e6144aa565b5b60006131ad88828901612fe0565b95505060206131be88828901612fe0565b945050604086013567ffffffffffffffff8111156131df576131de6144a5565b5b6131eb88828901613023565b935050606086013567ffffffffffffffff81111561320c5761320b6144a5565b5b61321888828901613023565b925050608086013567ffffffffffffffff811115613239576132386144a5565b5b613245888289016130a5565b9150509295509295909350565b600080600080600060a0868803121561326e5761326d6144aa565b5b600061327c88828901612fe0565b955050602061328d88828901612fe0565b945050604061329e88828901613101565b93505060606132af88828901613101565b925050608086013567ffffffffffffffff8111156132d0576132cf6144a5565b5b6132dc888289016130a5565b9150509295509295909350565b600080600060608486031215613302576133016144aa565b5b600061331086828701612fe0565b935050602084013567ffffffffffffffff811115613331576133306144a5565b5b61333d86828701613023565b925050604084013567ffffffffffffffff81111561335e5761335d6144a5565b5b61336a86828701613023565b9150509250925092565b6000806040838503121561338b5761338a6144aa565b5b600061339985828601612fe0565b92505060206133aa85828601613051565b9150509250929050565b600080604083850312156133cb576133ca6144aa565b5b60006133d985828601612fe0565b92505060206133ea85828601613101565b9150509250929050565b60008060006060848603121561340d5761340c6144aa565b5b600061341b86828701612fe0565b935050602061342c86828701613101565b925050604061343d86828701613101565b9150509250925092565b60008060008060808587031215613461576134606144aa565b5b600061346f87828801612fe0565b945050602061348087828801613101565b935050604061349187828801613101565b925050606085013567ffffffffffffffff8111156134b2576134b16144a5565b5b6134be878288016130a5565b91505092959194509250565b600080604083850312156134e1576134e06144aa565b5b600083013567ffffffffffffffff8111156134ff576134fe6144a5565b5b61350b85828601612ff5565b925050602083013567ffffffffffffffff81111561352c5761352b6144a5565b5b61353885828601613023565b9150509250929050565b600060208284031215613558576135576144aa565b5b600061356684828501613066565b91505092915050565b60008060408385031215613586576135856144aa565b5b600061359485828601613066565b92505060206135a585828601612fe0565b9150509250929050565b6000602082840312156135c5576135c46144aa565b5b60006135d38482850161307b565b91505092915050565b6000602082840312156135f2576135f16144aa565b5b600061360084828501613090565b91505092915050565b60006020828403121561361f5761361e6144aa565b5b600082013567ffffffffffffffff81111561363d5761363c6144a5565b5b613649848285016130d3565b91505092915050565b600060208284031215613668576136676144aa565b5b600061367684828501613101565b91505092915050565b600061368b8383613aa4565b60208301905092915050565b6136a0816141c2565b82525050565b60006136b182614041565b6136bb818561406f565b93506136c683614031565b8060005b838110156136f75781516136de888261367f565b97506136e983614062565b9250506001810190506136ca565b5085935050505092915050565b61370d816141d4565b82525050565b61371c816141e0565b82525050565b600061372d8261404c565b6137378185614080565b935061374781856020860161424f565b613750816144af565b840191505092915050565b600061376682614057565b6137708185614091565b935061378081856020860161424f565b613789816144af565b840191505092915050565b600061379f82614057565b6137a981856140a2565b93506137b981856020860161424f565b80840191505092915050565b60006137d2603483614091565b91506137dd826144cd565b604082019050919050565b60006137f5602083614091565b91506138008261451c565b602082019050919050565b6000613818602883614091565b915061382382614545565b604082019050919050565b600061383b602b83614091565b915061384682614594565b604082019050919050565b600061385e602683614091565b9150613869826145e3565b604082019050919050565b6000613881602483614091565b915061388c82614632565b604082019050919050565b60006138a4602983614091565b91506138af82614681565b604082019050919050565b60006138c7602583614091565b91506138d2826146d0565b604082019050919050565b60006138ea603283614091565b91506138f58261471f565b604082019050919050565b600061390d602383614091565b91506139188261476e565b604082019050919050565b6000613930602a83614091565b915061393b826147bd565b604082019050919050565b6000613953601183614091565b915061395e8261480c565b602082019050919050565b6000613976602083614091565b915061398182614835565b602082019050919050565b6000613999602883614091565b91506139a48261485e565b604082019050919050565b60006139bc6017836140a2565b91506139c7826148ad565b601782019050919050565b60006139df602983614091565b91506139ea826148d6565b604082019050919050565b6000613a02602983614091565b9150613a0d82614925565b604082019050919050565b6000613a25602883614091565b9150613a3082614974565b604082019050919050565b6000613a48602183614091565b9150613a53826149c3565b604082019050919050565b6000613a6b6011836140a2565b9150613a7682614a12565b601182019050919050565b6000613a8e602f83614091565b9150613a9982614a3b565b604082019050919050565b613aad81614236565b82525050565b613abc81614236565b82525050565b6000613ace8285613794565b9150613ada8284613794565b91508190509392505050565b6000613af1826139af565b9150613afd8285613794565b9150613b0882613a5e565b9150613b148284613794565b91508190509392505050565b6000602082019050613b356000830184613697565b92915050565b600060a082019050613b506000830188613697565b613b5d6020830187613697565b8181036040830152613b6f81866136a6565b90508181036060830152613b8381856136a6565b90508181036080830152613b978184613722565b90509695505050505050565b600060a082019050613bb86000830188613697565b613bc56020830187613697565b613bd26040830186613ab3565b613bdf6060830185613ab3565b8181036080830152613bf18184613722565b90509695505050505050565b60006020820190508181036000830152613c1781846136a6565b905092915050565b60006040820190508181036000830152613c3981856136a6565b90508181036020830152613c4d81846136a6565b90509392505050565b6000602082019050613c6b6000830184613704565b92915050565b6000602082019050613c866000830184613713565b92915050565b60006020820190508181036000830152613ca6818461375b565b905092915050565b60006020820190508181036000830152613cc7816137c5565b9050919050565b60006020820190508181036000830152613ce7816137e8565b9050919050565b60006020820190508181036000830152613d078161380b565b9050919050565b60006020820190508181036000830152613d278161382e565b9050919050565b60006020820190508181036000830152613d4781613851565b9050919050565b60006020820190508181036000830152613d6781613874565b9050919050565b60006020820190508181036000830152613d8781613897565b9050919050565b60006020820190508181036000830152613da7816138ba565b9050919050565b60006020820190508181036000830152613dc7816138dd565b9050919050565b60006020820190508181036000830152613de781613900565b9050919050565b60006020820190508181036000830152613e0781613923565b9050919050565b60006020820190508181036000830152613e2781613946565b9050919050565b60006020820190508181036000830152613e4781613969565b9050919050565b60006020820190508181036000830152613e678161398c565b9050919050565b60006020820190508181036000830152613e87816139d2565b9050919050565b60006020820190508181036000830152613ea7816139f5565b9050919050565b60006020820190508181036000830152613ec781613a18565b9050919050565b60006020820190508181036000830152613ee781613a3b565b9050919050565b60006020820190508181036000830152613f0781613a81565b9050919050565b6000602082019050613f236000830184613ab3565b92915050565b6000604082019050613f3e6000830185613ab3565b613f4b6020830184613ab3565b9392505050565b6000613f5c613f6d565b9050613f6882826142de565b919050565b6000604051905090565b600067ffffffffffffffff821115613f9257613f91614445565b5b602082029050602081019050919050565b600067ffffffffffffffff821115613fbe57613fbd614445565b5b602082029050602081019050919050565b600067ffffffffffffffff821115613fea57613fe9614445565b5b613ff3826144af565b9050602081019050919050565b600067ffffffffffffffff82111561401b5761401a614445565b5b614024826144af565b9050602081019050919050565b6000819050602082019050919050565b600081519050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b60006140b882614236565b91506140c383614236565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156140f8576140f7614389565b5b828201905092915050565b600061410e82614236565b915061411983614236565b925082614129576141286143b8565b5b828204905092915050565b600061413f82614236565b915061414a83614236565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561418357614182614389565b5b828202905092915050565b600061419982614236565b91506141a483614236565b9250828210156141b7576141b6614389565b5b828203905092915050565b60006141cd82614216565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b82818337600083830152505050565b60005b8381101561426d578082015181840152602081019050614252565b8381111561427c576000848401525b50505050565b600061428d82614236565b915060008214156142a1576142a0614389565b5b600182039050919050565b600060028204905060018216806142c457607f821691505b602082108114156142d8576142d76143e7565b5b50919050565b6142e7826144af565b810181811067ffffffffffffffff8211171561430657614305614445565b5b80604052505050565b600061431a82614236565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561434d5761434c614389565b5b600182019050919050565b600061436382614236565b915061436e83614236565b92508261437e5761437d6143b8565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600060033d11156144935760046000803e6144906000516144c0565b90505b90565b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b60008160e01c9050919050565b7f455243313135353a207472616e7366657220746f206e6f6e204552433131353560008201527f526563656976657220696d706c656d656e746572000000000000000000000000602082015250565b7f537472696e67733a20686578206c656e67746820696e73756666696369656e74600082015250565b7f455243313135353a204552433131353552656365697665722072656a6563746560008201527f6420746f6b656e73000000000000000000000000000000000000000000000000602082015250565b7f455243313135353a2062616c616e636520717565727920666f7220746865207a60008201527f65726f2061646472657373000000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f455243313135353a206275726e20616d6f756e7420657863656564732062616c60008201527f616e636500000000000000000000000000000000000000000000000000000000602082015250565b7f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260008201527f20617070726f7665640000000000000000000000000000000000000000000000602082015250565b7f455243313135353a207472616e7366657220746f20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b7f455243313135353a207472616e736665722063616c6c6572206973206e6f742060008201527f6f776e6572206e6f7220617070726f7665640000000000000000000000000000602082015250565b7f455243313135353a206275726e2066726f6d20746865207a65726f206164647260008201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b7f455243313135353a20696e73756666696369656e742062616c616e636520666f60008201527f72207472616e7366657200000000000000000000000000000000000000000000602082015250565b7f4e6f6e6578697374656e7420546f6b656e000000000000000000000000000000600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f455243313135353a206275726e20616d6f756e74206578636565647320746f7460008201527f616c537570706c79000000000000000000000000000000000000000000000000602082015250565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000600082015250565b7f455243313135353a2073657474696e6720617070726f76616c2073746174757360008201527f20666f722073656c660000000000000000000000000000000000000000000000602082015250565b7f455243313135353a206163636f756e747320616e6420696473206c656e67746860008201527f206d69736d617463680000000000000000000000000000000000000000000000602082015250565b7f455243313135353a2069647320616e6420616d6f756e7473206c656e6774682060008201527f6d69736d61746368000000000000000000000000000000000000000000000000602082015250565b7f455243313135353a206d696e7420746f20746865207a65726f2061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000600082015250565b7f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560008201527f20726f6c657320666f722073656c660000000000000000000000000000000000602082015250565b600060443d1015614a9a57614b1d565b614aa2613f6d565b60043d036004823e80513d602482011167ffffffffffffffff82111715614aca575050614b1d565b808201805167ffffffffffffffff811115614ae85750505050614b1d565b80602083010160043d038501811115614b05575050505050614b1d565b614b14826020018501866142de565b82955050505050505b90565b614b29816141c2565b8114614b3457600080fd5b50565b614b40816141d4565b8114614b4b57600080fd5b50565b614b57816141e0565b8114614b6257600080fd5b50565b614b6e816141ea565b8114614b7957600080fd5b50565b614b8581614236565b8114614b9057600080fd5b5056fea2646970667358221220b729209228ab4cfb28fe05380ce8c3263daa2c4cbd5367973f3fd0be680e7f1e64736f6c63430008070033

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.