ETH Price: $3,370.78 (+0.62%)
Gas: 8 Gwei

Contract

0x01FF4d922966F4FaaA5701307e28Bbb4f5cb36A7
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Safe Transfer Fr...198872862024-05-17 4:22:4760 days ago1715919767IN
0x01FF4d92...4f5cb36A7
0 ETH0.000179043.04844405
Mint197745292024-05-01 9:57:1175 days ago1714557431IN
0x01FF4d92...4f5cb36A7
0 ETH0.0804968400
Set Approval For...197313652024-04-25 9:04:1181 days ago1714035851IN
0x01FF4d92...4f5cb36A7
0 ETH0.0006491713.90954688
Safe Transfer Fr...196730472024-04-17 5:16:3590 days ago1713330995IN
0x01FF4d92...4f5cb36A7
0 ETH0.000464017.89860874
Safe Transfer Fr...196447672024-04-13 6:08:1194 days ago1712988491IN
0x01FF4d92...4f5cb36A7
0 ETH0.0006906711.75693651
Safe Transfer Fr...193810942024-03-07 5:05:35131 days ago1709787935IN
0x01FF4d92...4f5cb36A7
0 ETH0.0036518162.16285576
Safe Transfer Fr...193662512024-03-05 3:22:35133 days ago1709608955IN
0x01FF4d92...4f5cb36A7
0 ETH0.0051391387.48067715
Safe Transfer Fr...193159362024-02-27 2:34:23140 days ago1709001263IN
0x01FF4d92...4f5cb36A7
0 ETH0.0027426346.68624495
Safe Transfer Fr...193099152024-02-26 6:21:23141 days ago1708928483IN
0x01FF4d92...4f5cb36A7
0 ETH0.001579226.88187425
Safe Transfer Fr...192959612024-02-24 7:29:47143 days ago1708759787IN
0x01FF4d92...4f5cb36A7
0 ETH0.0013756223.41646677
Safe Transfer Fr...192954122024-02-24 5:39:23143 days ago1708753163IN
0x01FF4d92...4f5cb36A7
0 ETH0.0013852323.58006192
Safe Transfer Fr...192953972024-02-24 5:36:23143 days ago1708752983IN
0x01FF4d92...4f5cb36A7
0 ETH0.0009526622.87519113
Safe Transfer Fr...192953582024-02-24 5:28:35143 days ago1708752515IN
0x01FF4d92...4f5cb36A7
0 ETH0.0013359122.74058216
Safe Transfer Fr...192951592024-02-24 4:48:23143 days ago1708750103IN
0x01FF4d92...4f5cb36A7
0 ETH0.0013863823.59961684
Safe Transfer Fr...192951202024-02-24 4:40:35143 days ago1708749635IN
0x01FF4d92...4f5cb36A7
0 ETH0.0012972322.08213759
Safe Transfer Fr...192950492024-02-24 4:26:11143 days ago1708748771IN
0x01FF4d92...4f5cb36A7
0 ETH0.001183220.14105764
Safe Transfer Fr...192950062024-02-24 4:17:35143 days ago1708748255IN
0x01FF4d92...4f5cb36A7
0 ETH0.0011774220.04671197
Safe Transfer Fr...192944252024-02-24 2:20:59143 days ago1708741259IN
0x01FF4d92...4f5cb36A7
0 ETH0.0019082132.48240995
Safe Transfer Fr...192816362024-02-22 7:20:59145 days ago1708586459IN
0x01FF4d92...4f5cb36A7
0 ETH0.0018463931.43022477
Safe Transfer Fr...192605502024-02-19 8:18:59148 days ago1708330739IN
0x01FF4d92...4f5cb36A7
0 ETH0.0014019823.8651457
Safe Transfer Fr...192605092024-02-19 8:10:47148 days ago1708330247IN
0x01FF4d92...4f5cb36A7
0 ETH0.0010998326.4091809
Safe Transfer Fr...192605052024-02-19 8:09:59148 days ago1708330199IN
0x01FF4d92...4f5cb36A7
0 ETH0.0014598224.84981954
Safe Transfer Fr...192589742024-02-19 2:58:47148 days ago1708311527IN
0x01FF4d92...4f5cb36A7
0 ETH0.0010210817.38133287
Safe Transfer Fr...192313222024-02-15 5:43:47152 days ago1707975827IN
0x01FF4d92...4f5cb36A7
0 ETH0.0007480817.96303144
Safe Transfer Fr...192313182024-02-15 5:42:59152 days ago1707975779IN
0x01FF4d92...4f5cb36A7
0 ETH0.0010525717.91747235
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
NFTPASTEL1155

Compiler Version
v0.8.14+commit.80d49f37

Optimization Enabled:
No with 200 runs

Other Settings:
constantinople EvmVersion
File 1 of 17 : NFTPASTEL1155.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity 0.8.14;

import "@openzeppelin/contracts/token/ERC1155/extensions/ERC1155Burnable.sol";
import "@openzeppelin/contracts/token/ERC1155/extensions/ERC1155Supply.sol";
import "@openzeppelin/contracts/utils/Context.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/access/AccessControl.sol";
import "./common/ERC2981.sol";

contract NFTPASTEL1155 is
    Context,
    ERC1155Burnable,
    ERC1155Supply,
    ERC2981,
    AccessControl
{
    using Counters for Counters.Counter;
    using Strings for uint256;
    Counters.Counter private _tokenIdTracker;
    mapping(uint256 => string) private _tokenURIs;
    mapping(uint256 => bool) private usedNonce;

    struct Sign {
        uint8 v;
        bytes32 r;
        bytes32 s;
        uint256 nonce;
    }

    string private baseTokenURI;
    string private _name;
    string private _symbol;
    address public owner;

    event OwnershipTransferred(
        address indexed previousOwner,
        address indexed newOwner
    );
    
    event BaseURIChanged(string indexed uri, string indexed newuri);

    constructor(
        string memory _tokenName,
        string memory _tokenSymbol,
        string memory _baseTokenURI
    ) ERC1155(_baseTokenURI) {
        baseTokenURI = _baseTokenURI;
        owner = _msgSender();
        _setupRole("ADMIN_ROLE", msg.sender);
        _name = _tokenName;
        _symbol = _tokenSymbol;
        _tokenIdTracker.increment();
    }

    function name() external view returns (string memory) {
        return _name;
    }

    function symbol() external view returns (string memory) {
        return _symbol;
    }

    /** @dev change the Ownership from current owner to newOwner address
        @param newOwner : newOwner address */

    function transferOwnership(address newOwner)
        external
        onlyRole("ADMIN_ROLE")
        returns (bool)
    {
        require(
            newOwner != address(0),
            "Ownable: new owner is the zero address"
        );
        _revokeRole("ADMIN_ROLE", owner);
        emit OwnershipTransferred(owner, newOwner);
        owner = newOwner;
        _setupRole("ADMIN_ROLE", newOwner);
        return true;
    }

    function setBaseURI(string memory uri_) external onlyRole("ADMIN_ROLE") returns (bool) {
        emit BaseURIChanged(baseTokenURI, uri_);
        baseTokenURI = uri_;
        return true;
    }

    function mint(
        string memory _tokenURI,
        uint96 _royaltyFee,
        uint256 supply,
        Sign calldata sign
    ) external virtual returns (uint256 _tokenId) {
        // We cannot just use balanceOf to create the new tokenId because tokens
        // can be burned (destroyed), so we need a separate counter.
        require(!usedNonce[sign.nonce], "Nonce : Invalid Nonce");
        usedNonce[sign.nonce] = true;
        verifySign(_tokenURI, msg.sender, sign);
        _tokenId = _tokenIdTracker.current();
        _mint(_msgSender(), _tokenId, supply, "");
        _tokenURIs[_tokenId] = _tokenURI;
        _setTokenRoyalty(_tokenId, _msgSender(), _royaltyFee);
        _tokenIdTracker.increment();
        return _tokenId;
    }

    function uri(uint256 tokenId)
        public
        view
        virtual
        override
        returns (string memory)
    {
        require(
            exists(tokenId),
            "ERC1155URIStorage: URI query for nonexistent token"
        );

        string memory _tokenURI = _tokenURIs[tokenId];
        // If there is no base URI, return the token URI.
        if (bytes(baseTokenURI).length == 0) {
            return _tokenURI;
        }
        // If both are set, concatenate the baseURI and tokenURI (via abi.encodePacked).
        if (bytes(_tokenURI).length > 0) {
            return string(abi.encodePacked(baseTokenURI, _tokenURI));
        }
        return
            bytes(baseTokenURI).length > 0
                ? string(abi.encodePacked(baseTokenURI, tokenId.toString()))
                : "";
    }

    function verifySign(
        string memory _tokenURI,
        address caller,
        Sign memory sign
    ) internal view {
        bytes32 hash = keccak256(
            abi.encodePacked(this, caller, _tokenURI, sign.nonce)
        );
        require(
            owner ==
                ecrecover(
                    keccak256(
                        abi.encodePacked(
                            "\x19Ethereum Signed Message:\n32",
                            hash
                        )
                    ),
                    sign.v,
                    sign.r,
                    sign.s
                ),
            "Owner sign verification failed"
        );
    }

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId)
        public
        view
        virtual
        override(ERC2981, ERC1155, AccessControl)
        returns (bool)
    {
        return super.supportsInterface(interfaceId);
    }

    function _beforeTokenTransfer(
        address _operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual override(ERC1155Supply, ERC1155) {
        super._beforeTokenTransfer(_operator, from, to, ids, amounts, data);
    }
}

File 2 of 17 : 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 3 of 17 : 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 4 of 17 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

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

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

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

pragma solidity ^0.8.0;

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

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

    function increment(Counter storage counter) internal {
        unchecked {
            counter._value += 1;
        }
    }

    function decrement(Counter storage counter) internal {
        uint256 value = counter._value;
        require(value > 0, "Counter: decrement overflow");
        unchecked {
            counter._value = value - 1;
        }
    }

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

File 7 of 17 : 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());
        }
    }
}

File 8 of 17 : ERC2981.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity 0.8.14;

import "@openzeppelin/contracts/utils/introspection/ERC165.sol";
import "@openzeppelin/contracts/interfaces/IERC2981.sol";

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

    mapping(uint256 => RoyaltyInfo) private _tokenRoyaltyInfo;

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

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

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

        return (royalty.receiver, royaltyAmount);
    }

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

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

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

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

File 9 of 17 : 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 10 of 17 : 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 11 of 17 : 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 12 of 17 : 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 13 of 17 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

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

pragma solidity ^0.8.0;

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

File 16 of 17 : 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 17 of 17 : IERC2981.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (interfaces/IERC2981.sol)

pragma solidity ^0.8.0;

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

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"_tokenName","type":"string"},{"internalType":"string","name":"_tokenSymbol","type":"string"},{"internalType":"string","name":"_baseTokenURI","type":"string"}],"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":"string","name":"uri","type":"string"},{"indexed":true,"internalType":"string","name":"newuri","type":"string"}],"name":"BaseURIChanged","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":[{"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":"string","name":"_tokenURI","type":"string"},{"internalType":"uint96","name":"_royaltyFee","type":"uint96"},{"internalType":"uint256","name":"supply","type":"uint256"},{"components":[{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"},{"internalType":"uint256","name":"nonce","type":"uint256"}],"internalType":"struct NFTPASTEL1155.Sign","name":"sign","type":"tuple"}],"name":"mint","outputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"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":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeBatchTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"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":"uri_","type":"string"}],"name":"setBaseURI","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"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":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"}]

60806040523480156200001157600080fd5b5060405162005d7238038062005d72833981810160405281019062000037919062000531565b8062000049816200013760201b60201c565b50806009908051906020019062000062929190620002e4565b50620000736200015360201b60201c565b600c60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550620000e57f41444d494e5f524f4c4500000000000000000000000000000000000000000000336200015b60201b60201c565b82600a9080519060200190620000fd929190620002e4565b5081600b908051906020019062000116929190620002e4565b506200012e60066200017160201b620013811760201c565b5050506200064e565b80600290805190602001906200014f929190620002e4565b5050565b600033905090565b6200016d82826200018760201b60201c565b5050565b6001816000016000828254019250508190555050565b6200019982826200027960201b60201c565b620002755760016005600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506200021a6200015360201b60201c565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b60006005600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b828054620002f29062000619565b90600052602060002090601f01602090048101928262000316576000855562000362565b82601f106200033157805160ff191683800117855562000362565b8280016001018555821562000362579182015b828111156200036157825182559160200191906001019062000344565b5b50905062000371919062000375565b5090565b5b808211156200039057600081600090555060010162000376565b5090565b6000604051905090565b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b620003fd82620003b2565b810181811067ffffffffffffffff821117156200041f576200041e620003c3565b5b80604052505050565b60006200043462000394565b9050620004428282620003f2565b919050565b600067ffffffffffffffff821115620004655762000464620003c3565b5b6200047082620003b2565b9050602081019050919050565b60005b838110156200049d57808201518184015260208101905062000480565b83811115620004ad576000848401525b50505050565b6000620004ca620004c48462000447565b62000428565b905082815260208101848484011115620004e957620004e8620003ad565b5b620004f68482856200047d565b509392505050565b600082601f830112620005165762000515620003a8565b5b815162000528848260208601620004b3565b91505092915050565b6000806000606084860312156200054d576200054c6200039e565b5b600084015167ffffffffffffffff8111156200056e576200056d620003a3565b5b6200057c86828701620004fe565b935050602084015167ffffffffffffffff811115620005a0576200059f620003a3565b5b620005ae86828701620004fe565b925050604084015167ffffffffffffffff811115620005d257620005d1620003a3565b5b620005e086828701620004fe565b9150509250925092565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806200063257607f821691505b602082108103620006485762000647620005ea565b5b50919050565b615714806200065e6000396000f3fe608060405234801561001057600080fd5b50600436106101725760003560e01c806366081331116100de578063a22cb46511610097578063e985e9c511610071578063e985e9c5146104a8578063f242432a146104d8578063f2fde38b146104f4578063f5298aca1461052457610172565b8063a22cb46514610440578063bd85b0391461045c578063d547741f1461048c57610172565b8063660813311461036a5780636b20c4541461039a5780638da5cb5b146103b657806391d14854146103d457806395d89b4114610404578063a217fddf1461042257610172565b80632eb2c2d6116101305780632eb2c2d6146102865780632f2ff15d146102a257806336568abe146102be5780634e1273f4146102da5780634f558e791461030a57806355f804b31461033a57610172565b8062fdd58e1461017757806301ffc9a7146101a757806306fdde03146101d75780630e89341c146101f5578063248a9ca3146102255780632a55205a14610255575b600080fd5b610191600480360381019061018c919061347f565b610540565b60405161019e91906134ce565b60405180910390f35b6101c160048036038101906101bc9190613541565b610608565b6040516101ce9190613589565b60405180910390f35b6101df61061a565b6040516101ec919061363d565b60405180910390f35b61020f600480360381019061020a919061365f565b6106ac565b60405161021c919061363d565b60405180910390f35b61023f600480360381019061023a91906136c2565b61084a565b60405161024c91906136fe565b60405180910390f35b61026f600480360381019061026a9190613719565b61086a565b60405161027d929190613768565b60405180910390f35b6102a0600480360381019061029b919061398e565b610978565b005b6102bc60048036038101906102b79190613a5d565b610a19565b005b6102d860048036038101906102d39190613a5d565b610a3a565b005b6102f460048036038101906102ef9190613b60565b610abd565b6040516103019190613c96565b60405180910390f35b610324600480360381019061031f919061365f565b610bd6565b6040516103319190613589565b60405180910390f35b610354600480360381019061034f9190613d59565b610bea565b6040516103619190613589565b60405180910390f35b610384600480360381019061037f9190613e0a565b610c90565b60405161039191906134ce565b60405180910390f35b6103b460048036038101906103af9190613e8d565b610dbc565b005b6103be610e59565b6040516103cb9190613f18565b60405180910390f35b6103ee60048036038101906103e99190613a5d565b610e7f565b6040516103fb9190613589565b60405180910390f35b61040c610eea565b604051610419919061363d565b60405180910390f35b61042a610f7c565b60405161043791906136fe565b60405180910390f35b61045a60048036038101906104559190613f5f565b610f83565b005b6104766004803603810190610471919061365f565b610f99565b60405161048391906134ce565b60405180910390f35b6104a660048036038101906104a19190613a5d565b610fb6565b005b6104c260048036038101906104bd9190613f9f565b610fd7565b6040516104cf9190613589565b60405180910390f35b6104f260048036038101906104ed9190613fdf565b61106b565b005b61050e60048036038101906105099190614076565b61110c565b60405161051b9190613589565b60405180910390f35b61053e600480360381019061053991906140a3565b6112e4565b005b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036105b0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105a790614168565b60405180910390fd5b60008083815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b600061061382611397565b9050919050565b6060600a8054610629906141b7565b80601f0160208091040260200160405190810160405280929190818152602001828054610655906141b7565b80156106a25780601f10610677576101008083540402835291602001916106a2565b820191906000526020600020905b81548152906001019060200180831161068557829003601f168201915b5050505050905090565b60606106b782610bd6565b6106f6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106ed9061425a565b60405180910390fd5b6000600760008481526020019081526020016000208054610716906141b7565b80601f0160208091040260200160405190810160405280929190818152602001828054610742906141b7565b801561078f5780601f106107645761010080835404028352916020019161078f565b820191906000526020600020905b81548152906001019060200180831161077257829003601f168201915b505050505090506000600980546107a5906141b7565b9050036107b55780915050610845565b6000815111156107ea576009816040516020016107d392919061434a565b604051602081830303815290604052915050610845565b6000600980546107f9906141b7565b9050116108155760405180602001604052806000815250610841565b600961082084611411565b60405160200161083192919061434a565b6040516020818303038152906040525b9150505b919050565b600060056000838152602001908152602001600020600101549050919050565b6000806000600460008681526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff16815250509050600061092d611571565b6bffffffffffffffffffffffff1682602001516bffffffffffffffffffffffff1686610959919061439d565b6109639190614426565b90508160000151819350935050509250929050565b61098061157b565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614806109c657506109c5856109c061157b565b610fd7565b5b610a05576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109fc906144c9565b60405180910390fd5b610a128585858585611583565b5050505050565b610a228261084a565b610a2b816118a4565b610a3583836118b8565b505050565b610a4261157b565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610aaf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610aa69061455b565b60405180910390fd5b610ab98282611999565b5050565b60608151835114610b03576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610afa906145ed565b60405180910390fd5b6000835167ffffffffffffffff811115610b2057610b1f613796565b5b604051908082528060200260200182016040528015610b4e5781602001602082028036833780820191505090505b50905060005b8451811015610bcb57610b9b858281518110610b7357610b7261460d565b5b6020026020010151858381518110610b8e57610b8d61460d565b5b6020026020010151610540565b828281518110610bae57610bad61460d565b5b60200260200101818152505080610bc49061463c565b9050610b54565b508091505092915050565b600080610be283610f99565b119050919050565b60007f41444d494e5f524f4c4500000000000000000000000000000000000000000000610c16816118a4565b82604051610c249190614684565b60405180910390206009604051610c3b919061469b565b60405180910390207fc41b7cb64e5be01af4afc2641afc861432136270f4206b7773f229b658b9669960405160405180910390a38260099080519060200190610c85929190613334565b506001915050919050565b6000600860008360600135815260200190815260200160002060009054906101000a900460ff1615610cf7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cee906146fe565b60405180910390fd5b6001600860008460600135815260200190815260200160002060006101000a81548160ff021916908315150217905550610d42853384803603810190610d3d91906147d4565b611a7b565b610d4c6006611bc6565b9050610d70610d5961157b565b828560405180602001604052806000815250611bd4565b84600760008381526020019081526020016000209080519060200190610d97929190613334565b50610daa81610da461157b565b86611d84565b610db46006611381565b949350505050565b610dc461157b565b73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161480610e0a5750610e0983610e0461157b565b610fd7565b5b610e49576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e4090614873565b60405180910390fd5b610e54838383611f2b565b505050565b600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60006005600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6060600b8054610ef9906141b7565b80601f0160208091040260200160405190810160405280929190818152602001828054610f25906141b7565b8015610f725780601f10610f4757610100808354040283529160200191610f72565b820191906000526020600020905b815481529060010190602001808311610f5557829003601f168201915b5050505050905090565b6000801b81565b610f95610f8e61157b565b83836121f9565b5050565b600060036000838152602001908152602001600020549050919050565b610fbf8261084a565b610fc8816118a4565b610fd28383611999565b505050565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b61107361157b565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614806110b957506110b8856110b361157b565b610fd7565b5b6110f8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110ef90614873565b60405180910390fd5b6111058585858585612365565b5050505050565b60007f41444d494e5f524f4c4500000000000000000000000000000000000000000000611138816118a4565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036111a7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161119e90614905565b60405180910390fd5b6111f37f41444d494e5f524f4c4500000000000000000000000000000000000000000000600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16611999565b8273ffffffffffffffffffffffffffffffffffffffff16600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a382600c60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506112da7f41444d494e5f524f4c450000000000000000000000000000000000000000000084612600565b6001915050919050565b6112ec61157b565b73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16148061133257506113318361132c61157b565b610fd7565b5b611371576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161136890614873565b60405180910390fd5b61137c83838361260e565b505050565b6001816000016000828254019250508190555050565b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061140a575061140982612854565b5b9050919050565b606060008203611458576040518060400160405280600181526020017f3000000000000000000000000000000000000000000000000000000000000000815250905061156c565b600082905060005b6000821461148a5780806114739061463c565b915050600a826114839190614426565b9150611460565b60008167ffffffffffffffff8111156114a6576114a5613796565b5b6040519080825280601f01601f1916602001820160405280156114d85781602001600182028036833780820191505090505b5090505b60008514611565576001826114f19190614925565b9150600a856115009190614959565b603061150c919061498a565b60f81b8183815181106115225761152161460d565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a8561155e9190614426565b94506114dc565b8093505050505b919050565b60006103e8905090565b600033905090565b81518351146115c7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115be90614a52565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603611636576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161162d90614ae4565b60405180910390fd5b600061164061157b565b90506116508187878787876128ce565b60005b84518110156118015760008582815181106116715761167061460d565b5b6020026020010151905060008583815181106116905761168f61460d565b5b60200260200101519050600080600084815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015611731576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161172890614b76565b60405180910390fd5b81810360008085815260200190815260200160002060008c73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508160008085815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546117e6919061498a565b92505081905550505050806117fa9061463c565b9050611653565b508473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051611878929190614b96565b60405180910390a461188e8187878787876128e4565b61189c8187878787876128ec565b505050505050565b6118b5816118b061157b565b612ac3565b50565b6118c28282610e7f565b6119955760016005600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555061193a61157b565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b6119a38282610e7f565b15611a775760006005600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550611a1c61157b565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b60003083858460600151604051602001611a989493929190614c9d565b604051602081830303815290604052805190602001209050600181604051602001611ac39190614d54565b6040516020818303038152906040528051906020012083600001518460200151856040015160405160008152602001604052604051611b059493929190614d89565b6020604051602081039080840390855afa158015611b27573d6000803e3d6000fd5b5050506020604051035173ffffffffffffffffffffffffffffffffffffffff16600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611bc0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bb790614e1a565b60405180910390fd5b50505050565b600081600001549050919050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603611c43576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c3a90614eac565b60405180910390fd5b6000611c4d61157b565b90506000611c5a85612b60565b90506000611c6785612b60565b9050611c78836000898585896128ce565b8460008088815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611cd7919061498a565b925050819055508673ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628989604051611d55929190614ecc565b60405180910390a4611d6c836000898585896128e4565b611d7b83600089898989612bda565b50505050505050565b611d8c611571565b6bffffffffffffffffffffffff16816bffffffffffffffffffffffff161115611dea576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611de190614f67565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611e59576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e5090614fd3565b60405180910390fd5b60405180604001604052808373ffffffffffffffffffffffffffffffffffffffff168152602001826bffffffffffffffffffffffff168152506004600085815260200190815260200160002060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff160217905550905050505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611f9a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f9190615065565b60405180910390fd5b8051825114611fde576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fd590614a52565b60405180910390fd5b6000611fe861157b565b9050612008818560008686604051806020016040528060008152506128ce565b60005b83518110156121555760008482815181106120295761202861460d565b5b6020026020010151905060008483815181106120485761204761460d565b5b60200260200101519050600080600084815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050818110156120e9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120e0906150f7565b60405180910390fd5b81810360008085815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550505050808061214d9061463c565b91505061200b565b50600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb86866040516121cd929190614b96565b60405180910390a46121f3818560008686604051806020016040528060008152506128e4565b50505050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603612267576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161225e90615189565b60405180910390fd5b80600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516123589190613589565b60405180910390a3505050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16036123d4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123cb90614ae4565b60405180910390fd5b60006123de61157b565b905060006123eb85612b60565b905060006123f885612b60565b90506124088389898585896128ce565b600080600088815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490508581101561249f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161249690614b76565b60405180910390fd5b85810360008089815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508560008089815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612554919061498a565b925050819055508773ffffffffffffffffffffffffffffffffffffffff168973ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628a8a6040516125d1929190614ecc565b60405180910390a46125e7848a8a86868a6128e4565b6125f5848a8a8a8a8a612bda565b505050505050505050565b61260a82826118b8565b5050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff160361267d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161267490615065565b60405180910390fd5b600061268761157b565b9050600061269484612b60565b905060006126a184612b60565b90506126c1838760008585604051806020016040528060008152506128ce565b600080600087815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905084811015612758576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161274f906150f7565b60405180910390fd5b84810360008088815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600073ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628989604051612825929190614ecc565b60405180910390a461284b848860008686604051806020016040528060008152506128e4565b50505050505050565b60007f2a55205a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806128c757506128c682612db1565b5b9050919050565b6128dc868686868686612e93565b505050505050565b505050505050565b61290b8473ffffffffffffffffffffffffffffffffffffffff16613063565b15612abb578373ffffffffffffffffffffffffffffffffffffffff1663bc197c8187878686866040518663ffffffff1660e01b81526004016129519594939291906151fe565b6020604051808303816000875af192505050801561298d57506040513d601f19601f8201168201806040525081019061298a919061527b565b60015b612a32576129996152b5565b806308c379a0036129f557506129ad6152d7565b806129b857506129f7565b806040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129ec919061363d565b60405180910390fd5b505b6040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a29906153d9565b60405180910390fd5b63bc197c8160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614612ab9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ab09061546b565b60405180910390fd5b505b505050505050565b612acd8282610e7f565b612b5c57612af28173ffffffffffffffffffffffffffffffffffffffff166014613086565b612b008360001c6020613086565b604051602001612b11929190615523565b6040516020818303038152906040526040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b53919061363d565b60405180910390fd5b5050565b60606000600167ffffffffffffffff811115612b7f57612b7e613796565b5b604051908082528060200260200182016040528015612bad5781602001602082028036833780820191505090505b5090508281600081518110612bc557612bc461460d565b5b60200260200101818152505080915050919050565b612bf98473ffffffffffffffffffffffffffffffffffffffff16613063565b15612da9578373ffffffffffffffffffffffffffffffffffffffff1663f23a6e6187878686866040518663ffffffff1660e01b8152600401612c3f95949392919061555d565b6020604051808303816000875af1925050508015612c7b57506040513d601f19601f82011682018060405250810190612c78919061527b565b60015b612d2057612c876152b5565b806308c379a003612ce35750612c9b6152d7565b80612ca65750612ce5565b806040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612cda919061363d565b60405180910390fd5b505b6040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d17906153d9565b60405180910390fd5b63f23a6e6160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614612da7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d9e9061546b565b60405180910390fd5b505b505050505050565b60007fd9b67a26000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612e7c57507f0e89341c000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80612e8c5750612e8b826132c2565b5b9050919050565b612ea186868686868661332c565b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603612f525760005b8351811015612f5057828181518110612ef457612ef361460d565b5b602002602001015160036000868481518110612f1357612f1261460d565b5b602002602001015181526020019081526020016000206000828254612f38919061498a565b9250508190555080612f499061463c565b9050612ed8565b505b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff160361305b5760005b8351811015613059576000848281518110612fa757612fa661460d565b5b602002602001015190506000848381518110612fc657612fc561460d565b5b602002602001015190506000600360008481526020019081526020016000205490508181101561302b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161302290615629565b60405180910390fd5b8181036003600085815260200190815260200160002081905550505050806130529061463c565b9050612f89565b505b505050505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b606060006002836002613099919061439d565b6130a3919061498a565b67ffffffffffffffff8111156130bc576130bb613796565b5b6040519080825280601f01601f1916602001820160405280156130ee5781602001600182028036833780820191505090505b5090507f3000000000000000000000000000000000000000000000000000000000000000816000815181106131265761312561460d565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f78000000000000000000000000000000000000000000000000000000000000008160018151811061318a5761318961460d565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600060018460026131ca919061439d565b6131d4919061498a565b90505b6001811115613274577f3031323334353637383961626364656600000000000000000000000000000000600f8616601081106132165761321561460d565b5b1a60f81b82828151811061322d5761322c61460d565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c94508061326d90615649565b90506131d7565b50600084146132b8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016132af906156be565b60405180910390fd5b8091505092915050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b505050505050565b828054613340906141b7565b90600052602060002090601f01602090048101928261336257600085556133a9565b82601f1061337b57805160ff19168380011785556133a9565b828001600101855582156133a9579182015b828111156133a857825182559160200191906001019061338d565b5b5090506133b691906133ba565b5090565b5b808211156133d35760008160009055506001016133bb565b5090565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000613416826133eb565b9050919050565b6134268161340b565b811461343157600080fd5b50565b6000813590506134438161341d565b92915050565b6000819050919050565b61345c81613449565b811461346757600080fd5b50565b60008135905061347981613453565b92915050565b60008060408385031215613496576134956133e1565b5b60006134a485828601613434565b92505060206134b58582860161346a565b9150509250929050565b6134c881613449565b82525050565b60006020820190506134e360008301846134bf565b92915050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61351e816134e9565b811461352957600080fd5b50565b60008135905061353b81613515565b92915050565b600060208284031215613557576135566133e1565b5b60006135658482850161352c565b91505092915050565b60008115159050919050565b6135838161356e565b82525050565b600060208201905061359e600083018461357a565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b838110156135de5780820151818401526020810190506135c3565b838111156135ed576000848401525b50505050565b6000601f19601f8301169050919050565b600061360f826135a4565b61361981856135af565b93506136298185602086016135c0565b613632816135f3565b840191505092915050565b600060208201905081810360008301526136578184613604565b905092915050565b600060208284031215613675576136746133e1565b5b60006136838482850161346a565b91505092915050565b6000819050919050565b61369f8161368c565b81146136aa57600080fd5b50565b6000813590506136bc81613696565b92915050565b6000602082840312156136d8576136d76133e1565b5b60006136e6848285016136ad565b91505092915050565b6136f88161368c565b82525050565b600060208201905061371360008301846136ef565b92915050565b600080604083850312156137305761372f6133e1565b5b600061373e8582860161346a565b925050602061374f8582860161346a565b9150509250929050565b6137628161340b565b82525050565b600060408201905061377d6000830185613759565b61378a60208301846134bf565b9392505050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6137ce826135f3565b810181811067ffffffffffffffff821117156137ed576137ec613796565b5b80604052505050565b60006138006133d7565b905061380c82826137c5565b919050565b600067ffffffffffffffff82111561382c5761382b613796565b5b602082029050602081019050919050565b600080fd5b600061385561385084613811565b6137f6565b905080838252602082019050602084028301858111156138785761387761383d565b5b835b818110156138a1578061388d888261346a565b84526020840193505060208101905061387a565b5050509392505050565b600082601f8301126138c0576138bf613791565b5b81356138d0848260208601613842565b91505092915050565b600080fd5b600067ffffffffffffffff8211156138f9576138f8613796565b5b613902826135f3565b9050602081019050919050565b82818337600083830152505050565b600061393161392c846138de565b6137f6565b90508281526020810184848401111561394d5761394c6138d9565b5b61395884828561390f565b509392505050565b600082601f83011261397557613974613791565b5b813561398584826020860161391e565b91505092915050565b600080600080600060a086880312156139aa576139a96133e1565b5b60006139b888828901613434565b95505060206139c988828901613434565b945050604086013567ffffffffffffffff8111156139ea576139e96133e6565b5b6139f6888289016138ab565b935050606086013567ffffffffffffffff811115613a1757613a166133e6565b5b613a23888289016138ab565b925050608086013567ffffffffffffffff811115613a4457613a436133e6565b5b613a5088828901613960565b9150509295509295909350565b60008060408385031215613a7457613a736133e1565b5b6000613a82858286016136ad565b9250506020613a9385828601613434565b9150509250929050565b600067ffffffffffffffff821115613ab857613ab7613796565b5b602082029050602081019050919050565b6000613adc613ad784613a9d565b6137f6565b90508083825260208201905060208402830185811115613aff57613afe61383d565b5b835b81811015613b285780613b148882613434565b845260208401935050602081019050613b01565b5050509392505050565b600082601f830112613b4757613b46613791565b5b8135613b57848260208601613ac9565b91505092915050565b60008060408385031215613b7757613b766133e1565b5b600083013567ffffffffffffffff811115613b9557613b946133e6565b5b613ba185828601613b32565b925050602083013567ffffffffffffffff811115613bc257613bc16133e6565b5b613bce858286016138ab565b9150509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b613c0d81613449565b82525050565b6000613c1f8383613c04565b60208301905092915050565b6000602082019050919050565b6000613c4382613bd8565b613c4d8185613be3565b9350613c5883613bf4565b8060005b83811015613c89578151613c708882613c13565b9750613c7b83613c2b565b925050600181019050613c5c565b5085935050505092915050565b60006020820190508181036000830152613cb08184613c38565b905092915050565b600067ffffffffffffffff821115613cd357613cd2613796565b5b613cdc826135f3565b9050602081019050919050565b6000613cfc613cf784613cb8565b6137f6565b905082815260208101848484011115613d1857613d176138d9565b5b613d2384828561390f565b509392505050565b600082601f830112613d4057613d3f613791565b5b8135613d50848260208601613ce9565b91505092915050565b600060208284031215613d6f57613d6e6133e1565b5b600082013567ffffffffffffffff811115613d8d57613d8c6133e6565b5b613d9984828501613d2b565b91505092915050565b60006bffffffffffffffffffffffff82169050919050565b613dc381613da2565b8114613dce57600080fd5b50565b600081359050613de081613dba565b92915050565b600080fd5b600060808284031215613e0157613e00613de6565b5b81905092915050565b60008060008060e08587031215613e2457613e236133e1565b5b600085013567ffffffffffffffff811115613e4257613e416133e6565b5b613e4e87828801613d2b565b9450506020613e5f87828801613dd1565b9350506040613e708782880161346a565b9250506060613e8187828801613deb565b91505092959194509250565b600080600060608486031215613ea657613ea56133e1565b5b6000613eb486828701613434565b935050602084013567ffffffffffffffff811115613ed557613ed46133e6565b5b613ee1868287016138ab565b925050604084013567ffffffffffffffff811115613f0257613f016133e6565b5b613f0e868287016138ab565b9150509250925092565b6000602082019050613f2d6000830184613759565b92915050565b613f3c8161356e565b8114613f4757600080fd5b50565b600081359050613f5981613f33565b92915050565b60008060408385031215613f7657613f756133e1565b5b6000613f8485828601613434565b9250506020613f9585828601613f4a565b9150509250929050565b60008060408385031215613fb657613fb56133e1565b5b6000613fc485828601613434565b9250506020613fd585828601613434565b9150509250929050565b600080600080600060a08688031215613ffb57613ffa6133e1565b5b600061400988828901613434565b955050602061401a88828901613434565b945050604061402b8882890161346a565b935050606061403c8882890161346a565b925050608086013567ffffffffffffffff81111561405d5761405c6133e6565b5b61406988828901613960565b9150509295509295909350565b60006020828403121561408c5761408b6133e1565b5b600061409a84828501613434565b91505092915050565b6000806000606084860312156140bc576140bb6133e1565b5b60006140ca86828701613434565b93505060206140db8682870161346a565b92505060406140ec8682870161346a565b9150509250925092565b7f455243313135353a2062616c616e636520717565727920666f7220746865207a60008201527f65726f2061646472657373000000000000000000000000000000000000000000602082015250565b6000614152602b836135af565b915061415d826140f6565b604082019050919050565b6000602082019050818103600083015261418181614145565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806141cf57607f821691505b6020821081036141e2576141e1614188565b5b50919050565b7f4552433131353555524953746f726167653a2055524920717565727920666f7260008201527f206e6f6e6578697374656e7420746f6b656e0000000000000000000000000000602082015250565b60006142446032836135af565b915061424f826141e8565b604082019050919050565b6000602082019050818103600083015261427381614237565b9050919050565b600081905092915050565b60008190508160005260206000209050919050565b600081546142a7816141b7565b6142b1818661427a565b945060018216600081146142cc57600181146142dd57614310565b60ff19831686528186019350614310565b6142e685614285565b60005b83811015614308578154818901526001820191506020810190506142e9565b838801955050505b50505092915050565b6000614324826135a4565b61432e818561427a565b935061433e8185602086016135c0565b80840191505092915050565b6000614356828561429a565b91506143628284614319565b91508190509392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006143a882613449565b91506143b383613449565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156143ec576143eb61436e565b5b828202905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061443182613449565b915061443c83613449565b92508261444c5761444b6143f7565b5b828204905092915050565b7f455243313135353a207472616e736665722063616c6c6572206973206e6f742060008201527f6f776e6572206e6f7220617070726f7665640000000000000000000000000000602082015250565b60006144b36032836135af565b91506144be82614457565b604082019050919050565b600060208201905081810360008301526144e2816144a6565b9050919050565b7f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560008201527f20726f6c657320666f722073656c660000000000000000000000000000000000602082015250565b6000614545602f836135af565b9150614550826144e9565b604082019050919050565b6000602082019050818103600083015261457481614538565b9050919050565b7f455243313135353a206163636f756e747320616e6420696473206c656e67746860008201527f206d69736d617463680000000000000000000000000000000000000000000000602082015250565b60006145d76029836135af565b91506145e28261457b565b604082019050919050565b60006020820190508181036000830152614606816145ca565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600061464782613449565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036146795761467861436e565b5b600182019050919050565b60006146908284614319565b915081905092915050565b60006146a7828461429a565b915081905092915050565b7f4e6f6e6365203a20496e76616c6964204e6f6e63650000000000000000000000600082015250565b60006146e86015836135af565b91506146f3826146b2565b602082019050919050565b60006020820190508181036000830152614717816146db565b9050919050565b600080fd5b600060ff82169050919050565b61473981614723565b811461474457600080fd5b50565b60008135905061475681614730565b92915050565b6000608082840312156147725761477161471e565b5b61477c60806137f6565b9050600061478c84828501614747565b60008301525060206147a0848285016136ad565b60208301525060406147b4848285016136ad565b60408301525060606147c88482850161346a565b60608301525092915050565b6000608082840312156147ea576147e96133e1565b5b60006147f88482850161475c565b91505092915050565b7f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260008201527f20617070726f7665640000000000000000000000000000000000000000000000602082015250565b600061485d6029836135af565b915061486882614801565b604082019050919050565b6000602082019050818103600083015261488c81614850565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006148ef6026836135af565b91506148fa82614893565b604082019050919050565b6000602082019050818103600083015261491e816148e2565b9050919050565b600061493082613449565b915061493b83613449565b92508282101561494e5761494d61436e565b5b828203905092915050565b600061496482613449565b915061496f83613449565b92508261497f5761497e6143f7565b5b828206905092915050565b600061499582613449565b91506149a083613449565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156149d5576149d461436e565b5b828201905092915050565b7f455243313135353a2069647320616e6420616d6f756e7473206c656e6774682060008201527f6d69736d61746368000000000000000000000000000000000000000000000000602082015250565b6000614a3c6028836135af565b9150614a47826149e0565b604082019050919050565b60006020820190508181036000830152614a6b81614a2f565b9050919050565b7f455243313135353a207472616e7366657220746f20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b6000614ace6025836135af565b9150614ad982614a72565b604082019050919050565b60006020820190508181036000830152614afd81614ac1565b9050919050565b7f455243313135353a20696e73756666696369656e742062616c616e636520666f60008201527f72207472616e7366657200000000000000000000000000000000000000000000602082015250565b6000614b60602a836135af565b9150614b6b82614b04565b604082019050919050565b60006020820190508181036000830152614b8f81614b53565b9050919050565b60006040820190508181036000830152614bb08185613c38565b90508181036020830152614bc48184613c38565b90509392505050565b6000819050919050565b6000614bf2614bed614be8846133eb565b614bcd565b6133eb565b9050919050565b6000614c0482614bd7565b9050919050565b6000614c1682614bf9565b9050919050565b60008160601b9050919050565b6000614c3582614c1d565b9050919050565b6000614c4782614c2a565b9050919050565b614c5f614c5a82614c0b565b614c3c565b82525050565b614c76614c718261340b565b614c3c565b82525050565b6000819050919050565b614c97614c9282613449565b614c7c565b82525050565b6000614ca98287614c4e565b601482019150614cb98286614c65565b601482019150614cc98285614319565b9150614cd58284614c86565b60208201915081905095945050505050565b7f19457468657265756d205369676e6564204d6573736167653a0a333200000000600082015250565b6000614d1d601c8361427a565b9150614d2882614ce7565b601c82019050919050565b6000819050919050565b614d4e614d498261368c565b614d33565b82525050565b6000614d5f82614d10565b9150614d6b8284614d3d565b60208201915081905092915050565b614d8381614723565b82525050565b6000608082019050614d9e60008301876136ef565b614dab6020830186614d7a565b614db860408301856136ef565b614dc560608301846136ef565b95945050505050565b7f4f776e6572207369676e20766572696669636174696f6e206661696c65640000600082015250565b6000614e04601e836135af565b9150614e0f82614dce565b602082019050919050565b60006020820190508181036000830152614e3381614df7565b9050919050565b7f455243313135353a206d696e7420746f20746865207a65726f2061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b6000614e966021836135af565b9150614ea182614e3a565b604082019050919050565b60006020820190508181036000830152614ec581614e89565b9050919050565b6000604082019050614ee160008301856134bf565b614eee60208301846134bf565b9392505050565b7f455243323938313a20726f79616c7479206665652077696c6c2065786365656460008201527f2073616c65507269636500000000000000000000000000000000000000000000602082015250565b6000614f51602a836135af565b9150614f5c82614ef5565b604082019050919050565b60006020820190508181036000830152614f8081614f44565b9050919050565b7f455243323938313a20496e76616c696420706172616d65746572730000000000600082015250565b6000614fbd601b836135af565b9150614fc882614f87565b602082019050919050565b60006020820190508181036000830152614fec81614fb0565b9050919050565b7f455243313135353a206275726e2066726f6d20746865207a65726f206164647260008201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b600061504f6023836135af565b915061505a82614ff3565b604082019050919050565b6000602082019050818103600083015261507e81615042565b9050919050565b7f455243313135353a206275726e20616d6f756e7420657863656564732062616c60008201527f616e636500000000000000000000000000000000000000000000000000000000602082015250565b60006150e16024836135af565b91506150ec82615085565b604082019050919050565b60006020820190508181036000830152615110816150d4565b9050919050565b7f455243313135353a2073657474696e6720617070726f76616c2073746174757360008201527f20666f722073656c660000000000000000000000000000000000000000000000602082015250565b60006151736029836135af565b915061517e82615117565b604082019050919050565b600060208201905081810360008301526151a281615166565b9050919050565b600081519050919050565b600082825260208201905092915050565b60006151d0826151a9565b6151da81856151b4565b93506151ea8185602086016135c0565b6151f3816135f3565b840191505092915050565b600060a0820190506152136000830188613759565b6152206020830187613759565b81810360408301526152328186613c38565b905081810360608301526152468185613c38565b9050818103608083015261525a81846151c5565b90509695505050505050565b60008151905061527581613515565b92915050565b600060208284031215615291576152906133e1565b5b600061529f84828501615266565b91505092915050565b60008160e01c9050919050565b600060033d11156152d45760046000803e6152d16000516152a8565b90505b90565b600060443d10615364576152e96133d7565b60043d036004823e80513d602482011167ffffffffffffffff82111715615311575050615364565b808201805167ffffffffffffffff81111561532f5750505050615364565b80602083010160043d03850181111561534c575050505050615364565b61535b826020018501866137c5565b82955050505050505b90565b7f455243313135353a207472616e7366657220746f206e6f6e204552433131353560008201527f526563656976657220696d706c656d656e746572000000000000000000000000602082015250565b60006153c36034836135af565b91506153ce82615367565b604082019050919050565b600060208201905081810360008301526153f2816153b6565b9050919050565b7f455243313135353a204552433131353552656365697665722072656a6563746560008201527f6420746f6b656e73000000000000000000000000000000000000000000000000602082015250565b60006154556028836135af565b9150615460826153f9565b604082019050919050565b6000602082019050818103600083015261548481615448565b9050919050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000600082015250565b60006154c160178361427a565b91506154cc8261548b565b601782019050919050565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000600082015250565b600061550d60118361427a565b9150615518826154d7565b601182019050919050565b600061552e826154b4565b915061553a8285614319565b915061554582615500565b91506155518284614319565b91508190509392505050565b600060a0820190506155726000830188613759565b61557f6020830187613759565b61558c60408301866134bf565b61559960608301856134bf565b81810360808301526155ab81846151c5565b90509695505050505050565b7f455243313135353a206275726e20616d6f756e74206578636565647320746f7460008201527f616c537570706c79000000000000000000000000000000000000000000000000602082015250565b60006156136028836135af565b915061561e826155b7565b604082019050919050565b6000602082019050818103600083015261564281615606565b9050919050565b600061565482613449565b9150600082036156675761566661436e565b5b600182039050919050565b7f537472696e67733a20686578206c656e67746820696e73756666696369656e74600082015250565b60006156a86020836135af565b91506156b382615672565b602082019050919050565b600060208201905081810360008301526156d78161569b565b905091905056fea264697066735822122038547ebf6f584c51fd961e57474752032be8f1d196d6a7abeebc96e6a10d08c564736f6c634300080e0033000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e000000000000000000000000000000000000000000000000000000000000000114e465450415354454c6d756c7469706c65000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a4e465450415354454c4d00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002268747470733a2f2f676174657761792e70696e6174612e636c6f75642f697066732f000000000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101725760003560e01c806366081331116100de578063a22cb46511610097578063e985e9c511610071578063e985e9c5146104a8578063f242432a146104d8578063f2fde38b146104f4578063f5298aca1461052457610172565b8063a22cb46514610440578063bd85b0391461045c578063d547741f1461048c57610172565b8063660813311461036a5780636b20c4541461039a5780638da5cb5b146103b657806391d14854146103d457806395d89b4114610404578063a217fddf1461042257610172565b80632eb2c2d6116101305780632eb2c2d6146102865780632f2ff15d146102a257806336568abe146102be5780634e1273f4146102da5780634f558e791461030a57806355f804b31461033a57610172565b8062fdd58e1461017757806301ffc9a7146101a757806306fdde03146101d75780630e89341c146101f5578063248a9ca3146102255780632a55205a14610255575b600080fd5b610191600480360381019061018c919061347f565b610540565b60405161019e91906134ce565b60405180910390f35b6101c160048036038101906101bc9190613541565b610608565b6040516101ce9190613589565b60405180910390f35b6101df61061a565b6040516101ec919061363d565b60405180910390f35b61020f600480360381019061020a919061365f565b6106ac565b60405161021c919061363d565b60405180910390f35b61023f600480360381019061023a91906136c2565b61084a565b60405161024c91906136fe565b60405180910390f35b61026f600480360381019061026a9190613719565b61086a565b60405161027d929190613768565b60405180910390f35b6102a0600480360381019061029b919061398e565b610978565b005b6102bc60048036038101906102b79190613a5d565b610a19565b005b6102d860048036038101906102d39190613a5d565b610a3a565b005b6102f460048036038101906102ef9190613b60565b610abd565b6040516103019190613c96565b60405180910390f35b610324600480360381019061031f919061365f565b610bd6565b6040516103319190613589565b60405180910390f35b610354600480360381019061034f9190613d59565b610bea565b6040516103619190613589565b60405180910390f35b610384600480360381019061037f9190613e0a565b610c90565b60405161039191906134ce565b60405180910390f35b6103b460048036038101906103af9190613e8d565b610dbc565b005b6103be610e59565b6040516103cb9190613f18565b60405180910390f35b6103ee60048036038101906103e99190613a5d565b610e7f565b6040516103fb9190613589565b60405180910390f35b61040c610eea565b604051610419919061363d565b60405180910390f35b61042a610f7c565b60405161043791906136fe565b60405180910390f35b61045a60048036038101906104559190613f5f565b610f83565b005b6104766004803603810190610471919061365f565b610f99565b60405161048391906134ce565b60405180910390f35b6104a660048036038101906104a19190613a5d565b610fb6565b005b6104c260048036038101906104bd9190613f9f565b610fd7565b6040516104cf9190613589565b60405180910390f35b6104f260048036038101906104ed9190613fdf565b61106b565b005b61050e60048036038101906105099190614076565b61110c565b60405161051b9190613589565b60405180910390f35b61053e600480360381019061053991906140a3565b6112e4565b005b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036105b0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105a790614168565b60405180910390fd5b60008083815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b600061061382611397565b9050919050565b6060600a8054610629906141b7565b80601f0160208091040260200160405190810160405280929190818152602001828054610655906141b7565b80156106a25780601f10610677576101008083540402835291602001916106a2565b820191906000526020600020905b81548152906001019060200180831161068557829003601f168201915b5050505050905090565b60606106b782610bd6565b6106f6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106ed9061425a565b60405180910390fd5b6000600760008481526020019081526020016000208054610716906141b7565b80601f0160208091040260200160405190810160405280929190818152602001828054610742906141b7565b801561078f5780601f106107645761010080835404028352916020019161078f565b820191906000526020600020905b81548152906001019060200180831161077257829003601f168201915b505050505090506000600980546107a5906141b7565b9050036107b55780915050610845565b6000815111156107ea576009816040516020016107d392919061434a565b604051602081830303815290604052915050610845565b6000600980546107f9906141b7565b9050116108155760405180602001604052806000815250610841565b600961082084611411565b60405160200161083192919061434a565b6040516020818303038152906040525b9150505b919050565b600060056000838152602001908152602001600020600101549050919050565b6000806000600460008681526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff16815250509050600061092d611571565b6bffffffffffffffffffffffff1682602001516bffffffffffffffffffffffff1686610959919061439d565b6109639190614426565b90508160000151819350935050509250929050565b61098061157b565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614806109c657506109c5856109c061157b565b610fd7565b5b610a05576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109fc906144c9565b60405180910390fd5b610a128585858585611583565b5050505050565b610a228261084a565b610a2b816118a4565b610a3583836118b8565b505050565b610a4261157b565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610aaf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610aa69061455b565b60405180910390fd5b610ab98282611999565b5050565b60608151835114610b03576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610afa906145ed565b60405180910390fd5b6000835167ffffffffffffffff811115610b2057610b1f613796565b5b604051908082528060200260200182016040528015610b4e5781602001602082028036833780820191505090505b50905060005b8451811015610bcb57610b9b858281518110610b7357610b7261460d565b5b6020026020010151858381518110610b8e57610b8d61460d565b5b6020026020010151610540565b828281518110610bae57610bad61460d565b5b60200260200101818152505080610bc49061463c565b9050610b54565b508091505092915050565b600080610be283610f99565b119050919050565b60007f41444d494e5f524f4c4500000000000000000000000000000000000000000000610c16816118a4565b82604051610c249190614684565b60405180910390206009604051610c3b919061469b565b60405180910390207fc41b7cb64e5be01af4afc2641afc861432136270f4206b7773f229b658b9669960405160405180910390a38260099080519060200190610c85929190613334565b506001915050919050565b6000600860008360600135815260200190815260200160002060009054906101000a900460ff1615610cf7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cee906146fe565b60405180910390fd5b6001600860008460600135815260200190815260200160002060006101000a81548160ff021916908315150217905550610d42853384803603810190610d3d91906147d4565b611a7b565b610d4c6006611bc6565b9050610d70610d5961157b565b828560405180602001604052806000815250611bd4565b84600760008381526020019081526020016000209080519060200190610d97929190613334565b50610daa81610da461157b565b86611d84565b610db46006611381565b949350505050565b610dc461157b565b73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161480610e0a5750610e0983610e0461157b565b610fd7565b5b610e49576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e4090614873565b60405180910390fd5b610e54838383611f2b565b505050565b600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60006005600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6060600b8054610ef9906141b7565b80601f0160208091040260200160405190810160405280929190818152602001828054610f25906141b7565b8015610f725780601f10610f4757610100808354040283529160200191610f72565b820191906000526020600020905b815481529060010190602001808311610f5557829003601f168201915b5050505050905090565b6000801b81565b610f95610f8e61157b565b83836121f9565b5050565b600060036000838152602001908152602001600020549050919050565b610fbf8261084a565b610fc8816118a4565b610fd28383611999565b505050565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b61107361157b565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614806110b957506110b8856110b361157b565b610fd7565b5b6110f8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110ef90614873565b60405180910390fd5b6111058585858585612365565b5050505050565b60007f41444d494e5f524f4c4500000000000000000000000000000000000000000000611138816118a4565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036111a7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161119e90614905565b60405180910390fd5b6111f37f41444d494e5f524f4c4500000000000000000000000000000000000000000000600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16611999565b8273ffffffffffffffffffffffffffffffffffffffff16600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a382600c60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506112da7f41444d494e5f524f4c450000000000000000000000000000000000000000000084612600565b6001915050919050565b6112ec61157b565b73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16148061133257506113318361132c61157b565b610fd7565b5b611371576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161136890614873565b60405180910390fd5b61137c83838361260e565b505050565b6001816000016000828254019250508190555050565b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061140a575061140982612854565b5b9050919050565b606060008203611458576040518060400160405280600181526020017f3000000000000000000000000000000000000000000000000000000000000000815250905061156c565b600082905060005b6000821461148a5780806114739061463c565b915050600a826114839190614426565b9150611460565b60008167ffffffffffffffff8111156114a6576114a5613796565b5b6040519080825280601f01601f1916602001820160405280156114d85781602001600182028036833780820191505090505b5090505b60008514611565576001826114f19190614925565b9150600a856115009190614959565b603061150c919061498a565b60f81b8183815181106115225761152161460d565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a8561155e9190614426565b94506114dc565b8093505050505b919050565b60006103e8905090565b600033905090565b81518351146115c7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115be90614a52565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603611636576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161162d90614ae4565b60405180910390fd5b600061164061157b565b90506116508187878787876128ce565b60005b84518110156118015760008582815181106116715761167061460d565b5b6020026020010151905060008583815181106116905761168f61460d565b5b60200260200101519050600080600084815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015611731576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161172890614b76565b60405180910390fd5b81810360008085815260200190815260200160002060008c73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508160008085815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546117e6919061498a565b92505081905550505050806117fa9061463c565b9050611653565b508473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051611878929190614b96565b60405180910390a461188e8187878787876128e4565b61189c8187878787876128ec565b505050505050565b6118b5816118b061157b565b612ac3565b50565b6118c28282610e7f565b6119955760016005600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555061193a61157b565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b6119a38282610e7f565b15611a775760006005600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550611a1c61157b565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b60003083858460600151604051602001611a989493929190614c9d565b604051602081830303815290604052805190602001209050600181604051602001611ac39190614d54565b6040516020818303038152906040528051906020012083600001518460200151856040015160405160008152602001604052604051611b059493929190614d89565b6020604051602081039080840390855afa158015611b27573d6000803e3d6000fd5b5050506020604051035173ffffffffffffffffffffffffffffffffffffffff16600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611bc0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bb790614e1a565b60405180910390fd5b50505050565b600081600001549050919050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603611c43576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c3a90614eac565b60405180910390fd5b6000611c4d61157b565b90506000611c5a85612b60565b90506000611c6785612b60565b9050611c78836000898585896128ce565b8460008088815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611cd7919061498a565b925050819055508673ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628989604051611d55929190614ecc565b60405180910390a4611d6c836000898585896128e4565b611d7b83600089898989612bda565b50505050505050565b611d8c611571565b6bffffffffffffffffffffffff16816bffffffffffffffffffffffff161115611dea576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611de190614f67565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611e59576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e5090614fd3565b60405180910390fd5b60405180604001604052808373ffffffffffffffffffffffffffffffffffffffff168152602001826bffffffffffffffffffffffff168152506004600085815260200190815260200160002060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff160217905550905050505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611f9a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f9190615065565b60405180910390fd5b8051825114611fde576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fd590614a52565b60405180910390fd5b6000611fe861157b565b9050612008818560008686604051806020016040528060008152506128ce565b60005b83518110156121555760008482815181106120295761202861460d565b5b6020026020010151905060008483815181106120485761204761460d565b5b60200260200101519050600080600084815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050818110156120e9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120e0906150f7565b60405180910390fd5b81810360008085815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550505050808061214d9061463c565b91505061200b565b50600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb86866040516121cd929190614b96565b60405180910390a46121f3818560008686604051806020016040528060008152506128e4565b50505050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603612267576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161225e90615189565b60405180910390fd5b80600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516123589190613589565b60405180910390a3505050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16036123d4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123cb90614ae4565b60405180910390fd5b60006123de61157b565b905060006123eb85612b60565b905060006123f885612b60565b90506124088389898585896128ce565b600080600088815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490508581101561249f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161249690614b76565b60405180910390fd5b85810360008089815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508560008089815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612554919061498a565b925050819055508773ffffffffffffffffffffffffffffffffffffffff168973ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628a8a6040516125d1929190614ecc565b60405180910390a46125e7848a8a86868a6128e4565b6125f5848a8a8a8a8a612bda565b505050505050505050565b61260a82826118b8565b5050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff160361267d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161267490615065565b60405180910390fd5b600061268761157b565b9050600061269484612b60565b905060006126a184612b60565b90506126c1838760008585604051806020016040528060008152506128ce565b600080600087815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905084811015612758576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161274f906150f7565b60405180910390fd5b84810360008088815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600073ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628989604051612825929190614ecc565b60405180910390a461284b848860008686604051806020016040528060008152506128e4565b50505050505050565b60007f2a55205a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806128c757506128c682612db1565b5b9050919050565b6128dc868686868686612e93565b505050505050565b505050505050565b61290b8473ffffffffffffffffffffffffffffffffffffffff16613063565b15612abb578373ffffffffffffffffffffffffffffffffffffffff1663bc197c8187878686866040518663ffffffff1660e01b81526004016129519594939291906151fe565b6020604051808303816000875af192505050801561298d57506040513d601f19601f8201168201806040525081019061298a919061527b565b60015b612a32576129996152b5565b806308c379a0036129f557506129ad6152d7565b806129b857506129f7565b806040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129ec919061363d565b60405180910390fd5b505b6040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a29906153d9565b60405180910390fd5b63bc197c8160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614612ab9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ab09061546b565b60405180910390fd5b505b505050505050565b612acd8282610e7f565b612b5c57612af28173ffffffffffffffffffffffffffffffffffffffff166014613086565b612b008360001c6020613086565b604051602001612b11929190615523565b6040516020818303038152906040526040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b53919061363d565b60405180910390fd5b5050565b60606000600167ffffffffffffffff811115612b7f57612b7e613796565b5b604051908082528060200260200182016040528015612bad5781602001602082028036833780820191505090505b5090508281600081518110612bc557612bc461460d565b5b60200260200101818152505080915050919050565b612bf98473ffffffffffffffffffffffffffffffffffffffff16613063565b15612da9578373ffffffffffffffffffffffffffffffffffffffff1663f23a6e6187878686866040518663ffffffff1660e01b8152600401612c3f95949392919061555d565b6020604051808303816000875af1925050508015612c7b57506040513d601f19601f82011682018060405250810190612c78919061527b565b60015b612d2057612c876152b5565b806308c379a003612ce35750612c9b6152d7565b80612ca65750612ce5565b806040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612cda919061363d565b60405180910390fd5b505b6040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d17906153d9565b60405180910390fd5b63f23a6e6160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614612da7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d9e9061546b565b60405180910390fd5b505b505050505050565b60007fd9b67a26000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612e7c57507f0e89341c000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80612e8c5750612e8b826132c2565b5b9050919050565b612ea186868686868661332c565b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603612f525760005b8351811015612f5057828181518110612ef457612ef361460d565b5b602002602001015160036000868481518110612f1357612f1261460d565b5b602002602001015181526020019081526020016000206000828254612f38919061498a565b9250508190555080612f499061463c565b9050612ed8565b505b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff160361305b5760005b8351811015613059576000848281518110612fa757612fa661460d565b5b602002602001015190506000848381518110612fc657612fc561460d565b5b602002602001015190506000600360008481526020019081526020016000205490508181101561302b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161302290615629565b60405180910390fd5b8181036003600085815260200190815260200160002081905550505050806130529061463c565b9050612f89565b505b505050505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b606060006002836002613099919061439d565b6130a3919061498a565b67ffffffffffffffff8111156130bc576130bb613796565b5b6040519080825280601f01601f1916602001820160405280156130ee5781602001600182028036833780820191505090505b5090507f3000000000000000000000000000000000000000000000000000000000000000816000815181106131265761312561460d565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f78000000000000000000000000000000000000000000000000000000000000008160018151811061318a5761318961460d565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600060018460026131ca919061439d565b6131d4919061498a565b90505b6001811115613274577f3031323334353637383961626364656600000000000000000000000000000000600f8616601081106132165761321561460d565b5b1a60f81b82828151811061322d5761322c61460d565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c94508061326d90615649565b90506131d7565b50600084146132b8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016132af906156be565b60405180910390fd5b8091505092915050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b505050505050565b828054613340906141b7565b90600052602060002090601f01602090048101928261336257600085556133a9565b82601f1061337b57805160ff19168380011785556133a9565b828001600101855582156133a9579182015b828111156133a857825182559160200191906001019061338d565b5b5090506133b691906133ba565b5090565b5b808211156133d35760008160009055506001016133bb565b5090565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000613416826133eb565b9050919050565b6134268161340b565b811461343157600080fd5b50565b6000813590506134438161341d565b92915050565b6000819050919050565b61345c81613449565b811461346757600080fd5b50565b60008135905061347981613453565b92915050565b60008060408385031215613496576134956133e1565b5b60006134a485828601613434565b92505060206134b58582860161346a565b9150509250929050565b6134c881613449565b82525050565b60006020820190506134e360008301846134bf565b92915050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61351e816134e9565b811461352957600080fd5b50565b60008135905061353b81613515565b92915050565b600060208284031215613557576135566133e1565b5b60006135658482850161352c565b91505092915050565b60008115159050919050565b6135838161356e565b82525050565b600060208201905061359e600083018461357a565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b838110156135de5780820151818401526020810190506135c3565b838111156135ed576000848401525b50505050565b6000601f19601f8301169050919050565b600061360f826135a4565b61361981856135af565b93506136298185602086016135c0565b613632816135f3565b840191505092915050565b600060208201905081810360008301526136578184613604565b905092915050565b600060208284031215613675576136746133e1565b5b60006136838482850161346a565b91505092915050565b6000819050919050565b61369f8161368c565b81146136aa57600080fd5b50565b6000813590506136bc81613696565b92915050565b6000602082840312156136d8576136d76133e1565b5b60006136e6848285016136ad565b91505092915050565b6136f88161368c565b82525050565b600060208201905061371360008301846136ef565b92915050565b600080604083850312156137305761372f6133e1565b5b600061373e8582860161346a565b925050602061374f8582860161346a565b9150509250929050565b6137628161340b565b82525050565b600060408201905061377d6000830185613759565b61378a60208301846134bf565b9392505050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6137ce826135f3565b810181811067ffffffffffffffff821117156137ed576137ec613796565b5b80604052505050565b60006138006133d7565b905061380c82826137c5565b919050565b600067ffffffffffffffff82111561382c5761382b613796565b5b602082029050602081019050919050565b600080fd5b600061385561385084613811565b6137f6565b905080838252602082019050602084028301858111156138785761387761383d565b5b835b818110156138a1578061388d888261346a565b84526020840193505060208101905061387a565b5050509392505050565b600082601f8301126138c0576138bf613791565b5b81356138d0848260208601613842565b91505092915050565b600080fd5b600067ffffffffffffffff8211156138f9576138f8613796565b5b613902826135f3565b9050602081019050919050565b82818337600083830152505050565b600061393161392c846138de565b6137f6565b90508281526020810184848401111561394d5761394c6138d9565b5b61395884828561390f565b509392505050565b600082601f83011261397557613974613791565b5b813561398584826020860161391e565b91505092915050565b600080600080600060a086880312156139aa576139a96133e1565b5b60006139b888828901613434565b95505060206139c988828901613434565b945050604086013567ffffffffffffffff8111156139ea576139e96133e6565b5b6139f6888289016138ab565b935050606086013567ffffffffffffffff811115613a1757613a166133e6565b5b613a23888289016138ab565b925050608086013567ffffffffffffffff811115613a4457613a436133e6565b5b613a5088828901613960565b9150509295509295909350565b60008060408385031215613a7457613a736133e1565b5b6000613a82858286016136ad565b9250506020613a9385828601613434565b9150509250929050565b600067ffffffffffffffff821115613ab857613ab7613796565b5b602082029050602081019050919050565b6000613adc613ad784613a9d565b6137f6565b90508083825260208201905060208402830185811115613aff57613afe61383d565b5b835b81811015613b285780613b148882613434565b845260208401935050602081019050613b01565b5050509392505050565b600082601f830112613b4757613b46613791565b5b8135613b57848260208601613ac9565b91505092915050565b60008060408385031215613b7757613b766133e1565b5b600083013567ffffffffffffffff811115613b9557613b946133e6565b5b613ba185828601613b32565b925050602083013567ffffffffffffffff811115613bc257613bc16133e6565b5b613bce858286016138ab565b9150509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b613c0d81613449565b82525050565b6000613c1f8383613c04565b60208301905092915050565b6000602082019050919050565b6000613c4382613bd8565b613c4d8185613be3565b9350613c5883613bf4565b8060005b83811015613c89578151613c708882613c13565b9750613c7b83613c2b565b925050600181019050613c5c565b5085935050505092915050565b60006020820190508181036000830152613cb08184613c38565b905092915050565b600067ffffffffffffffff821115613cd357613cd2613796565b5b613cdc826135f3565b9050602081019050919050565b6000613cfc613cf784613cb8565b6137f6565b905082815260208101848484011115613d1857613d176138d9565b5b613d2384828561390f565b509392505050565b600082601f830112613d4057613d3f613791565b5b8135613d50848260208601613ce9565b91505092915050565b600060208284031215613d6f57613d6e6133e1565b5b600082013567ffffffffffffffff811115613d8d57613d8c6133e6565b5b613d9984828501613d2b565b91505092915050565b60006bffffffffffffffffffffffff82169050919050565b613dc381613da2565b8114613dce57600080fd5b50565b600081359050613de081613dba565b92915050565b600080fd5b600060808284031215613e0157613e00613de6565b5b81905092915050565b60008060008060e08587031215613e2457613e236133e1565b5b600085013567ffffffffffffffff811115613e4257613e416133e6565b5b613e4e87828801613d2b565b9450506020613e5f87828801613dd1565b9350506040613e708782880161346a565b9250506060613e8187828801613deb565b91505092959194509250565b600080600060608486031215613ea657613ea56133e1565b5b6000613eb486828701613434565b935050602084013567ffffffffffffffff811115613ed557613ed46133e6565b5b613ee1868287016138ab565b925050604084013567ffffffffffffffff811115613f0257613f016133e6565b5b613f0e868287016138ab565b9150509250925092565b6000602082019050613f2d6000830184613759565b92915050565b613f3c8161356e565b8114613f4757600080fd5b50565b600081359050613f5981613f33565b92915050565b60008060408385031215613f7657613f756133e1565b5b6000613f8485828601613434565b9250506020613f9585828601613f4a565b9150509250929050565b60008060408385031215613fb657613fb56133e1565b5b6000613fc485828601613434565b9250506020613fd585828601613434565b9150509250929050565b600080600080600060a08688031215613ffb57613ffa6133e1565b5b600061400988828901613434565b955050602061401a88828901613434565b945050604061402b8882890161346a565b935050606061403c8882890161346a565b925050608086013567ffffffffffffffff81111561405d5761405c6133e6565b5b61406988828901613960565b9150509295509295909350565b60006020828403121561408c5761408b6133e1565b5b600061409a84828501613434565b91505092915050565b6000806000606084860312156140bc576140bb6133e1565b5b60006140ca86828701613434565b93505060206140db8682870161346a565b92505060406140ec8682870161346a565b9150509250925092565b7f455243313135353a2062616c616e636520717565727920666f7220746865207a60008201527f65726f2061646472657373000000000000000000000000000000000000000000602082015250565b6000614152602b836135af565b915061415d826140f6565b604082019050919050565b6000602082019050818103600083015261418181614145565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806141cf57607f821691505b6020821081036141e2576141e1614188565b5b50919050565b7f4552433131353555524953746f726167653a2055524920717565727920666f7260008201527f206e6f6e6578697374656e7420746f6b656e0000000000000000000000000000602082015250565b60006142446032836135af565b915061424f826141e8565b604082019050919050565b6000602082019050818103600083015261427381614237565b9050919050565b600081905092915050565b60008190508160005260206000209050919050565b600081546142a7816141b7565b6142b1818661427a565b945060018216600081146142cc57600181146142dd57614310565b60ff19831686528186019350614310565b6142e685614285565b60005b83811015614308578154818901526001820191506020810190506142e9565b838801955050505b50505092915050565b6000614324826135a4565b61432e818561427a565b935061433e8185602086016135c0565b80840191505092915050565b6000614356828561429a565b91506143628284614319565b91508190509392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006143a882613449565b91506143b383613449565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156143ec576143eb61436e565b5b828202905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061443182613449565b915061443c83613449565b92508261444c5761444b6143f7565b5b828204905092915050565b7f455243313135353a207472616e736665722063616c6c6572206973206e6f742060008201527f6f776e6572206e6f7220617070726f7665640000000000000000000000000000602082015250565b60006144b36032836135af565b91506144be82614457565b604082019050919050565b600060208201905081810360008301526144e2816144a6565b9050919050565b7f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560008201527f20726f6c657320666f722073656c660000000000000000000000000000000000602082015250565b6000614545602f836135af565b9150614550826144e9565b604082019050919050565b6000602082019050818103600083015261457481614538565b9050919050565b7f455243313135353a206163636f756e747320616e6420696473206c656e67746860008201527f206d69736d617463680000000000000000000000000000000000000000000000602082015250565b60006145d76029836135af565b91506145e28261457b565b604082019050919050565b60006020820190508181036000830152614606816145ca565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600061464782613449565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036146795761467861436e565b5b600182019050919050565b60006146908284614319565b915081905092915050565b60006146a7828461429a565b915081905092915050565b7f4e6f6e6365203a20496e76616c6964204e6f6e63650000000000000000000000600082015250565b60006146e86015836135af565b91506146f3826146b2565b602082019050919050565b60006020820190508181036000830152614717816146db565b9050919050565b600080fd5b600060ff82169050919050565b61473981614723565b811461474457600080fd5b50565b60008135905061475681614730565b92915050565b6000608082840312156147725761477161471e565b5b61477c60806137f6565b9050600061478c84828501614747565b60008301525060206147a0848285016136ad565b60208301525060406147b4848285016136ad565b60408301525060606147c88482850161346a565b60608301525092915050565b6000608082840312156147ea576147e96133e1565b5b60006147f88482850161475c565b91505092915050565b7f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260008201527f20617070726f7665640000000000000000000000000000000000000000000000602082015250565b600061485d6029836135af565b915061486882614801565b604082019050919050565b6000602082019050818103600083015261488c81614850565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006148ef6026836135af565b91506148fa82614893565b604082019050919050565b6000602082019050818103600083015261491e816148e2565b9050919050565b600061493082613449565b915061493b83613449565b92508282101561494e5761494d61436e565b5b828203905092915050565b600061496482613449565b915061496f83613449565b92508261497f5761497e6143f7565b5b828206905092915050565b600061499582613449565b91506149a083613449565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156149d5576149d461436e565b5b828201905092915050565b7f455243313135353a2069647320616e6420616d6f756e7473206c656e6774682060008201527f6d69736d61746368000000000000000000000000000000000000000000000000602082015250565b6000614a3c6028836135af565b9150614a47826149e0565b604082019050919050565b60006020820190508181036000830152614a6b81614a2f565b9050919050565b7f455243313135353a207472616e7366657220746f20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b6000614ace6025836135af565b9150614ad982614a72565b604082019050919050565b60006020820190508181036000830152614afd81614ac1565b9050919050565b7f455243313135353a20696e73756666696369656e742062616c616e636520666f60008201527f72207472616e7366657200000000000000000000000000000000000000000000602082015250565b6000614b60602a836135af565b9150614b6b82614b04565b604082019050919050565b60006020820190508181036000830152614b8f81614b53565b9050919050565b60006040820190508181036000830152614bb08185613c38565b90508181036020830152614bc48184613c38565b90509392505050565b6000819050919050565b6000614bf2614bed614be8846133eb565b614bcd565b6133eb565b9050919050565b6000614c0482614bd7565b9050919050565b6000614c1682614bf9565b9050919050565b60008160601b9050919050565b6000614c3582614c1d565b9050919050565b6000614c4782614c2a565b9050919050565b614c5f614c5a82614c0b565b614c3c565b82525050565b614c76614c718261340b565b614c3c565b82525050565b6000819050919050565b614c97614c9282613449565b614c7c565b82525050565b6000614ca98287614c4e565b601482019150614cb98286614c65565b601482019150614cc98285614319565b9150614cd58284614c86565b60208201915081905095945050505050565b7f19457468657265756d205369676e6564204d6573736167653a0a333200000000600082015250565b6000614d1d601c8361427a565b9150614d2882614ce7565b601c82019050919050565b6000819050919050565b614d4e614d498261368c565b614d33565b82525050565b6000614d5f82614d10565b9150614d6b8284614d3d565b60208201915081905092915050565b614d8381614723565b82525050565b6000608082019050614d9e60008301876136ef565b614dab6020830186614d7a565b614db860408301856136ef565b614dc560608301846136ef565b95945050505050565b7f4f776e6572207369676e20766572696669636174696f6e206661696c65640000600082015250565b6000614e04601e836135af565b9150614e0f82614dce565b602082019050919050565b60006020820190508181036000830152614e3381614df7565b9050919050565b7f455243313135353a206d696e7420746f20746865207a65726f2061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b6000614e966021836135af565b9150614ea182614e3a565b604082019050919050565b60006020820190508181036000830152614ec581614e89565b9050919050565b6000604082019050614ee160008301856134bf565b614eee60208301846134bf565b9392505050565b7f455243323938313a20726f79616c7479206665652077696c6c2065786365656460008201527f2073616c65507269636500000000000000000000000000000000000000000000602082015250565b6000614f51602a836135af565b9150614f5c82614ef5565b604082019050919050565b60006020820190508181036000830152614f8081614f44565b9050919050565b7f455243323938313a20496e76616c696420706172616d65746572730000000000600082015250565b6000614fbd601b836135af565b9150614fc882614f87565b602082019050919050565b60006020820190508181036000830152614fec81614fb0565b9050919050565b7f455243313135353a206275726e2066726f6d20746865207a65726f206164647260008201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b600061504f6023836135af565b915061505a82614ff3565b604082019050919050565b6000602082019050818103600083015261507e81615042565b9050919050565b7f455243313135353a206275726e20616d6f756e7420657863656564732062616c60008201527f616e636500000000000000000000000000000000000000000000000000000000602082015250565b60006150e16024836135af565b91506150ec82615085565b604082019050919050565b60006020820190508181036000830152615110816150d4565b9050919050565b7f455243313135353a2073657474696e6720617070726f76616c2073746174757360008201527f20666f722073656c660000000000000000000000000000000000000000000000602082015250565b60006151736029836135af565b915061517e82615117565b604082019050919050565b600060208201905081810360008301526151a281615166565b9050919050565b600081519050919050565b600082825260208201905092915050565b60006151d0826151a9565b6151da81856151b4565b93506151ea8185602086016135c0565b6151f3816135f3565b840191505092915050565b600060a0820190506152136000830188613759565b6152206020830187613759565b81810360408301526152328186613c38565b905081810360608301526152468185613c38565b9050818103608083015261525a81846151c5565b90509695505050505050565b60008151905061527581613515565b92915050565b600060208284031215615291576152906133e1565b5b600061529f84828501615266565b91505092915050565b60008160e01c9050919050565b600060033d11156152d45760046000803e6152d16000516152a8565b90505b90565b600060443d10615364576152e96133d7565b60043d036004823e80513d602482011167ffffffffffffffff82111715615311575050615364565b808201805167ffffffffffffffff81111561532f5750505050615364565b80602083010160043d03850181111561534c575050505050615364565b61535b826020018501866137c5565b82955050505050505b90565b7f455243313135353a207472616e7366657220746f206e6f6e204552433131353560008201527f526563656976657220696d706c656d656e746572000000000000000000000000602082015250565b60006153c36034836135af565b91506153ce82615367565b604082019050919050565b600060208201905081810360008301526153f2816153b6565b9050919050565b7f455243313135353a204552433131353552656365697665722072656a6563746560008201527f6420746f6b656e73000000000000000000000000000000000000000000000000602082015250565b60006154556028836135af565b9150615460826153f9565b604082019050919050565b6000602082019050818103600083015261548481615448565b9050919050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000600082015250565b60006154c160178361427a565b91506154cc8261548b565b601782019050919050565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000600082015250565b600061550d60118361427a565b9150615518826154d7565b601182019050919050565b600061552e826154b4565b915061553a8285614319565b915061554582615500565b91506155518284614319565b91508190509392505050565b600060a0820190506155726000830188613759565b61557f6020830187613759565b61558c60408301866134bf565b61559960608301856134bf565b81810360808301526155ab81846151c5565b90509695505050505050565b7f455243313135353a206275726e20616d6f756e74206578636565647320746f7460008201527f616c537570706c79000000000000000000000000000000000000000000000000602082015250565b60006156136028836135af565b915061561e826155b7565b604082019050919050565b6000602082019050818103600083015261564281615606565b9050919050565b600061565482613449565b9150600082036156675761566661436e565b5b600182039050919050565b7f537472696e67733a20686578206c656e67746820696e73756666696369656e74600082015250565b60006156a86020836135af565b91506156b382615672565b602082019050919050565b600060208201905081810360008301526156d78161569b565b905091905056fea264697066735822122038547ebf6f584c51fd961e57474752032be8f1d196d6a7abeebc96e6a10d08c564736f6c634300080e0033

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

000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e000000000000000000000000000000000000000000000000000000000000000114e465450415354454c6d756c7469706c65000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a4e465450415354454c4d00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002268747470733a2f2f676174657761792e70696e6174612e636c6f75642f697066732f000000000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _tokenName (string): NFTPASTELmultiple
Arg [1] : _tokenSymbol (string): NFTPASTELM
Arg [2] : _baseTokenURI (string): https://gateway.pinata.cloud/ipfs/

-----Encoded View---------------
10 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [2] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000011
Arg [4] : 4e465450415354454c6d756c7469706c65000000000000000000000000000000
Arg [5] : 000000000000000000000000000000000000000000000000000000000000000a
Arg [6] : 4e465450415354454c4d00000000000000000000000000000000000000000000
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000022
Arg [8] : 68747470733a2f2f676174657761792e70696e6174612e636c6f75642f697066
Arg [9] : 732f000000000000000000000000000000000000000000000000000000000000


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.