ETH Price: $3,296.57 (-3.77%)
Gas: 6 Gwei

Token

Naughty Teddies Club (NTC)
 

Overview

Max Total Supply

500 NTC

Holders

210

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
1 NTC
0xEf9bb7339ff534d3a69Dad2607bC682Cb7c98A38
Loading...
Loading
Loading...
Loading
Loading...
Loading

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

Contract Source Code Verified (Exact Match)

Contract Name:
MintableERC721S

Compiler Version
v0.8.12+commit.f00d7308

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 15 : MintableERC721P.sol
// SPDX-License-Identifier: MIT
pragma solidity =0.8.12;

import "@openzeppelin/contracts/access/AccessControl.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "../../interfaces/IMintableERC721S.sol";
import "./ERC721S.sol";

/**
 * @notice ERC721S-compliant contract with added
 *         function for minting new NFTs to addresses.
 */
contract MintableERC721S is ERC721S, IMintableERC721S, AccessControl, Ownable {
  using Address for address;
  using Strings for uint256;

  /**
   * @dev Smart contract unique identifier, a random number
   *
   * @dev Should be regenerated each time smart contact source code is changed
   *      and changes smart contract itself is to be redeployed
   *
   * @dev Generated using https://www.random.org/bytes/
   */
  uint256 public constant UID = 0x3f38351a8d513731422d6b64f354f3cf7ea9ae952d15c73513da3b92754e778f;

  bytes32 public constant URI_MANAGER_ROLE = keccak256("URI_MANAGER_ROLE");
  bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE");

  constructor(string memory _name, string memory _symbol) ERC721S(_name, _symbol) {
    _setupRole(DEFAULT_ADMIN_ROLE, msg.sender);
    _setupRole(URI_MANAGER_ROLE, msg.sender);
    _setupRole(MINTER_ROLE, msg.sender);
  }

  string internal theBaseURI = "";

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

  /**
   * @dev Fired in setBaseURI()
   *
   * @param _by an address which executed update
   * @param _oldVal old _baseURI value
   * @param _newVal new _baseURI value
   */
  event BaseURIChanged(address _by, string _oldVal, string _newVal);
 
  /**
   * @dev Restricted access function which updates base URI used to construct
   *      ERC721Metadata.tokenURI
   *
   * @param _newBaseURI new base URI to set
   */
  function setBaseURI(string memory _newBaseURI) external onlyRole(URI_MANAGER_ROLE) {
    // Fire event
    emit BaseURIChanged(msg.sender, theBaseURI, _newBaseURI);

    // Update base uri
    theBaseURI = _newBaseURI;
  }

  /**
   * @inheritdoc IMintableERC721S
   */
  function exists(uint256 _tokenId) external view returns (bool) {
    // Delegate to internal OpenZeppelin function
    return _exists(_tokenId);
  }

  /**
   * @inheritdoc IMintableERC721S
   */
  function safeMint(address _to, bool _amount) public virtual onlyRole(MINTER_ROLE) {
    _safeMint(_to, _amount);
  }

  /**
   * @inheritdoc IMintableERC721S
   */
  function safeMint(
    address _to,
    bool _amount,
    bytes memory _data
  ) public virtual onlyRole(MINTER_ROLE) {
    _safeMint(_to, _amount, _data);
  }

  /**
   * @inheritdoc IMintableERC721S
   */
  function mint(address _to, bool _amount) public virtual onlyRole(MINTER_ROLE) {
    // Delegate to internal OpenZeppelin function
    _mint(_to, _amount);
  }

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

File 2 of 15 : AccessControl.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (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, _msgSender());
        _;
    }

    /**
     * @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 override returns (bool) {
        return _roles[role].members[account];
    }

    /**
     * @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 {
        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 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 3 of 15 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

pragma solidity ^0.8.0;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        assembly {
            size := extcodesize(account)
        }
        return size > 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 6 of 15 : IMintableERC721S.sol
// SPDX-License-Identifier: MIT
pragma solidity =0.8.12;

interface IMintableERC721S {
  /**
   * @dev Returns whether `tokenId` exists.
   *
   * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}.
   *
   * Tokens start existing when they are minted (`_mint`).
   */
  function exists(uint256 _tokenId) external view returns (bool);

  /**
   * @dev Safely mints the token with next consecutive ID and transfers it to `to`. Setting
   *      `amount` to `true` will mint another nft.
   *
   * Requirements:
   *
   * - `tokenId` must not exist.
   * - `maxTotalSupply` maximum total supply has not been reached
   * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
   *
   * Emits a {Transfer} event.
   */
  function safeMint(address _to, bool _amount) external;

  /**
   * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is
   * forwarded in {IERC721Receiver-onERC721Received} to contract recipients.
   */
  function safeMint(
    address _to,
    bool _amount,
    bytes memory _data
  ) external;

  /**
   * @dev Mints the token with next consecutive ID and transfers it to `to`. Setting
   *      `amount` to `true` will mint another nft.
   *
   * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible
   *
   * Requirements:
   *
   * - `to` cannot be the zero address.
   * - `maxTotalSupply` maximum total supply has not been reached
   *
   * Emits a {Transfer} event.
   */
  function mint(address _to, bool _amount) external;
}

File 7 of 15 : ERC721S.sol
// SPDX-License-Identifier: MIT
pragma solidity =0.8.12;

import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/utils/Context.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/utils/introspection/ERC165.sol";

/**
 * @dev Gas-efficient implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard,
 * including the Metadata extension and the Enumerable extension
 *
 * @dev Only allows token IDs are minted serially starting from token ID 1
 *
 * @dev Does not support burning tokens or in any way changing the ownership of a token
 *      to address(0)
 */
contract ERC721S is Context, ERC165, IERC721, IERC721Metadata, IERC721Enumerable {
  using Address for address;
  using Strings for uint256;

  /**
   * @dev Stores the name of the token as specified in the constructor
   */
  string private _name;

  /**
   * @dev Stores the symbol of the token as specified in the constructor
   */
  string private _symbol;

  /**
   * @dev Maps token ID to address owner
   *
   * @dev `_owners[0] == address(0)` will always be true since minting
   *      starts from token ID 1
   *
   * @dev If `_owners[n] == address(0)` and also `nextId > n`, then ownership
   *      of `n` is attributed to the owner of the previous token ID `_owners[n - 1]`
   */
  mapping(uint256 => address) private _owners;

  /**
   * @dev Maps token ID to approved address
   *
   * @dev Token owners can call {approve} to approve
   *      an address to trade their token on their behalf
   *
   * @dev Is reset each time an NFTs gets transfered
   */
  mapping(uint256 => address) private _tokenApprovals;

  /**
   * @dev Maps owners to operator approvals that can transfer
   *      any of the owner's tokens on his behalf
   *
   * @dev Mutated via {setApprovalForAll}
   */
  mapping(address => mapping(address => bool)) private _operatorApprovals;

  /**
   * @dev Next sequential token ID to be minted
   *
   * @dev Starts at 1 and is incremented by {_mint}
   */
  uint256 public nextId = 1;

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

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

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

    uint256 count = 0;

    for(uint256 i = 1; _exists(i); i++) {
      if(_owners[i] == owner) {
        count++;
        if(_owners[i + 1] == address(0) && _exists(i + 1)) count++;
      }
    }

    return count;
  }

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

    return _owners[tokenId] != address(0) ? _owners[tokenId] : _owners[tokenId - 1];
  }

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

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

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

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

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

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

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

    _approve(to, tokenId);
  }

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

    return _tokenApprovals[tokenId];
  }

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

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

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

    _transfer(from, to, tokenId);
  }

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

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

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

  /**
   * @dev Returns whether `tokenId` exists.
   *
   * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}.
   *
   * Tokens start existing when they are minted (`_mint`).
   */
  function _exists(uint256 tokenId) internal view virtual returns (bool) {
    return tokenId != 0 && tokenId < nextId;
  }

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

  /**
   * @dev Safely mints the token with next consecutive ID and transfers it to `to`. Setting
   *      `amount` to `true` will mint another nft.
   *
   * Requirements:
   *
   * - `tokenId` must not exist.
   * - `maxTotalSupply` maximum total supply has not been reached
   * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
   *
   * Emits a {Transfer} event.
   */
  function _safeMint(address to, bool amount) internal virtual {
    _safeMint(to, amount, "");
  }

  /**
   * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is
   * forwarded in {IERC721Receiver-onERC721Received} to contract recipients.
   */
  function _safeMint(
    address to,
    bool amount,
    bytes memory _data
  ) internal virtual {
    _mint(to, amount);

    uint256 n = !amount ? 1 : 2;

    for(uint256 i = 0; i < n; i++) {
      require(
        _checkOnERC721Received(address(0), to, nextId - i - 1, _data),
        "ERC721S: transfer to non ERC721Receiver implementer"
      );
    }
  }

  /**
   * @dev Mints the token with next consecutive ID and transfers it to `to`. Setting
   *      `amount` to `true` will mint another nft.
   *
   * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible
   *
   * Requirements:
   *
   * - `to` cannot be the zero address.
   * - `maxTotalSupply` maximum total supply has not been reached
   *
   * Emits a {Transfer} event.
   */
  function _mint(address to, bool amount) internal virtual {
    // The below calculations do not depend on user input and
    // are very hard to overflow (nextId must be >= 2^256-2 for
    // that to happen) so using `unchecked` as a means of saving
    // gas is safe here
    unchecked {
      require(to != address(0), "ERC721S: mint to the zero address");

      uint256 n = !amount ? 1 : 2;

      _owners[nextId] = to;

      for(uint256 i = 0; i < n; i++) {
        _beforeTokenTransfer(address(0), to, nextId + i);
        emit Transfer(address(0), to, nextId + i);
      }

      nextId += n;
    }
  }

  /**
   * @dev Transfers `tokenId` from `from` to `to`.
   *  As opposed to {transferFrom}, this imposes no restrictions on msg.sender.
   *
   * Requirements:
   *
   * - `to` cannot be the zero address.
   * - `tokenId` token must be owned by `from`.
   *
   * Emits a {Transfer} event.
   */
  function _transfer(
    address from,
    address to,
    uint256 tokenId
  ) internal virtual {
    // The below calculations are very hard to overflow (nextId must
    // be = 2^256-1 for that to happen) so using `unchecked` as
    // a means of saving gas is safe here
    unchecked {
      require(
        ownerOf(tokenId) == from,
        "ERC721S: transfer of token that is not own"
      );
      require(to != address(0), "ERC721S: transfer to the zero address");

      _beforeTokenTransfer(from, to, tokenId);

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

      if(_owners[tokenId] == address(0)) {
        _owners[tokenId] = to;
      } else {
        _owners[tokenId] = to;

        if(_exists(tokenId + 1) && _owners[tokenId + 1] == address(0)) {
          _owners[tokenId + 1] = from;
        }
      }

      emit Transfer(from, to, tokenId);
    }
  }

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

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

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

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

  /**
   * @dev See {IEnumerableERC721-totalSupply}.
   */
  function totalSupply() external view returns (uint256) {
    return nextId - 1;
  }

  /**
   * @dev See {IEnumerableERC721-tokenByIndex}.
   */
  function tokenByIndex(uint256 index) external view returns (uint256) {
    require(_exists(index + 1), "ERC721S: global index out of bounds");

    return index + 1;
  }

  /**
   * @dev See {IEnumerableERC721-tokenOfOwnerByIndex}.
   */
  function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256) {
    require(owner != address(0), "ERC721S: balance query for the zero address");

    uint256 count = 0;
    uint256 i = 1;

    for(; _exists(i) && count < index + 1; i++) {
      if(_owners[i] == owner) {
        count++;
        if(_owners[i + 1] == address(0) && count < index + 1 && _exists(i + 1)) {
          count++;
          i++;
        }
      }
    }

    if(count == index + 1) return i - 1;
    else revert("ERC721S: owner index out of bounds");
  }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

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

pragma solidity ^0.8.0;

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

File 14 of 15 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol)

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

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

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_by","type":"address"},{"indexed":false,"internalType":"string","name":"_oldVal","type":"string"},{"indexed":false,"internalType":"string","name":"_newVal","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":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINTER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"UID","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"URI_MANAGER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"exists","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"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":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"bool","name":"_amount","type":"bool"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nextId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"bool","name":"_amount","type":"bool"}],"name":"safeMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"bool","name":"_amount","type":"bool"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newBaseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"_interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405260016005556040518060200160405280600081525060089080519060200190620000309291906200037c565b503480156200003e57600080fd5b5060405162004a5d38038062004a5d8339818101604052810190620000649190620005c9565b818181600090805190602001906200007e9291906200037c565b508060019080519060200190620000979291906200037c565b505050620000ba620000ae6200013b60201b60201c565b6200014360201b60201c565b620000cf6000801b336200020960201b60201c565b620001017fa70a2d8710fed9f014c8c2af50c7c2f6b25748ae4cded822e03b7beed44cf3a8336200020960201b60201c565b620001337f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6336200020960201b60201c565b5050620006b3565b600033905090565b6000600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6200021b82826200021f60201b60201c565b5050565b6200023182826200031160201b60201c565b6200030d5760016006600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550620002b26200013b60201b60201c565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b60006006600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b8280546200038a906200067d565b90600052602060002090601f016020900481019282620003ae5760008555620003fa565b82601f10620003c957805160ff1916838001178555620003fa565b82800160010185558215620003fa579182015b82811115620003f9578251825591602001919060010190620003dc565b5b5090506200040991906200040d565b5090565b5b80821115620004285760008160009055506001016200040e565b5090565b6000604051905090565b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b62000495826200044a565b810181811067ffffffffffffffff82111715620004b757620004b66200045b565b5b80604052505050565b6000620004cc6200042c565b9050620004da82826200048a565b919050565b600067ffffffffffffffff821115620004fd57620004fc6200045b565b5b62000508826200044a565b9050602081019050919050565b60005b838110156200053557808201518184015260208101905062000518565b8381111562000545576000848401525b50505050565b6000620005626200055c84620004df565b620004c0565b90508281526020810184848401111562000581576200058062000445565b5b6200058e84828562000515565b509392505050565b600082601f830112620005ae57620005ad62000440565b5b8151620005c08482602086016200054b565b91505092915050565b60008060408385031215620005e357620005e262000436565b5b600083015167ffffffffffffffff8111156200060457620006036200043b565b5b620006128582860162000596565b925050602083015167ffffffffffffffff8111156200063657620006356200043b565b5b620006448582860162000596565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806200069657607f821691505b60208210811415620006ad57620006ac6200064e565b5b50919050565b61439a80620006c36000396000f3fe608060405234801561001057600080fd5b50600436106102065760003560e01c80635db99bbf1161011a57806395d89b41116100ad578063c87b56dd1161007c578063c87b56dd146105e9578063d539139314610619578063d547741f14610637578063e985e9c514610653578063f2fde38b1461068357610206565b806395d89b4114610575578063a217fddf14610593578063a22cb465146105b1578063b88d4fde146105cd57610206565b806370a08231116100e957806370a08231146104ed578063715018a61461051d5780638da5cb5b1461052757806391d148541461054557610206565b80635db99bbf1461046557806361b8ce8c146104815780636352211e1461049f578063682d07d9146104cf57610206565b8063248a9ca31161019d57806342842e0e1161016c57806342842e0e146103af5780634f558e79146103cb5780634f6ccce7146103fb57806355f804b31461042b5780635cc99e351461044757610206565b8063248a9ca3146103175780632f2ff15d146103475780632f745c591461036357806336568abe1461039357610206565b8063095ea7b3116101d9578063095ea7b3146102a557806318160ddd146102c15780632097d3fb146102df57806323b872dd146102fb57610206565b806301ffc9a71461020b5780630424cb0d1461023b57806306fdde0314610257578063081812fc14610275575b600080fd5b61022560048036038101906102209190612bed565b61069f565b6040516102329190612c35565b60405180910390f35b61025560048036038101906102509190612cda565b610719565b005b61025f61075a565b60405161026c9190612db3565b60405180910390f35b61028f600480360381019061028a9190612e0b565b6107ec565b60405161029c9190612e47565b60405180910390f35b6102bf60048036038101906102ba9190612e62565b610871565b005b6102c9610989565b6040516102d69190612eb1565b60405180910390f35b6102f960048036038101906102f49190612cda565b61099f565b005b61031560048036038101906103109190612ecc565b6109e0565b005b610331600480360381019061032c9190612f55565b610a40565b60405161033e9190612f91565b60405180910390f35b610361600480360381019061035c9190612fac565b610a60565b005b61037d60048036038101906103789190612e62565b610a89565b60405161038a9190612eb1565b60405180910390f35b6103ad60048036038101906103a89190612fac565b610ce0565b005b6103c960048036038101906103c49190612ecc565b610d63565b005b6103e560048036038101906103e09190612e0b565b610d83565b6040516103f29190612c35565b60405180910390f35b61041560048036038101906104109190612e0b565b610d95565b6040516104229190612eb1565b60405180910390f35b61044560048036038101906104409190613121565b610dff565b005b61044f610e88565b60405161045c9190612eb1565b60405180910390f35b61047f600480360381019061047a919061320b565b610eac565b005b610489610eef565b6040516104969190612eb1565b60405180910390f35b6104b960048036038101906104b49190612e0b565b610ef5565b6040516104c69190612e47565b60405180910390f35b6104d7611028565b6040516104e49190612f91565b60405180910390f35b6105076004803603810190610502919061327a565b61104c565b6040516105149190612eb1565b60405180910390f35b610525611206565b005b61052f61128e565b60405161053c9190612e47565b60405180910390f35b61055f600480360381019061055a9190612fac565b6112b8565b60405161056c9190612c35565b60405180910390f35b61057d611323565b60405161058a9190612db3565b60405180910390f35b61059b6113b5565b6040516105a89190612f91565b60405180910390f35b6105cb60048036038101906105c69190612cda565b6113bc565b005b6105e760048036038101906105e291906132a7565b6113d2565b005b61060360048036038101906105fe9190612e0b565b611434565b6040516106109190612db3565b60405180910390f35b6106216114db565b60405161062e9190612f91565b60405180910390f35b610651600480360381019061064c9190612fac565b6114ff565b005b61066d6004803603810190610668919061332a565b611528565b60405161067a9190612c35565b60405180910390f35b61069d6004803603810190610698919061327a565b6115bc565b005b60007f365f0d30000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806107125750610711826116b4565b5b9050919050565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a661074b8161074661172e565b611736565b61075583836117d3565b505050565b60606000805461076990613399565b80601f016020809104026020016040519081016040528092919081815260200182805461079590613399565b80156107e25780601f106107b7576101008083540402835291602001916107e2565b820191906000526020600020905b8154815290600101906020018083116107c557829003601f168201915b5050505050905090565b60006107f7826117f1565b610836576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161082d9061343d565b60405180910390fd5b6003600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b600061087c82610ef5565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156108ed576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108e4906134cf565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff1661090c61172e565b73ffffffffffffffffffffffffffffffffffffffff16148061093b575061093a8161093561172e565b611528565b5b61097a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161097190613561565b60405180910390fd5b610984838361180b565b505050565b6000600160055461099a91906135b0565b905090565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a66109d1816109cc61172e565b611736565b6109db83836118c4565b505050565b6109f16109eb61172e565b82611a3d565b610a30576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a2790613656565b60405180910390fd5b610a3b838383611b1b565b505050565b600060066000838152602001908152602001600020600101549050919050565b610a6982610a40565b610a7a81610a7561172e565b611736565b610a848383611e5e565b505050565b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610afa576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610af1906136e8565b60405180910390fd5b600080600190505b610b0b816117f1565b8015610b225750600184610b1f9190613708565b82105b15610c75578473ffffffffffffffffffffffffffffffffffffffff166002600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415610c62578180610b999061375e565b925050600073ffffffffffffffffffffffffffffffffffffffff1660026000600184610bc59190613708565b815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16148015610c225750600184610c1f9190613708565b82105b8015610c3f5750610c3e600182610c399190613708565b6117f1565b5b15610c61578180610c4f9061375e565b9250508080610c5d9061375e565b9150505b5b8080610c6d9061375e565b915050610b02565b600184610c829190613708565b821415610c9f57600181610c9691906135b0565b92505050610cda565b6040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cd190613819565b60405180910390fd5b92915050565b610ce861172e565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610d55576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d4c906138ab565b60405180910390fd5b610d5f8282611f3f565b5050565b610d7e838383604051806020016040528060008152506113d2565b505050565b6000610d8e826117f1565b9050919050565b6000610dac600183610da79190613708565b6117f1565b610deb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610de29061393d565b60405180910390fd5b600182610df89190613708565b9050919050565b7fa70a2d8710fed9f014c8c2af50c7c2f6b25748ae4cded822e03b7beed44cf3a8610e3181610e2c61172e565b611736565b7f92bf6a7b8937c17e6781a68d61f9fe6a5ce08604b96ca2206f311049a3a295ea33600884604051610e65939291906139f2565b60405180910390a18160089080519060200190610e83929190612ade565b505050565b7f3f38351a8d513731422d6b64f354f3cf7ea9ae952d15c73513da3b92754e778f81565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6610ede81610ed961172e565b611736565b610ee9848484612021565b50505050565b60055481565b6000610f00826117f1565b610f3f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f3690613aa9565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415610fec5760026000600184610fb891906135b0565b815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16611021565b6002600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff165b9050919050565b7fa70a2d8710fed9f014c8c2af50c7c2f6b25748ae4cded822e03b7beed44cf3a881565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156110bd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110b4906136e8565b60405180910390fd5b600080600190505b6110ce816117f1565b156111fc578373ffffffffffffffffffffffffffffffffffffffff166002600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614156111e95781806111459061375e565b925050600073ffffffffffffffffffffffffffffffffffffffff16600260006001846111719190613708565b815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161480156111d457506111d36001826111ce9190613708565b6117f1565b5b156111e85781806111e49061375e565b9250505b5b80806111f49061375e565b9150506110c5565b5080915050919050565b61120e61172e565b73ffffffffffffffffffffffffffffffffffffffff1661122c61128e565b73ffffffffffffffffffffffffffffffffffffffff1614611282576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161127990613b15565b60405180910390fd5b61128c60006120cc565b565b6000600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60006006600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b60606001805461133290613399565b80601f016020809104026020016040519081016040528092919081815260200182805461135e90613399565b80156113ab5780601f10611380576101008083540402835291602001916113ab565b820191906000526020600020905b81548152906001019060200180831161138e57829003601f168201915b5050505050905090565b6000801b81565b6113ce6113c761172e565b8383612192565b5050565b6113e36113dd61172e565b83611a3d565b611422576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161141990613656565b60405180910390fd5b61142e848484846122ff565b50505050565b606061143f826117f1565b61147e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161147590613ba7565b60405180910390fd5b600061148861235b565b905060008151116114a857604051806020016040528060008152506114d3565b806114b2846123ed565b6040516020016114c3929190613c03565b6040516020818303038152906040525b915050919050565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b61150882610a40565b6115198161151461172e565b611736565b6115238383611f3f565b505050565b6000600460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6115c461172e565b73ffffffffffffffffffffffffffffffffffffffff166115e261128e565b73ffffffffffffffffffffffffffffffffffffffff1614611638576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161162f90613b15565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156116a8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161169f90613c99565b60405180910390fd5b6116b1816120cc565b50565b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061172757506117268261254e565b5b9050919050565b600033905090565b61174082826112b8565b6117cf576117658173ffffffffffffffffffffffffffffffffffffffff166014612698565b6117738360001c6020612698565b604051602001611784929190613d51565b6040516020818303038152906040526040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117c69190612db3565b60405180910390fd5b5050565b6117ed828260405180602001604052806000815250612021565b5050565b6000808214158015611804575060055482105b9050919050565b816003600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff1661187e83610ef5565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611934576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161192b90613dfd565b60405180910390fd5b60008115611943576002611946565b60015b60ff1690508260026000600554815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060005b81811015611a27576119ba60008583600554016128d4565b80600554018473ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a480806001019150506119a2565b5080600560008282540192505081905550505050565b6000611a48826117f1565b611a87576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a7e90613e8f565b60405180910390fd5b6000611a9283610ef5565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480611b0157508373ffffffffffffffffffffffffffffffffffffffff16611ae9846107ec565b73ffffffffffffffffffffffffffffffffffffffff16145b80611b125750611b118185611528565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff16611b3b82610ef5565b73ffffffffffffffffffffffffffffffffffffffff1614611b91576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b8890613f21565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611c01576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bf890613fb3565b60405180910390fd5b611c0c8383836128d4565b611c1760008261180b565b600073ffffffffffffffffffffffffffffffffffffffff166002600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415611cd657816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550611dfe565b816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550611d34600182016117f1565b8015611da25750600073ffffffffffffffffffffffffffffffffffffffff166002600060018401815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16145b15611dfd57826002600060018401815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b5b808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b611e6882826112b8565b611f3b5760016006600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550611ee061172e565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b611f4982826112b8565b1561201d5760006006600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550611fc261172e565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b61202b83836118c4565b6000821561203a57600261203d565b60015b60ff16905060005b818110156120c55761207360008660018460055461206391906135b0565b61206d91906135b0565b866128d9565b6120b2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120a990614045565b60405180910390fd5b80806120bd9061375e565b915050612045565b5050505050565b6000600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612201576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121f8906140b1565b60405180910390fd5b80600460008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516122f29190612c35565b60405180910390a3505050565b61230a848484611b1b565b612316848484846128d9565b612355576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161234c90614045565b60405180910390fd5b50505050565b60606008805461236a90613399565b80601f016020809104026020016040519081016040528092919081815260200182805461239690613399565b80156123e35780601f106123b8576101008083540402835291602001916123e3565b820191906000526020600020905b8154815290600101906020018083116123c657829003601f168201915b5050505050905090565b60606000821415612435576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050612549565b600082905060005b600082146124675780806124509061375e565b915050600a826124609190614100565b915061243d565b60008167ffffffffffffffff81111561248357612482612ff6565b5b6040519080825280601f01601f1916602001820160405280156124b55781602001600182028036833780820191505090505b5090505b60008514612542576001826124ce91906135b0565b9150600a856124dd9190614131565b60306124e99190613708565b60f81b8183815181106124ff576124fe614162565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a8561253b9190614100565b94506124b9565b8093505050505b919050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061261957507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061268157507f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80612691575061269082612a61565b5b9050919050565b6060600060028360026126ab9190614191565b6126b59190613708565b67ffffffffffffffff8111156126ce576126cd612ff6565b5b6040519080825280601f01601f1916602001820160405280156127005781602001600182028036833780820191505090505b5090507f30000000000000000000000000000000000000000000000000000000000000008160008151811061273857612737614162565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f78000000000000000000000000000000000000000000000000000000000000008160018151811061279c5761279b614162565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600060018460026127dc9190614191565b6127e69190613708565b90505b6001811115612886577f3031323334353637383961626364656600000000000000000000000000000000600f86166010811061282857612827614162565b5b1a60f81b82828151811061283f5761283e614162565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c94508061287f906141eb565b90506127e9565b50600084146128ca576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128c190614261565b60405180910390fd5b8091505092915050565b505050565b60006128fa8473ffffffffffffffffffffffffffffffffffffffff16612acb565b15612a54578373ffffffffffffffffffffffffffffffffffffffff1663150b7a0261292361172e565b8786866040518563ffffffff1660e01b815260040161294594939291906142d6565b6020604051808303816000875af192505050801561298157506040513d601f19601f8201168201806040525081019061297e9190614337565b60015b612a04573d80600081146129b1576040519150601f19603f3d011682016040523d82523d6000602084013e6129b6565b606091505b506000815114156129fc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129f390614045565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050612a59565b600190505b949350505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600080823b905060008111915050919050565b828054612aea90613399565b90600052602060002090601f016020900481019282612b0c5760008555612b53565b82601f10612b2557805160ff1916838001178555612b53565b82800160010185558215612b53579182015b82811115612b52578251825591602001919060010190612b37565b5b509050612b609190612b64565b5090565b5b80821115612b7d576000816000905550600101612b65565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b612bca81612b95565b8114612bd557600080fd5b50565b600081359050612be781612bc1565b92915050565b600060208284031215612c0357612c02612b8b565b5b6000612c1184828501612bd8565b91505092915050565b60008115159050919050565b612c2f81612c1a565b82525050565b6000602082019050612c4a6000830184612c26565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000612c7b82612c50565b9050919050565b612c8b81612c70565b8114612c9657600080fd5b50565b600081359050612ca881612c82565b92915050565b612cb781612c1a565b8114612cc257600080fd5b50565b600081359050612cd481612cae565b92915050565b60008060408385031215612cf157612cf0612b8b565b5b6000612cff85828601612c99565b9250506020612d1085828601612cc5565b9150509250929050565b600081519050919050565b600082825260208201905092915050565b60005b83811015612d54578082015181840152602081019050612d39565b83811115612d63576000848401525b50505050565b6000601f19601f8301169050919050565b6000612d8582612d1a565b612d8f8185612d25565b9350612d9f818560208601612d36565b612da881612d69565b840191505092915050565b60006020820190508181036000830152612dcd8184612d7a565b905092915050565b6000819050919050565b612de881612dd5565b8114612df357600080fd5b50565b600081359050612e0581612ddf565b92915050565b600060208284031215612e2157612e20612b8b565b5b6000612e2f84828501612df6565b91505092915050565b612e4181612c70565b82525050565b6000602082019050612e5c6000830184612e38565b92915050565b60008060408385031215612e7957612e78612b8b565b5b6000612e8785828601612c99565b9250506020612e9885828601612df6565b9150509250929050565b612eab81612dd5565b82525050565b6000602082019050612ec66000830184612ea2565b92915050565b600080600060608486031215612ee557612ee4612b8b565b5b6000612ef386828701612c99565b9350506020612f0486828701612c99565b9250506040612f1586828701612df6565b9150509250925092565b6000819050919050565b612f3281612f1f565b8114612f3d57600080fd5b50565b600081359050612f4f81612f29565b92915050565b600060208284031215612f6b57612f6a612b8b565b5b6000612f7984828501612f40565b91505092915050565b612f8b81612f1f565b82525050565b6000602082019050612fa66000830184612f82565b92915050565b60008060408385031215612fc357612fc2612b8b565b5b6000612fd185828601612f40565b9250506020612fe285828601612c99565b9150509250929050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61302e82612d69565b810181811067ffffffffffffffff8211171561304d5761304c612ff6565b5b80604052505050565b6000613060612b81565b905061306c8282613025565b919050565b600067ffffffffffffffff82111561308c5761308b612ff6565b5b61309582612d69565b9050602081019050919050565b82818337600083830152505050565b60006130c46130bf84613071565b613056565b9050828152602081018484840111156130e0576130df612ff1565b5b6130eb8482856130a2565b509392505050565b600082601f83011261310857613107612fec565b5b81356131188482602086016130b1565b91505092915050565b60006020828403121561313757613136612b8b565b5b600082013567ffffffffffffffff81111561315557613154612b90565b5b613161848285016130f3565b91505092915050565b600067ffffffffffffffff82111561318557613184612ff6565b5b61318e82612d69565b9050602081019050919050565b60006131ae6131a98461316a565b613056565b9050828152602081018484840111156131ca576131c9612ff1565b5b6131d58482856130a2565b509392505050565b600082601f8301126131f2576131f1612fec565b5b813561320284826020860161319b565b91505092915050565b60008060006060848603121561322457613223612b8b565b5b600061323286828701612c99565b935050602061324386828701612cc5565b925050604084013567ffffffffffffffff81111561326457613263612b90565b5b613270868287016131dd565b9150509250925092565b6000602082840312156132905761328f612b8b565b5b600061329e84828501612c99565b91505092915050565b600080600080608085870312156132c1576132c0612b8b565b5b60006132cf87828801612c99565b94505060206132e087828801612c99565b93505060406132f187828801612df6565b925050606085013567ffffffffffffffff81111561331257613311612b90565b5b61331e878288016131dd565b91505092959194509250565b6000806040838503121561334157613340612b8b565b5b600061334f85828601612c99565b925050602061336085828601612c99565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806133b157607f821691505b602082108114156133c5576133c461336a565b5b50919050565b7f455243373231533a20617070726f76656420717565727920666f72206e6f6e6560008201527f78697374656e7420746f6b656e00000000000000000000000000000000000000602082015250565b6000613427602d83612d25565b9150613432826133cb565b604082019050919050565b600060208201905081810360008301526134568161341a565b9050919050565b7f455243373231533a20617070726f76616c20746f2063757272656e74206f776e60008201527f6572000000000000000000000000000000000000000000000000000000000000602082015250565b60006134b9602283612d25565b91506134c48261345d565b604082019050919050565b600060208201905081810360008301526134e8816134ac565b9050919050565b7f455243373231533a20617070726f76652063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f76656420666f7220616c6c00000000000000602082015250565b600061354b603983612d25565b9150613556826134ef565b604082019050919050565b6000602082019050818103600083015261357a8161353e565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006135bb82612dd5565b91506135c683612dd5565b9250828210156135d9576135d8613581565b5b828203905092915050565b7f455243373231533a207472616e736665722063616c6c6572206973206e6f742060008201527f6f776e6572206e6f7220617070726f7665640000000000000000000000000000602082015250565b6000613640603283612d25565b915061364b826135e4565b604082019050919050565b6000602082019050818103600083015261366f81613633565b9050919050565b7f455243373231533a2062616c616e636520717565727920666f7220746865207a60008201527f65726f2061646472657373000000000000000000000000000000000000000000602082015250565b60006136d2602b83612d25565b91506136dd82613676565b604082019050919050565b60006020820190508181036000830152613701816136c5565b9050919050565b600061371382612dd5565b915061371e83612dd5565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561375357613752613581565b5b828201905092915050565b600061376982612dd5565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561379c5761379b613581565b5b600182019050919050565b7f455243373231533a206f776e657220696e646578206f7574206f6620626f756e60008201527f6473000000000000000000000000000000000000000000000000000000000000602082015250565b6000613803602283612d25565b915061380e826137a7565b604082019050919050565b60006020820190508181036000830152613832816137f6565b9050919050565b7f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560008201527f20726f6c657320666f722073656c660000000000000000000000000000000000602082015250565b6000613895602f83612d25565b91506138a082613839565b604082019050919050565b600060208201905081810360008301526138c481613888565b9050919050565b7f455243373231533a20676c6f62616c20696e646578206f7574206f6620626f7560008201527f6e64730000000000000000000000000000000000000000000000000000000000602082015250565b6000613927602383612d25565b9150613932826138cb565b604082019050919050565b600060208201905081810360008301526139568161391a565b9050919050565b60008190508160005260206000209050919050565b6000815461397f81613399565b6139898186612d25565b945060018216600081146139a457600181146139b6576139e9565b60ff19831686526020860193506139e9565b6139bf8561395d565b60005b838110156139e1578154818901526001820191506020810190506139c2565b808801955050505b50505092915050565b6000606082019050613a076000830186612e38565b8181036020830152613a198185613972565b90508181036040830152613a2d8184612d7a565b9050949350505050565b7f455243373231533a206f776e657220717565727920666f72206e6f6e6578697360008201527f74656e7420746f6b656e00000000000000000000000000000000000000000000602082015250565b6000613a93602a83612d25565b9150613a9e82613a37565b604082019050919050565b60006020820190508181036000830152613ac281613a86565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000613aff602083612d25565b9150613b0a82613ac9565b602082019050919050565b60006020820190508181036000830152613b2e81613af2565b9050919050565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b6000613b91602f83612d25565b9150613b9c82613b35565b604082019050919050565b60006020820190508181036000830152613bc081613b84565b9050919050565b600081905092915050565b6000613bdd82612d1a565b613be78185613bc7565b9350613bf7818560208601612d36565b80840191505092915050565b6000613c0f8285613bd2565b9150613c1b8284613bd2565b91508190509392505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000613c83602683612d25565b9150613c8e82613c27565b604082019050919050565b60006020820190508181036000830152613cb281613c76565b9050919050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000600082015250565b6000613cef601783613bc7565b9150613cfa82613cb9565b601782019050919050565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000600082015250565b6000613d3b601183613bc7565b9150613d4682613d05565b601182019050919050565b6000613d5c82613ce2565b9150613d688285613bd2565b9150613d7382613d2e565b9150613d7f8284613bd2565b91508190509392505050565b7f455243373231533a206d696e7420746f20746865207a65726f2061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b6000613de7602183612d25565b9150613df282613d8b565b604082019050919050565b60006020820190508181036000830152613e1681613dda565b9050919050565b7f455243373231533a206f70657261746f7220717565727920666f72206e6f6e6560008201527f78697374656e7420746f6b656e00000000000000000000000000000000000000602082015250565b6000613e79602d83612d25565b9150613e8482613e1d565b604082019050919050565b60006020820190508181036000830152613ea881613e6c565b9050919050565b7f455243373231533a207472616e73666572206f6620746f6b656e20746861742060008201527f6973206e6f74206f776e00000000000000000000000000000000000000000000602082015250565b6000613f0b602a83612d25565b9150613f1682613eaf565b604082019050919050565b60006020820190508181036000830152613f3a81613efe565b9050919050565b7f455243373231533a207472616e7366657220746f20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b6000613f9d602583612d25565b9150613fa882613f41565b604082019050919050565b60006020820190508181036000830152613fcc81613f90565b9050919050565b7f455243373231533a207472616e7366657220746f206e6f6e204552433732315260008201527f6563656976657220696d706c656d656e74657200000000000000000000000000602082015250565b600061402f603383612d25565b915061403a82613fd3565b604082019050919050565b6000602082019050818103600083015261405e81614022565b9050919050565b7f455243373231533a20617070726f766520746f2063616c6c6572000000000000600082015250565b600061409b601a83612d25565b91506140a682614065565b602082019050919050565b600060208201905081810360008301526140ca8161408e565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061410b82612dd5565b915061411683612dd5565b925082614126576141256140d1565b5b828204905092915050565b600061413c82612dd5565b915061414783612dd5565b925082614157576141566140d1565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600061419c82612dd5565b91506141a783612dd5565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156141e0576141df613581565b5b828202905092915050565b60006141f682612dd5565b9150600082141561420a57614209613581565b5b600182039050919050565b7f537472696e67733a20686578206c656e67746820696e73756666696369656e74600082015250565b600061424b602083612d25565b915061425682614215565b602082019050919050565b6000602082019050818103600083015261427a8161423e565b9050919050565b600081519050919050565b600082825260208201905092915050565b60006142a882614281565b6142b2818561428c565b93506142c2818560208601612d36565b6142cb81612d69565b840191505092915050565b60006080820190506142eb6000830187612e38565b6142f86020830186612e38565b6143056040830185612ea2565b8181036060830152614317818461429d565b905095945050505050565b60008151905061433181612bc1565b92915050565b60006020828403121561434d5761434c612b8b565b5b600061435b84828501614322565b9150509291505056fea264697066735822122071d487beaebdd0af837629ad35396d957610852755c335426a56f0a024612cfd64736f6c634300080c00330000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000144e617567687479205465646469657320436c756200000000000000000000000000000000000000000000000000000000000000000000000000000000000000034e54430000000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106102065760003560e01c80635db99bbf1161011a57806395d89b41116100ad578063c87b56dd1161007c578063c87b56dd146105e9578063d539139314610619578063d547741f14610637578063e985e9c514610653578063f2fde38b1461068357610206565b806395d89b4114610575578063a217fddf14610593578063a22cb465146105b1578063b88d4fde146105cd57610206565b806370a08231116100e957806370a08231146104ed578063715018a61461051d5780638da5cb5b1461052757806391d148541461054557610206565b80635db99bbf1461046557806361b8ce8c146104815780636352211e1461049f578063682d07d9146104cf57610206565b8063248a9ca31161019d57806342842e0e1161016c57806342842e0e146103af5780634f558e79146103cb5780634f6ccce7146103fb57806355f804b31461042b5780635cc99e351461044757610206565b8063248a9ca3146103175780632f2ff15d146103475780632f745c591461036357806336568abe1461039357610206565b8063095ea7b3116101d9578063095ea7b3146102a557806318160ddd146102c15780632097d3fb146102df57806323b872dd146102fb57610206565b806301ffc9a71461020b5780630424cb0d1461023b57806306fdde0314610257578063081812fc14610275575b600080fd5b61022560048036038101906102209190612bed565b61069f565b6040516102329190612c35565b60405180910390f35b61025560048036038101906102509190612cda565b610719565b005b61025f61075a565b60405161026c9190612db3565b60405180910390f35b61028f600480360381019061028a9190612e0b565b6107ec565b60405161029c9190612e47565b60405180910390f35b6102bf60048036038101906102ba9190612e62565b610871565b005b6102c9610989565b6040516102d69190612eb1565b60405180910390f35b6102f960048036038101906102f49190612cda565b61099f565b005b61031560048036038101906103109190612ecc565b6109e0565b005b610331600480360381019061032c9190612f55565b610a40565b60405161033e9190612f91565b60405180910390f35b610361600480360381019061035c9190612fac565b610a60565b005b61037d60048036038101906103789190612e62565b610a89565b60405161038a9190612eb1565b60405180910390f35b6103ad60048036038101906103a89190612fac565b610ce0565b005b6103c960048036038101906103c49190612ecc565b610d63565b005b6103e560048036038101906103e09190612e0b565b610d83565b6040516103f29190612c35565b60405180910390f35b61041560048036038101906104109190612e0b565b610d95565b6040516104229190612eb1565b60405180910390f35b61044560048036038101906104409190613121565b610dff565b005b61044f610e88565b60405161045c9190612eb1565b60405180910390f35b61047f600480360381019061047a919061320b565b610eac565b005b610489610eef565b6040516104969190612eb1565b60405180910390f35b6104b960048036038101906104b49190612e0b565b610ef5565b6040516104c69190612e47565b60405180910390f35b6104d7611028565b6040516104e49190612f91565b60405180910390f35b6105076004803603810190610502919061327a565b61104c565b6040516105149190612eb1565b60405180910390f35b610525611206565b005b61052f61128e565b60405161053c9190612e47565b60405180910390f35b61055f600480360381019061055a9190612fac565b6112b8565b60405161056c9190612c35565b60405180910390f35b61057d611323565b60405161058a9190612db3565b60405180910390f35b61059b6113b5565b6040516105a89190612f91565b60405180910390f35b6105cb60048036038101906105c69190612cda565b6113bc565b005b6105e760048036038101906105e291906132a7565b6113d2565b005b61060360048036038101906105fe9190612e0b565b611434565b6040516106109190612db3565b60405180910390f35b6106216114db565b60405161062e9190612f91565b60405180910390f35b610651600480360381019061064c9190612fac565b6114ff565b005b61066d6004803603810190610668919061332a565b611528565b60405161067a9190612c35565b60405180910390f35b61069d6004803603810190610698919061327a565b6115bc565b005b60007f365f0d30000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806107125750610711826116b4565b5b9050919050565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a661074b8161074661172e565b611736565b61075583836117d3565b505050565b60606000805461076990613399565b80601f016020809104026020016040519081016040528092919081815260200182805461079590613399565b80156107e25780601f106107b7576101008083540402835291602001916107e2565b820191906000526020600020905b8154815290600101906020018083116107c557829003601f168201915b5050505050905090565b60006107f7826117f1565b610836576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161082d9061343d565b60405180910390fd5b6003600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b600061087c82610ef5565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156108ed576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108e4906134cf565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff1661090c61172e565b73ffffffffffffffffffffffffffffffffffffffff16148061093b575061093a8161093561172e565b611528565b5b61097a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161097190613561565b60405180910390fd5b610984838361180b565b505050565b6000600160055461099a91906135b0565b905090565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a66109d1816109cc61172e565b611736565b6109db83836118c4565b505050565b6109f16109eb61172e565b82611a3d565b610a30576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a2790613656565b60405180910390fd5b610a3b838383611b1b565b505050565b600060066000838152602001908152602001600020600101549050919050565b610a6982610a40565b610a7a81610a7561172e565b611736565b610a848383611e5e565b505050565b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610afa576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610af1906136e8565b60405180910390fd5b600080600190505b610b0b816117f1565b8015610b225750600184610b1f9190613708565b82105b15610c75578473ffffffffffffffffffffffffffffffffffffffff166002600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415610c62578180610b999061375e565b925050600073ffffffffffffffffffffffffffffffffffffffff1660026000600184610bc59190613708565b815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16148015610c225750600184610c1f9190613708565b82105b8015610c3f5750610c3e600182610c399190613708565b6117f1565b5b15610c61578180610c4f9061375e565b9250508080610c5d9061375e565b9150505b5b8080610c6d9061375e565b915050610b02565b600184610c829190613708565b821415610c9f57600181610c9691906135b0565b92505050610cda565b6040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cd190613819565b60405180910390fd5b92915050565b610ce861172e565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610d55576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d4c906138ab565b60405180910390fd5b610d5f8282611f3f565b5050565b610d7e838383604051806020016040528060008152506113d2565b505050565b6000610d8e826117f1565b9050919050565b6000610dac600183610da79190613708565b6117f1565b610deb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610de29061393d565b60405180910390fd5b600182610df89190613708565b9050919050565b7fa70a2d8710fed9f014c8c2af50c7c2f6b25748ae4cded822e03b7beed44cf3a8610e3181610e2c61172e565b611736565b7f92bf6a7b8937c17e6781a68d61f9fe6a5ce08604b96ca2206f311049a3a295ea33600884604051610e65939291906139f2565b60405180910390a18160089080519060200190610e83929190612ade565b505050565b7f3f38351a8d513731422d6b64f354f3cf7ea9ae952d15c73513da3b92754e778f81565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6610ede81610ed961172e565b611736565b610ee9848484612021565b50505050565b60055481565b6000610f00826117f1565b610f3f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f3690613aa9565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415610fec5760026000600184610fb891906135b0565b815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16611021565b6002600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff165b9050919050565b7fa70a2d8710fed9f014c8c2af50c7c2f6b25748ae4cded822e03b7beed44cf3a881565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156110bd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110b4906136e8565b60405180910390fd5b600080600190505b6110ce816117f1565b156111fc578373ffffffffffffffffffffffffffffffffffffffff166002600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614156111e95781806111459061375e565b925050600073ffffffffffffffffffffffffffffffffffffffff16600260006001846111719190613708565b815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161480156111d457506111d36001826111ce9190613708565b6117f1565b5b156111e85781806111e49061375e565b9250505b5b80806111f49061375e565b9150506110c5565b5080915050919050565b61120e61172e565b73ffffffffffffffffffffffffffffffffffffffff1661122c61128e565b73ffffffffffffffffffffffffffffffffffffffff1614611282576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161127990613b15565b60405180910390fd5b61128c60006120cc565b565b6000600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60006006600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b60606001805461133290613399565b80601f016020809104026020016040519081016040528092919081815260200182805461135e90613399565b80156113ab5780601f10611380576101008083540402835291602001916113ab565b820191906000526020600020905b81548152906001019060200180831161138e57829003601f168201915b5050505050905090565b6000801b81565b6113ce6113c761172e565b8383612192565b5050565b6113e36113dd61172e565b83611a3d565b611422576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161141990613656565b60405180910390fd5b61142e848484846122ff565b50505050565b606061143f826117f1565b61147e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161147590613ba7565b60405180910390fd5b600061148861235b565b905060008151116114a857604051806020016040528060008152506114d3565b806114b2846123ed565b6040516020016114c3929190613c03565b6040516020818303038152906040525b915050919050565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b61150882610a40565b6115198161151461172e565b611736565b6115238383611f3f565b505050565b6000600460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6115c461172e565b73ffffffffffffffffffffffffffffffffffffffff166115e261128e565b73ffffffffffffffffffffffffffffffffffffffff1614611638576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161162f90613b15565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156116a8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161169f90613c99565b60405180910390fd5b6116b1816120cc565b50565b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061172757506117268261254e565b5b9050919050565b600033905090565b61174082826112b8565b6117cf576117658173ffffffffffffffffffffffffffffffffffffffff166014612698565b6117738360001c6020612698565b604051602001611784929190613d51565b6040516020818303038152906040526040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117c69190612db3565b60405180910390fd5b5050565b6117ed828260405180602001604052806000815250612021565b5050565b6000808214158015611804575060055482105b9050919050565b816003600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff1661187e83610ef5565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611934576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161192b90613dfd565b60405180910390fd5b60008115611943576002611946565b60015b60ff1690508260026000600554815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060005b81811015611a27576119ba60008583600554016128d4565b80600554018473ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a480806001019150506119a2565b5080600560008282540192505081905550505050565b6000611a48826117f1565b611a87576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a7e90613e8f565b60405180910390fd5b6000611a9283610ef5565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480611b0157508373ffffffffffffffffffffffffffffffffffffffff16611ae9846107ec565b73ffffffffffffffffffffffffffffffffffffffff16145b80611b125750611b118185611528565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff16611b3b82610ef5565b73ffffffffffffffffffffffffffffffffffffffff1614611b91576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b8890613f21565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611c01576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bf890613fb3565b60405180910390fd5b611c0c8383836128d4565b611c1760008261180b565b600073ffffffffffffffffffffffffffffffffffffffff166002600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415611cd657816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550611dfe565b816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550611d34600182016117f1565b8015611da25750600073ffffffffffffffffffffffffffffffffffffffff166002600060018401815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16145b15611dfd57826002600060018401815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b5b808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b611e6882826112b8565b611f3b5760016006600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550611ee061172e565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b611f4982826112b8565b1561201d5760006006600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550611fc261172e565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b61202b83836118c4565b6000821561203a57600261203d565b60015b60ff16905060005b818110156120c55761207360008660018460055461206391906135b0565b61206d91906135b0565b866128d9565b6120b2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120a990614045565b60405180910390fd5b80806120bd9061375e565b915050612045565b5050505050565b6000600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612201576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121f8906140b1565b60405180910390fd5b80600460008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516122f29190612c35565b60405180910390a3505050565b61230a848484611b1b565b612316848484846128d9565b612355576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161234c90614045565b60405180910390fd5b50505050565b60606008805461236a90613399565b80601f016020809104026020016040519081016040528092919081815260200182805461239690613399565b80156123e35780601f106123b8576101008083540402835291602001916123e3565b820191906000526020600020905b8154815290600101906020018083116123c657829003601f168201915b5050505050905090565b60606000821415612435576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050612549565b600082905060005b600082146124675780806124509061375e565b915050600a826124609190614100565b915061243d565b60008167ffffffffffffffff81111561248357612482612ff6565b5b6040519080825280601f01601f1916602001820160405280156124b55781602001600182028036833780820191505090505b5090505b60008514612542576001826124ce91906135b0565b9150600a856124dd9190614131565b60306124e99190613708565b60f81b8183815181106124ff576124fe614162565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a8561253b9190614100565b94506124b9565b8093505050505b919050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061261957507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061268157507f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80612691575061269082612a61565b5b9050919050565b6060600060028360026126ab9190614191565b6126b59190613708565b67ffffffffffffffff8111156126ce576126cd612ff6565b5b6040519080825280601f01601f1916602001820160405280156127005781602001600182028036833780820191505090505b5090507f30000000000000000000000000000000000000000000000000000000000000008160008151811061273857612737614162565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f78000000000000000000000000000000000000000000000000000000000000008160018151811061279c5761279b614162565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600060018460026127dc9190614191565b6127e69190613708565b90505b6001811115612886577f3031323334353637383961626364656600000000000000000000000000000000600f86166010811061282857612827614162565b5b1a60f81b82828151811061283f5761283e614162565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c94508061287f906141eb565b90506127e9565b50600084146128ca576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128c190614261565b60405180910390fd5b8091505092915050565b505050565b60006128fa8473ffffffffffffffffffffffffffffffffffffffff16612acb565b15612a54578373ffffffffffffffffffffffffffffffffffffffff1663150b7a0261292361172e565b8786866040518563ffffffff1660e01b815260040161294594939291906142d6565b6020604051808303816000875af192505050801561298157506040513d601f19601f8201168201806040525081019061297e9190614337565b60015b612a04573d80600081146129b1576040519150601f19603f3d011682016040523d82523d6000602084013e6129b6565b606091505b506000815114156129fc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129f390614045565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050612a59565b600190505b949350505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600080823b905060008111915050919050565b828054612aea90613399565b90600052602060002090601f016020900481019282612b0c5760008555612b53565b82601f10612b2557805160ff1916838001178555612b53565b82800160010185558215612b53579182015b82811115612b52578251825591602001919060010190612b37565b5b509050612b609190612b64565b5090565b5b80821115612b7d576000816000905550600101612b65565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b612bca81612b95565b8114612bd557600080fd5b50565b600081359050612be781612bc1565b92915050565b600060208284031215612c0357612c02612b8b565b5b6000612c1184828501612bd8565b91505092915050565b60008115159050919050565b612c2f81612c1a565b82525050565b6000602082019050612c4a6000830184612c26565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000612c7b82612c50565b9050919050565b612c8b81612c70565b8114612c9657600080fd5b50565b600081359050612ca881612c82565b92915050565b612cb781612c1a565b8114612cc257600080fd5b50565b600081359050612cd481612cae565b92915050565b60008060408385031215612cf157612cf0612b8b565b5b6000612cff85828601612c99565b9250506020612d1085828601612cc5565b9150509250929050565b600081519050919050565b600082825260208201905092915050565b60005b83811015612d54578082015181840152602081019050612d39565b83811115612d63576000848401525b50505050565b6000601f19601f8301169050919050565b6000612d8582612d1a565b612d8f8185612d25565b9350612d9f818560208601612d36565b612da881612d69565b840191505092915050565b60006020820190508181036000830152612dcd8184612d7a565b905092915050565b6000819050919050565b612de881612dd5565b8114612df357600080fd5b50565b600081359050612e0581612ddf565b92915050565b600060208284031215612e2157612e20612b8b565b5b6000612e2f84828501612df6565b91505092915050565b612e4181612c70565b82525050565b6000602082019050612e5c6000830184612e38565b92915050565b60008060408385031215612e7957612e78612b8b565b5b6000612e8785828601612c99565b9250506020612e9885828601612df6565b9150509250929050565b612eab81612dd5565b82525050565b6000602082019050612ec66000830184612ea2565b92915050565b600080600060608486031215612ee557612ee4612b8b565b5b6000612ef386828701612c99565b9350506020612f0486828701612c99565b9250506040612f1586828701612df6565b9150509250925092565b6000819050919050565b612f3281612f1f565b8114612f3d57600080fd5b50565b600081359050612f4f81612f29565b92915050565b600060208284031215612f6b57612f6a612b8b565b5b6000612f7984828501612f40565b91505092915050565b612f8b81612f1f565b82525050565b6000602082019050612fa66000830184612f82565b92915050565b60008060408385031215612fc357612fc2612b8b565b5b6000612fd185828601612f40565b9250506020612fe285828601612c99565b9150509250929050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61302e82612d69565b810181811067ffffffffffffffff8211171561304d5761304c612ff6565b5b80604052505050565b6000613060612b81565b905061306c8282613025565b919050565b600067ffffffffffffffff82111561308c5761308b612ff6565b5b61309582612d69565b9050602081019050919050565b82818337600083830152505050565b60006130c46130bf84613071565b613056565b9050828152602081018484840111156130e0576130df612ff1565b5b6130eb8482856130a2565b509392505050565b600082601f83011261310857613107612fec565b5b81356131188482602086016130b1565b91505092915050565b60006020828403121561313757613136612b8b565b5b600082013567ffffffffffffffff81111561315557613154612b90565b5b613161848285016130f3565b91505092915050565b600067ffffffffffffffff82111561318557613184612ff6565b5b61318e82612d69565b9050602081019050919050565b60006131ae6131a98461316a565b613056565b9050828152602081018484840111156131ca576131c9612ff1565b5b6131d58482856130a2565b509392505050565b600082601f8301126131f2576131f1612fec565b5b813561320284826020860161319b565b91505092915050565b60008060006060848603121561322457613223612b8b565b5b600061323286828701612c99565b935050602061324386828701612cc5565b925050604084013567ffffffffffffffff81111561326457613263612b90565b5b613270868287016131dd565b9150509250925092565b6000602082840312156132905761328f612b8b565b5b600061329e84828501612c99565b91505092915050565b600080600080608085870312156132c1576132c0612b8b565b5b60006132cf87828801612c99565b94505060206132e087828801612c99565b93505060406132f187828801612df6565b925050606085013567ffffffffffffffff81111561331257613311612b90565b5b61331e878288016131dd565b91505092959194509250565b6000806040838503121561334157613340612b8b565b5b600061334f85828601612c99565b925050602061336085828601612c99565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806133b157607f821691505b602082108114156133c5576133c461336a565b5b50919050565b7f455243373231533a20617070726f76656420717565727920666f72206e6f6e6560008201527f78697374656e7420746f6b656e00000000000000000000000000000000000000602082015250565b6000613427602d83612d25565b9150613432826133cb565b604082019050919050565b600060208201905081810360008301526134568161341a565b9050919050565b7f455243373231533a20617070726f76616c20746f2063757272656e74206f776e60008201527f6572000000000000000000000000000000000000000000000000000000000000602082015250565b60006134b9602283612d25565b91506134c48261345d565b604082019050919050565b600060208201905081810360008301526134e8816134ac565b9050919050565b7f455243373231533a20617070726f76652063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f76656420666f7220616c6c00000000000000602082015250565b600061354b603983612d25565b9150613556826134ef565b604082019050919050565b6000602082019050818103600083015261357a8161353e565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006135bb82612dd5565b91506135c683612dd5565b9250828210156135d9576135d8613581565b5b828203905092915050565b7f455243373231533a207472616e736665722063616c6c6572206973206e6f742060008201527f6f776e6572206e6f7220617070726f7665640000000000000000000000000000602082015250565b6000613640603283612d25565b915061364b826135e4565b604082019050919050565b6000602082019050818103600083015261366f81613633565b9050919050565b7f455243373231533a2062616c616e636520717565727920666f7220746865207a60008201527f65726f2061646472657373000000000000000000000000000000000000000000602082015250565b60006136d2602b83612d25565b91506136dd82613676565b604082019050919050565b60006020820190508181036000830152613701816136c5565b9050919050565b600061371382612dd5565b915061371e83612dd5565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561375357613752613581565b5b828201905092915050565b600061376982612dd5565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561379c5761379b613581565b5b600182019050919050565b7f455243373231533a206f776e657220696e646578206f7574206f6620626f756e60008201527f6473000000000000000000000000000000000000000000000000000000000000602082015250565b6000613803602283612d25565b915061380e826137a7565b604082019050919050565b60006020820190508181036000830152613832816137f6565b9050919050565b7f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560008201527f20726f6c657320666f722073656c660000000000000000000000000000000000602082015250565b6000613895602f83612d25565b91506138a082613839565b604082019050919050565b600060208201905081810360008301526138c481613888565b9050919050565b7f455243373231533a20676c6f62616c20696e646578206f7574206f6620626f7560008201527f6e64730000000000000000000000000000000000000000000000000000000000602082015250565b6000613927602383612d25565b9150613932826138cb565b604082019050919050565b600060208201905081810360008301526139568161391a565b9050919050565b60008190508160005260206000209050919050565b6000815461397f81613399565b6139898186612d25565b945060018216600081146139a457600181146139b6576139e9565b60ff19831686526020860193506139e9565b6139bf8561395d565b60005b838110156139e1578154818901526001820191506020810190506139c2565b808801955050505b50505092915050565b6000606082019050613a076000830186612e38565b8181036020830152613a198185613972565b90508181036040830152613a2d8184612d7a565b9050949350505050565b7f455243373231533a206f776e657220717565727920666f72206e6f6e6578697360008201527f74656e7420746f6b656e00000000000000000000000000000000000000000000602082015250565b6000613a93602a83612d25565b9150613a9e82613a37565b604082019050919050565b60006020820190508181036000830152613ac281613a86565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000613aff602083612d25565b9150613b0a82613ac9565b602082019050919050565b60006020820190508181036000830152613b2e81613af2565b9050919050565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b6000613b91602f83612d25565b9150613b9c82613b35565b604082019050919050565b60006020820190508181036000830152613bc081613b84565b9050919050565b600081905092915050565b6000613bdd82612d1a565b613be78185613bc7565b9350613bf7818560208601612d36565b80840191505092915050565b6000613c0f8285613bd2565b9150613c1b8284613bd2565b91508190509392505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000613c83602683612d25565b9150613c8e82613c27565b604082019050919050565b60006020820190508181036000830152613cb281613c76565b9050919050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000600082015250565b6000613cef601783613bc7565b9150613cfa82613cb9565b601782019050919050565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000600082015250565b6000613d3b601183613bc7565b9150613d4682613d05565b601182019050919050565b6000613d5c82613ce2565b9150613d688285613bd2565b9150613d7382613d2e565b9150613d7f8284613bd2565b91508190509392505050565b7f455243373231533a206d696e7420746f20746865207a65726f2061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b6000613de7602183612d25565b9150613df282613d8b565b604082019050919050565b60006020820190508181036000830152613e1681613dda565b9050919050565b7f455243373231533a206f70657261746f7220717565727920666f72206e6f6e6560008201527f78697374656e7420746f6b656e00000000000000000000000000000000000000602082015250565b6000613e79602d83612d25565b9150613e8482613e1d565b604082019050919050565b60006020820190508181036000830152613ea881613e6c565b9050919050565b7f455243373231533a207472616e73666572206f6620746f6b656e20746861742060008201527f6973206e6f74206f776e00000000000000000000000000000000000000000000602082015250565b6000613f0b602a83612d25565b9150613f1682613eaf565b604082019050919050565b60006020820190508181036000830152613f3a81613efe565b9050919050565b7f455243373231533a207472616e7366657220746f20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b6000613f9d602583612d25565b9150613fa882613f41565b604082019050919050565b60006020820190508181036000830152613fcc81613f90565b9050919050565b7f455243373231533a207472616e7366657220746f206e6f6e204552433732315260008201527f6563656976657220696d706c656d656e74657200000000000000000000000000602082015250565b600061402f603383612d25565b915061403a82613fd3565b604082019050919050565b6000602082019050818103600083015261405e81614022565b9050919050565b7f455243373231533a20617070726f766520746f2063616c6c6572000000000000600082015250565b600061409b601a83612d25565b91506140a682614065565b602082019050919050565b600060208201905081810360008301526140ca8161408e565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061410b82612dd5565b915061411683612dd5565b925082614126576141256140d1565b5b828204905092915050565b600061413c82612dd5565b915061414783612dd5565b925082614157576141566140d1565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600061419c82612dd5565b91506141a783612dd5565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156141e0576141df613581565b5b828202905092915050565b60006141f682612dd5565b9150600082141561420a57614209613581565b5b600182039050919050565b7f537472696e67733a20686578206c656e67746820696e73756666696369656e74600082015250565b600061424b602083612d25565b915061425682614215565b602082019050919050565b6000602082019050818103600083015261427a8161423e565b9050919050565b600081519050919050565b600082825260208201905092915050565b60006142a882614281565b6142b2818561428c565b93506142c2818560208601612d36565b6142cb81612d69565b840191505092915050565b60006080820190506142eb6000830187612e38565b6142f86020830186612e38565b6143056040830185612ea2565b8181036060830152614317818461429d565b905095945050505050565b60008151905061433181612bc1565b92915050565b60006020828403121561434d5761434c612b8b565b5b600061435b84828501614322565b9150509291505056fea264697066735822122071d487beaebdd0af837629ad35396d957610852755c335426a56f0a024612cfd64736f6c634300080c0033

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

0000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000144e617567687479205465646469657320436c756200000000000000000000000000000000000000000000000000000000000000000000000000000000000000034e54430000000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _name (string): Naughty Teddies Club
Arg [1] : _symbol (string): NTC

-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000014
Arg [3] : 4e617567687479205465646469657320436c7562000000000000000000000000
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [5] : 4e54430000000000000000000000000000000000000000000000000000000000


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

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