ETH Price: $3,271.42 (-4.08%)
Gas: 18 Gwei

Token

Decal by Grant Yun (DECAL)
 

Overview

Max Total Supply

100 DECAL

Holders

91

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
kafeier.eth
Balance
1 DECAL
0xe3557e84bd0247c09ec369d3c904e9dab87d60a7
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:
Yun_Decal

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 17 : Yun_Decal.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "./Errors.sol";
import "./Ownable.sol";
import "./Base64.sol";

import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";
import "@openzeppelin/contracts/access/AccessControl.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/utils/Strings.sol";

/// @author @0x__jj, @llio (Deca)
contract Yun_Decal is ERC721, ReentrancyGuard, AccessControl, Ownable {
  using Address for address;
  using Strings for *;

  mapping(address => bool) public minted;

  uint256 public totalSupply = 0;

  uint256 public constant MAX_SUPPLY = 100;

  bytes32 public merkleRoot;

  string public baseUri;

  constructor(string memory _baseUri, address[] memory _admins)
    ERC721("Decal by Grant Yun", "DECAL")
  {
    _setOwnership(msg.sender);
    _grantRole(DEFAULT_ADMIN_ROLE, msg.sender);
    for (uint256 i = 0; i < _admins.length; i++) {
      _grantRole(DEFAULT_ADMIN_ROLE, _admins[i]);
    }
    baseUri = _baseUri;
  }

  function setMerkleRoot(bytes32 _merkleRoot)
    external
    onlyRole(DEFAULT_ADMIN_ROLE)
  {
    merkleRoot = _merkleRoot;
  }

  function setOwnership(address _newOwner)
    external
    onlyRole(DEFAULT_ADMIN_ROLE)
  {
    _setOwnership(_newOwner);
  }

  function setBaseUri(string memory _newBaseUri)
    external
    onlyRole(DEFAULT_ADMIN_ROLE)
  {
    baseUri = _newBaseUri;
  }

  function mint(bytes32[] calldata _merkleProof)
    external
    nonReentrant
    returns (uint256)
  {
    if (totalSupply >= MAX_SUPPLY) revert MaxSupplyReached();
    if (minted[msg.sender]) revert AlreadyMinted();
    if (msg.sender.isContract()) revert CannotMintFromContract();
    bytes32 leaf = keccak256(abi.encodePacked(msg.sender));
    if (!MerkleProof.verify(_merkleProof, merkleRoot, leaf))
      revert ProofInvalidOrNotInAllowlist();

    uint256 tokenId = totalSupply;
    totalSupply++;
    minted[msg.sender] = true;
    _safeMint(msg.sender, tokenId);
    return tokenId;
  }

  function tokenURI(uint256 _tokenId)
    public
    view
    override(ERC721)
    returns (string memory)
  {
    require(_exists(_tokenId), "DECAL: URI query for nonexistent token");
    string memory baseURI = _baseURI();
    require(bytes(baseURI).length > 0, "baseURI not set");
    return string(abi.encodePacked(baseURI, _tokenId.toString()));
  }

  function getTokensOfOwner(address _owner)
    public
    view
    returns (uint256[] memory)
  {
    uint256 tokenCount = balanceOf(_owner);
    uint256[] memory tokenIds = new uint256[](tokenCount);
    uint256 seen = 0;
    for (uint256 i; i < totalSupply; i++) {
      if (ownerOf(i) == _owner) {
        tokenIds[seen] = i;
        seen++;
      }
      if (seen == tokenCount) break;
    }
    return tokenIds;
  }

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

  function _baseURI() internal view override(ERC721) returns (string memory) {
    return baseUri;
  }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

    mapping(bytes32 => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

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

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

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

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

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

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

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

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

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

        _revokeRole(role, account);
    }

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

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

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

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

File 5 of 17 : MerkleProof.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (utils/cryptography/MerkleProof.sol)

pragma solidity ^0.8.0;

/**
 * @dev These functions deal with verification of Merkle Trees proofs.
 *
 * The proofs can be generated using the JavaScript library
 * https://github.com/miguelmota/merkletreejs[merkletreejs].
 * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled.
 *
 * See `test/utils/cryptography/MerkleProof.test.js` for some examples.
 *
 * WARNING: You should avoid using leaf values that are 64 bytes long prior to
 * hashing, or use a hash function other than keccak256 for hashing leaves.
 * This is because the concatenation of a sorted pair of internal nodes in
 * the merkle tree could be reinterpreted as a leaf value.
 */
library MerkleProof {
    /**
     * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree
     * defined by `root`. For this, a `proof` must be provided, containing
     * sibling hashes on the branch from the leaf to the root of the tree. Each
     * pair of leaves and each pair of pre-images are assumed to be sorted.
     */
    function verify(
        bytes32[] memory proof,
        bytes32 root,
        bytes32 leaf
    ) internal pure returns (bool) {
        return processProof(proof, leaf) == root;
    }

    /**
     * @dev Returns the rebuilt hash obtained by traversing a Merkle tree up
     * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt
     * hash matches the root of the tree. When processing the proof, the pairs
     * of leafs & pre-images are assumed to be sorted.
     *
     * _Available since v4.4._
     */
    function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) {
        bytes32 computedHash = leaf;
        for (uint256 i = 0; i < proof.length; i++) {
            bytes32 proofElement = proof[i];
            if (computedHash <= proofElement) {
                // Hash(current computed hash + current element of the proof)
                computedHash = _efficientHash(computedHash, proofElement);
            } else {
                // Hash(current element of the proof + current computed hash)
                computedHash = _efficientHash(proofElement, computedHash);
            }
        }
        return computedHash;
    }

    function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) {
        assembly {
            mstore(0x00, a)
            mstore(0x20, b)
            value := keccak256(0x00, 0x40)
        }
    }
}

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

pragma solidity ^0.8.0;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant _NOT_ENTERED = 1;
    uint256 private constant _ENTERED = 2;

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

        // Any calls to nonReentrant after this point will fail
        _status = _ENTERED;

        _;

        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = _NOT_ENTERED;
    }
}

File 7 of 17 : ERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/ERC721.sol)

pragma solidity ^0.8.0;

import "./IERC721.sol";
import "./IERC721Receiver.sol";
import "./extensions/IERC721Metadata.sol";
import "../../utils/Address.sol";
import "../../utils/Context.sol";
import "../../utils/Strings.sol";
import "../../utils/introspection/ERC165.sol";

/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
 * the Metadata extension, but not including the Enumerable extension, which is available separately as
 * {ERC721Enumerable}.
 */
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
    using Address for address;
    using Strings for uint256;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Mapping from token ID to owner address
    mapping(uint256 => address) private _owners;

    // Mapping owner address to token count
    mapping(address => uint256) private _balances;

    // Mapping from token ID to approved address
    mapping(uint256 => address) private _tokenApprovals;

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

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

    /**
     * @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 ||
            super.supportsInterface(interfaceId);
    }

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

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view virtual override returns (address) {
        address owner = _owners[tokenId];
        require(owner != address(0), "ERC721: owner query for nonexistent token");
        return owner;
    }

    /**
     * @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 overridden 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 = ERC721.ownerOf(tokenId);
        require(to != owner, "ERC721: approval to current owner");

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

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        _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), "ERC721: transfer caller is not owner nor approved");

        _transfer(from, to, tokenId);
    }

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

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

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * `_data` is additional data, it has no specified format and it is sent in call to `to`.
     *
     * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g.
     * implement alternative 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), "ERC721: transfer to non ERC721Receiver implementer");
    }

    /**
     * @dev Returns whether `tokenId` exists.
     *
     * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}.
     *
     * Tokens start existing when they are minted (`_mint`),
     * and stop existing when they are burned (`_burn`).
     */
    function _exists(uint256 tokenId) internal view virtual returns (bool) {
        return _owners[tokenId] != address(0);
    }

    /**
     * @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), "ERC721: operator query for nonexistent token");
        address owner = ERC721.ownerOf(tokenId);
        return (spender == owner || isApprovedForAll(owner, spender) || getApproved(tokenId) == spender);
    }

    /**
     * @dev Safely mints `tokenId` and transfers it to `to`.
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeMint(address to, uint256 tokenId) internal virtual {
        _safeMint(to, tokenId, "");
    }

    /**
     * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is
     * forwarded in {IERC721Receiver-onERC721Received} to contract recipients.
     */
    function _safeMint(
        address to,
        uint256 tokenId,
        bytes memory _data
    ) internal virtual {
        _mint(to, tokenId);
        require(
            _checkOnERC721Received(address(0), to, tokenId, _data),
            "ERC721: transfer to non ERC721Receiver implementer"
        );
    }

    /**
     * @dev Mints `tokenId` and transfers it to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - `to` cannot be the zero address.
     *
     * Emits a {Transfer} event.
     */
    function _mint(address to, uint256 tokenId) internal virtual {
        require(to != address(0), "ERC721: mint to the zero address");
        require(!_exists(tokenId), "ERC721: token already minted");

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

        _balances[to] += 1;
        _owners[tokenId] = to;

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

        _afterTokenTransfer(address(0), to, tokenId);
    }

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

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

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

        _balances[owner] -= 1;
        delete _owners[tokenId];

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

        _afterTokenTransfer(owner, address(0), tokenId);
    }

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

        _beforeTokenTransfer(from, to, tokenId);

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

        _balances[from] -= 1;
        _balances[to] += 1;
        _owners[tokenId] = to;

        emit Transfer(from, to, tokenId);

        _afterTokenTransfer(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(ERC721.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, "ERC721: 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("ERC721: 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 Hook that is called after any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {}
}

File 8 of 17 : Base64.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

/// @title Base64
/// @notice Provides a function for encoding some bytes in base64
/// @author Brecht Devos <[email protected]>
library Base64 {
    bytes internal constant TABLE = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";

    /// @notice Encodes some bytes to the base64 representation
    function encode(bytes memory data) internal pure returns (string memory) {
        uint256 len = data.length;
        if (len == 0) return "";

        // multiply by 4/3 rounded up
        uint256 encodedLen = 4 * ((len + 2) / 3);

        // Add some extra buffer at the end
        bytes memory result = new bytes(encodedLen + 32);

        bytes memory table = TABLE;

        assembly {
            let tablePtr := add(table, 1)
            let resultPtr := add(result, 32)

            for {
                let i := 0
            } lt(i, len) {

            } {
                i := add(i, 3)
                let input := and(mload(add(data, i)), 0xffffff)

                let out := mload(add(tablePtr, and(shr(18, input), 0x3F)))
                out := shl(8, out)
                out := add(out, and(mload(add(tablePtr, and(shr(12, input), 0x3F))), 0xFF))
                out := shl(8, out)
                out := add(out, and(mload(add(tablePtr, and(shr(6, input), 0x3F))), 0xFF))
                out := shl(8, out)
                out := add(out, and(mload(add(tablePtr, and(input, 0x3F))), 0xFF))
                out := shl(224, out)

                mstore(resultPtr, out)

                resultPtr := add(resultPtr, 4)
            }

            switch mod(len, 3)
            case 1 {
                mstore(sub(resultPtr, 2), shl(240, 0x3d3d))
            }
            case 2 {
                mstore(sub(resultPtr, 1), shl(248, 0x3d))
            }

            mstore(result, encodedLen)
        }

        return string(result);
    }
}

File 9 of 17 : Ownable.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

contract Ownable {
    address private _convenienceOwner;

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

    /// @notice returns the address of the current _convenienceOwner
    /// @dev not used for access control, used by services that require a single owner account
    /// @return _convenienceOwner address
    function owner() public view virtual returns (address) {
        return _convenienceOwner;
    }

    /// @notice Set the _convenienceOwner address
    /// @dev not used for access control, used by services that require a single owner account
    /// @param newOwner address of the new _convenienceOwner
    function _setOwnership(address newOwner) internal virtual {
        address oldOwner = _convenienceOwner;
        _convenienceOwner = newOwner;
        emit OwnershipSet(oldOwner, newOwner);
    }

    /// @notice This empty reserved space is put in place to allow future versions to add new
    /// variables without shifting down storage in the inheritance chain.
    /// See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
    uint256[100] private __gap;
}

File 10 of 17 : Errors.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

error MaxSupplyReached();
error AlreadyMinted();
error ProofInvalidOrNotInAllowlist();
error CannotMintFromContract();

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

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

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

pragma solidity ^0.8.0;

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

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

File 13 of 17 : 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 14 of 17 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (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 `IERC721Receiver.onERC721Received.selector`.
     */
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

File 15 of 17 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (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`.
     *
     * 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;

    /**
     * @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 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 the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) external view returns (address operator);

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"_baseUri","type":"string"},{"internalType":"address[]","name":"_admins","type":"address[]"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"AlreadyMinted","type":"error"},{"inputs":[],"name":"CannotMintFromContract","type":"error"},{"inputs":[],"name":"MaxSupplyReached","type":"error"},{"inputs":[],"name":"ProofInvalidOrNotInAllowlist","type":"error"},{"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":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipSet","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":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":[],"name":"baseUri","outputs":[{"internalType":"string","name":"","type":"string"}],"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":"address","name":"_owner","type":"address"}],"name":"getTokensOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"merkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"}],"name":"mint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"minted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"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":"bytes32","name":"_merkleRoot","type":"bytes32"}],"name":"setMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newOwner","type":"address"}],"name":"setOwnership","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":"_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"}]

60806040526000606e553480156200001657600080fd5b50604051620048e4380380620048e483398181016040528101906200003c9190620005ab565b6040518060400160405280601281526020017f446563616c206279204772616e742059756e00000000000000000000000000008152506040518060400160405280600581526020017f444543414c0000000000000000000000000000000000000000000000000000008152508160009080519060200190620000c0929190620003d0565b508060019080519060200190620000d9929190620003d0565b5050506001600681905550620000f533620001a560201b60201c565b6200010a6000801b336200026b60201b60201c565b60005b815181101562000183576200016d6000801b83838151811062000159577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101516200026b60201b60201c565b80806200017a906200078c565b9150506200010d565b5081607090805190602001906200019c929190620003d0565b50505062000892565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167ff6a7092513e1f3f720c1d0ad65eb323494afe10d43e19dc4a40bac61ade7579160405160405180910390a35050565b6200027d82826200035d60201b60201c565b620003595760016007600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550620002fe620003c860201b60201c565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b60006007600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600033905090565b828054620003de9062000720565b90600052602060002090601f0160209004810192826200040257600085556200044e565b82601f106200041d57805160ff19168380011785556200044e565b828001600101855582156200044e579182015b828111156200044d57825182559160200191906001019062000430565b5b5090506200045d919062000461565b5090565b5b808211156200047c57600081600090555060010162000462565b5090565b600062000497620004918462000647565b6200061e565b90508083825260208201905082856020860282011115620004b757600080fd5b60005b85811015620004eb5781620004d088826200053a565b845260208401935060208301925050600181019050620004ba565b5050509392505050565b60006200050c620005068462000676565b6200061e565b9050828152602081018484840111156200052557600080fd5b62000532848285620006ea565b509392505050565b6000815190506200054b8162000878565b92915050565b600082601f8301126200056357600080fd5b81516200057584826020860162000480565b91505092915050565b600082601f8301126200059057600080fd5b8151620005a2848260208601620004f5565b91505092915050565b60008060408385031215620005bf57600080fd5b600083015167ffffffffffffffff811115620005da57600080fd5b620005e8858286016200057e565b925050602083015167ffffffffffffffff8111156200060657600080fd5b620006148582860162000551565b9150509250929050565b60006200062a6200063d565b905062000638828262000756565b919050565b6000604051905090565b600067ffffffffffffffff82111562000665576200066462000838565b5b602082029050602081019050919050565b600067ffffffffffffffff82111562000694576200069362000838565b5b6200069f8262000867565b9050602081019050919050565b6000620006b982620006c0565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b60005b838110156200070a578082015181840152602081019050620006ed565b838111156200071a576000848401525b50505050565b600060028204905060018216806200073957607f821691505b6020821081141562000750576200074f62000809565b5b50919050565b620007618262000867565b810181811067ffffffffffffffff8211171562000783576200078262000838565b5b80604052505050565b60006200079982620006e0565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415620007cf57620007ce620007da565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b6200088381620006ac565b81146200088f57600080fd5b50565b61404280620008a26000396000f3fe608060405234801561001057600080fd5b50600436106101da5760003560e01c806370a0823111610104578063a217fddf116100a2578063b88d4fde11610071578063b88d4fde1461057b578063c87b56dd14610597578063d547741f146105c7578063e985e9c5146105e3576101da565b8063a217fddf146104f5578063a22cb46514610513578063a70160231461052f578063b77a147b1461054b576101da565b806391d14854116100de57806391d148541461046d57806395d89b411461049d5780639abc8320146104bb578063a0bcfc7f146104d9576101da565b806370a08231146104035780637cb64759146104335780638da5cb5b1461044f576101da565b8063248a9ca31161017c57806336568abe1161014b57806336568abe1461036b57806342842e0e146103875780635de6dc55146103a35780636352211e146103d3576101da565b8063248a9ca3146102e35780632eb4a7ab146103135780632f2ff15d1461033157806332cb6b0c1461034d576101da565b8063095ea7b3116101b8578063095ea7b31461025d57806318160ddd146102795780631e7269c51461029757806323b872dd146102c7576101da565b806301ffc9a7146101df57806306fdde031461020f578063081812fc1461022d575b600080fd5b6101f960048036038101906101f49190612d18565b610613565b604051610206919061330d565b60405180910390f35b610217610625565b6040516102249190613343565b60405180910390f35b61024760048036038101906102429190612dab565b6106b7565b6040516102549190613284565b60405180910390f35b61027760048036038101906102729190612c32565b61073c565b005b610281610854565b60405161028e91906135a5565b60405180910390f35b6102b160048036038101906102ac9190612ac7565b61085a565b6040516102be919061330d565b60405180910390f35b6102e160048036038101906102dc9190612b2c565b61087a565b005b6102fd60048036038101906102f89190612cb3565b6108da565b60405161030a9190613328565b60405180910390f35b61031b6108fa565b6040516103289190613328565b60405180910390f35b61034b60048036038101906103469190612cdc565b610900565b005b610355610921565b60405161036291906135a5565b60405180910390f35b61038560048036038101906103809190612cdc565b610926565b005b6103a1600480360381019061039c9190612b2c565b6109a9565b005b6103bd60048036038101906103b89190612ac7565b6109c9565b6040516103ca91906132eb565b60405180910390f35b6103ed60048036038101906103e89190612dab565b610b16565b6040516103fa9190613284565b60405180910390f35b61041d60048036038101906104189190612ac7565b610bc8565b60405161042a91906135a5565b60405180910390f35b61044d60048036038101906104489190612cb3565b610c80565b005b610457610c98565b6040516104649190613284565b60405180910390f35b61048760048036038101906104829190612cdc565b610cc2565b604051610494919061330d565b60405180910390f35b6104a5610d2d565b6040516104b29190613343565b60405180910390f35b6104c3610dbf565b6040516104d09190613343565b60405180910390f35b6104f360048036038101906104ee9190612d6a565b610e4d565b005b6104fd610e75565b60405161050a9190613328565b60405180910390f35b61052d60048036038101906105289190612bf6565b610e7c565b005b61054960048036038101906105449190612ac7565b610e92565b005b61056560048036038101906105609190612c6e565b610eac565b60405161057291906135a5565b60405180910390f35b61059560048036038101906105909190612b7b565b611155565b005b6105b160048036038101906105ac9190612dab565b6111b7565b6040516105be9190613343565b60405180910390f35b6105e160048036038101906105dc9190612cdc565b611283565b005b6105fd60048036038101906105f89190612af0565b6112a4565b60405161060a919061330d565b60405180910390f35b600061061e82611338565b9050919050565b606060008054610634906138c2565b80601f0160208091040260200160405190810160405280929190818152602001828054610660906138c2565b80156106ad5780601f10610682576101008083540402835291602001916106ad565b820191906000526020600020905b81548152906001019060200180831161069057829003601f168201915b5050505050905090565b60006106c2826113b2565b610701576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106f8906134c5565b60405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b600061074782610b16565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156107b8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107af90613505565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff166107d761141e565b73ffffffffffffffffffffffffffffffffffffffff16148061080657506108058161080061141e565b6112a4565b5b610845576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161083c90613445565b60405180910390fd5b61084f8383611426565b505050565b606e5481565b606d6020528060005260406000206000915054906101000a900460ff1681565b61088b61088561141e565b826114df565b6108ca576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108c190613525565b60405180910390fd5b6108d58383836115bd565b505050565b600060076000838152602001908152602001600020600101549050919050565b606f5481565b610909826108da565b61091281611824565b61091c8383611838565b505050565b606481565b61092e61141e565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161461099b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161099290613585565b60405180910390fd5b6109a58282611919565b5050565b6109c483838360405180602001604052806000815250611155565b505050565b606060006109d683610bc8565b905060008167ffffffffffffffff811115610a1a577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604051908082528060200260200182016040528015610a485781602001602082028036833780820191505090505b5090506000805b606e54811015610b0a578573ffffffffffffffffffffffffffffffffffffffff16610a7982610b16565b73ffffffffffffffffffffffffffffffffffffffff161415610aea5780838381518110610acf577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010181815250508180610ae690613925565b9250505b83821415610af757610b0a565b8080610b0290613925565b915050610a4f565b50819350505050919050565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610bbf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bb690613485565b60405180910390fd5b80915050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415610c39576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c3090613465565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6000801b610c8d81611824565b81606f819055505050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60006007600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b606060018054610d3c906138c2565b80601f0160208091040260200160405190810160405280929190818152602001828054610d68906138c2565b8015610db55780601f10610d8a57610100808354040283529160200191610db5565b820191906000526020600020905b815481529060010190602001808311610d9857829003601f168201915b5050505050905090565b60708054610dcc906138c2565b80601f0160208091040260200160405190810160405280929190818152602001828054610df8906138c2565b8015610e455780601f10610e1a57610100808354040283529160200191610e45565b820191906000526020600020905b815481529060010190602001808311610e2857829003601f168201915b505050505081565b6000801b610e5a81611824565b8160709080519060200190610e7092919061288c565b505050565b6000801b81565b610e8e610e8761141e565b83836119fb565b5050565b6000801b610e9f81611824565b610ea882611b68565b5050565b600060026006541415610ef4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610eeb90613565565b60405180910390fd5b60026006819055506064606e5410610f38576040517fd05cb60900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b606d60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1615610fbc576040517fddefae2800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610fdb3373ffffffffffffffffffffffffffffffffffffffff16611c2e565b15611012576040517f2dd5679600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600033604051602001611025919061320b565b60405160208183030381529060405280519060200120905061108b848480806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050606f5483611c51565b6110c1576040517f0ed6f64500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000606e549050606e60008154809291906110db90613925565b91905055506001606d60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506111423382611c68565b8092505050600160068190555092915050565b61116661116061141e565b836114df565b6111a5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161119c90613525565b60405180910390fd5b6111b184848484611c86565b50505050565b60606111c2826113b2565b611201576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111f890613545565b60405180910390fd5b600061120b611ce2565b90506000815111611251576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611248906134e5565b60405180910390fd5b8061125b84611d74565b60405160200161126c929190613226565b604051602081830303815290604052915050919050565b61128c826108da565b61129581611824565b61129f8383611919565b505050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806113ab57506113aa82611f21565b5b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff1661149983610b16565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006114ea826113b2565b611529576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161152090613425565b60405180910390fd5b600061153483610b16565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480611576575061157581856112a4565b5b806115b457508373ffffffffffffffffffffffffffffffffffffffff1661159c846106b7565b73ffffffffffffffffffffffffffffffffffffffff16145b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff166115dd82610b16565b73ffffffffffffffffffffffffffffffffffffffff1614611633576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161162a906133a5565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156116a3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161169a906133e5565b60405180910390fd5b6116ae838383612003565b6116b9600082611426565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461170991906137a4565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461176091906136c3565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461181f838383612008565b505050565b6118358161183061141e565b61200d565b50565b6118428282610cc2565b6119155760016007600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506118ba61141e565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b6119238282610cc2565b156119f75760006007600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555061199c61141e565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415611a6a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a6190613405565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611b5b919061330d565b60405180910390a3505050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167ff6a7092513e1f3f720c1d0ad65eb323494afe10d43e19dc4a40bac61ade7579160405160405180910390a35050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b600082611c5e85846120aa565b1490509392505050565b611c82828260405180602001604052806000815250612145565b5050565b611c918484846115bd565b611c9d848484846121a0565b611cdc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cd390613385565b60405180910390fd5b50505050565b606060708054611cf1906138c2565b80601f0160208091040260200160405190810160405280929190818152602001828054611d1d906138c2565b8015611d6a5780601f10611d3f57610100808354040283529160200191611d6a565b820191906000526020600020905b815481529060010190602001808311611d4d57829003601f168201915b5050505050905090565b60606000821415611dbc576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050611f1c565b600082905060005b60008214611dee578080611dd790613925565b915050600a82611de79190613719565b9150611dc4565b60008167ffffffffffffffff811115611e30577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611e625781602001600182028036833780820191505090505b5090505b60008514611f1557600182611e7b91906137a4565b9150600a85611e8a9190613992565b6030611e9691906136c3565b60f81b818381518110611ed2577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85611f0e9190613719565b9450611e66565b8093505050505b919050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611fec57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80611ffc5750611ffb82612337565b5b9050919050565b505050565b505050565b6120178282610cc2565b6120a65761203c8173ffffffffffffffffffffffffffffffffffffffff1660146123a1565b61204a8360001c60206123a1565b60405160200161205b92919061324a565b6040516020818303038152906040526040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161209d9190613343565b60405180910390fd5b5050565b60008082905060005b845181101561213a5760008582815181106120f7577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151905080831161211957612112838261269b565b9250612126565b612123818461269b565b92505b50808061213290613925565b9150506120b3565b508091505092915050565b61214f83836126b2565b61215c60008484846121a0565b61219b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161219290613385565b60405180910390fd5b505050565b60006121c18473ffffffffffffffffffffffffffffffffffffffff16611c2e565b1561232a578373ffffffffffffffffffffffffffffffffffffffff1663150b7a026121ea61141e565b8786866040518563ffffffff1660e01b815260040161220c949392919061329f565b602060405180830381600087803b15801561222657600080fd5b505af192505050801561225757506040513d601f19601f820116820180604052508101906122549190612d41565b60015b6122da573d8060008114612287576040519150601f19603f3d011682016040523d82523d6000602084013e61228c565b606091505b506000815114156122d2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122c990613385565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161491505061232f565b600190505b949350505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6060600060028360026123b4919061374a565b6123be91906136c3565b67ffffffffffffffff8111156123fd577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f19166020018201604052801561242f5781602001600182028036833780820191505090505b5090507f30000000000000000000000000000000000000000000000000000000000000008160008151811061248d577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110612517577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060006001846002612557919061374a565b61256191906136c3565b90505b600181111561264d577f3031323334353637383961626364656600000000000000000000000000000000600f8616601081106125c9577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b1a60f81b828281518110612606577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c94508061264690613898565b9050612564565b5060008414612691576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161268890613365565b60405180910390fd5b8091505092915050565b600082600052816020526040600020905092915050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612722576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612719906134a5565b60405180910390fd5b61272b816113b2565b1561276b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612762906133c5565b60405180910390fd5b61277760008383612003565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546127c791906136c3565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461288860008383612008565b5050565b828054612898906138c2565b90600052602060002090601f0160209004810192826128ba5760008555612901565b82601f106128d357805160ff1916838001178555612901565b82800160010185558215612901579182015b828111156129005782518255916020019190600101906128e5565b5b50905061290e9190612912565b5090565b5b8082111561292b576000816000905550600101612913565b5090565b600061294261293d846135e5565b6135c0565b90508281526020810184848401111561295a57600080fd5b612965848285613856565b509392505050565b600061298061297b84613616565b6135c0565b90508281526020810184848401111561299857600080fd5b6129a3848285613856565b509392505050565b6000813590506129ba81613f99565b92915050565b60008083601f8401126129d257600080fd5b8235905067ffffffffffffffff8111156129eb57600080fd5b602083019150836020820283011115612a0357600080fd5b9250929050565b600081359050612a1981613fb0565b92915050565b600081359050612a2e81613fc7565b92915050565b600081359050612a4381613fde565b92915050565b600081519050612a5881613fde565b92915050565b600082601f830112612a6f57600080fd5b8135612a7f84826020860161292f565b91505092915050565b600082601f830112612a9957600080fd5b8135612aa984826020860161296d565b91505092915050565b600081359050612ac181613ff5565b92915050565b600060208284031215612ad957600080fd5b6000612ae7848285016129ab565b91505092915050565b60008060408385031215612b0357600080fd5b6000612b11858286016129ab565b9250506020612b22858286016129ab565b9150509250929050565b600080600060608486031215612b4157600080fd5b6000612b4f868287016129ab565b9350506020612b60868287016129ab565b9250506040612b7186828701612ab2565b9150509250925092565b60008060008060808587031215612b9157600080fd5b6000612b9f878288016129ab565b9450506020612bb0878288016129ab565b9350506040612bc187828801612ab2565b925050606085013567ffffffffffffffff811115612bde57600080fd5b612bea87828801612a5e565b91505092959194509250565b60008060408385031215612c0957600080fd5b6000612c17858286016129ab565b9250506020612c2885828601612a0a565b9150509250929050565b60008060408385031215612c4557600080fd5b6000612c53858286016129ab565b9250506020612c6485828601612ab2565b9150509250929050565b60008060208385031215612c8157600080fd5b600083013567ffffffffffffffff811115612c9b57600080fd5b612ca7858286016129c0565b92509250509250929050565b600060208284031215612cc557600080fd5b6000612cd384828501612a1f565b91505092915050565b60008060408385031215612cef57600080fd5b6000612cfd85828601612a1f565b9250506020612d0e858286016129ab565b9150509250929050565b600060208284031215612d2a57600080fd5b6000612d3884828501612a34565b91505092915050565b600060208284031215612d5357600080fd5b6000612d6184828501612a49565b91505092915050565b600060208284031215612d7c57600080fd5b600082013567ffffffffffffffff811115612d9657600080fd5b612da284828501612a88565b91505092915050565b600060208284031215612dbd57600080fd5b6000612dcb84828501612ab2565b91505092915050565b6000612de083836131ed565b60208301905092915050565b612df5816137d8565b82525050565b612e0c612e07826137d8565b61396e565b82525050565b6000612e1d82613657565b612e278185613685565b9350612e3283613647565b8060005b83811015612e63578151612e4a8882612dd4565b9750612e5583613678565b925050600181019050612e36565b5085935050505092915050565b612e79816137ea565b82525050565b612e88816137f6565b82525050565b6000612e9982613662565b612ea38185613696565b9350612eb3818560208601613865565b612ebc81613a7f565b840191505092915050565b6000612ed28261366d565b612edc81856136a7565b9350612eec818560208601613865565b612ef581613a7f565b840191505092915050565b6000612f0b8261366d565b612f1581856136b8565b9350612f25818560208601613865565b80840191505092915050565b6000612f3e6020836136a7565b9150612f4982613a9d565b602082019050919050565b6000612f616032836136a7565b9150612f6c82613ac6565b604082019050919050565b6000612f846025836136a7565b9150612f8f82613b15565b604082019050919050565b6000612fa7601c836136a7565b9150612fb282613b64565b602082019050919050565b6000612fca6024836136a7565b9150612fd582613b8d565b604082019050919050565b6000612fed6019836136a7565b9150612ff882613bdc565b602082019050919050565b6000613010602c836136a7565b915061301b82613c05565b604082019050919050565b60006130336038836136a7565b915061303e82613c54565b604082019050919050565b6000613056602a836136a7565b915061306182613ca3565b604082019050919050565b60006130796029836136a7565b915061308482613cf2565b604082019050919050565b600061309c6020836136a7565b91506130a782613d41565b602082019050919050565b60006130bf602c836136a7565b91506130ca82613d6a565b604082019050919050565b60006130e2600f836136a7565b91506130ed82613db9565b602082019050919050565b60006131056021836136a7565b915061311082613de2565b604082019050919050565b60006131286031836136a7565b915061313382613e31565b604082019050919050565b600061314b6017836136b8565b915061315682613e80565b601782019050919050565b600061316e6026836136a7565b915061317982613ea9565b604082019050919050565b6000613191601f836136a7565b915061319c82613ef8565b602082019050919050565b60006131b46011836136b8565b91506131bf82613f21565b601182019050919050565b60006131d7602f836136a7565b91506131e282613f4a565b604082019050919050565b6131f68161384c565b82525050565b6132058161384c565b82525050565b60006132178284612dfb565b60148201915081905092915050565b60006132328285612f00565b915061323e8284612f00565b91508190509392505050565b60006132558261313e565b91506132618285612f00565b915061326c826131a7565b91506132788284612f00565b91508190509392505050565b60006020820190506132996000830184612dec565b92915050565b60006080820190506132b46000830187612dec565b6132c16020830186612dec565b6132ce60408301856131fc565b81810360608301526132e08184612e8e565b905095945050505050565b600060208201905081810360008301526133058184612e12565b905092915050565b60006020820190506133226000830184612e70565b92915050565b600060208201905061333d6000830184612e7f565b92915050565b6000602082019050818103600083015261335d8184612ec7565b905092915050565b6000602082019050818103600083015261337e81612f31565b9050919050565b6000602082019050818103600083015261339e81612f54565b9050919050565b600060208201905081810360008301526133be81612f77565b9050919050565b600060208201905081810360008301526133de81612f9a565b9050919050565b600060208201905081810360008301526133fe81612fbd565b9050919050565b6000602082019050818103600083015261341e81612fe0565b9050919050565b6000602082019050818103600083015261343e81613003565b9050919050565b6000602082019050818103600083015261345e81613026565b9050919050565b6000602082019050818103600083015261347e81613049565b9050919050565b6000602082019050818103600083015261349e8161306c565b9050919050565b600060208201905081810360008301526134be8161308f565b9050919050565b600060208201905081810360008301526134de816130b2565b9050919050565b600060208201905081810360008301526134fe816130d5565b9050919050565b6000602082019050818103600083015261351e816130f8565b9050919050565b6000602082019050818103600083015261353e8161311b565b9050919050565b6000602082019050818103600083015261355e81613161565b9050919050565b6000602082019050818103600083015261357e81613184565b9050919050565b6000602082019050818103600083015261359e816131ca565b9050919050565b60006020820190506135ba60008301846131fc565b92915050565b60006135ca6135db565b90506135d682826138f4565b919050565b6000604051905090565b600067ffffffffffffffff821115613600576135ff613a50565b5b61360982613a7f565b9050602081019050919050565b600067ffffffffffffffff82111561363157613630613a50565b5b61363a82613a7f565b9050602081019050919050565b6000819050602082019050919050565b600081519050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b60006136ce8261384c565b91506136d98361384c565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561370e5761370d6139c3565b5b828201905092915050565b60006137248261384c565b915061372f8361384c565b92508261373f5761373e6139f2565b5b828204905092915050565b60006137558261384c565b91506137608361384c565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615613799576137986139c3565b5b828202905092915050565b60006137af8261384c565b91506137ba8361384c565b9250828210156137cd576137cc6139c3565b5b828203905092915050565b60006137e38261382c565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b82818337600083830152505050565b60005b83811015613883578082015181840152602081019050613868565b83811115613892576000848401525b50505050565b60006138a38261384c565b915060008214156138b7576138b66139c3565b5b600182039050919050565b600060028204905060018216806138da57607f821691505b602082108114156138ee576138ed613a21565b5b50919050565b6138fd82613a7f565b810181811067ffffffffffffffff8211171561391c5761391b613a50565b5b80604052505050565b60006139308261384c565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415613963576139626139c3565b5b600182019050919050565b600061397982613980565b9050919050565b600061398b82613a90565b9050919050565b600061399d8261384c565b91506139a88361384c565b9250826139b8576139b76139f2565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b60008160601b9050919050565b7f537472696e67733a20686578206c656e67746820696e73756666696369656e74600082015250565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f62617365555249206e6f74207365740000000000000000000000000000000000600082015250565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000600082015250565b7f444543414c3a2055524920717565727920666f72206e6f6e6578697374656e7460008201527f20746f6b656e0000000000000000000000000000000000000000000000000000602082015250565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000600082015250565b7f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560008201527f20726f6c657320666f722073656c660000000000000000000000000000000000602082015250565b613fa2816137d8565b8114613fad57600080fd5b50565b613fb9816137ea565b8114613fc457600080fd5b50565b613fd0816137f6565b8114613fdb57600080fd5b50565b613fe781613800565b8114613ff257600080fd5b50565b613ffe8161384c565b811461400957600080fd5b5056fea2646970667358221220ef59a3501429c438091b069149ec8261855fdb42918eb8722f3f3e8fc72d701364736f6c63430008040033000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000003168747470733a2f2f636c69656e742d6170692e646563612e73797374656d732f646563616c2f6d657461646174612f322f0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000d523545b49076807094c0718f5eba00c0ae72fd6

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101da5760003560e01c806370a0823111610104578063a217fddf116100a2578063b88d4fde11610071578063b88d4fde1461057b578063c87b56dd14610597578063d547741f146105c7578063e985e9c5146105e3576101da565b8063a217fddf146104f5578063a22cb46514610513578063a70160231461052f578063b77a147b1461054b576101da565b806391d14854116100de57806391d148541461046d57806395d89b411461049d5780639abc8320146104bb578063a0bcfc7f146104d9576101da565b806370a08231146104035780637cb64759146104335780638da5cb5b1461044f576101da565b8063248a9ca31161017c57806336568abe1161014b57806336568abe1461036b57806342842e0e146103875780635de6dc55146103a35780636352211e146103d3576101da565b8063248a9ca3146102e35780632eb4a7ab146103135780632f2ff15d1461033157806332cb6b0c1461034d576101da565b8063095ea7b3116101b8578063095ea7b31461025d57806318160ddd146102795780631e7269c51461029757806323b872dd146102c7576101da565b806301ffc9a7146101df57806306fdde031461020f578063081812fc1461022d575b600080fd5b6101f960048036038101906101f49190612d18565b610613565b604051610206919061330d565b60405180910390f35b610217610625565b6040516102249190613343565b60405180910390f35b61024760048036038101906102429190612dab565b6106b7565b6040516102549190613284565b60405180910390f35b61027760048036038101906102729190612c32565b61073c565b005b610281610854565b60405161028e91906135a5565b60405180910390f35b6102b160048036038101906102ac9190612ac7565b61085a565b6040516102be919061330d565b60405180910390f35b6102e160048036038101906102dc9190612b2c565b61087a565b005b6102fd60048036038101906102f89190612cb3565b6108da565b60405161030a9190613328565b60405180910390f35b61031b6108fa565b6040516103289190613328565b60405180910390f35b61034b60048036038101906103469190612cdc565b610900565b005b610355610921565b60405161036291906135a5565b60405180910390f35b61038560048036038101906103809190612cdc565b610926565b005b6103a1600480360381019061039c9190612b2c565b6109a9565b005b6103bd60048036038101906103b89190612ac7565b6109c9565b6040516103ca91906132eb565b60405180910390f35b6103ed60048036038101906103e89190612dab565b610b16565b6040516103fa9190613284565b60405180910390f35b61041d60048036038101906104189190612ac7565b610bc8565b60405161042a91906135a5565b60405180910390f35b61044d60048036038101906104489190612cb3565b610c80565b005b610457610c98565b6040516104649190613284565b60405180910390f35b61048760048036038101906104829190612cdc565b610cc2565b604051610494919061330d565b60405180910390f35b6104a5610d2d565b6040516104b29190613343565b60405180910390f35b6104c3610dbf565b6040516104d09190613343565b60405180910390f35b6104f360048036038101906104ee9190612d6a565b610e4d565b005b6104fd610e75565b60405161050a9190613328565b60405180910390f35b61052d60048036038101906105289190612bf6565b610e7c565b005b61054960048036038101906105449190612ac7565b610e92565b005b61056560048036038101906105609190612c6e565b610eac565b60405161057291906135a5565b60405180910390f35b61059560048036038101906105909190612b7b565b611155565b005b6105b160048036038101906105ac9190612dab565b6111b7565b6040516105be9190613343565b60405180910390f35b6105e160048036038101906105dc9190612cdc565b611283565b005b6105fd60048036038101906105f89190612af0565b6112a4565b60405161060a919061330d565b60405180910390f35b600061061e82611338565b9050919050565b606060008054610634906138c2565b80601f0160208091040260200160405190810160405280929190818152602001828054610660906138c2565b80156106ad5780601f10610682576101008083540402835291602001916106ad565b820191906000526020600020905b81548152906001019060200180831161069057829003601f168201915b5050505050905090565b60006106c2826113b2565b610701576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106f8906134c5565b60405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b600061074782610b16565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156107b8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107af90613505565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff166107d761141e565b73ffffffffffffffffffffffffffffffffffffffff16148061080657506108058161080061141e565b6112a4565b5b610845576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161083c90613445565b60405180910390fd5b61084f8383611426565b505050565b606e5481565b606d6020528060005260406000206000915054906101000a900460ff1681565b61088b61088561141e565b826114df565b6108ca576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108c190613525565b60405180910390fd5b6108d58383836115bd565b505050565b600060076000838152602001908152602001600020600101549050919050565b606f5481565b610909826108da565b61091281611824565b61091c8383611838565b505050565b606481565b61092e61141e565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161461099b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161099290613585565b60405180910390fd5b6109a58282611919565b5050565b6109c483838360405180602001604052806000815250611155565b505050565b606060006109d683610bc8565b905060008167ffffffffffffffff811115610a1a577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604051908082528060200260200182016040528015610a485781602001602082028036833780820191505090505b5090506000805b606e54811015610b0a578573ffffffffffffffffffffffffffffffffffffffff16610a7982610b16565b73ffffffffffffffffffffffffffffffffffffffff161415610aea5780838381518110610acf577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010181815250508180610ae690613925565b9250505b83821415610af757610b0a565b8080610b0290613925565b915050610a4f565b50819350505050919050565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610bbf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bb690613485565b60405180910390fd5b80915050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415610c39576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c3090613465565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6000801b610c8d81611824565b81606f819055505050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60006007600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b606060018054610d3c906138c2565b80601f0160208091040260200160405190810160405280929190818152602001828054610d68906138c2565b8015610db55780601f10610d8a57610100808354040283529160200191610db5565b820191906000526020600020905b815481529060010190602001808311610d9857829003601f168201915b5050505050905090565b60708054610dcc906138c2565b80601f0160208091040260200160405190810160405280929190818152602001828054610df8906138c2565b8015610e455780601f10610e1a57610100808354040283529160200191610e45565b820191906000526020600020905b815481529060010190602001808311610e2857829003601f168201915b505050505081565b6000801b610e5a81611824565b8160709080519060200190610e7092919061288c565b505050565b6000801b81565b610e8e610e8761141e565b83836119fb565b5050565b6000801b610e9f81611824565b610ea882611b68565b5050565b600060026006541415610ef4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610eeb90613565565b60405180910390fd5b60026006819055506064606e5410610f38576040517fd05cb60900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b606d60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1615610fbc576040517fddefae2800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610fdb3373ffffffffffffffffffffffffffffffffffffffff16611c2e565b15611012576040517f2dd5679600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600033604051602001611025919061320b565b60405160208183030381529060405280519060200120905061108b848480806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050606f5483611c51565b6110c1576040517f0ed6f64500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000606e549050606e60008154809291906110db90613925565b91905055506001606d60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506111423382611c68565b8092505050600160068190555092915050565b61116661116061141e565b836114df565b6111a5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161119c90613525565b60405180910390fd5b6111b184848484611c86565b50505050565b60606111c2826113b2565b611201576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111f890613545565b60405180910390fd5b600061120b611ce2565b90506000815111611251576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611248906134e5565b60405180910390fd5b8061125b84611d74565b60405160200161126c929190613226565b604051602081830303815290604052915050919050565b61128c826108da565b61129581611824565b61129f8383611919565b505050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806113ab57506113aa82611f21565b5b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff1661149983610b16565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006114ea826113b2565b611529576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161152090613425565b60405180910390fd5b600061153483610b16565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480611576575061157581856112a4565b5b806115b457508373ffffffffffffffffffffffffffffffffffffffff1661159c846106b7565b73ffffffffffffffffffffffffffffffffffffffff16145b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff166115dd82610b16565b73ffffffffffffffffffffffffffffffffffffffff1614611633576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161162a906133a5565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156116a3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161169a906133e5565b60405180910390fd5b6116ae838383612003565b6116b9600082611426565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461170991906137a4565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461176091906136c3565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461181f838383612008565b505050565b6118358161183061141e565b61200d565b50565b6118428282610cc2565b6119155760016007600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506118ba61141e565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b6119238282610cc2565b156119f75760006007600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555061199c61141e565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415611a6a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a6190613405565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611b5b919061330d565b60405180910390a3505050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167ff6a7092513e1f3f720c1d0ad65eb323494afe10d43e19dc4a40bac61ade7579160405160405180910390a35050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b600082611c5e85846120aa565b1490509392505050565b611c82828260405180602001604052806000815250612145565b5050565b611c918484846115bd565b611c9d848484846121a0565b611cdc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cd390613385565b60405180910390fd5b50505050565b606060708054611cf1906138c2565b80601f0160208091040260200160405190810160405280929190818152602001828054611d1d906138c2565b8015611d6a5780601f10611d3f57610100808354040283529160200191611d6a565b820191906000526020600020905b815481529060010190602001808311611d4d57829003601f168201915b5050505050905090565b60606000821415611dbc576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050611f1c565b600082905060005b60008214611dee578080611dd790613925565b915050600a82611de79190613719565b9150611dc4565b60008167ffffffffffffffff811115611e30577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611e625781602001600182028036833780820191505090505b5090505b60008514611f1557600182611e7b91906137a4565b9150600a85611e8a9190613992565b6030611e9691906136c3565b60f81b818381518110611ed2577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85611f0e9190613719565b9450611e66565b8093505050505b919050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611fec57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80611ffc5750611ffb82612337565b5b9050919050565b505050565b505050565b6120178282610cc2565b6120a65761203c8173ffffffffffffffffffffffffffffffffffffffff1660146123a1565b61204a8360001c60206123a1565b60405160200161205b92919061324a565b6040516020818303038152906040526040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161209d9190613343565b60405180910390fd5b5050565b60008082905060005b845181101561213a5760008582815181106120f7577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151905080831161211957612112838261269b565b9250612126565b612123818461269b565b92505b50808061213290613925565b9150506120b3565b508091505092915050565b61214f83836126b2565b61215c60008484846121a0565b61219b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161219290613385565b60405180910390fd5b505050565b60006121c18473ffffffffffffffffffffffffffffffffffffffff16611c2e565b1561232a578373ffffffffffffffffffffffffffffffffffffffff1663150b7a026121ea61141e565b8786866040518563ffffffff1660e01b815260040161220c949392919061329f565b602060405180830381600087803b15801561222657600080fd5b505af192505050801561225757506040513d601f19601f820116820180604052508101906122549190612d41565b60015b6122da573d8060008114612287576040519150601f19603f3d011682016040523d82523d6000602084013e61228c565b606091505b506000815114156122d2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122c990613385565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161491505061232f565b600190505b949350505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6060600060028360026123b4919061374a565b6123be91906136c3565b67ffffffffffffffff8111156123fd577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f19166020018201604052801561242f5781602001600182028036833780820191505090505b5090507f30000000000000000000000000000000000000000000000000000000000000008160008151811061248d577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110612517577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060006001846002612557919061374a565b61256191906136c3565b90505b600181111561264d577f3031323334353637383961626364656600000000000000000000000000000000600f8616601081106125c9577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b1a60f81b828281518110612606577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c94508061264690613898565b9050612564565b5060008414612691576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161268890613365565b60405180910390fd5b8091505092915050565b600082600052816020526040600020905092915050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612722576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612719906134a5565b60405180910390fd5b61272b816113b2565b1561276b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612762906133c5565b60405180910390fd5b61277760008383612003565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546127c791906136c3565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461288860008383612008565b5050565b828054612898906138c2565b90600052602060002090601f0160209004810192826128ba5760008555612901565b82601f106128d357805160ff1916838001178555612901565b82800160010185558215612901579182015b828111156129005782518255916020019190600101906128e5565b5b50905061290e9190612912565b5090565b5b8082111561292b576000816000905550600101612913565b5090565b600061294261293d846135e5565b6135c0565b90508281526020810184848401111561295a57600080fd5b612965848285613856565b509392505050565b600061298061297b84613616565b6135c0565b90508281526020810184848401111561299857600080fd5b6129a3848285613856565b509392505050565b6000813590506129ba81613f99565b92915050565b60008083601f8401126129d257600080fd5b8235905067ffffffffffffffff8111156129eb57600080fd5b602083019150836020820283011115612a0357600080fd5b9250929050565b600081359050612a1981613fb0565b92915050565b600081359050612a2e81613fc7565b92915050565b600081359050612a4381613fde565b92915050565b600081519050612a5881613fde565b92915050565b600082601f830112612a6f57600080fd5b8135612a7f84826020860161292f565b91505092915050565b600082601f830112612a9957600080fd5b8135612aa984826020860161296d565b91505092915050565b600081359050612ac181613ff5565b92915050565b600060208284031215612ad957600080fd5b6000612ae7848285016129ab565b91505092915050565b60008060408385031215612b0357600080fd5b6000612b11858286016129ab565b9250506020612b22858286016129ab565b9150509250929050565b600080600060608486031215612b4157600080fd5b6000612b4f868287016129ab565b9350506020612b60868287016129ab565b9250506040612b7186828701612ab2565b9150509250925092565b60008060008060808587031215612b9157600080fd5b6000612b9f878288016129ab565b9450506020612bb0878288016129ab565b9350506040612bc187828801612ab2565b925050606085013567ffffffffffffffff811115612bde57600080fd5b612bea87828801612a5e565b91505092959194509250565b60008060408385031215612c0957600080fd5b6000612c17858286016129ab565b9250506020612c2885828601612a0a565b9150509250929050565b60008060408385031215612c4557600080fd5b6000612c53858286016129ab565b9250506020612c6485828601612ab2565b9150509250929050565b60008060208385031215612c8157600080fd5b600083013567ffffffffffffffff811115612c9b57600080fd5b612ca7858286016129c0565b92509250509250929050565b600060208284031215612cc557600080fd5b6000612cd384828501612a1f565b91505092915050565b60008060408385031215612cef57600080fd5b6000612cfd85828601612a1f565b9250506020612d0e858286016129ab565b9150509250929050565b600060208284031215612d2a57600080fd5b6000612d3884828501612a34565b91505092915050565b600060208284031215612d5357600080fd5b6000612d6184828501612a49565b91505092915050565b600060208284031215612d7c57600080fd5b600082013567ffffffffffffffff811115612d9657600080fd5b612da284828501612a88565b91505092915050565b600060208284031215612dbd57600080fd5b6000612dcb84828501612ab2565b91505092915050565b6000612de083836131ed565b60208301905092915050565b612df5816137d8565b82525050565b612e0c612e07826137d8565b61396e565b82525050565b6000612e1d82613657565b612e278185613685565b9350612e3283613647565b8060005b83811015612e63578151612e4a8882612dd4565b9750612e5583613678565b925050600181019050612e36565b5085935050505092915050565b612e79816137ea565b82525050565b612e88816137f6565b82525050565b6000612e9982613662565b612ea38185613696565b9350612eb3818560208601613865565b612ebc81613a7f565b840191505092915050565b6000612ed28261366d565b612edc81856136a7565b9350612eec818560208601613865565b612ef581613a7f565b840191505092915050565b6000612f0b8261366d565b612f1581856136b8565b9350612f25818560208601613865565b80840191505092915050565b6000612f3e6020836136a7565b9150612f4982613a9d565b602082019050919050565b6000612f616032836136a7565b9150612f6c82613ac6565b604082019050919050565b6000612f846025836136a7565b9150612f8f82613b15565b604082019050919050565b6000612fa7601c836136a7565b9150612fb282613b64565b602082019050919050565b6000612fca6024836136a7565b9150612fd582613b8d565b604082019050919050565b6000612fed6019836136a7565b9150612ff882613bdc565b602082019050919050565b6000613010602c836136a7565b915061301b82613c05565b604082019050919050565b60006130336038836136a7565b915061303e82613c54565b604082019050919050565b6000613056602a836136a7565b915061306182613ca3565b604082019050919050565b60006130796029836136a7565b915061308482613cf2565b604082019050919050565b600061309c6020836136a7565b91506130a782613d41565b602082019050919050565b60006130bf602c836136a7565b91506130ca82613d6a565b604082019050919050565b60006130e2600f836136a7565b91506130ed82613db9565b602082019050919050565b60006131056021836136a7565b915061311082613de2565b604082019050919050565b60006131286031836136a7565b915061313382613e31565b604082019050919050565b600061314b6017836136b8565b915061315682613e80565b601782019050919050565b600061316e6026836136a7565b915061317982613ea9565b604082019050919050565b6000613191601f836136a7565b915061319c82613ef8565b602082019050919050565b60006131b46011836136b8565b91506131bf82613f21565b601182019050919050565b60006131d7602f836136a7565b91506131e282613f4a565b604082019050919050565b6131f68161384c565b82525050565b6132058161384c565b82525050565b60006132178284612dfb565b60148201915081905092915050565b60006132328285612f00565b915061323e8284612f00565b91508190509392505050565b60006132558261313e565b91506132618285612f00565b915061326c826131a7565b91506132788284612f00565b91508190509392505050565b60006020820190506132996000830184612dec565b92915050565b60006080820190506132b46000830187612dec565b6132c16020830186612dec565b6132ce60408301856131fc565b81810360608301526132e08184612e8e565b905095945050505050565b600060208201905081810360008301526133058184612e12565b905092915050565b60006020820190506133226000830184612e70565b92915050565b600060208201905061333d6000830184612e7f565b92915050565b6000602082019050818103600083015261335d8184612ec7565b905092915050565b6000602082019050818103600083015261337e81612f31565b9050919050565b6000602082019050818103600083015261339e81612f54565b9050919050565b600060208201905081810360008301526133be81612f77565b9050919050565b600060208201905081810360008301526133de81612f9a565b9050919050565b600060208201905081810360008301526133fe81612fbd565b9050919050565b6000602082019050818103600083015261341e81612fe0565b9050919050565b6000602082019050818103600083015261343e81613003565b9050919050565b6000602082019050818103600083015261345e81613026565b9050919050565b6000602082019050818103600083015261347e81613049565b9050919050565b6000602082019050818103600083015261349e8161306c565b9050919050565b600060208201905081810360008301526134be8161308f565b9050919050565b600060208201905081810360008301526134de816130b2565b9050919050565b600060208201905081810360008301526134fe816130d5565b9050919050565b6000602082019050818103600083015261351e816130f8565b9050919050565b6000602082019050818103600083015261353e8161311b565b9050919050565b6000602082019050818103600083015261355e81613161565b9050919050565b6000602082019050818103600083015261357e81613184565b9050919050565b6000602082019050818103600083015261359e816131ca565b9050919050565b60006020820190506135ba60008301846131fc565b92915050565b60006135ca6135db565b90506135d682826138f4565b919050565b6000604051905090565b600067ffffffffffffffff821115613600576135ff613a50565b5b61360982613a7f565b9050602081019050919050565b600067ffffffffffffffff82111561363157613630613a50565b5b61363a82613a7f565b9050602081019050919050565b6000819050602082019050919050565b600081519050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b60006136ce8261384c565b91506136d98361384c565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561370e5761370d6139c3565b5b828201905092915050565b60006137248261384c565b915061372f8361384c565b92508261373f5761373e6139f2565b5b828204905092915050565b60006137558261384c565b91506137608361384c565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615613799576137986139c3565b5b828202905092915050565b60006137af8261384c565b91506137ba8361384c565b9250828210156137cd576137cc6139c3565b5b828203905092915050565b60006137e38261382c565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b82818337600083830152505050565b60005b83811015613883578082015181840152602081019050613868565b83811115613892576000848401525b50505050565b60006138a38261384c565b915060008214156138b7576138b66139c3565b5b600182039050919050565b600060028204905060018216806138da57607f821691505b602082108114156138ee576138ed613a21565b5b50919050565b6138fd82613a7f565b810181811067ffffffffffffffff8211171561391c5761391b613a50565b5b80604052505050565b60006139308261384c565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415613963576139626139c3565b5b600182019050919050565b600061397982613980565b9050919050565b600061398b82613a90565b9050919050565b600061399d8261384c565b91506139a88361384c565b9250826139b8576139b76139f2565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b60008160601b9050919050565b7f537472696e67733a20686578206c656e67746820696e73756666696369656e74600082015250565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f62617365555249206e6f74207365740000000000000000000000000000000000600082015250565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000600082015250565b7f444543414c3a2055524920717565727920666f72206e6f6e6578697374656e7460008201527f20746f6b656e0000000000000000000000000000000000000000000000000000602082015250565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000600082015250565b7f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560008201527f20726f6c657320666f722073656c660000000000000000000000000000000000602082015250565b613fa2816137d8565b8114613fad57600080fd5b50565b613fb9816137ea565b8114613fc457600080fd5b50565b613fd0816137f6565b8114613fdb57600080fd5b50565b613fe781613800565b8114613ff257600080fd5b50565b613ffe8161384c565b811461400957600080fd5b5056fea2646970667358221220ef59a3501429c438091b069149ec8261855fdb42918eb8722f3f3e8fc72d701364736f6c63430008040033

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

000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000003168747470733a2f2f636c69656e742d6170692e646563612e73797374656d732f646563616c2f6d657461646174612f322f0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000d523545b49076807094c0718f5eba00c0ae72fd6

-----Decoded View---------------
Arg [0] : _baseUri (string): https://client-api.deca.systems/decal/metadata/2/
Arg [1] : _admins (address[]): 0xd523545B49076807094C0718F5eBa00C0aE72fD6

-----Encoded View---------------
7 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000031
Arg [3] : 68747470733a2f2f636c69656e742d6170692e646563612e73797374656d732f
Arg [4] : 646563616c2f6d657461646174612f322f000000000000000000000000000000
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [6] : 000000000000000000000000d523545b49076807094c0718f5eba00c0ae72fd6


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.