ETH Price: $3,471.55 (+4.13%)

Token

Banalien | WOF x iSteef (iSteef)
 

Overview

Max Total Supply

500 iSteef

Holders

111

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A

Other Info

Balance
3 iSteef
0x059c4eeecaf00248686d94a80497a87251fbd917
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:
NFTCollectionContract

Compiler Version
v0.8.11+commit.d7f03943

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license
File 1 of 20 : NFTCollectionContract.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "../templates/NFTCollection.sol";

contract NFTCollectionContract is NFTCollection {
    constructor(
        DeploymentConfig memory deploymentConfig,
        RuntimeConfig memory runtimeConfig
    ) {
        _preventInitialization = false;
        initialize(deploymentConfig, runtimeConfig);
    }
}

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

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

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

    /**
     * @dev Revert with a standard message if `account` is missing `role`.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
     */
    function _checkRole(bytes32 role, address account) internal view 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 3 of 20 : 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 4 of 20 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (interfaces/IERC165.sol)

pragma solidity ^0.8.0;

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

File 5 of 20 : IERC2981.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (interfaces/IERC2981.sol)

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

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

pragma solidity ^0.8.0;

import "../../utils/Address.sol";

/**
 * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed
 * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an
 * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer
 * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.
 *
 * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as
 * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.
 *
 * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure
 * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.
 *
 * [CAUTION]
 * ====
 * Avoid leaving a contract uninitialized.
 *
 * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation
 * contract, which may impact the proxy. To initialize the implementation contract, you can either invoke the
 * initializer manually, or you can include a constructor to automatically mark it as initialized when it is deployed:
 *
 * [.hljs-theme-light.nopadding]
 * ```
 * /// @custom:oz-upgrades-unsafe-allow constructor
 * constructor() initializer {}
 * ```
 * ====
 */
abstract contract Initializable {
    /**
     * @dev Indicates that the contract has been initialized.
     */
    bool private _initialized;

    /**
     * @dev Indicates that the contract is in the process of being initialized.
     */
    bool private _initializing;

    /**
     * @dev Modifier to protect an initializer function from being invoked twice.
     */
    modifier initializer() {
        // If the contract is initializing we ignore whether _initialized is set in order to support multiple
        // inheritance patterns, but we only do this in the context of a constructor, because in other contexts the
        // contract may have been reentered.
        require(_initializing ? _isConstructor() : !_initialized, "Initializable: contract is already initialized");

        bool isTopLevelCall = !_initializing;
        if (isTopLevelCall) {
            _initializing = true;
            _initialized = true;
        }

        _;

        if (isTopLevelCall) {
            _initializing = false;
        }
    }

    /**
     * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the
     * {initializer} modifier, directly or indirectly.
     */
    modifier onlyInitializing() {
        require(_initializing, "Initializable: contract is not initializing");
        _;
    }

    function _isConstructor() private view returns (bool) {
        return !Address.isContract(address(this));
    }
}

File 7 of 20 : ERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.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 overriden in child contracts.
     */
    function _baseURI() internal view virtual returns (string memory) {
        return "";
    }

    /**
     * @dev See {IERC721-approve}.
     */
    function approve(address to, uint256 tokenId) public virtual override {
        address owner = 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 || getApproved(tokenId) == spender || isApprovedForAll(owner, 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 20 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

File 10 of 20 : 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 11 of 20 : ERC2981.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/common/ERC2981.sol)

pragma solidity ^0.8.0;

import "../../interfaces/IERC2981.sol";
import "../../utils/introspection/ERC165.sol";

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

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

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

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

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

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

        return (royalty.receiver, royaltyAmount);
    }

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

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

        _defaultRoyaltyInfo = RoyaltyInfo(receiver, feeNumerator);
    }

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

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

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

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

File 12 of 20 : 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 13 of 20 : 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 14 of 20 : 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 15 of 20 : MerkleProof.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.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.
 */
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 Merklee 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 16 of 20 : 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 17 of 20 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

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

File 18 of 20 : Base64.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;

/// @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 19 of 20 : ERC2981.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/utils/introspection/IERC165.sol";
import {IERC2981} from "@openzeppelin/contracts/token/common/ERC2981.sol";

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

File 20 of 20 : NFTCollection.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

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

import "../lib/ERC2981.sol";
import "../lib/Base64.sol";

contract NFTCollection is ERC721, ERC2981, AccessControl, Initializable {
    using Address for address payable;
    using Strings for uint256;

    /// Fixed at deployment time
    struct DeploymentConfig {
        /// Name of the NFT contract.
        string name;
        /// Symbol of the NFT contract.
        string symbol;
        /// The contract owner address. If you wish to own the contract, then set it as your wallet address.
        /// This is also the wallet that can manage the contract on NFT marketplaces. Use `transferOwnership()`
        /// to update the contract owner.
        address owner;
        /// The maximum number of tokens that can be minted in this collection.
        uint256 maxSupply;
        /// The number of free token mints reserved for the contract owner
        uint256 reservedSupply;
        /// Minting price per token.
        uint256 mintPrice;
        /// The maximum number of tokens the user can mint per transaction.
        uint256 tokensPerMint;
        /// Treasury address is the address where minting fees can be withdrawn to.
        /// Use `withdrawFees()` to transfer the entire contract balance to the treasury address.
        address payable treasuryAddress;
    }

    /// Updatable by admins and owner
    struct RuntimeConfig {
        /// Metadata base URI for tokens, NFTs minted in this contract will have metadata URI of `baseURI` + `tokenID`.
        /// Set this to reveal token metadata.
        string baseURI;
        /// If true, the base URI of the NFTs minted in the specified contract can be updated after minting (token URIs
        /// are not frozen on the contract level). This is useful for revealing NFTs after the drop. If false, all the
        /// NFTs minted in this contract are frozen by default which means token URIs are non-updatable.
        bool metadataUpdatable;
        /// Starting timestamp for public minting.
        uint256 publicMintStart;
        /// Starting timestamp for whitelisted/presale minting.
        uint256 presaleMintStart;
        /// Pre-reveal token URI for placholder metadata. This will be returned for all token IDs until a `baseURI`
        /// has been set.
        string prerevealTokenURI;
        /// Root of the Merkle tree of whitelisted addresses. This is used to check if a wallet has been whitelisted
        /// for presale minting.
        bytes32 presaleMerkleRoot;
        /// Secondary market royalties in basis points (100 bps = 1%)
        uint256 royaltiesBps;
        /// Address for royalties
        address royaltiesAddress;
    }

    struct ContractInfo {
        uint256 version;
        DeploymentConfig deploymentConfig;
        RuntimeConfig runtimeConfig;
    }

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

    /*************
     * Constants *
     *************/

    /// Contract version, semver-style uint X_YY_ZZ
    uint256 public constant VERSION = 1_02_00;

    /// Admin role
    bytes32 public constant ADMIN_ROLE = keccak256("ADMIN_ROLE");

    // Basis for calculating royalties.
    // This has to be 10k for royaltiesBps to be in basis points.
    uint16 constant ROYALTIES_BASIS = 10000;

    /********************
     * Public variables *
     ********************/

    /// The number of currently minted tokens
    /// @dev Managed by the contract
    uint256 public totalSupply;

    /// The number of tokens remaining in the reserve
    /// @dev Managed by the contract
    uint256 public reserveRemaining;

    /***************************
     * Contract initialization *
     ***************************/

    constructor() ERC721("", "") {
        _preventInitialization = true;
    }

    /// Contract initializer
    function initialize(
        DeploymentConfig memory deploymentConfig,
        RuntimeConfig memory runtimeConfig
    ) public initializer {
        require(!_preventInitialization, "Cannot be initialized");
        _validateDeploymentConfig(deploymentConfig);

        _grantRole(ADMIN_ROLE, msg.sender);
        _grantRole(ADMIN_ROLE, deploymentConfig.owner);
        _grantRole(DEFAULT_ADMIN_ROLE, deploymentConfig.owner);

        _deploymentConfig = deploymentConfig;
        _runtimeConfig = runtimeConfig;

        reserveRemaining = deploymentConfig.reservedSupply;
    }

    /****************
     * User actions *
     ****************/

    /// Mint tokens
    function mint(uint256 amount) external payable paymentProvided(amount) {
        require(mintingActive(), "Minting has not started yet");

        _mintTokens(msg.sender, amount);
    }

    /// Mint tokens if the wallet has been whitelisted
    function presaleMint(uint256 amount, bytes32[] calldata proof)
        external
        payable
        paymentProvided(amount)
    {
        require(presaleActive(), "Presale has not started yet");
        require(
            isWhitelisted(msg.sender, proof),
            "Not whitelisted for presale"
        );

        _presaleMinted[msg.sender] = true;
        _mintTokens(msg.sender, amount);
    }

    /******************
     * View functions *
     ******************/

    /// Check if public minting is active
    function mintingActive() public view returns (bool) {
        return block.timestamp > _runtimeConfig.publicMintStart;
    }

    /// Check if presale minting is active
    function presaleActive() public view returns (bool) {
        return block.timestamp > _runtimeConfig.presaleMintStart;
    }

    /// Get the number of tokens still available for minting
    function availableSupply() public view returns (uint256) {
        return _deploymentConfig.maxSupply - totalSupply - reserveRemaining;
    }

    /// Check if the wallet is whitelisted for the presale
    function isWhitelisted(address wallet, bytes32[] calldata proof)
        public
        view
        returns (bool)
    {
        require(!_presaleMinted[wallet], "Already minted");

        bytes32 leaf = keccak256(abi.encodePacked(wallet));

        return
            MerkleProof.verify(proof, _runtimeConfig.presaleMerkleRoot, leaf);
    }

    /// Contract owner address
    /// @dev Required for easy integration with OpenSea
    function owner() public view returns (address) {
        return _deploymentConfig.owner;
    }

    /*******************
     * Access controls *
     *******************/

    /// Transfer contract ownership
    function transferOwnership(address newOwner)
        external
        onlyRole(DEFAULT_ADMIN_ROLE)
    {
        require(newOwner != _deploymentConfig.owner, "Already the owner");

        _revokeRole(ADMIN_ROLE, _deploymentConfig.owner);
        _revokeRole(DEFAULT_ADMIN_ROLE, _deploymentConfig.owner);

        address previousOwner = _deploymentConfig.owner;
        _deploymentConfig.owner = newOwner;

        _grantRole(ADMIN_ROLE, _deploymentConfig.owner);
        _grantRole(DEFAULT_ADMIN_ROLE, _deploymentConfig.owner);

        emit OwnershipTransferred(previousOwner, newOwner);
    }

    /// Transfer contract ownership
    function transferAdminRights(address to) external onlyRole(ADMIN_ROLE) {
        require(!hasRole(ADMIN_ROLE, to), "Already an admin");
        require(msg.sender != _deploymentConfig.owner, "Use transferOwnership");

        _revokeRole(ADMIN_ROLE, msg.sender);
        _grantRole(ADMIN_ROLE, to);
    }

    /*****************
     * Admin actions *
     *****************/

    /// Mint a token from the reserve
    function reserveMint(address to, uint256 amount)
        external
        onlyRole(ADMIN_ROLE)
    {
        require(amount <= reserveRemaining, "Not enough reserved");

        reserveRemaining -= amount;
        _mintTokens(to, amount);
    }

    /// Get full contract information
    /// @dev Convenience helper
    function getInfo() external view returns (ContractInfo memory info) {
        info.version = VERSION;
        info.deploymentConfig = _deploymentConfig;
        info.runtimeConfig = _runtimeConfig;
    }

    /// Update contract configuration
    /// @dev Callable by admin roles only
    function updateConfig(RuntimeConfig calldata newConfig)
        external
        onlyRole(ADMIN_ROLE)
    {
        _validateRuntimeConfig(newConfig);
        _runtimeConfig = newConfig;
    }

    /// Withdraw minting fees to the treasury address
    /// @dev Callable by admin roles only
    function withdrawFees() external onlyRole(ADMIN_ROLE) {
        _deploymentConfig.treasuryAddress.sendValue(address(this).balance);
    }

    /*************
     * Internals *
     *************/

    /// Contract configuration
    RuntimeConfig internal _runtimeConfig;
    DeploymentConfig internal _deploymentConfig;

    /// Flag for disabling initalization for template contracts
    bool internal _preventInitialization;

    /// Mapping for tracking presale mint status
    mapping(address => bool) internal _presaleMinted;

    /// @dev Internal function for performing token mints
    function _mintTokens(address to, uint256 amount) internal {
        require(amount <= _deploymentConfig.tokensPerMint, "Amount too large");
        require(amount <= availableSupply(), "Not enough tokens left");

        // Update totalSupply only once with the total minted amount
        totalSupply += amount;
        // Mint the required amount of tokens,
        // starting with the highest token ID
        for (uint256 i = 1; i <= amount; i++) {
            _safeMint(to, totalSupply - i);
        }
    }

    /// Validate deployment config
    function _validateDeploymentConfig(DeploymentConfig memory config)
        internal
        pure
    {
        require(config.maxSupply > 0, "Maximum supply must be non-zero");
        require(config.tokensPerMint > 0, "Tokens per mint must be non-zero");
        require(
            config.treasuryAddress != address(0),
            "Treasury address cannot be the null address"
        );
        require(config.owner != address(0), "Contract must have an owner");
        require(
            config.reservedSupply <= config.maxSupply,
            "Reserve must be less than maximum supply"
        );
    }

    /// Validate a runtime configuration change
    function _validateRuntimeConfig(RuntimeConfig calldata config)
        internal
        view
    {
        // Can't set royalties to more than 100%
        require(config.royaltiesBps <= ROYALTIES_BASIS, "Royalties too high");

        // If metadata is updatable, we don't have any other limitations
        if (_runtimeConfig.metadataUpdatable) return;

        // If it isn't, has we can't allow the flag to change anymore
        require(
            _runtimeConfig.metadataUpdatable == config.metadataUpdatable,
            "Cannot unfreeze metadata"
        );

        // We also can't allow base URI to change
        require(
            keccak256(abi.encodePacked(_runtimeConfig.baseURI)) ==
                keccak256(abi.encodePacked(config.baseURI)),
            "Metadata is frozen"
        );
    }

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

    /// Get the token metadata URI
    function tokenURI(uint256 tokenId)
        public
        view
        override
        returns (string memory)
    {
        require(_exists(tokenId), "Token does not exist");

        return
            bytes(_runtimeConfig.baseURI).length > 0
                ? string(
                    abi.encodePacked(_runtimeConfig.baseURI, tokenId.toString())
                )
                : _runtimeConfig.prerevealTokenURI;
    }

    /// @dev Need name() to support setting it in the initializer instead of constructor
    function name() public view override returns (string memory) {
        return _deploymentConfig.name;
    }

    /// @dev Need symbol() to support setting it in the initializer instead of constructor
    function symbol() public view override returns (string memory) {
        return _deploymentConfig.symbol;
    }

    /// @dev ERC2981 token royalty info
    function royaltyInfo(uint256, uint256 salePrice)
        external
        view
        returns (address receiver, uint256 royaltyAmount)
    {
        receiver = _runtimeConfig.royaltiesAddress;
        royaltyAmount =
            (_runtimeConfig.royaltiesBps * salePrice) /
            ROYALTIES_BASIS;
    }

    /// @dev OpenSea contract metadata
    function contractURI() external view returns (string memory) {
        string memory json = Base64.encode(
            bytes(
                string(
                    abi.encodePacked(
                        '{"seller_fee_basis_points": ',
                        _runtimeConfig.royaltiesBps.toString(),
                        ', "fee_recipient": "',
                        uint256(uint160(_runtimeConfig.royaltiesAddress))
                            .toHexString(20),
                        '"}'
                    )
                )
            )
        );

        string memory output = string(
            abi.encodePacked("data:application/json;base64,", json)
        );

        return output;
    }

    /// Check if enough payment was provided to mint `amount` number of tokens
    modifier paymentProvided(uint256 amount) {
        require(
            msg.value >= amount * _deploymentConfig.mintPrice,
            "Payment too small"
        );
        _;
    }

    /***********************
     * Convenience getters *
     ***********************/

    function maxSupply() public view returns (uint256) {
        return _deploymentConfig.maxSupply;
    }

    function reservedSupply() public view returns (uint256) {
        return _deploymentConfig.reservedSupply;
    }

    function mintPrice() public view returns (uint256) {
        return _deploymentConfig.mintPrice;
    }

    function tokensPerMint() public view returns (uint256) {
        return _deploymentConfig.tokensPerMint;
    }

    function treasuryAddress() public view returns (address) {
        return _deploymentConfig.treasuryAddress;
    }

    function publicMintStart() public view returns (uint256) {
        return _runtimeConfig.publicMintStart;
    }

    function presaleMintStart() public view returns (uint256) {
        return _runtimeConfig.presaleMintStart;
    }

    function presaleMerkleRoot() public view returns (bytes32) {
        return _runtimeConfig.presaleMerkleRoot;
    }

    function baseURI() public view returns (string memory) {
        return _runtimeConfig.baseURI;
    }

    function metadataUpdatable() public view returns (bool) {
        return _runtimeConfig.metadataUpdatable;
    }

    function prerevealTokenURI() public view returns (string memory) {
        return _runtimeConfig.prerevealTokenURI;
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"components":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"maxSupply","type":"uint256"},{"internalType":"uint256","name":"reservedSupply","type":"uint256"},{"internalType":"uint256","name":"mintPrice","type":"uint256"},{"internalType":"uint256","name":"tokensPerMint","type":"uint256"},{"internalType":"address payable","name":"treasuryAddress","type":"address"}],"internalType":"struct NFTCollection.DeploymentConfig","name":"deploymentConfig","type":"tuple"},{"components":[{"internalType":"string","name":"baseURI","type":"string"},{"internalType":"bool","name":"metadataUpdatable","type":"bool"},{"internalType":"uint256","name":"publicMintStart","type":"uint256"},{"internalType":"uint256","name":"presaleMintStart","type":"uint256"},{"internalType":"string","name":"prerevealTokenURI","type":"string"},{"internalType":"bytes32","name":"presaleMerkleRoot","type":"bytes32"},{"internalType":"uint256","name":"royaltiesBps","type":"uint256"},{"internalType":"address","name":"royaltiesAddress","type":"address"}],"internalType":"struct NFTCollection.RuntimeConfig","name":"runtimeConfig","type":"tuple"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"VERSION","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":[],"name":"availableSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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":[],"name":"contractURI","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":[],"name":"getInfo","outputs":[{"components":[{"internalType":"uint256","name":"version","type":"uint256"},{"components":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"maxSupply","type":"uint256"},{"internalType":"uint256","name":"reservedSupply","type":"uint256"},{"internalType":"uint256","name":"mintPrice","type":"uint256"},{"internalType":"uint256","name":"tokensPerMint","type":"uint256"},{"internalType":"address payable","name":"treasuryAddress","type":"address"}],"internalType":"struct NFTCollection.DeploymentConfig","name":"deploymentConfig","type":"tuple"},{"components":[{"internalType":"string","name":"baseURI","type":"string"},{"internalType":"bool","name":"metadataUpdatable","type":"bool"},{"internalType":"uint256","name":"publicMintStart","type":"uint256"},{"internalType":"uint256","name":"presaleMintStart","type":"uint256"},{"internalType":"string","name":"prerevealTokenURI","type":"string"},{"internalType":"bytes32","name":"presaleMerkleRoot","type":"bytes32"},{"internalType":"uint256","name":"royaltiesBps","type":"uint256"},{"internalType":"address","name":"royaltiesAddress","type":"address"}],"internalType":"struct NFTCollection.RuntimeConfig","name":"runtimeConfig","type":"tuple"}],"internalType":"struct NFTCollection.ContractInfo","name":"info","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"maxSupply","type":"uint256"},{"internalType":"uint256","name":"reservedSupply","type":"uint256"},{"internalType":"uint256","name":"mintPrice","type":"uint256"},{"internalType":"uint256","name":"tokensPerMint","type":"uint256"},{"internalType":"address payable","name":"treasuryAddress","type":"address"}],"internalType":"struct NFTCollection.DeploymentConfig","name":"deploymentConfig","type":"tuple"},{"components":[{"internalType":"string","name":"baseURI","type":"string"},{"internalType":"bool","name":"metadataUpdatable","type":"bool"},{"internalType":"uint256","name":"publicMintStart","type":"uint256"},{"internalType":"uint256","name":"presaleMintStart","type":"uint256"},{"internalType":"string","name":"prerevealTokenURI","type":"string"},{"internalType":"bytes32","name":"presaleMerkleRoot","type":"bytes32"},{"internalType":"uint256","name":"royaltiesBps","type":"uint256"},{"internalType":"address","name":"royaltiesAddress","type":"address"}],"internalType":"struct NFTCollection.RuntimeConfig","name":"runtimeConfig","type":"tuple"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"wallet","type":"address"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"isWhitelisted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"metadataUpdatable","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintingActive","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":[],"name":"prerevealTokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"presaleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"presaleMerkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"presaleMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"presaleMintStart","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicMintStart","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"reserveMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"reserveRemaining","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"reservedSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"royaltyAmount","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":"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":"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":"tokensPerMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"}],"name":"transferAdminRights","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":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"treasuryAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"string","name":"baseURI","type":"string"},{"internalType":"bool","name":"metadataUpdatable","type":"bool"},{"internalType":"uint256","name":"publicMintStart","type":"uint256"},{"internalType":"uint256","name":"presaleMintStart","type":"uint256"},{"internalType":"string","name":"prerevealTokenURI","type":"string"},{"internalType":"bytes32","name":"presaleMerkleRoot","type":"bytes32"},{"internalType":"uint256","name":"royaltiesBps","type":"uint256"},{"internalType":"address","name":"royaltiesAddress","type":"address"}],"internalType":"struct NFTCollection.RuntimeConfig","name":"newConfig","type":"tuple"}],"name":"updateConfig","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawFees","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b5060405162004859380380620048598339810160408190526200003491620008b8565b604080516020808201808452600080845284519283019094528382528251929391926200006392919062000613565b5080516200007990600190602084019062000613565b5050601a805460ff19169055506200009282826200009a565b505062000a08565b600754610100900460ff16620000b75760075460ff1615620000c1565b620000c16200035b565b6200012a5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b60648201526084015b60405180910390fd5b600754610100900460ff161580156200014d576007805461ffff19166101011790555b601a5460ff1615620001a25760405162461bcd60e51b815260206004820152601560248201527f43616e6e6f7420626520696e697469616c697a65640000000000000000000000604482015260640162000121565b620001ad8362000379565b620001c860008051602062004839833981519152336200055f565b620001ed6000805160206200483983398151915284604001516200055f60201b60201c565b604083015162000200906000906200055f565b8251805184916012916200021c91839160209091019062000613565b50602082810151805162000237926001850192019062000613565b5060408201516002820180546001600160a01b03199081166001600160a01b0393841617909155606084015160038401556080840151600484015560a0840151600584015560c0840151600684015560e090930151600790920180549093169116179055815180518391600a91620002b791839160209091019062000613565b5060208281015160018301805460ff1916911515919091179055604083015160028301556060830151600383015560808301518051620002fe926004850192019062000613565b5060a0820151600582015560c0820151600682015560e090910151600790910180546001600160a01b0319166001600160a01b039092169190911790556080830151600955801562000356576007805461ff00191690555b505050565b600062000373306200060460201b62001b611760201c565b15905090565b6000816060015111620003cf5760405162461bcd60e51b815260206004820152601f60248201527f4d6178696d756d20737570706c79206d757374206265206e6f6e2d7a65726f00604482015260640162000121565b60008160c0015111620004255760405162461bcd60e51b815260206004820181905260248201527f546f6b656e7320706572206d696e74206d757374206265206e6f6e2d7a65726f604482015260640162000121565b60e08101516001600160a01b0316620004955760405162461bcd60e51b815260206004820152602b60248201527f547265617375727920616464726573732063616e6e6f7420626520746865206e60448201526a756c6c206164647265737360a81b606482015260840162000121565b60408101516001600160a01b0316620004f15760405162461bcd60e51b815260206004820152601b60248201527f436f6e7472616374206d757374206861766520616e206f776e65720000000000604482015260640162000121565b8060600151816080015111156200055c5760405162461bcd60e51b815260206004820152602860248201527f52657365727665206d757374206265206c657373207468616e206d6178696d756044820152676d20737570706c7960c01b606482015260840162000121565b50565b60008281526006602090815260408083206001600160a01b038516845290915290205460ff16620006005760008281526006602090815260408083206001600160a01b03851684529091529020805460ff19166001179055620005bf3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b6001600160a01b03163b151590565b8280546200062190620009cb565b90600052602060002090601f01602090048101928262000645576000855562000690565b82601f106200066057805160ff191683800117855562000690565b8280016001018555821562000690579182015b828111156200069057825182559160200191906001019062000673565b506200069e929150620006a2565b5090565b5b808211156200069e5760008155600101620006a3565b634e487b7160e01b600052604160045260246000fd5b60405161010081016001600160401b0381118282101715620006f557620006f5620006b9565b60405290565b604051601f8201601f191681016001600160401b0381118282101715620007265762000726620006b9565b604052919050565b600082601f8301126200074057600080fd5b81516001600160401b038111156200075c576200075c620006b9565b602062000772601f8301601f19168201620006fb565b82815285828487010111156200078757600080fd5b60005b83811015620007a75785810183015182820184015282016200078a565b83811115620007b95760008385840101525b5095945050505050565b80516001600160a01b0381168114620007db57600080fd5b919050565b80518015158114620007db57600080fd5b600061010082840312156200080557600080fd5b6200080f620006cf565b82519091506001600160401b03808211156200082a57600080fd5b62000838858386016200072e565b83526200084860208501620007e0565b6020840152604084015160408401526060840151606084015260808401519150808211156200087657600080fd5b5062000885848285016200072e565b60808301525060a082015160a082015260c082015160c0820152620008ad60e08301620007c3565b60e082015292915050565b60008060408385031215620008cc57600080fd5b82516001600160401b0380821115620008e457600080fd5b908401906101008287031215620008fa57600080fd5b62000904620006cf565b8251828111156200091457600080fd5b62000922888286016200072e565b8252506020830151828111156200093857600080fd5b62000946888286016200072e565b6020830152506200095a60408401620007c3565b6040820152606083015160608201526080830151608082015260a083015160a082015260c083015160c08201526200099560e08401620007c3565b60e08201526020860151909450915080821115620009b257600080fd5b50620009c185828601620007f1565b9150509250929050565b600181811c90821680620009e057607f821691505b6020821081141562000a0257634e487b7160e01b600052602260045260246000fd5b50919050565b613e218062000a186000396000f3fe6080604052600436106102c95760003560e01c806370a0823111610175578063b5106add116100dc578063e3e1e8ef11610095578063eec1b5d51161006f578063eec1b5d51461084a578063f2fde38b1461086a578063f4ad0f971461088a578063ffa1ad741461089f57600080fd5b8063e3e1e8ef146107d9578063e8a3d485146107ec578063e985e9c51461080157600080fd5b8063b5106add14610726578063b88d4fde14610746578063c5f956af14610766578063c87b56dd14610784578063d547741f146107a4578063d5abeb01146107c457600080fd5b806391d148541161012e57806391d148541461068957806395d89b41146106a9578063a0712d68146106be578063a217fddf146106d1578063a22cb465146106e6578063b0ea18021461070657600080fd5b806370a08231146105df57806375b238fc146105ff5780637ecc2b5614610621578063877bb1ae146106365780638cfec4c0146106565780638da5cb5b1461066b57600080fd5b806336568abe1161023457806353135ca0116101ed5780635c629f4c116101c75780635c629f4c1461057f5780636352211e146105955780636817c76c146105b55780636c0360eb146105ca57600080fd5b806353135ca0146105265780635a23dd991461053d5780635a9b0b891461055d57600080fd5b806336568abe1461048f57806342842e0e146104af57806344d19d2b146104cf5780634653124b146104e4578063476343ee146104f95780634e6f9dd61461050e57600080fd5b806322212e2b1161028657806322212e2b146103b457806323b872dd146103c9578063248a9ca3146103e95780632a55205a146104195780632f2ff15d1461045857806331f9c9191461047857600080fd5b806301ffc9a7146102ce57806306fdde03146103035780630807b9e214610325578063081812fc14610344578063095ea7b31461037c57806318160ddd1461039e575b600080fd5b3480156102da57600080fd5b506102ee6102e9366004612f0c565b6108b5565b60405190151581526020015b60405180910390f35b34801561030f57600080fd5b506103186108f0565b6040516102fa9190612f81565b34801561033157600080fd5b506018545b6040519081526020016102fa565b34801561035057600080fd5b5061036461035f366004612f94565b610985565b6040516001600160a01b0390911681526020016102fa565b34801561038857600080fd5b5061039c610397366004612fd2565b610a1f565b005b3480156103aa57600080fd5b5061033660085481565b3480156103c057600080fd5b50600f54610336565b3480156103d557600080fd5b5061039c6103e4366004612ffe565b610b35565b3480156103f557600080fd5b50610336610404366004612f94565b60009081526006602052604090206001015490565b34801561042557600080fd5b5061043961043436600461303f565b610b66565b604080516001600160a01b0390931683526020830191909152016102fa565b34801561046457600080fd5b5061039c610473366004613061565b610b9d565b34801561048457600080fd5b50600c5442116102ee565b34801561049b57600080fd5b5061039c6104aa366004613061565b610bc3565b3480156104bb57600080fd5b5061039c6104ca366004612ffe565b610c41565b3480156104db57600080fd5b50601654610336565b3480156104f057600080fd5b50600d54610336565b34801561050557600080fd5b5061039c610c5c565b34801561051a57600080fd5b50600b5460ff166102ee565b34801561053257600080fd5b50600d5442116102ee565b34801561054957600080fd5b506102ee6105583660046130dc565b610c8e565b34801561056957600080fd5b50610572610d6c565b6040516102fa91906131b3565b34801561058b57600080fd5b5061033660095481565b3480156105a157600080fd5b506103646105b0366004612f94565b61108e565b3480156105c157600080fd5b50601754610336565b3480156105d657600080fd5b50610318611105565b3480156105eb57600080fd5b506103366105fa36600461327b565b611117565b34801561060b57600080fd5b50610336600080516020613dcc83398151915281565b34801561062d57600080fd5b5061033661119e565b34801561064257600080fd5b5061039c610651366004613298565b6111c3565b34801561066257600080fd5b50600c54610336565b34801561067757600080fd5b506014546001600160a01b0316610364565b34801561069557600080fd5b506102ee6106a4366004613061565b6111f8565b3480156106b557600080fd5b50610318611223565b61039c6106cc366004612f94565b611235565b3480156106dd57600080fd5b50610336600081565b3480156106f257600080fd5b5061039c6107013660046132ec565b6112e2565b34801561071257600080fd5b5061039c610721366004612fd2565b6112ed565b34801561073257600080fd5b5061039c61074136600461327b565b611370565b34801561075257600080fd5b5061039c6107613660046133ce565b611464565b34801561077257600080fd5b506019546001600160a01b0316610364565b34801561079057600080fd5b5061031861079f366004612f94565b611496565b3480156107b057600080fd5b5061039c6107bf366004613061565b6115ce565b3480156107d057600080fd5b50601554610336565b61039c6107e736600461344d565b6115f4565b3480156107f857600080fd5b50610318611712565b34801561080d57600080fd5b506102ee61081c36600461347f565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b34801561085657600080fd5b5061039c610865366004613586565b61178f565b34801561087657600080fd5b5061039c61088536600461327b565b611a1d565b34801561089657600080fd5b50610318611b4f565b3480156108ab57600080fd5b506103366127d881565b60006108c082611b70565b806108cf57506108cf82611bc0565b806108ea575063152a902d60e11b6001600160e01b03198316145b92915050565b60606012600001805461090290613686565b80601f016020809104026020016040519081016040528092919081815260200182805461092e90613686565b801561097b5780601f106109505761010080835404028352916020019161097b565b820191906000526020600020905b81548152906001019060200180831161095e57829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b0316610a035760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b6000610a2a8261108e565b9050806001600160a01b0316836001600160a01b03161415610a985760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084016109fa565b336001600160a01b0382161480610ab45750610ab4813361081c565b610b265760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060648201526084016109fa565b610b308383611bf5565b505050565b610b3f3382611c63565b610b5b5760405162461bcd60e51b81526004016109fa906136c1565b610b30838383611d5a565b6011546010546001600160a01b039091169060009061271090610b8a908590613728565b610b94919061375d565b90509250929050565b600082815260066020526040902060010154610bb98133611ef6565b610b308383611f5a565b6001600160a01b0381163314610c335760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b60648201526084016109fa565b610c3d8282611fe0565b5050565b610b3083838360405180602001604052806000815250611464565b600080516020613dcc833981519152610c758133611ef6565b601954610c8b906001600160a01b031647612047565b50565b6001600160a01b0383166000908152601b602052604081205460ff1615610ce85760405162461bcd60e51b815260206004820152600e60248201526d105b1c9958591e481b5a5b9d195960921b60448201526064016109fa565b6040516bffffffffffffffffffffffff19606086901b166020820152600090603401604051602081830303815290604052805190602001209050610d6384848080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050600f549150849050612160565b95945050505050565b610d74612d91565b6127d881526040805161010081019091526012805482908290610d9690613686565b80601f0160208091040260200160405190810160405280929190818152602001828054610dc290613686565b8015610e0f5780601f10610de457610100808354040283529160200191610e0f565b820191906000526020600020905b815481529060010190602001808311610df257829003601f168201915b50505050508152602001600182018054610e2890613686565b80601f0160208091040260200160405190810160405280929190818152602001828054610e5490613686565b8015610ea15780601f10610e7657610100808354040283529160200191610ea1565b820191906000526020600020905b815481529060010190602001808311610e8457829003601f168201915b505050918352505060028201546001600160a01b0390811660208084019190915260038401546040808501919091526004850154606085015260058501546080850152600685015460a085015260079094015490911660c09092019190915283019190915280516101008101909152600a805482908290610f2190613686565b80601f0160208091040260200160405190810160405280929190818152602001828054610f4d90613686565b8015610f9a5780601f10610f6f57610100808354040283529160200191610f9a565b820191906000526020600020905b815481529060010190602001808311610f7d57829003601f168201915b5050509183525050600182015460ff16151560208201526002820154604082015260038201546060820152600482018054608090920191610fda90613686565b80601f016020809104026020016040519081016040528092919081815260200182805461100690613686565b80156110535780601f1061102857610100808354040283529160200191611053565b820191906000526020600020905b81548152906001019060200180831161103657829003601f168201915b50505091835250506005820154602082015260068201546040808301919091526007909201546001600160a01b031660609091015282015290565b6000818152600260205260408120546001600160a01b0316806108ea5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b60648201526084016109fa565b6060600a600001805461090290613686565b60006001600160a01b0382166111825760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b60648201526084016109fa565b506001600160a01b031660009081526003602052604090205490565b600954600854601554600092916111b491613771565b6111be9190613771565b905090565b600080516020613dcc8339815191526111dc8133611ef6565b6111e582612176565b81600a6111f282826138f6565b50505050565b60009182526006602090815260408084206001600160a01b0393909316845291905290205460ff1690565b60606012600101805461090290613686565b60175481906112449082613728565b3410156112875760405162461bcd60e51b815260206004820152601160248201527014185e5b595b9d081d1bdbc81cdb585b1b607a1b60448201526064016109fa565b600c5442116112d85760405162461bcd60e51b815260206004820152601b60248201527f4d696e74696e6720686173206e6f74207374617274656420796574000000000060448201526064016109fa565b610c3d33836122d1565b610c3d3383836123b1565b600080516020613dcc8339815191526113068133611ef6565b60095482111561134e5760405162461bcd60e51b8152602060048201526013602482015272139bdd08195b9bdd59da081c995cd95c9d9959606a1b60448201526064016109fa565b81600960008282546113609190613771565b90915550610b30905083836122d1565b600080516020613dcc8339815191526113898133611ef6565b6113a1600080516020613dcc833981519152836111f8565b156113e15760405162461bcd60e51b815260206004820152601060248201526f20b63932b0b23c9030b71030b236b4b760811b60448201526064016109fa565b6014546001600160a01b03163314156114345760405162461bcd60e51b81526020600482015260156024820152740557365207472616e736665724f776e65727368697605c1b60448201526064016109fa565b61144c600080516020613dcc83398151915233611fe0565b610c3d600080516020613dcc83398151915283611f5a565b61146e3383611c63565b61148a5760405162461bcd60e51b81526004016109fa906136c1565b6111f284848484612480565b6000818152600260205260409020546060906001600160a01b03166114f45760405162461bcd60e51b8152602060048201526014602482015273151bdad95b88191bd95cc81b9bdd08195e1a5cdd60621b60448201526064016109fa565b6000600a600001805461150690613686565b90501161159d57600e805461151a90613686565b80601f016020809104026020016040519081016040528092919081815260200182805461154690613686565b80156115935780601f1061156857610100808354040283529160200191611593565b820191906000526020600020905b81548152906001019060200180831161157657829003601f168201915b50505050506108ea565b600a6115a8836124b3565b6040516020016115b9929190613acc565b60405160208183030381529060405292915050565b6000828152600660205260409020600101546115ea8133611ef6565b610b308383611fe0565b60175483906116039082613728565b3410156116465760405162461bcd60e51b815260206004820152601160248201527014185e5b595b9d081d1bdbc81cdb585b1b607a1b60448201526064016109fa565b600d5442116116975760405162461bcd60e51b815260206004820152601b60248201527f50726573616c6520686173206e6f74207374617274656420796574000000000060448201526064016109fa565b6116a2338484610c8e565b6116ee5760405162461bcd60e51b815260206004820152601b60248201527f4e6f742077686974656c697374656420666f722070726573616c65000000000060448201526064016109fa565b336000818152601b60205260409020805460ff191660011790556111f290856122d1565b60606000611763611727600a600601546124b3565b60115461173e906001600160a01b031660146125b0565b60405160200161174f929190613af1565b604051602081830303815290604052612752565b90506000816040516020016117789190613b78565b60408051601f198184030181529190529392505050565b600754610100900460ff166117aa5760075460ff16156117ae565b303b155b6118115760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b60648201526084016109fa565b600754610100900460ff16158015611833576007805461ffff19166101011790555b601a5460ff161561187e5760405162461bcd60e51b815260206004820152601560248201527410d85b9b9bdd081899481a5b9a5d1a585b1a5e9959605a1b60448201526064016109fa565b611887836128b7565b61189f600080516020613dcc83398151915233611f5a565b6118bb600080516020613dcc8339815191528460400151611f5a565b6118cc6000801b8460400151611f5a565b8251805184916012916118e6918391602090910190612e5d565b5060208281015180516118ff9260018501920190612e5d565b5060408201516002820180546001600160a01b03199081166001600160a01b0393841617909155606084015160038401556080840151600484015560a0840151600584015560c0840151600684015560e090930151600790920180549093169116179055815180518391600a9161197d918391602090910190612e5d565b5060208281015160018301805460ff19169115159190911790556040830151600283015560608301516003830155608083015180516119c29260048501920190612e5d565b5060a0820151600582015560c0820151600682015560e090910151600790910180546001600160a01b0319166001600160a01b0390921691909117905560808301516009558015610b30576007805461ff0019169055505050565b6000611a298133611ef6565b6014546001600160a01b0383811691161415611a7b5760405162461bcd60e51b815260206004820152601160248201527020b63932b0b23c903a34329037bbb732b960791b60448201526064016109fa565b601454611aa090600080516020613dcc833981519152906001600160a01b0316611fe0565b601454611ab8906000906001600160a01b0316611fe0565b601480546001600160a01b038481166001600160a01b0319831681179093551690611af290600080516020613dcc83398151915290611f5a565b601454611b0a906000906001600160a01b0316611f5a565b826001600160a01b0316816001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3505050565b6060600a600401805461090290613686565b6001600160a01b03163b151590565b60006001600160e01b031982166380ac58cd60e01b1480611ba157506001600160e01b03198216635b5e139f60e01b145b806108ea57506301ffc9a760e01b6001600160e01b03198316146108ea565b60006001600160e01b03198216637965db0b60e01b14806108ea575063152a902d60e11b6001600160e01b03198316146108ea565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611c2a8261108e565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b0316611cdc5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016109fa565b6000611ce78361108e565b9050806001600160a01b0316846001600160a01b03161480611d225750836001600160a01b0316611d1784610985565b6001600160a01b0316145b80611d5257506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b0316611d6d8261108e565b6001600160a01b031614611dd15760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b60648201526084016109fa565b6001600160a01b038216611e335760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016109fa565b611e3e600082611bf5565b6001600160a01b0383166000908152600360205260408120805460019290611e67908490613771565b90915550506001600160a01b0382166000908152600360205260408120805460019290611e95908490613bbd565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b611f0082826111f8565b610c3d57611f18816001600160a01b031660146125b0565b611f238360206125b0565b604051602001611f34929190613bd5565b60408051601f198184030181529082905262461bcd60e51b82526109fa91600401612f81565b611f6482826111f8565b610c3d5760008281526006602090815260408083206001600160a01b03851684529091529020805460ff19166001179055611f9c3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b611fea82826111f8565b15610c3d5760008281526006602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b804710156120975760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e636500000060448201526064016109fa565b6000826001600160a01b03168260405160006040518083038185875af1925050503d80600081146120e4576040519150601f19603f3d011682016040523d82523d6000602084013e6120e9565b606091505b5050905080610b305760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d6179206861766520726576657274656400000000000060648201526084016109fa565b60008261216d8584612a90565b14949350505050565b61271060c082013511156121c15760405162461bcd60e51b81526020600482015260126024820152710a4def2c2d8e8d2cae640e8dede40d0d2ced60731b60448201526064016109fa565b600b5460ff16156121cf5750565b6121df6040820160208301613c4a565b600b5460ff161515901515146122375760405162461bcd60e51b815260206004820152601860248201527f43616e6e6f7420756e667265657a65206d65746164617461000000000000000060448201526064016109fa565b6122418180613788565b604051602001612252929190613c67565b60408051601f198184030181529082905280516020918201209161227991600a9101613c77565b6040516020818303038152906040528051906020012014610c8b5760405162461bcd60e51b815260206004820152601260248201527126b2ba30b230ba309034b990333937bd32b760711b60448201526064016109fa565b6018548111156123165760405162461bcd60e51b815260206004820152601060248201526f416d6f756e7420746f6f206c6172676560801b60448201526064016109fa565b61231e61119e565b8111156123665760405162461bcd60e51b8152602060048201526016602482015275139bdd08195b9bdd59da081d1bdad95b9cc81b19599d60521b60448201526064016109fa565b80600860008282546123789190613bbd565b90915550600190505b818111610b305761239f838260085461239a9190613771565b612b04565b806123a981613c83565b915050612381565b816001600160a01b0316836001600160a01b031614156124135760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016109fa565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b61248b848484611d5a565b61249784848484612b1e565b6111f25760405162461bcd60e51b81526004016109fa90613c9e565b6060816124d75750506040805180820190915260018152600360fc1b602082015290565b8160005b811561250157806124eb81613c83565b91506124fa9050600a8361375d565b91506124db565b6000816001600160401b0381111561251b5761251b61331a565b6040519080825280601f01601f191660200182016040528015612545576020820181803683370190505b5090505b8415611d525761255a600183613771565b9150612567600a86613cf0565b612572906030613bbd565b60f81b81838151811061258757612587613d04565b60200101906001600160f81b031916908160001a9053506125a9600a8661375d565b9450612549565b606060006125bf836002613728565b6125ca906002613bbd565b6001600160401b038111156125e1576125e161331a565b6040519080825280601f01601f19166020018201604052801561260b576020820181803683370190505b509050600360fc1b8160008151811061262657612626613d04565b60200101906001600160f81b031916908160001a905350600f60fb1b8160018151811061265557612655613d04565b60200101906001600160f81b031916908160001a9053506000612679846002613728565b612684906001613bbd565b90505b60018111156126fc576f181899199a1a9b1b9c1cb0b131b232b360811b85600f16601081106126b8576126b8613d04565b1a60f81b8282815181106126ce576126ce613d04565b60200101906001600160f81b031916908160001a90535060049490941c936126f581613d1a565b9050612687565b50831561274b5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e7460448201526064016109fa565b9392505050565b805160609080612772575050604080516020810190915260008152919050565b60006003612781836002613bbd565b61278b919061375d565b612796906004613728565b905060006127a5826020613bbd565b6001600160401b038111156127bc576127bc61331a565b6040519080825280601f01601f1916602001820160405280156127e6576020820181803683370190505b5090506000604051806060016040528060408152602001613d8c604091399050600181016020830160005b86811015612872576003818a01810151603f601282901c8116860151600c83901c8216870151600684901c831688015192909316870151600891821b60ff94851601821b92841692909201901b91160160e01b835260049092019101612811565b50600386066001811461288c576002811461289d576128a9565b613d3d60f01b6001198301526128a9565b603d60f81b6000198301525b505050918152949350505050565b600081606001511161290b5760405162461bcd60e51b815260206004820152601f60248201527f4d6178696d756d20737570706c79206d757374206265206e6f6e2d7a65726f0060448201526064016109fa565b60008160c001511161295f5760405162461bcd60e51b815260206004820181905260248201527f546f6b656e7320706572206d696e74206d757374206265206e6f6e2d7a65726f60448201526064016109fa565b60e08101516001600160a01b03166129cd5760405162461bcd60e51b815260206004820152602b60248201527f547265617375727920616464726573732063616e6e6f7420626520746865206e60448201526a756c6c206164647265737360a81b60648201526084016109fa565b60408101516001600160a01b0316612a275760405162461bcd60e51b815260206004820152601b60248201527f436f6e7472616374206d757374206861766520616e206f776e6572000000000060448201526064016109fa565b806060015181608001511115610c8b5760405162461bcd60e51b815260206004820152602860248201527f52657365727665206d757374206265206c657373207468616e206d6178696d756044820152676d20737570706c7960c01b60648201526084016109fa565b600081815b8451811015612afc576000858281518110612ab257612ab2613d04565b60200260200101519050808311612ad85760008381526020829052604090209250612ae9565b600081815260208490526040902092505b5080612af481613c83565b915050612a95565b509392505050565b610c3d828260405180602001604052806000815250612c1c565b60006001600160a01b0384163b15612c1157604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612b62903390899088908890600401613d31565b6020604051808303816000875af1925050508015612b9d575060408051601f3d908101601f19168201909252612b9a91810190613d6e565b60015b612bf7573d808015612bcb576040519150601f19603f3d011682016040523d82523d6000602084013e612bd0565b606091505b508051612bef5760405162461bcd60e51b81526004016109fa90613c9e565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611d52565b506001949350505050565b612c268383612c4f565b612c336000848484612b1e565b610b305760405162461bcd60e51b81526004016109fa90613c9e565b6001600160a01b038216612ca55760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016109fa565b6000818152600260205260409020546001600160a01b031615612d0a5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016109fa565b6001600160a01b0382166000908152600360205260408120805460019290612d33908490613bbd565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b604051806060016040528060008152602001612dfd604051806101000160405280606081526020016060815260200160006001600160a01b031681526020016000815260200160008152602001600081526020016000815260200160006001600160a01b031681525090565b8152602001612e5860405180610100016040528060608152602001600015158152602001600081526020016000815260200160608152602001600080191681526020016000815260200160006001600160a01b031681525090565b905290565b828054612e6990613686565b90600052602060002090601f016020900481019282612e8b5760008555612ed1565b82601f10612ea457805160ff1916838001178555612ed1565b82800160010185558215612ed1579182015b82811115612ed1578251825591602001919060010190612eb6565b50612edd929150612ee1565b5090565b5b80821115612edd5760008155600101612ee2565b6001600160e01b031981168114610c8b57600080fd5b600060208284031215612f1e57600080fd5b813561274b81612ef6565b60005b83811015612f44578181015183820152602001612f2c565b838111156111f25750506000910152565b60008151808452612f6d816020860160208601612f29565b601f01601f19169290920160200192915050565b60208152600061274b6020830184612f55565b600060208284031215612fa657600080fd5b5035919050565b6001600160a01b0381168114610c8b57600080fd5b8035612fcd81612fad565b919050565b60008060408385031215612fe557600080fd5b8235612ff081612fad565b946020939093013593505050565b60008060006060848603121561301357600080fd5b833561301e81612fad565b9250602084013561302e81612fad565b929592945050506040919091013590565b6000806040838503121561305257600080fd5b50508035926020909101359150565b6000806040838503121561307457600080fd5b82359150602083013561308681612fad565b809150509250929050565b60008083601f8401126130a357600080fd5b5081356001600160401b038111156130ba57600080fd5b6020830191508360208260051b85010111156130d557600080fd5b9250929050565b6000806000604084860312156130f157600080fd5b83356130fc81612fad565b925060208401356001600160401b0381111561311757600080fd5b61312386828701613091565b9497909650939450505050565b6000610100825181855261314682860182612f55565b9150506020830151151560208501526040830151604085015260608301516060850152608083015184820360808601526131808282612f55565b60a0858101519087015260c0808601519087015260e0948501516001600160a01b03169490950193909352509192915050565b6020815281516020820152600060208301516060604084015280516101008060808601526131e5610180860183612f55565b91506020830151607f198684030160a08701526132028382612f55565b92505060018060a01b0360408401511660c0860152606083015160e08601526080830151818601525060a082015161012085015260c082015161014085015260e0820151915061325e6101608501836001600160a01b03169052565b6040850151848203601f190160608601529150610d638183613130565b60006020828403121561328d57600080fd5b813561274b81612fad565b6000602082840312156132aa57600080fd5b81356001600160401b038111156132c057600080fd5b8201610100818503121561274b57600080fd5b8015158114610c8b57600080fd5b8035612fcd816132d3565b600080604083850312156132ff57600080fd5b823561330a81612fad565b91506020830135613086816132d3565b634e487b7160e01b600052604160045260246000fd5b60405161010081016001600160401b03811182821017156133535761335361331a565b60405290565b60006001600160401b03808411156133735761337361331a565b604051601f8501601f19908116603f0116810190828211818310171561339b5761339b61331a565b816040528093508581528686860111156133b457600080fd5b858560208301376000602087830101525050509392505050565b600080600080608085870312156133e457600080fd5b84356133ef81612fad565b935060208501356133ff81612fad565b92506040850135915060608501356001600160401b0381111561342157600080fd5b8501601f8101871361343257600080fd5b61344187823560208401613359565b91505092959194509250565b60008060006040848603121561346257600080fd5b8335925060208401356001600160401b0381111561311757600080fd5b6000806040838503121561349257600080fd5b823561349d81612fad565b9150602083013561308681612fad565b600082601f8301126134be57600080fd5b61274b83833560208501613359565b600061010082840312156134e057600080fd5b6134e8613330565b905081356001600160401b038082111561350157600080fd5b61350d858386016134ad565b835261351b602085016132e1565b60208401526040840135604084015260608401356060840152608084013591508082111561354857600080fd5b50613555848285016134ad565b60808301525060a082013560a082015260c082013560c082015261357b60e08301612fc2565b60e082015292915050565b6000806040838503121561359957600080fd5b82356001600160401b03808211156135b057600080fd5b9084019061010082870312156135c557600080fd5b6135cd613330565b8235828111156135dc57600080fd5b6135e8888286016134ad565b8252506020830135828111156135fd57600080fd5b613609888286016134ad565b60208301525061361b60408401612fc2565b6040820152606083013560608201526080830135608082015260a083013560a082015260c083013560c082015261365460e08401612fc2565b60e08201529350602085013591508082111561366f57600080fd5b5061367c858286016134cd565b9150509250929050565b600181811c9082168061369a57607f821691505b602082108114156136bb57634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b600081600019048311821515161561374257613742613712565b500290565b634e487b7160e01b600052601260045260246000fd5b60008261376c5761376c613747565b500490565b60008282101561378357613783613712565b500390565b6000808335601e1984360301811261379f57600080fd5b8301803591506001600160401b038211156137b957600080fd5b6020019150368190038213156130d557600080fd5b601f821115610b3057600081815260208120601f850160051c810160208610156137f55750805b601f850160051c820191505b8181101561381457828155600101613801565b505050505050565b6001600160401b038311156138335761383361331a565b613847836138418354613686565b836137ce565b6000601f84116001811461387b57600085156138635750838201355b600019600387901b1c1916600186901b1783556138d5565b600083815260209020601f19861690835b828110156138ac578685013582556020948501946001909201910161388c565b50868210156138c95760001960f88860031b161c19848701351681555b505060018560011b0183555b5050505050565b600081356108ea816132d3565b600081356108ea81612fad565b6139008283613788565b6001600160401b038111156139175761391761331a565b61392b816139258554613686565b856137ce565b6000601f82116001811461395f57600083156139475750838201355b600019600385901b1c1916600184901b1785556139b9565b600085815260209020601f19841690835b828110156139905786850135825560209485019460019092019101613970565b50848210156139ad5760001960f88660031b161c19848701351681555b505060018360011b0185555b505050506139e56139cc602084016138dc565b6001830160ff1981541660ff8315151681178255505050565b6040820135600282015560608201356003820155613a066080830183613788565b613a1481836004860161381c565b505060a0820135600582015560c08201356006820155610c3d613a3960e084016138e9565b6007830180546001600160a01b0319166001600160a01b0392909216919091179055565b60008154613a6a81613686565b60018281168015613a825760018114613a9357613ac2565b60ff19841687528287019450613ac2565b8560005260208060002060005b85811015613ab95781548a820152908401908201613aa0565b50505082870194505b5050505092915050565b6000613ad88285613a5d565b8351613ae8818360208801612f29565b01949350505050565b7f7b2273656c6c65725f6665655f62617369735f706f696e7473223a2000000000815260008351613b2981601c850160208801612f29565b731610113332b2afb932b1b4b834b2b73a111d101160611b601c918401918201528351613b5d816030840160208801612f29565b61227d60f01b60309290910191820152603201949350505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c000000815260008251613bb081601d850160208701612f29565b91909101601d0192915050565b60008219821115613bd057613bd0613712565b500190565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351613c0d816017850160208801612f29565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351613c3e816028840160208801612f29565b01602801949350505050565b600060208284031215613c5c57600080fd5b813561274b816132d3565b8183823760009101908152919050565b600061274b8284613a5d565b6000600019821415613c9757613c97613712565b5060010190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b600082613cff57613cff613747565b500690565b634e487b7160e01b600052603260045260246000fd5b600081613d2957613d29613712565b506000190190565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090613d6490830184612f55565b9695505050505050565b600060208284031215613d8057600080fd5b815161274b81612ef656fe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c21775a2646970667358221220e5fa4ff9db491ebc83a8b32192e2851d1fda09fca931d51e62f6661e1569c6ba64736f6c634300080b0033a49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c21775000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000001c000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000140000000000000000000000000e7d7696c8f11278124f39fb7cdd39fd9442d502600000000000000000000000000000000000000000000000000000000000001f40000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000030000000000000000000000009c79c21ebe05d5ea3dafcbd89e84d5f5bc15cbdb000000000000000000000000000000000000000000000000000000000000001742616e616c69656e207c20574f46207820695374656566000000000000000000000000000000000000000000000000000000000000000000000000000000000669537465656600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000624d2c6000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003e80000000000000000000000009c79c21ebe05d5ea3dafcbd89e84d5f5bc15cbdb00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000035697066733a2f2f516d5668724a47413532345339704d72594a47516b3236386b686e35645a71436d453464426b377274366e6a787a0000000000000000000000

Deployed Bytecode

0x6080604052600436106102c95760003560e01c806370a0823111610175578063b5106add116100dc578063e3e1e8ef11610095578063eec1b5d51161006f578063eec1b5d51461084a578063f2fde38b1461086a578063f4ad0f971461088a578063ffa1ad741461089f57600080fd5b8063e3e1e8ef146107d9578063e8a3d485146107ec578063e985e9c51461080157600080fd5b8063b5106add14610726578063b88d4fde14610746578063c5f956af14610766578063c87b56dd14610784578063d547741f146107a4578063d5abeb01146107c457600080fd5b806391d148541161012e57806391d148541461068957806395d89b41146106a9578063a0712d68146106be578063a217fddf146106d1578063a22cb465146106e6578063b0ea18021461070657600080fd5b806370a08231146105df57806375b238fc146105ff5780637ecc2b5614610621578063877bb1ae146106365780638cfec4c0146106565780638da5cb5b1461066b57600080fd5b806336568abe1161023457806353135ca0116101ed5780635c629f4c116101c75780635c629f4c1461057f5780636352211e146105955780636817c76c146105b55780636c0360eb146105ca57600080fd5b806353135ca0146105265780635a23dd991461053d5780635a9b0b891461055d57600080fd5b806336568abe1461048f57806342842e0e146104af57806344d19d2b146104cf5780634653124b146104e4578063476343ee146104f95780634e6f9dd61461050e57600080fd5b806322212e2b1161028657806322212e2b146103b457806323b872dd146103c9578063248a9ca3146103e95780632a55205a146104195780632f2ff15d1461045857806331f9c9191461047857600080fd5b806301ffc9a7146102ce57806306fdde03146103035780630807b9e214610325578063081812fc14610344578063095ea7b31461037c57806318160ddd1461039e575b600080fd5b3480156102da57600080fd5b506102ee6102e9366004612f0c565b6108b5565b60405190151581526020015b60405180910390f35b34801561030f57600080fd5b506103186108f0565b6040516102fa9190612f81565b34801561033157600080fd5b506018545b6040519081526020016102fa565b34801561035057600080fd5b5061036461035f366004612f94565b610985565b6040516001600160a01b0390911681526020016102fa565b34801561038857600080fd5b5061039c610397366004612fd2565b610a1f565b005b3480156103aa57600080fd5b5061033660085481565b3480156103c057600080fd5b50600f54610336565b3480156103d557600080fd5b5061039c6103e4366004612ffe565b610b35565b3480156103f557600080fd5b50610336610404366004612f94565b60009081526006602052604090206001015490565b34801561042557600080fd5b5061043961043436600461303f565b610b66565b604080516001600160a01b0390931683526020830191909152016102fa565b34801561046457600080fd5b5061039c610473366004613061565b610b9d565b34801561048457600080fd5b50600c5442116102ee565b34801561049b57600080fd5b5061039c6104aa366004613061565b610bc3565b3480156104bb57600080fd5b5061039c6104ca366004612ffe565b610c41565b3480156104db57600080fd5b50601654610336565b3480156104f057600080fd5b50600d54610336565b34801561050557600080fd5b5061039c610c5c565b34801561051a57600080fd5b50600b5460ff166102ee565b34801561053257600080fd5b50600d5442116102ee565b34801561054957600080fd5b506102ee6105583660046130dc565b610c8e565b34801561056957600080fd5b50610572610d6c565b6040516102fa91906131b3565b34801561058b57600080fd5b5061033660095481565b3480156105a157600080fd5b506103646105b0366004612f94565b61108e565b3480156105c157600080fd5b50601754610336565b3480156105d657600080fd5b50610318611105565b3480156105eb57600080fd5b506103366105fa36600461327b565b611117565b34801561060b57600080fd5b50610336600080516020613dcc83398151915281565b34801561062d57600080fd5b5061033661119e565b34801561064257600080fd5b5061039c610651366004613298565b6111c3565b34801561066257600080fd5b50600c54610336565b34801561067757600080fd5b506014546001600160a01b0316610364565b34801561069557600080fd5b506102ee6106a4366004613061565b6111f8565b3480156106b557600080fd5b50610318611223565b61039c6106cc366004612f94565b611235565b3480156106dd57600080fd5b50610336600081565b3480156106f257600080fd5b5061039c6107013660046132ec565b6112e2565b34801561071257600080fd5b5061039c610721366004612fd2565b6112ed565b34801561073257600080fd5b5061039c61074136600461327b565b611370565b34801561075257600080fd5b5061039c6107613660046133ce565b611464565b34801561077257600080fd5b506019546001600160a01b0316610364565b34801561079057600080fd5b5061031861079f366004612f94565b611496565b3480156107b057600080fd5b5061039c6107bf366004613061565b6115ce565b3480156107d057600080fd5b50601554610336565b61039c6107e736600461344d565b6115f4565b3480156107f857600080fd5b50610318611712565b34801561080d57600080fd5b506102ee61081c36600461347f565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b34801561085657600080fd5b5061039c610865366004613586565b61178f565b34801561087657600080fd5b5061039c61088536600461327b565b611a1d565b34801561089657600080fd5b50610318611b4f565b3480156108ab57600080fd5b506103366127d881565b60006108c082611b70565b806108cf57506108cf82611bc0565b806108ea575063152a902d60e11b6001600160e01b03198316145b92915050565b60606012600001805461090290613686565b80601f016020809104026020016040519081016040528092919081815260200182805461092e90613686565b801561097b5780601f106109505761010080835404028352916020019161097b565b820191906000526020600020905b81548152906001019060200180831161095e57829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b0316610a035760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b6000610a2a8261108e565b9050806001600160a01b0316836001600160a01b03161415610a985760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084016109fa565b336001600160a01b0382161480610ab45750610ab4813361081c565b610b265760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060648201526084016109fa565b610b308383611bf5565b505050565b610b3f3382611c63565b610b5b5760405162461bcd60e51b81526004016109fa906136c1565b610b30838383611d5a565b6011546010546001600160a01b039091169060009061271090610b8a908590613728565b610b94919061375d565b90509250929050565b600082815260066020526040902060010154610bb98133611ef6565b610b308383611f5a565b6001600160a01b0381163314610c335760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b60648201526084016109fa565b610c3d8282611fe0565b5050565b610b3083838360405180602001604052806000815250611464565b600080516020613dcc833981519152610c758133611ef6565b601954610c8b906001600160a01b031647612047565b50565b6001600160a01b0383166000908152601b602052604081205460ff1615610ce85760405162461bcd60e51b815260206004820152600e60248201526d105b1c9958591e481b5a5b9d195960921b60448201526064016109fa565b6040516bffffffffffffffffffffffff19606086901b166020820152600090603401604051602081830303815290604052805190602001209050610d6384848080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050600f549150849050612160565b95945050505050565b610d74612d91565b6127d881526040805161010081019091526012805482908290610d9690613686565b80601f0160208091040260200160405190810160405280929190818152602001828054610dc290613686565b8015610e0f5780601f10610de457610100808354040283529160200191610e0f565b820191906000526020600020905b815481529060010190602001808311610df257829003601f168201915b50505050508152602001600182018054610e2890613686565b80601f0160208091040260200160405190810160405280929190818152602001828054610e5490613686565b8015610ea15780601f10610e7657610100808354040283529160200191610ea1565b820191906000526020600020905b815481529060010190602001808311610e8457829003601f168201915b505050918352505060028201546001600160a01b0390811660208084019190915260038401546040808501919091526004850154606085015260058501546080850152600685015460a085015260079094015490911660c09092019190915283019190915280516101008101909152600a805482908290610f2190613686565b80601f0160208091040260200160405190810160405280929190818152602001828054610f4d90613686565b8015610f9a5780601f10610f6f57610100808354040283529160200191610f9a565b820191906000526020600020905b815481529060010190602001808311610f7d57829003601f168201915b5050509183525050600182015460ff16151560208201526002820154604082015260038201546060820152600482018054608090920191610fda90613686565b80601f016020809104026020016040519081016040528092919081815260200182805461100690613686565b80156110535780601f1061102857610100808354040283529160200191611053565b820191906000526020600020905b81548152906001019060200180831161103657829003601f168201915b50505091835250506005820154602082015260068201546040808301919091526007909201546001600160a01b031660609091015282015290565b6000818152600260205260408120546001600160a01b0316806108ea5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b60648201526084016109fa565b6060600a600001805461090290613686565b60006001600160a01b0382166111825760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b60648201526084016109fa565b506001600160a01b031660009081526003602052604090205490565b600954600854601554600092916111b491613771565b6111be9190613771565b905090565b600080516020613dcc8339815191526111dc8133611ef6565b6111e582612176565b81600a6111f282826138f6565b50505050565b60009182526006602090815260408084206001600160a01b0393909316845291905290205460ff1690565b60606012600101805461090290613686565b60175481906112449082613728565b3410156112875760405162461bcd60e51b815260206004820152601160248201527014185e5b595b9d081d1bdbc81cdb585b1b607a1b60448201526064016109fa565b600c5442116112d85760405162461bcd60e51b815260206004820152601b60248201527f4d696e74696e6720686173206e6f74207374617274656420796574000000000060448201526064016109fa565b610c3d33836122d1565b610c3d3383836123b1565b600080516020613dcc8339815191526113068133611ef6565b60095482111561134e5760405162461bcd60e51b8152602060048201526013602482015272139bdd08195b9bdd59da081c995cd95c9d9959606a1b60448201526064016109fa565b81600960008282546113609190613771565b90915550610b30905083836122d1565b600080516020613dcc8339815191526113898133611ef6565b6113a1600080516020613dcc833981519152836111f8565b156113e15760405162461bcd60e51b815260206004820152601060248201526f20b63932b0b23c9030b71030b236b4b760811b60448201526064016109fa565b6014546001600160a01b03163314156114345760405162461bcd60e51b81526020600482015260156024820152740557365207472616e736665724f776e65727368697605c1b60448201526064016109fa565b61144c600080516020613dcc83398151915233611fe0565b610c3d600080516020613dcc83398151915283611f5a565b61146e3383611c63565b61148a5760405162461bcd60e51b81526004016109fa906136c1565b6111f284848484612480565b6000818152600260205260409020546060906001600160a01b03166114f45760405162461bcd60e51b8152602060048201526014602482015273151bdad95b88191bd95cc81b9bdd08195e1a5cdd60621b60448201526064016109fa565b6000600a600001805461150690613686565b90501161159d57600e805461151a90613686565b80601f016020809104026020016040519081016040528092919081815260200182805461154690613686565b80156115935780601f1061156857610100808354040283529160200191611593565b820191906000526020600020905b81548152906001019060200180831161157657829003601f168201915b50505050506108ea565b600a6115a8836124b3565b6040516020016115b9929190613acc565b60405160208183030381529060405292915050565b6000828152600660205260409020600101546115ea8133611ef6565b610b308383611fe0565b60175483906116039082613728565b3410156116465760405162461bcd60e51b815260206004820152601160248201527014185e5b595b9d081d1bdbc81cdb585b1b607a1b60448201526064016109fa565b600d5442116116975760405162461bcd60e51b815260206004820152601b60248201527f50726573616c6520686173206e6f74207374617274656420796574000000000060448201526064016109fa565b6116a2338484610c8e565b6116ee5760405162461bcd60e51b815260206004820152601b60248201527f4e6f742077686974656c697374656420666f722070726573616c65000000000060448201526064016109fa565b336000818152601b60205260409020805460ff191660011790556111f290856122d1565b60606000611763611727600a600601546124b3565b60115461173e906001600160a01b031660146125b0565b60405160200161174f929190613af1565b604051602081830303815290604052612752565b90506000816040516020016117789190613b78565b60408051601f198184030181529190529392505050565b600754610100900460ff166117aa5760075460ff16156117ae565b303b155b6118115760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b60648201526084016109fa565b600754610100900460ff16158015611833576007805461ffff19166101011790555b601a5460ff161561187e5760405162461bcd60e51b815260206004820152601560248201527410d85b9b9bdd081899481a5b9a5d1a585b1a5e9959605a1b60448201526064016109fa565b611887836128b7565b61189f600080516020613dcc83398151915233611f5a565b6118bb600080516020613dcc8339815191528460400151611f5a565b6118cc6000801b8460400151611f5a565b8251805184916012916118e6918391602090910190612e5d565b5060208281015180516118ff9260018501920190612e5d565b5060408201516002820180546001600160a01b03199081166001600160a01b0393841617909155606084015160038401556080840151600484015560a0840151600584015560c0840151600684015560e090930151600790920180549093169116179055815180518391600a9161197d918391602090910190612e5d565b5060208281015160018301805460ff19169115159190911790556040830151600283015560608301516003830155608083015180516119c29260048501920190612e5d565b5060a0820151600582015560c0820151600682015560e090910151600790910180546001600160a01b0319166001600160a01b0390921691909117905560808301516009558015610b30576007805461ff0019169055505050565b6000611a298133611ef6565b6014546001600160a01b0383811691161415611a7b5760405162461bcd60e51b815260206004820152601160248201527020b63932b0b23c903a34329037bbb732b960791b60448201526064016109fa565b601454611aa090600080516020613dcc833981519152906001600160a01b0316611fe0565b601454611ab8906000906001600160a01b0316611fe0565b601480546001600160a01b038481166001600160a01b0319831681179093551690611af290600080516020613dcc83398151915290611f5a565b601454611b0a906000906001600160a01b0316611f5a565b826001600160a01b0316816001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3505050565b6060600a600401805461090290613686565b6001600160a01b03163b151590565b60006001600160e01b031982166380ac58cd60e01b1480611ba157506001600160e01b03198216635b5e139f60e01b145b806108ea57506301ffc9a760e01b6001600160e01b03198316146108ea565b60006001600160e01b03198216637965db0b60e01b14806108ea575063152a902d60e11b6001600160e01b03198316146108ea565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611c2a8261108e565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b0316611cdc5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016109fa565b6000611ce78361108e565b9050806001600160a01b0316846001600160a01b03161480611d225750836001600160a01b0316611d1784610985565b6001600160a01b0316145b80611d5257506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b0316611d6d8261108e565b6001600160a01b031614611dd15760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b60648201526084016109fa565b6001600160a01b038216611e335760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016109fa565b611e3e600082611bf5565b6001600160a01b0383166000908152600360205260408120805460019290611e67908490613771565b90915550506001600160a01b0382166000908152600360205260408120805460019290611e95908490613bbd565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b611f0082826111f8565b610c3d57611f18816001600160a01b031660146125b0565b611f238360206125b0565b604051602001611f34929190613bd5565b60408051601f198184030181529082905262461bcd60e51b82526109fa91600401612f81565b611f6482826111f8565b610c3d5760008281526006602090815260408083206001600160a01b03851684529091529020805460ff19166001179055611f9c3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b611fea82826111f8565b15610c3d5760008281526006602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b804710156120975760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e636500000060448201526064016109fa565b6000826001600160a01b03168260405160006040518083038185875af1925050503d80600081146120e4576040519150601f19603f3d011682016040523d82523d6000602084013e6120e9565b606091505b5050905080610b305760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d6179206861766520726576657274656400000000000060648201526084016109fa565b60008261216d8584612a90565b14949350505050565b61271060c082013511156121c15760405162461bcd60e51b81526020600482015260126024820152710a4def2c2d8e8d2cae640e8dede40d0d2ced60731b60448201526064016109fa565b600b5460ff16156121cf5750565b6121df6040820160208301613c4a565b600b5460ff161515901515146122375760405162461bcd60e51b815260206004820152601860248201527f43616e6e6f7420756e667265657a65206d65746164617461000000000000000060448201526064016109fa565b6122418180613788565b604051602001612252929190613c67565b60408051601f198184030181529082905280516020918201209161227991600a9101613c77565b6040516020818303038152906040528051906020012014610c8b5760405162461bcd60e51b815260206004820152601260248201527126b2ba30b230ba309034b990333937bd32b760711b60448201526064016109fa565b6018548111156123165760405162461bcd60e51b815260206004820152601060248201526f416d6f756e7420746f6f206c6172676560801b60448201526064016109fa565b61231e61119e565b8111156123665760405162461bcd60e51b8152602060048201526016602482015275139bdd08195b9bdd59da081d1bdad95b9cc81b19599d60521b60448201526064016109fa565b80600860008282546123789190613bbd565b90915550600190505b818111610b305761239f838260085461239a9190613771565b612b04565b806123a981613c83565b915050612381565b816001600160a01b0316836001600160a01b031614156124135760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016109fa565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b61248b848484611d5a565b61249784848484612b1e565b6111f25760405162461bcd60e51b81526004016109fa90613c9e565b6060816124d75750506040805180820190915260018152600360fc1b602082015290565b8160005b811561250157806124eb81613c83565b91506124fa9050600a8361375d565b91506124db565b6000816001600160401b0381111561251b5761251b61331a565b6040519080825280601f01601f191660200182016040528015612545576020820181803683370190505b5090505b8415611d525761255a600183613771565b9150612567600a86613cf0565b612572906030613bbd565b60f81b81838151811061258757612587613d04565b60200101906001600160f81b031916908160001a9053506125a9600a8661375d565b9450612549565b606060006125bf836002613728565b6125ca906002613bbd565b6001600160401b038111156125e1576125e161331a565b6040519080825280601f01601f19166020018201604052801561260b576020820181803683370190505b509050600360fc1b8160008151811061262657612626613d04565b60200101906001600160f81b031916908160001a905350600f60fb1b8160018151811061265557612655613d04565b60200101906001600160f81b031916908160001a9053506000612679846002613728565b612684906001613bbd565b90505b60018111156126fc576f181899199a1a9b1b9c1cb0b131b232b360811b85600f16601081106126b8576126b8613d04565b1a60f81b8282815181106126ce576126ce613d04565b60200101906001600160f81b031916908160001a90535060049490941c936126f581613d1a565b9050612687565b50831561274b5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e7460448201526064016109fa565b9392505050565b805160609080612772575050604080516020810190915260008152919050565b60006003612781836002613bbd565b61278b919061375d565b612796906004613728565b905060006127a5826020613bbd565b6001600160401b038111156127bc576127bc61331a565b6040519080825280601f01601f1916602001820160405280156127e6576020820181803683370190505b5090506000604051806060016040528060408152602001613d8c604091399050600181016020830160005b86811015612872576003818a01810151603f601282901c8116860151600c83901c8216870151600684901c831688015192909316870151600891821b60ff94851601821b92841692909201901b91160160e01b835260049092019101612811565b50600386066001811461288c576002811461289d576128a9565b613d3d60f01b6001198301526128a9565b603d60f81b6000198301525b505050918152949350505050565b600081606001511161290b5760405162461bcd60e51b815260206004820152601f60248201527f4d6178696d756d20737570706c79206d757374206265206e6f6e2d7a65726f0060448201526064016109fa565b60008160c001511161295f5760405162461bcd60e51b815260206004820181905260248201527f546f6b656e7320706572206d696e74206d757374206265206e6f6e2d7a65726f60448201526064016109fa565b60e08101516001600160a01b03166129cd5760405162461bcd60e51b815260206004820152602b60248201527f547265617375727920616464726573732063616e6e6f7420626520746865206e60448201526a756c6c206164647265737360a81b60648201526084016109fa565b60408101516001600160a01b0316612a275760405162461bcd60e51b815260206004820152601b60248201527f436f6e7472616374206d757374206861766520616e206f776e6572000000000060448201526064016109fa565b806060015181608001511115610c8b5760405162461bcd60e51b815260206004820152602860248201527f52657365727665206d757374206265206c657373207468616e206d6178696d756044820152676d20737570706c7960c01b60648201526084016109fa565b600081815b8451811015612afc576000858281518110612ab257612ab2613d04565b60200260200101519050808311612ad85760008381526020829052604090209250612ae9565b600081815260208490526040902092505b5080612af481613c83565b915050612a95565b509392505050565b610c3d828260405180602001604052806000815250612c1c565b60006001600160a01b0384163b15612c1157604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612b62903390899088908890600401613d31565b6020604051808303816000875af1925050508015612b9d575060408051601f3d908101601f19168201909252612b9a91810190613d6e565b60015b612bf7573d808015612bcb576040519150601f19603f3d011682016040523d82523d6000602084013e612bd0565b606091505b508051612bef5760405162461bcd60e51b81526004016109fa90613c9e565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611d52565b506001949350505050565b612c268383612c4f565b612c336000848484612b1e565b610b305760405162461bcd60e51b81526004016109fa90613c9e565b6001600160a01b038216612ca55760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016109fa565b6000818152600260205260409020546001600160a01b031615612d0a5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016109fa565b6001600160a01b0382166000908152600360205260408120805460019290612d33908490613bbd565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b604051806060016040528060008152602001612dfd604051806101000160405280606081526020016060815260200160006001600160a01b031681526020016000815260200160008152602001600081526020016000815260200160006001600160a01b031681525090565b8152602001612e5860405180610100016040528060608152602001600015158152602001600081526020016000815260200160608152602001600080191681526020016000815260200160006001600160a01b031681525090565b905290565b828054612e6990613686565b90600052602060002090601f016020900481019282612e8b5760008555612ed1565b82601f10612ea457805160ff1916838001178555612ed1565b82800160010185558215612ed1579182015b82811115612ed1578251825591602001919060010190612eb6565b50612edd929150612ee1565b5090565b5b80821115612edd5760008155600101612ee2565b6001600160e01b031981168114610c8b57600080fd5b600060208284031215612f1e57600080fd5b813561274b81612ef6565b60005b83811015612f44578181015183820152602001612f2c565b838111156111f25750506000910152565b60008151808452612f6d816020860160208601612f29565b601f01601f19169290920160200192915050565b60208152600061274b6020830184612f55565b600060208284031215612fa657600080fd5b5035919050565b6001600160a01b0381168114610c8b57600080fd5b8035612fcd81612fad565b919050565b60008060408385031215612fe557600080fd5b8235612ff081612fad565b946020939093013593505050565b60008060006060848603121561301357600080fd5b833561301e81612fad565b9250602084013561302e81612fad565b929592945050506040919091013590565b6000806040838503121561305257600080fd5b50508035926020909101359150565b6000806040838503121561307457600080fd5b82359150602083013561308681612fad565b809150509250929050565b60008083601f8401126130a357600080fd5b5081356001600160401b038111156130ba57600080fd5b6020830191508360208260051b85010111156130d557600080fd5b9250929050565b6000806000604084860312156130f157600080fd5b83356130fc81612fad565b925060208401356001600160401b0381111561311757600080fd5b61312386828701613091565b9497909650939450505050565b6000610100825181855261314682860182612f55565b9150506020830151151560208501526040830151604085015260608301516060850152608083015184820360808601526131808282612f55565b60a0858101519087015260c0808601519087015260e0948501516001600160a01b03169490950193909352509192915050565b6020815281516020820152600060208301516060604084015280516101008060808601526131e5610180860183612f55565b91506020830151607f198684030160a08701526132028382612f55565b92505060018060a01b0360408401511660c0860152606083015160e08601526080830151818601525060a082015161012085015260c082015161014085015260e0820151915061325e6101608501836001600160a01b03169052565b6040850151848203601f190160608601529150610d638183613130565b60006020828403121561328d57600080fd5b813561274b81612fad565b6000602082840312156132aa57600080fd5b81356001600160401b038111156132c057600080fd5b8201610100818503121561274b57600080fd5b8015158114610c8b57600080fd5b8035612fcd816132d3565b600080604083850312156132ff57600080fd5b823561330a81612fad565b91506020830135613086816132d3565b634e487b7160e01b600052604160045260246000fd5b60405161010081016001600160401b03811182821017156133535761335361331a565b60405290565b60006001600160401b03808411156133735761337361331a565b604051601f8501601f19908116603f0116810190828211818310171561339b5761339b61331a565b816040528093508581528686860111156133b457600080fd5b858560208301376000602087830101525050509392505050565b600080600080608085870312156133e457600080fd5b84356133ef81612fad565b935060208501356133ff81612fad565b92506040850135915060608501356001600160401b0381111561342157600080fd5b8501601f8101871361343257600080fd5b61344187823560208401613359565b91505092959194509250565b60008060006040848603121561346257600080fd5b8335925060208401356001600160401b0381111561311757600080fd5b6000806040838503121561349257600080fd5b823561349d81612fad565b9150602083013561308681612fad565b600082601f8301126134be57600080fd5b61274b83833560208501613359565b600061010082840312156134e057600080fd5b6134e8613330565b905081356001600160401b038082111561350157600080fd5b61350d858386016134ad565b835261351b602085016132e1565b60208401526040840135604084015260608401356060840152608084013591508082111561354857600080fd5b50613555848285016134ad565b60808301525060a082013560a082015260c082013560c082015261357b60e08301612fc2565b60e082015292915050565b6000806040838503121561359957600080fd5b82356001600160401b03808211156135b057600080fd5b9084019061010082870312156135c557600080fd5b6135cd613330565b8235828111156135dc57600080fd5b6135e8888286016134ad565b8252506020830135828111156135fd57600080fd5b613609888286016134ad565b60208301525061361b60408401612fc2565b6040820152606083013560608201526080830135608082015260a083013560a082015260c083013560c082015261365460e08401612fc2565b60e08201529350602085013591508082111561366f57600080fd5b5061367c858286016134cd565b9150509250929050565b600181811c9082168061369a57607f821691505b602082108114156136bb57634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b600081600019048311821515161561374257613742613712565b500290565b634e487b7160e01b600052601260045260246000fd5b60008261376c5761376c613747565b500490565b60008282101561378357613783613712565b500390565b6000808335601e1984360301811261379f57600080fd5b8301803591506001600160401b038211156137b957600080fd5b6020019150368190038213156130d557600080fd5b601f821115610b3057600081815260208120601f850160051c810160208610156137f55750805b601f850160051c820191505b8181101561381457828155600101613801565b505050505050565b6001600160401b038311156138335761383361331a565b613847836138418354613686565b836137ce565b6000601f84116001811461387b57600085156138635750838201355b600019600387901b1c1916600186901b1783556138d5565b600083815260209020601f19861690835b828110156138ac578685013582556020948501946001909201910161388c565b50868210156138c95760001960f88860031b161c19848701351681555b505060018560011b0183555b5050505050565b600081356108ea816132d3565b600081356108ea81612fad565b6139008283613788565b6001600160401b038111156139175761391761331a565b61392b816139258554613686565b856137ce565b6000601f82116001811461395f57600083156139475750838201355b600019600385901b1c1916600184901b1785556139b9565b600085815260209020601f19841690835b828110156139905786850135825560209485019460019092019101613970565b50848210156139ad5760001960f88660031b161c19848701351681555b505060018360011b0185555b505050506139e56139cc602084016138dc565b6001830160ff1981541660ff8315151681178255505050565b6040820135600282015560608201356003820155613a066080830183613788565b613a1481836004860161381c565b505060a0820135600582015560c08201356006820155610c3d613a3960e084016138e9565b6007830180546001600160a01b0319166001600160a01b0392909216919091179055565b60008154613a6a81613686565b60018281168015613a825760018114613a9357613ac2565b60ff19841687528287019450613ac2565b8560005260208060002060005b85811015613ab95781548a820152908401908201613aa0565b50505082870194505b5050505092915050565b6000613ad88285613a5d565b8351613ae8818360208801612f29565b01949350505050565b7f7b2273656c6c65725f6665655f62617369735f706f696e7473223a2000000000815260008351613b2981601c850160208801612f29565b731610113332b2afb932b1b4b834b2b73a111d101160611b601c918401918201528351613b5d816030840160208801612f29565b61227d60f01b60309290910191820152603201949350505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c000000815260008251613bb081601d850160208701612f29565b91909101601d0192915050565b60008219821115613bd057613bd0613712565b500190565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351613c0d816017850160208801612f29565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351613c3e816028840160208801612f29565b01602801949350505050565b600060208284031215613c5c57600080fd5b813561274b816132d3565b8183823760009101908152919050565b600061274b8284613a5d565b6000600019821415613c9757613c97613712565b5060010190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b600082613cff57613cff613747565b500690565b634e487b7160e01b600052603260045260246000fd5b600081613d2957613d29613712565b506000190190565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090613d6490830184612f55565b9695505050505050565b600060208284031215613d8057600080fd5b815161274b81612ef656fe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c21775a2646970667358221220e5fa4ff9db491ebc83a8b32192e2851d1fda09fca931d51e62f6661e1569c6ba64736f6c634300080b0033

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

000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000001c000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000140000000000000000000000000e7d7696c8f11278124f39fb7cdd39fd9442d502600000000000000000000000000000000000000000000000000000000000001f40000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000030000000000000000000000009c79c21ebe05d5ea3dafcbd89e84d5f5bc15cbdb000000000000000000000000000000000000000000000000000000000000001742616e616c69656e207c20574f46207820695374656566000000000000000000000000000000000000000000000000000000000000000000000000000000000669537465656600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000624d2c6000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003e80000000000000000000000009c79c21ebe05d5ea3dafcbd89e84d5f5bc15cbdb00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000035697066733a2f2f516d5668724a47413532345339704d72594a47516b3236386b686e35645a71436d453464426b377274366e6a787a0000000000000000000000

-----Decoded View---------------
Arg [0] : deploymentConfig (tuple): System.Collections.Generic.List`1[Nethereum.ABI.FunctionEncoding.ParameterOutput]
Arg [1] : runtimeConfig (tuple): System.Collections.Generic.List`1[Nethereum.ABI.FunctionEncoding.ParameterOutput]

-----Encoded View---------------
26 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [1] : 00000000000000000000000000000000000000000000000000000000000001c0
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000100
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000140
Arg [4] : 000000000000000000000000e7d7696c8f11278124f39fb7cdd39fd9442d5026
Arg [5] : 00000000000000000000000000000000000000000000000000000000000001f4
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [9] : 0000000000000000000000009c79c21ebe05d5ea3dafcbd89e84d5f5bc15cbdb
Arg [10] : 0000000000000000000000000000000000000000000000000000000000000017
Arg [11] : 42616e616c69656e207c20574f46207820695374656566000000000000000000
Arg [12] : 0000000000000000000000000000000000000000000000000000000000000006
Arg [13] : 6953746565660000000000000000000000000000000000000000000000000000
Arg [14] : 0000000000000000000000000000000000000000000000000000000000000100
Arg [15] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [16] : 00000000000000000000000000000000000000000000000000000000624d2c60
Arg [17] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [18] : 0000000000000000000000000000000000000000000000000000000000000120
Arg [19] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [20] : 00000000000000000000000000000000000000000000000000000000000003e8
Arg [21] : 0000000000000000000000009c79c21ebe05d5ea3dafcbd89e84d5f5bc15cbdb
Arg [22] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [23] : 0000000000000000000000000000000000000000000000000000000000000035
Arg [24] : 697066733a2f2f516d5668724a47413532345339704d72594a47516b3236386b
Arg [25] : 686e35645a71436d453464426b377274366e6a787a0000000000000000000000


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.