ETH Price: $3,814.19 (+6.74%)

Token

ERC-20: SMOK3 Genesis Potions (POTIONS)
 

Overview

Max Total Supply

658 POTIONS

Holders

421

Market

Volume (24H)

0.045 ETH

Min Price (24H)

$171.64 @ 0.045000 ETH

Max Price (24H)

$171.64 @ 0.045000 ETH
Balance
1 POTIONS
0xe3e54ab858c675029f6593b3941e8de75c4d80c5
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:
SMOK3

Compiler Version
v0.8.21+commit.d9974bed

Optimization Enabled:
Yes with 200 runs

Other Settings:
paris EvmVersion
File 1 of 1 : SMOK3.sol
// SPDX-License-Identifier: unlicense
// File: @openzeppelin/contracts/utils/Context.sol


// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)

pragma solidity ^0.8.20;

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

    function _contextSuffixLength() internal view virtual returns (uint256) {
        return 0;
    }
}
pragma solidity ^0.8.20;
abstract contract Pausable is Context {
    /**
     * @dev Emitted when the pause is triggered by `account`.
     */
    event Paused(address account);

    /**
     * @dev Emitted when the pause is lifted by `account`.
     */
    event Unpaused(address account);

    bool private _paused;

    /**
     * @dev Initializes the contract in unpaused state.
     */
    constructor() {
        _paused = false;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is not paused.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    modifier whenNotPaused() {
        _requireNotPaused();
        _;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is paused.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    modifier whenPaused() {
        _requirePaused();
        _;
    }

    /**
     * @dev Returns true if the contract is paused, and false otherwise.
     */
    function paused() public view virtual returns (bool) {
        return _paused;
    }

    /**
     * @dev Throws if the contract is paused.
     */
    function _requireNotPaused() internal view virtual {
        require(!paused(), "Pausable: paused");
    }

    /**
     * @dev Throws if the contract is not paused.
     */
    function _requirePaused() internal view virtual {
        require(paused(), "Pausable: not paused");
    }

    /**
     * @dev Triggers stopped state.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    function _pause() internal virtual whenNotPaused {
        _paused = true;
        emit Paused(_msgSender());
    }

    /**
     * @dev Returns to normal state.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    function _unpause() internal virtual whenPaused {
        _paused = false;
        emit Unpaused(_msgSender());
    }
}


// File: basicRoyaltyNft/access/OwnablePermissions.sol


pragma solidity ^0.8.4;


abstract contract OwnablePermissions is Context {
    function _requireCallerIsContractOwner() internal view virtual;
}

// File: @openzeppelin/contracts/access/Ownable.sol


// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)

pragma solidity ^0.8.20;


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

    /**
     * @dev The caller account is not authorized to perform an operation.
     */
    error OwnableUnauthorizedAccount(address account);

    /**
     * @dev The owner is not a valid owner account. (eg. `address(0)`)
     */
    error OwnableInvalidOwner(address owner);

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

    /**
     * @dev Initializes the contract setting the address provided by the deployer as the initial owner.
     */
    constructor(address initialOwner) {
        if (initialOwner == address(0)) {
            revert OwnableInvalidOwner(address(0));
        }
        _transferOwnership(initialOwner);
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

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

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        if (owner() != _msgSender()) {
            revert OwnableUnauthorizedAccount(_msgSender());
        }
    }

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

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        if (newOwner == address(0)) {
            revert OwnableInvalidOwner(address(0));
        }
        _transferOwnership(newOwner);
    }

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

// File: basicRoyaltyNft/access/OwnableBasic.sol



pragma solidity ^0.8.4;



abstract contract OwnableBasic is OwnablePermissions, Ownable {
    function _requireCallerIsContractOwner() internal view virtual override {
        _checkOwner();
    }
}

// File: @openzeppelin/contracts/utils/introspection/IERC165.sol


// OpenZeppelin Contracts (last updated v5.0.0) (utils/introspection/IERC165.sol)

pragma solidity ^0.8.20;

/**
 * @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: basicRoyaltyNft/interfaces/IEOARegistry.sol


pragma solidity ^0.8.4;


interface IEOARegistry is IERC165 {
    function isVerifiedEOA(address account) external view returns (bool);
}
// File: basicRoyaltyNft/utils/TransferPolicy.sol


pragma solidity ^0.8.4;

enum AllowlistTypes {
    Operators,
    PermittedContractReceivers
}

enum ReceiverConstraints {
    None,
    NoCode,
    EOA
}

enum CallerConstraints {
    None,
    OperatorWhitelistEnableOTC,
    OperatorWhitelistDisableOTC
}

enum StakerConstraints {
    None,
    CallerIsTxOrigin,
    EOA
}

enum TransferSecurityLevels {
    Zero,
    One,
    Two,
    Three,
    Four,
    Five,
    Six
}

struct TransferSecurityPolicy {
    CallerConstraints callerConstraints;
    ReceiverConstraints receiverConstraints;
}

struct CollectionSecurityPolicy {
    TransferSecurityLevels transferSecurityLevel;
    uint120 operatorWhitelistId;
    uint120 permittedContractReceiversId;
}

// File: basicRoyaltyNft/interfaces/ITransferSecurityRegistry.sol


pragma solidity ^0.8.4;


interface ITransferSecurityRegistry {
    event AddedToAllowlist(AllowlistTypes indexed kind, uint256 indexed id, address indexed account);
    event CreatedAllowlist(AllowlistTypes indexed kind, uint256 indexed id, string indexed name);
    event ReassignedAllowlistOwnership(AllowlistTypes indexed kind, uint256 indexed id, address indexed newOwner);
    event RemovedFromAllowlist(AllowlistTypes indexed kind, uint256 indexed id, address indexed account);
    event SetAllowlist(AllowlistTypes indexed kind, address indexed collection, uint120 indexed id);
    event SetTransferSecurityLevel(address indexed collection, TransferSecurityLevels level);

    function createOperatorWhitelist(string calldata name) external returns (uint120);
    function createPermittedContractReceiverAllowlist(string calldata name) external returns (uint120);
    function reassignOwnershipOfOperatorWhitelist(uint120 id, address newOwner) external;
    function reassignOwnershipOfPermittedContractReceiverAllowlist(uint120 id, address newOwner) external;
    function renounceOwnershipOfOperatorWhitelist(uint120 id) external;
    function renounceOwnershipOfPermittedContractReceiverAllowlist(uint120 id) external;
    function setTransferSecurityLevelOfCollection(address collection, TransferSecurityLevels level) external;
    function setOperatorWhitelistOfCollection(address collection, uint120 id) external;
    function setPermittedContractReceiverAllowlistOfCollection(address collection, uint120 id) external;
    function addOperatorToWhitelist(uint120 id, address operator) external;
    function addPermittedContractReceiverToAllowlist(uint120 id, address receiver) external;
    function removeOperatorFromWhitelist(uint120 id, address operator) external;
    function removePermittedContractReceiverFromAllowlist(uint120 id, address receiver) external;
    function getCollectionSecurityPolicy(address collection) external view returns (CollectionSecurityPolicy memory);
    function getWhitelistedOperators(uint120 id) external view returns (address[] memory);
    function getPermittedContractReceivers(uint120 id) external view returns (address[] memory);
    function isOperatorWhitelisted(uint120 id, address operator) external view returns (bool);
    function isContractReceiverPermitted(uint120 id, address receiver) external view returns (bool);
}
// File: basicRoyaltyNft/interfaces/ITransferValidator.sol


pragma solidity ^0.8.4;


interface ITransferValidator {
    function applyCollectionTransferPolicy(address caller, address from, address to) external view;
}
// File: basicRoyaltyNft/interfaces/ICreatorTokenTransferValidator.sol


pragma solidity ^0.8.4;




interface ICreatorTokenTransferValidator is ITransferSecurityRegistry, ITransferValidator, IEOARegistry {}
// File: basicRoyaltyNft/interfaces/ICreatorToken.sol


pragma solidity ^0.8.4;


interface ICreatorToken {
    event TransferValidatorUpdated(address oldValidator, address newValidator);

    function getTransferValidator() external view returns (ICreatorTokenTransferValidator);
    function getSecurityPolicy() external view returns (CollectionSecurityPolicy memory);
    function getWhitelistedOperators() external view returns (address[] memory);
    function getPermittedContractReceivers() external view returns (address[] memory);
    function isOperatorWhitelisted(address operator) external view returns (bool);
    function isContractReceiverPermitted(address receiver) external view returns (bool);
    function isTransferAllowed(address caller, address from, address to) external view returns (bool);
}

// File: basicRoyaltyNft/utils/TransferValidation.sol


pragma solidity ^0.8.4;


/**
 * @title TransferValidation
 * @author Limit Break, Inc.
 * @notice A mix-in that can be combined with ERC-721 contracts to provide more granular hooks.
 * Openzeppelin's ERC721 contract only provides hooks for before and after transfer.  This allows
 * developers to validate or customize transfers within the context of a mint, a burn, or a transfer.
 */
abstract contract TransferValidation is Context {
    
    error ShouldNotMintToBurnAddress();

    /// @dev Inheriting contracts should call this function in the _beforeTokenTransfer function to get more granular hooks.
    function _validateBeforeTransfer(address from, address to, uint256 tokenId) internal virtual {
        bool fromZeroAddress = from == address(0);
        bool toZeroAddress = to == address(0);

        if(fromZeroAddress && toZeroAddress) {
            revert ShouldNotMintToBurnAddress();
        } else if(fromZeroAddress) {
            _preValidateMint(_msgSender(), to, tokenId, msg.value);
        } else if(toZeroAddress) {
            _preValidateBurn(_msgSender(), from, tokenId, msg.value);
        } else {
            _preValidateTransfer(_msgSender(), from, to, tokenId, msg.value);
        }
    }

    /// @dev Inheriting contracts should call this function in the _afterTokenTransfer function to get more granular hooks.
    function _validateAfterTransfer(address from, address to, uint256 tokenId) internal virtual {
        bool fromZeroAddress = from == address(0);
        bool toZeroAddress = to == address(0);

        if(fromZeroAddress && toZeroAddress) {
            revert ShouldNotMintToBurnAddress();
        } else if(fromZeroAddress) {
            _postValidateMint(_msgSender(), to, tokenId, msg.value);
        } else if(toZeroAddress) {
            _postValidateBurn(_msgSender(), from, tokenId, msg.value);
        } else {
            _postValidateTransfer(_msgSender(), from, to, tokenId, msg.value);
        }
    }

    /// @dev Optional validation hook that fires before a mint
    function _preValidateMint(address caller, address to, uint256 tokenId, uint256 value) internal virtual {}

    /// @dev Optional validation hook that fires after a mint
    function _postValidateMint(address caller, address to, uint256 tokenId, uint256 value) internal virtual {}

    /// @dev Optional validation hook that fires before a burn
    function _preValidateBurn(address caller, address from, uint256 tokenId, uint256 value) internal virtual {}

    /// @dev Optional validation hook that fires after a burn
    function _postValidateBurn(address caller, address from, uint256 tokenId, uint256 value) internal virtual {}

    /// @dev Optional validation hook that fires before a transfer
    function _preValidateTransfer(address caller, address from, address to, uint256 tokenId, uint256 value) internal virtual {}

    /// @dev Optional validation hook that fires after a transfer
    function _postValidateTransfer(address caller, address from, address to, uint256 tokenId, uint256 value) internal virtual {}
}

// File: @openzeppelin/contracts/interfaces/IERC165.sol


// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/IERC165.sol)

pragma solidity ^0.8.20;


// File: basicRoyaltyNft/utils/CreatorTokenBase.sol


pragma solidity ^0.8.4;






/**
 * @title CreatorTokenBase
 * @author Limit Break, Inc.
 * @notice CreatorTokenBase is an abstract contract that provides basic functionality for managing token 
 * transfer policies through an implementation of ICreatorTokenTransferValidator. This contract is intended to be used
 * as a base for creator-specific token contracts, enabling customizable transfer restrictions and security policies.
 *
 * <h4>Features:</h4>
 * <ul>Ownable: This contract can have an owner who can set and update the transfer validator.</ul>
 * <ul>TransferValidation: Implements the basic token transfer validation interface.</ul>
 * <ul>ICreatorToken: Implements the interface for creator tokens, providing view functions for token security policies.</ul>
 *
 * <h4>Benefits:</h4>
 * <ul>Provides a flexible and modular way to implement custom token transfer restrictions and security policies.</ul>
 * <ul>Allows creators to enforce policies such as whitelisted operators and permitted contract receivers.</ul>
 * <ul>Can be easily integrated into other token contracts as a base contract.</ul>
 *
 * <h4>Intended Usage:</h4>
 * <ul>Use as a base contract for creator token implementations that require advanced transfer restrictions and 
 *   security policies.</ul>
 * <ul>Set and update the ICreatorTokenTransferValidator implementation contract to enforce desired policies for the 
 *   creator token.</ul>
 */
abstract contract CreatorTokenBase is OwnablePermissions, TransferValidation, ICreatorToken {
    
    error CreatorTokenBase__InvalidTransferValidatorContract();
    error CreatorTokenBase__SetTransferValidatorFirst();

    address public constant DEFAULT_TRANSFER_VALIDATOR = address(0x0000721C310194CcfC01E523fc93C9cCcFa2A0Ac);
    TransferSecurityLevels public constant DEFAULT_TRANSFER_SECURITY_LEVEL = TransferSecurityLevels.One;
    uint120 public constant DEFAULT_OPERATOR_WHITELIST_ID = uint120(1);

    ICreatorTokenTransferValidator private transferValidator;

    /**
     * @notice Allows the contract owner to set the transfer validator to the official validator contract
     *         and set the security policy to the recommended default settings.
     * @dev    May be overridden to change the default behavior of an individual collection.
     */
    function setToDefaultSecurityPolicy() public virtual {
        _requireCallerIsContractOwner();
        setTransferValidator(DEFAULT_TRANSFER_VALIDATOR);
        ICreatorTokenTransferValidator(DEFAULT_TRANSFER_VALIDATOR).setTransferSecurityLevelOfCollection(address(this), DEFAULT_TRANSFER_SECURITY_LEVEL);
        ICreatorTokenTransferValidator(DEFAULT_TRANSFER_VALIDATOR).setOperatorWhitelistOfCollection(address(this), DEFAULT_OPERATOR_WHITELIST_ID);
    }

    /**
     * @notice Allows the contract owner to set the transfer validator to a custom validator contract
     *         and set the security policy to their own custom settings.
     */
    function setToCustomValidatorAndSecurityPolicy(
        address validator, 
        TransferSecurityLevels level, 
        uint120 operatorWhitelistId, 
        uint120 permittedContractReceiversAllowlistId) public {
        _requireCallerIsContractOwner();

        setTransferValidator(validator);

        ICreatorTokenTransferValidator(validator).
            setTransferSecurityLevelOfCollection(address(this), level);

        ICreatorTokenTransferValidator(validator).
            setOperatorWhitelistOfCollection(address(this), operatorWhitelistId);

        ICreatorTokenTransferValidator(validator).
            setPermittedContractReceiverAllowlistOfCollection(address(this), permittedContractReceiversAllowlistId);
    }

    /**
     * @notice Allows the contract owner to set the security policy to their own custom settings.
     * @dev    Reverts if the transfer validator has not been set.
     */
    function setToCustomSecurityPolicy(
        TransferSecurityLevels level, 
        uint120 operatorWhitelistId, 
        uint120 permittedContractReceiversAllowlistId) public {
        _requireCallerIsContractOwner();

        ICreatorTokenTransferValidator validator = getTransferValidator();
        if (address(validator) == address(0)) {
            revert CreatorTokenBase__SetTransferValidatorFirst();
        }

        validator.setTransferSecurityLevelOfCollection(address(this), level);
        validator.setOperatorWhitelistOfCollection(address(this), operatorWhitelistId);
        validator.setPermittedContractReceiverAllowlistOfCollection(address(this), permittedContractReceiversAllowlistId);
    }

    /**
     * @notice Sets the transfer validator for the token contract.
     *
     * @dev    Throws when provided validator contract is not the zero address and doesn't support 
     *         the ICreatorTokenTransferValidator interface. 
     * @dev    Throws when the caller is not the contract owner.
     *
     * @dev    <h4>Postconditions:</h4>
     *         1. The transferValidator address is updated.
     *         2. The `TransferValidatorUpdated` event is emitted.
     *
     * @param transferValidator_ The address of the transfer validator contract.
     */
    function setTransferValidator(address transferValidator_) public {
        _requireCallerIsContractOwner();

        bool isValidTransferValidator = false;

        if(transferValidator_.code.length > 0) {
            try IERC165(transferValidator_).supportsInterface(type(ICreatorTokenTransferValidator).interfaceId) 
                returns (bool supportsInterface) {
                isValidTransferValidator = supportsInterface;
            } catch {}
        }

        if(transferValidator_ != address(0) && !isValidTransferValidator) {
            revert CreatorTokenBase__InvalidTransferValidatorContract();
        }

        emit TransferValidatorUpdated(address(transferValidator), transferValidator_);

        transferValidator = ICreatorTokenTransferValidator(transferValidator_);
    }

    /**
     * @notice Returns the transfer validator contract address for this token contract.
     */
    function getTransferValidator() public view override returns (ICreatorTokenTransferValidator) {
        return transferValidator;
    }

    /**
     * @notice Returns the security policy for this token contract, which includes:
     *         Transfer security level, operator whitelist id, permitted contract receiver allowlist id.
     */
    function getSecurityPolicy() public view override returns (CollectionSecurityPolicy memory) {
        if (address(transferValidator) != address(0)) {
            return transferValidator.getCollectionSecurityPolicy(address(this));
        }

        return CollectionSecurityPolicy({
            transferSecurityLevel: TransferSecurityLevels.Zero,
            operatorWhitelistId: 0,
            permittedContractReceiversId: 0
        });
    }

    /**
     * @notice Returns the list of all whitelisted operators for this token contract.
     * @dev    This can be an expensive call and should only be used in view-only functions.
     */
    function getWhitelistedOperators() public view override returns (address[] memory) {
        if (address(transferValidator) != address(0)) {
            return transferValidator.getWhitelistedOperators(
                transferValidator.getCollectionSecurityPolicy(address(this)).operatorWhitelistId);
        }

        return new address[](0);
    }

    /**
     * @notice Returns the list of permitted contract receivers for this token contract.
     * @dev    This can be an expensive call and should only be used in view-only functions.
     */
    function getPermittedContractReceivers() public view override returns (address[] memory) {
        if (address(transferValidator) != address(0)) {
            return transferValidator.getPermittedContractReceivers(
                transferValidator.getCollectionSecurityPolicy(address(this)).permittedContractReceiversId);
        }

        return new address[](0);
    }

    /**
     * @notice Checks if an operator is whitelisted for this token contract.
     * @param operator The address of the operator to check.
     */
    function isOperatorWhitelisted(address operator) public view override returns (bool) {
        if (address(transferValidator) != address(0)) {
            return transferValidator.isOperatorWhitelisted(
                transferValidator.getCollectionSecurityPolicy(address(this)).operatorWhitelistId, operator);
        }

        return false;
    }

    /**
     * @notice Checks if a contract receiver is permitted for this token contract.
     * @param receiver The address of the receiver to check.
     */
    function isContractReceiverPermitted(address receiver) public view override returns (bool) {
        if (address(transferValidator) != address(0)) {
            return transferValidator.isContractReceiverPermitted(
                transferValidator.getCollectionSecurityPolicy(address(this)).permittedContractReceiversId, receiver);
        }

        return false;
    }

    /**
     * @notice Determines if a transfer is allowed based on the token contract's security policy.  Use this function
     *         to simulate whether or not a transfer made by the specified `caller` from the `from` address to the `to`
     *         address would be allowed by this token's security policy.
     *
     * @notice This function only checks the security policy restrictions and does not check whether token ownership
     *         or approvals are in place. 
     *
     * @param caller The address of the simulated caller.
     * @param from   The address of the sender.
     * @param to     The address of the receiver.
     * @return       True if the transfer is allowed, false otherwise.
     */
    function isTransferAllowed(address caller, address from, address to) public view override returns (bool) {
        if (address(transferValidator) != address(0)) {
            try transferValidator.applyCollectionTransferPolicy(caller, from, to) {
                return true;
            } catch {
                return false;
            }
        }
        return true;
    }

    /**
     * @dev Pre-validates a token transfer, reverting if the transfer is not allowed by this token's security policy.
     *      Inheriting contracts are responsible for overriding the _beforeTokenTransfer function, or its equivalent
     *      and calling _validateBeforeTransfer so that checks can be properly applied during token transfers.
     *
     * @dev Throws when the transfer doesn't comply with the collection's transfer policy, if the transferValidator is
     *      set to a non-zero address.
     *
     * @param caller  The address of the caller.
     * @param from    The address of the sender.
     * @param to      The address of the receiver.
     */
    function _preValidateTransfer(
        address caller, 
        address from, 
        address to, 
        uint256 /*tokenId*/, 
        uint256 /*value*/) internal virtual override {
        if (address(transferValidator) != address(0)) {
            transferValidator.applyCollectionTransferPolicy(caller, from, to);
        }
    }
}

// File: @openzeppelin/contracts/utils/introspection/ERC165.sol


// OpenZeppelin Contracts (last updated v5.0.0) (utils/introspection/ERC165.sol)

pragma solidity ^0.8.20;


/**
 * @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);
 * }
 * ```
 */
abstract contract ERC165 is IERC165 {
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual returns (bool) {
        return interfaceId == type(IERC165).interfaceId;
    }
}

// File: basicRoyaltyNft/openzeppelinERC721/ERC721.sol


// File: .deps/npm/@openzeppelin/contracts/utils/introspection/IERC165.sol


// OpenZeppelin Contracts (last updated v5.0.0) (utils/introspection/IERC165.sol)

pragma solidity ^0.8.20;





// File: .deps/npm/@openzeppelin/contracts/token/ERC721/IERC721.sol


// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC721/IERC721.sol)

pragma solidity ^0.8.20;


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

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

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

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

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

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

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must 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: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC721
     * or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must
     * understand this adds an external call which potentially creates a reentrancy vulnerability.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(address from, address to, uint256 tokenId) external;

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

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

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

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

// File: .deps/npm/@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol


// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC721/IERC721Receiver.sol)

pragma solidity ^0.8.20;

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

// File: .deps/npm/@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol


// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC721/extensions/IERC721Metadata.sol)

pragma solidity ^0.8.20;


/**
 * @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: .deps/npm/@openzeppelin/contracts/utils/math/Math.sol


// OpenZeppelin Contracts (last updated v5.0.0) (utils/math/Math.sol)

pragma solidity ^0.8.20;

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library Math {
    /**
     * @dev Muldiv operation overflow.
     */
    error MathOverflowedMulDiv();

    enum Rounding {
        Floor, // Toward negative infinity
        Ceil, // Toward positive infinity
        Trunc, // Toward zero
        Expand // Away from zero
    }

    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            uint256 c = a + b;
            if (c < a) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, with an overflow flag.
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b > a) return (false, 0);
            return (true, a - b);
        }
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
            // benefit is lost if 'b' is also tested.
            // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
            if (a == 0) return (true, 0);
            uint256 c = a * b;
            if (c / a != b) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a / b);
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a % b);
        }
    }

    /**
     * @dev Returns the largest of two numbers.
     */
    function max(uint256 a, uint256 b) internal pure returns (uint256) {
        return a > b ? a : b;
    }

    /**
     * @dev Returns the smallest of two numbers.
     */
    function min(uint256 a, uint256 b) internal pure returns (uint256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two numbers. The result is rounded towards
     * zero.
     */
    function average(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b) / 2 can overflow.
        return (a & b) + (a ^ b) / 2;
    }

    /**
     * @dev Returns the ceiling of the division of two numbers.
     *
     * This differs from standard division with `/` in that it rounds towards infinity instead
     * of rounding towards zero.
     */
    function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {
        if (b == 0) {
            // Guarantee the same behavior as in a regular Solidity division.
            return a / b;
        }

        // (a + b - 1) / b can overflow on addition, so we distribute.
        return a == 0 ? 0 : (a - 1) / b + 1;
    }

    /**
     * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or
     * denominator == 0.
     * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) with further edits by
     * Uniswap Labs also under MIT license.
     */
    function mulDiv(uint256 x, uint256 y, uint256 denominator) internal pure returns (uint256 result) {
        unchecked {
            // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use
            // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256
            // variables such that product = prod1 * 2^256 + prod0.
            uint256 prod0 = x * y; // Least significant 256 bits of the product
            uint256 prod1; // Most significant 256 bits of the product
            assembly {
                let mm := mulmod(x, y, not(0))
                prod1 := sub(sub(mm, prod0), lt(mm, prod0))
            }

            // Handle non-overflow cases, 256 by 256 division.
            if (prod1 == 0) {
                // Solidity will revert if denominator == 0, unlike the div opcode on its own.
                // The surrounding unchecked block does not change this fact.
                // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic.
                return prod0 / denominator;
            }

            // Make sure the result is less than 2^256. Also prevents denominator == 0.
            if (denominator <= prod1) {
                revert MathOverflowedMulDiv();
            }

            ///////////////////////////////////////////////
            // 512 by 256 division.
            ///////////////////////////////////////////////

            // Make division exact by subtracting the remainder from [prod1 prod0].
            uint256 remainder;
            assembly {
                // Compute remainder using mulmod.
                remainder := mulmod(x, y, denominator)

                // Subtract 256 bit number from 512 bit number.
                prod1 := sub(prod1, gt(remainder, prod0))
                prod0 := sub(prod0, remainder)
            }

            // Factor powers of two out of denominator and compute largest power of two divisor of denominator.
            // Always >= 1. See https://cs.stackexchange.com/q/138556/92363.

            uint256 twos = denominator & (0 - denominator);
            assembly {
                // Divide denominator by twos.
                denominator := div(denominator, twos)

                // Divide [prod1 prod0] by twos.
                prod0 := div(prod0, twos)

                // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.
                twos := add(div(sub(0, twos), twos), 1)
            }

            // Shift in bits from prod1 into prod0.
            prod0 |= prod1 * twos;

            // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such
            // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for
            // four bits. That is, denominator * inv = 1 mod 2^4.
            uint256 inverse = (3 * denominator) ^ 2;

            // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also
            // works in modular arithmetic, doubling the correct bits in each step.
            inverse *= 2 - denominator * inverse; // inverse mod 2^8
            inverse *= 2 - denominator * inverse; // inverse mod 2^16
            inverse *= 2 - denominator * inverse; // inverse mod 2^32
            inverse *= 2 - denominator * inverse; // inverse mod 2^64
            inverse *= 2 - denominator * inverse; // inverse mod 2^128
            inverse *= 2 - denominator * inverse; // inverse mod 2^256

            // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.
            // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is
            // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1
            // is no longer required.
            result = prod0 * inverse;
            return result;
        }
    }

    /**
     * @notice Calculates x * y / denominator with full precision, following the selected rounding direction.
     */
    function mulDiv(uint256 x, uint256 y, uint256 denominator, Rounding rounding) internal pure returns (uint256) {
        uint256 result = mulDiv(x, y, denominator);
        if (unsignedRoundsUp(rounding) && mulmod(x, y, denominator) > 0) {
            result += 1;
        }
        return result;
    }

    /**
     * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded
     * towards zero.
     *
     * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11).
     */
    function sqrt(uint256 a) internal pure returns (uint256) {
        if (a == 0) {
            return 0;
        }

        // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.
        //
        // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have
        // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.
        //
        // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`
        // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`
        // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`
        //
        // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.
        uint256 result = 1 << (log2(a) >> 1);

        // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,
        // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at
        // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision
        // into the expected uint128 result.
        unchecked {
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            return min(result, a / result);
        }
    }

    /**
     * @notice Calculates sqrt(a), following the selected rounding direction.
     */
    function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = sqrt(a);
            return result + (unsignedRoundsUp(rounding) && result * result < a ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 2 of a positive value rounded towards zero.
     * Returns 0 if given 0.
     */
    function log2(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 128;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 64;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 32;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 16;
            }
            if (value >> 8 > 0) {
                value >>= 8;
                result += 8;
            }
            if (value >> 4 > 0) {
                value >>= 4;
                result += 4;
            }
            if (value >> 2 > 0) {
                value >>= 2;
                result += 2;
            }
            if (value >> 1 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 2, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log2(value);
            return result + (unsignedRoundsUp(rounding) && 1 << result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 10 of a positive value rounded towards zero.
     * Returns 0 if given 0.
     */
    function log10(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >= 10 ** 64) {
                value /= 10 ** 64;
                result += 64;
            }
            if (value >= 10 ** 32) {
                value /= 10 ** 32;
                result += 32;
            }
            if (value >= 10 ** 16) {
                value /= 10 ** 16;
                result += 16;
            }
            if (value >= 10 ** 8) {
                value /= 10 ** 8;
                result += 8;
            }
            if (value >= 10 ** 4) {
                value /= 10 ** 4;
                result += 4;
            }
            if (value >= 10 ** 2) {
                value /= 10 ** 2;
                result += 2;
            }
            if (value >= 10 ** 1) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 10, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log10(value);
            return result + (unsignedRoundsUp(rounding) && 10 ** result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 256 of a positive value rounded towards zero.
     * Returns 0 if given 0.
     *
     * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.
     */
    function log256(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 16;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 8;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 4;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 2;
            }
            if (value >> 8 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 256, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log256(value);
            return result + (unsignedRoundsUp(rounding) && 1 << (result << 3) < value ? 1 : 0);
        }
    }

    /**
     * @dev Returns whether a provided rounding mode is considered rounding up for unsigned integers.
     */
    function unsignedRoundsUp(Rounding rounding) internal pure returns (bool) {
        return uint8(rounding) % 2 == 1;
    }
}

// File: .deps/npm/@openzeppelin/contracts/utils/math/SignedMath.sol


// OpenZeppelin Contracts (last updated v5.0.0) (utils/math/SignedMath.sol)

pragma solidity ^0.8.20;

/**
 * @dev Standard signed math utilities missing in the Solidity language.
 */
library SignedMath {
    /**
     * @dev Returns the largest of two signed numbers.
     */
    function max(int256 a, int256 b) internal pure returns (int256) {
        return a > b ? a : b;
    }

    /**
     * @dev Returns the smallest of two signed numbers.
     */
    function min(int256 a, int256 b) internal pure returns (int256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two signed numbers without overflow.
     * The result is rounded towards zero.
     */
    function average(int256 a, int256 b) internal pure returns (int256) {
        // Formula from the book "Hacker's Delight"
        int256 x = (a & b) + ((a ^ b) >> 1);
        return x + (int256(uint256(x) >> 255) & (a ^ b));
    }

    /**
     * @dev Returns the absolute unsigned value of a signed value.
     */
    function abs(int256 n) internal pure returns (uint256) {
        unchecked {
            // must be unchecked in order to support `n = type(int256).min`
            return uint256(n >= 0 ? n : -n);
        }
    }
}

// File: .deps/npm/@openzeppelin/contracts/utils/Strings.sol


// OpenZeppelin Contracts (last updated v5.0.0) (utils/Strings.sol)

pragma solidity ^0.8.20;



/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant HEX_DIGITS = "0123456789abcdef";
    uint8 private constant ADDRESS_LENGTH = 20;

    /**
     * @dev The `value` string doesn't fit in the specified `length`.
     */
    error StringsInsufficientHexLength(uint256 value, uint256 length);

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        unchecked {
            uint256 length = Math.log10(value) + 1;
            string memory buffer = new string(length);
            uint256 ptr;
            /// @solidity memory-safe-assembly
            assembly {
                ptr := add(buffer, add(32, length))
            }
            while (true) {
                ptr--;
                /// @solidity memory-safe-assembly
                assembly {
                    mstore8(ptr, byte(mod(value, 10), HEX_DIGITS))
                }
                value /= 10;
                if (value == 0) break;
            }
            return buffer;
        }
    }

    /**
     * @dev Converts a `int256` to its ASCII `string` decimal representation.
     */
    function toStringSigned(int256 value) internal pure returns (string memory) {
        return string.concat(value < 0 ? "-" : "", toString(SignedMath.abs(value)));
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        unchecked {
            return toHexString(value, Math.log256(value) + 1);
        }
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
     */
    function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
        uint256 localValue = value;
        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_DIGITS[localValue & 0xf];
            localValue >>= 4;
        }
        if (localValue != 0) {
            revert StringsInsufficientHexLength(value, length);
        }
        return string(buffer);
    }

    /**
     * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal
     * representation.
     */
    function toHexString(address addr) internal pure returns (string memory) {
        return toHexString(uint256(uint160(addr)), ADDRESS_LENGTH);
    }

    /**
     * @dev Returns true if the two strings are equal.
     */
    function equal(string memory a, string memory b) internal pure returns (bool) {
        return bytes(a).length == bytes(b).length && keccak256(bytes(a)) == keccak256(bytes(b));
    }
}


// File: .deps/npm/@openzeppelin/contracts/token/ERC721/ERC721.sol


// OpenZeppelin Contracts (last updated v4.8.2) (token/ERC721/ERC721.sol)

pragma solidity ^0.8.0;







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

 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 functionCallWithValue(target, data, 0, "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");
        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResultFromTarget(target, 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) {
        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResultFromTarget(target, 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) {
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling
     * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.
     *
     * _Available since v4.8._
     */
    function verifyCallResultFromTarget(
        address target,
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        if (success) {
            if (returndata.length == 0) {
                // only check isContract if the call was successful and the return data is empty
                // otherwise we already know that it was a contract
                require(isContract(target), "Address: call to non-contract");
            }
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    /**
     * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason or 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 {
            _revert(returndata, errorMessage);
        }
    }

    function _revert(bytes memory returndata, string memory errorMessage) private pure {
        // 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
            /// @solidity memory-safe-assembly
            assembly {
                let returndata_size := mload(returndata)
                revert(add(32, returndata), returndata_size)
            }
        } else {
            revert(errorMessage);
        }
    }
}
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: address zero is not a valid owner");
        return _balances[owner];
    }

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view virtual override returns (address) {
        address owner = _ownerOf(tokenId);
        require(owner != address(0), "ERC721: invalid token ID");
        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) {
        _requireMinted(tokenId);

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

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

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

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

        _approve(to, tokenId);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view virtual override returns (address) {
        _requireMinted(tokenId);

        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: caller is not token owner or 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: caller is not token owner or 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 the owner of the `tokenId`. Does NOT revert if token doesn't exist
     */
    function _ownerOf(uint256 tokenId) internal view virtual returns (address) {
        return _owners[tokenId];
    }

    /**
     * @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 _ownerOf(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) {
        address owner = ERC721.ownerOf(tokenId);
        return (spender == owner || isApprovedForAll(owner, spender) || getApproved(tokenId) == spender);
    }

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

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

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

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

        // Check that tokenId was not minted by `_beforeTokenTransfer` hook
        require(!_exists(tokenId), "ERC721: token already minted");

        unchecked {
            // Will not overflow unless all 2**256 token ids are minted to the same owner.
            // Given that tokens are minted one by one, it is impossible in practice that
            // this ever happens. Might change if we allow batch minting.
            // The ERC fails to describe this case.
            _balances[to] += 1;
        }

        _owners[tokenId] = to;

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

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

    /**
     * @dev Destroys `tokenId`.
     * The approval is cleared when the token is burned.
     * This is an internal function that does not check if the sender is authorized to operate on the token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     *
     * Emits a {Transfer} event.
     */
    function _burn(uint256 tokenId) internal virtual {
        address owner = ERC721.ownerOf(tokenId);

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

        // Update ownership in case tokenId was transferred by `_beforeTokenTransfer` hook
        owner = ERC721.ownerOf(tokenId);

        // Clear approvals
        delete _tokenApprovals[tokenId];

        unchecked {
            // Cannot overflow, as that would require more tokens to be burned/transferred
            // out than the owner initially received through minting and transferring in.
            _balances[owner] -= 1;
        }
        delete _owners[tokenId];

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

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

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

        // Check that tokenId was not transferred by `_beforeTokenTransfer` hook
        require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner");

        // Clear approvals from the previous owner
        delete _tokenApprovals[tokenId];

        unchecked {
            // `_balances[from]` cannot overflow for the same reason as described in `_burn`:
            // `from`'s balance is the number of token held, which is at least one before the current
            // transfer.
            // `_balances[to]` could overflow in the conditions described in `_mint`. That would require
            // all 2**256 token ids to be minted, which in practice is impossible.
            _balances[from] -= 1;
            _balances[to] += 1;
        }
        _owners[tokenId] = to;

        emit Transfer(from, to, tokenId);

        _afterTokenTransfer(from, to, tokenId, 1);
    }

    /**
     * @dev Approve `to` to operate on `tokenId`
     *
     * Emits an {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 an {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 Reverts if the `tokenId` has not been minted yet.
     */
    function _requireMinted(uint256 tokenId) internal view virtual {
        require(_exists(tokenId), "ERC721: invalid token ID");
    }

    /**
     * @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 {
                    /// @solidity memory-safe-assembly
                    assembly {
                        revert(add(32, reason), mload(reason))
                    }
                }
            }
        } else {
            return true;
        }
    }

    /**
     * @dev Hook that is called before any token transfer. This includes minting and burning. If {ERC721Consecutive} is
     * used, the hook may be called as part of a consecutive (batch) mint, as indicated by `batchSize` greater than 1.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, ``from``'s tokens will be transferred to `to`.
     * - When `from` is zero, the tokens will be minted for `to`.
     * - When `to` is zero, ``from``'s tokens will be burned.
     * - `from` and `to` are never both zero.
     * - `batchSize` is non-zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 firstTokenId,
        uint256 batchSize
    ) internal virtual {}

    /**
     * @dev Hook that is called after any token transfer. This includes minting and burning. If {ERC721Consecutive} is
     * used, the hook may be called as part of a consecutive (batch) mint, as indicated by `batchSize` greater than 1.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, ``from``'s tokens were transferred to `to`.
     * - When `from` is zero, the tokens were minted for `to`.
     * - When `to` is zero, ``from``'s tokens were burned.
     * - `from` and `to` are never both zero.
     * - `batchSize` is non-zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(
        address from,
        address to,
        uint256 firstTokenId,
        uint256 batchSize
    ) internal virtual {}

    /**
     * @dev Unsafe write access to the balances, used by extensions that "mint" tokens using an {ownerOf} override.
     *
     * WARNING: Anyone calling this MUST ensure that the balances remain consistent with the ownership. The invariant
     * being that for any address `a` the value returned by `balanceOf(a)` must be equal to the number of tokens such
     * that `ownerOf(tokenId)` is `a`.
     */
    // solhint-disable-next-line func-name-mixedcase
    function __unsafe_increaseBalance(address account, uint256 amount) internal {
        _balances[account] += amount;
    }
}
// File: basicRoyaltyNft/token/erc721/ERC721OpenZeppelin.sol



pragma solidity ^0.8.4;



abstract contract ERC721OpenZeppelinBase is ERC721 {

    // Token name
    string internal _contractName;

    // Token symbol
    string internal _contractSymbol;

    function name() public view virtual override returns (string memory) {
        return _contractName;
    }

    function symbol() public view virtual override returns (string memory) {
        return _contractSymbol;
    }

    function _setNameAndSymbol(string memory name_, string memory symbol_) internal {
        _contractName = name_;
        _contractSymbol = symbol_;
    }
}

abstract contract ERC721OpenZeppelin is ERC721OpenZeppelinBase {
    constructor(string memory name_, string memory symbol_) ERC721("", "") {
        _setNameAndSymbol(name_, symbol_);
    }
}

abstract contract ERC721OpenZeppelinInitializable is OwnablePermissions, ERC721OpenZeppelinBase {

    error ERC721OpenZeppelinInitializable__AlreadyInitializedERC721();

    /// @notice Specifies whether or not the contract is initialized
    bool private _erc721Initialized;

    /// @dev Initializes parameters of ERC721 tokens.
    /// These cannot be set in the constructor because this contract is optionally compatible with EIP-1167.
    function initializeERC721(string memory name_, string memory symbol_) public {
        _requireCallerIsContractOwner();

        if(_erc721Initialized) {
            revert ERC721OpenZeppelinInitializable__AlreadyInitializedERC721();
        }

        _erc721Initialized = true;

        _setNameAndSymbol(name_, symbol_);
    }
}

// File: basicRoyaltyNft/erc721c/ERC721C.sol


pragma solidity ^0.8.4;



/**
 * @title ERC721C
 * @author Limit Break, Inc.
 * @notice Extends OpenZeppelin's ERC721 implementation with Creator Token functionality, which
 *         allows the contract owner to update the transfer validation logic by managing a security policy in
 *         an external transfer validation security policy registry.  See {CreatorTokenTransferValidator}.
 */
abstract contract ERC721C is ERC721OpenZeppelin, CreatorTokenBase {

    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(ICreatorToken).interfaceId || super.supportsInterface(interfaceId);
    }

    /// @dev Ties the open-zeppelin _beforeTokenTransfer hook to more granular transfer validation logic
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 firstTokenId,
        uint256 batchSize) internal virtual override {
        for (uint256 i = 0; i < batchSize;) {
            _validateBeforeTransfer(from, to, firstTokenId + i);
            unchecked {
                ++i;
            }
        }
    }

    /// @dev Ties the open-zeppelin _afterTokenTransfer hook to more granular transfer validation logic
    function _afterTokenTransfer(
        address from,
        address to,
        uint256 firstTokenId,
        uint256 batchSize) internal virtual override {
        for (uint256 i = 0; i < batchSize;) {
            _validateAfterTransfer(from, to, firstTokenId + i);
            unchecked {
                ++i;
            }
        }
    }
}

/**
 * @title ERC721CInitializable
 * @author Limit Break, Inc.
 * @notice Initializable implementation of ERC721C to allow for EIP-1167 proxy clones.
 */
abstract contract ERC721CInitializable is ERC721OpenZeppelinInitializable, CreatorTokenBase {
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(ICreatorToken).interfaceId || super.supportsInterface(interfaceId);
    }

    /// @dev Ties the open-zeppelin _beforeTokenTransfer hook to more granular transfer validation logic
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 firstTokenId,
        uint256 batchSize) internal virtual override {
        for (uint256 i = 0; i < batchSize;) {
            _validateBeforeTransfer(from, to, firstTokenId + i);
            unchecked {
                ++i;
            }
        }
    }

    /// @dev Ties the open-zeppelin _afterTokenTransfer hook to more granular transfer validation logic
    function _afterTokenTransfer(
        address from,
        address to,
        uint256 firstTokenId,
        uint256 batchSize) internal virtual override {
        for (uint256 i = 0; i < batchSize;) {
            _validateAfterTransfer(from, to, firstTokenId + i);
            unchecked {
                ++i;
            }
        }
    }
}
// File: @openzeppelin/contracts/interfaces/IERC2981.sol


// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/IERC2981.sol)

pragma solidity ^0.8.20;


/**
 * @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.
 */
interface IERC2981 is IERC165 {
    /**
     * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of
     * exchange. The royalty amount is denominated and should be paid in that same unit of exchange.
     */
    function royaltyInfo(
        uint256 tokenId,
        uint256 salePrice
    ) external view returns (address receiver, uint256 royaltyAmount);
}

// File: @openzeppelin/contracts/token/common/ERC2981.sol


// OpenZeppelin Contracts (last updated v5.0.0) (token/common/ERC2981.sol)

pragma solidity ^0.8.20;



/**
 * @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.
 */
abstract contract ERC2981 is IERC2981, ERC165 {
    struct RoyaltyInfo {
        address receiver;
        uint96 royaltyFraction;
    }

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

    /**
     * @dev The default royalty set is invalid (eg. (numerator / denominator) >= 1).
     */
    error ERC2981InvalidDefaultRoyalty(uint256 numerator, uint256 denominator);

    /**
     * @dev The default royalty receiver is invalid.
     */
    error ERC2981InvalidDefaultRoyaltyReceiver(address receiver);

    /**
     * @dev The royalty set for an specific `tokenId` is invalid (eg. (numerator / denominator) >= 1).
     */
    error ERC2981InvalidTokenRoyalty(uint256 tokenId, uint256 numerator, uint256 denominator);

    /**
     * @dev The royalty receiver for `tokenId` is invalid.
     */
    error ERC2981InvalidTokenRoyaltyReceiver(uint256 tokenId, address receiver);

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

    /**
     * @inheritdoc IERC2981
     */
    function royaltyInfo(uint256 tokenId, uint256 salePrice) public view virtual 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 {
        uint256 denominator = _feeDenominator();
        if (feeNumerator > denominator) {
            // Royalty fee will exceed the sale price
            revert ERC2981InvalidDefaultRoyalty(feeNumerator, denominator);
        }
        if (receiver == address(0)) {
            revert ERC2981InvalidDefaultRoyaltyReceiver(address(0));
        }

        _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:
     *
     * - `receiver` cannot be the zero address.
     * - `feeNumerator` cannot be greater than the fee denominator.
     */
    function _setTokenRoyalty(uint256 tokenId, address receiver, uint96 feeNumerator) internal virtual {
        uint256 denominator = _feeDenominator();
        if (feeNumerator > denominator) {
            // Royalty fee will exceed the sale price
            revert ERC2981InvalidTokenRoyalty(tokenId, feeNumerator, denominator);
        }
        if (receiver == address(0)) {
            revert ERC2981InvalidTokenRoyaltyReceiver(tokenId, address(0));
        }

        _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: basicRoyaltyNft/programmable-royalties/BasicRoyalties.sol


pragma solidity ^0.8.4;


/**
 * @title BasicRoyaltiesBase
 * @author Limit Break, Inc.
 * @dev Base functionality of an NFT mix-in contract implementing the most basic form of programmable royalties.
 */
abstract contract BasicRoyaltiesBase is ERC2981 {

    event DefaultRoyaltySet(address indexed receiver, uint96 feeNumerator);
    event TokenRoyaltySet(uint256 indexed tokenId, address indexed receiver, uint96 feeNumerator);

    function _setDefaultRoyalty(address receiver, uint96 feeNumerator) internal virtual override {
        super._setDefaultRoyalty(receiver, feeNumerator);
        emit DefaultRoyaltySet(receiver, feeNumerator);
    }

    function _setTokenRoyalty(uint256 tokenId, address receiver, uint96 feeNumerator) internal virtual override {
        super._setTokenRoyalty(tokenId, receiver, feeNumerator);
        emit TokenRoyaltySet(tokenId, receiver, feeNumerator);
    }
}

/**
 * @title BasicRoyalties
 * @author Limit Break, Inc.
 * @notice Constructable BasicRoyalties Contract implementation.
 */
abstract contract BasicRoyalties is BasicRoyaltiesBase {
    constructor(address receiver, uint96 feeNumerator) {
        _setDefaultRoyalty(receiver, feeNumerator);
    }
}

/**
 * @title BasicRoyaltiesInitializable
 * @author Limit Break, Inc.
 * @notice Initializable BasicRoyalties Contract implementation to allow for EIP-1167 clones. 
 */
abstract contract BasicRoyaltiesInitializable is BasicRoyaltiesBase {}


pragma solidity ^0.8.20;

contract SMOK3 is OwnableBasic, Pausable,ERC721C, BasicRoyalties {
    uint256 public whitelistMintFee = 0.07 ether;
    uint256 public publicMintFee = 0.08 ether;
    uint256 public totalNFTs = 800;
    uint256 public tokenIdCounter;
    uint96 public royaltyFeeNumerator;
    uint256 public whitelistMintSTime;
    uint256 public whitelistMintETime;
    uint256 public publicMintSTime;
    uint256 public publicMintETime;
    uint256 private _totalSupply;
    bool public isTradingEnabled = false;
address public royaltyReceiver;
    uint256 public presaleNftsCount;

    string private baseUriExtended;

    mapping(address => uint256) public publicMinted;

    struct PresaleMint {
        uint256 nftsAllocated;
        uint256 nftsMinted;
    }
    struct WhitelistMint {
        uint256 nftsAllocated;
        uint256 nftsMinted;
    }
    mapping(address => PresaleMint) public PresaleMintInfo;
    mapping(address => WhitelistMint) public WhitelistMintInfo;

    event whitelistMint(address, uint256);

    constructor(
        address receiver,
        string memory name,
        string memory symbol,
        address owner,
        uint96 feeNumerator
    )
        ERC721OpenZeppelin(name, symbol)
        BasicRoyalties(receiver, feeNumerator)
        Ownable(owner)
    {
        royaltyReceiver = receiver;
        royaltyFeeNumerator = feeNumerator;
    }

    function supportsInterface(bytes4 interfaceId)
        public
        view
        virtual
        override(ERC721C, ERC2981)
        returns (bool)
    {
        return super.supportsInterface(interfaceId);
    }

    function claimPresaleNft() external whenNotPaused{
        uint256 mintableNFTs = PresaleMintInfo[msg.sender].nftsAllocated - PresaleMintInfo[msg.sender].nftsMinted;
        if(mintableNFTs == 0) {
            revert("zero claimable");
        }
        if (tokenIdCounter + mintableNFTs > totalNFTs) {
            revert("mintable NFTs exceeds available nfts");
        }

        for(uint256 indx; indx < mintableNFTs; ) {
            tokenIdCounter++;
            _mint(msg.sender, tokenIdCounter);
            unchecked {
                indx++;
                _totalSupply++;
            }
        }
        PresaleMintInfo[msg.sender].nftsMinted += mintableNFTs;
    }

    function mintWhitelistNFT(uint256 quantity) external payable {
        if (tokenIdCounter + quantity > totalNFTs - presaleNftsCount) {
            revert("quantity exceeds available nfts");
        }
        if (
            block.timestamp < whitelistMintSTime ||
            block.timestamp > whitelistMintETime
        ) {
            revert("ws is not active");
        }
        if (
            WhitelistMintInfo[msg.sender].nftsMinted + quantity >
            WhitelistMintInfo[msg.sender].nftsAllocated
        ) {
            revert("quantity exceeds allocated nfts");
        }
        uint256 fee = whitelistMintFee * quantity;
        if (msg.value != fee) {
            revert("Insufficient eth sent");
        }

        for (uint256 i; i < quantity; ) {
            tokenIdCounter++;
            _mint(msg.sender, tokenIdCounter);
            unchecked {
                i++;
                _totalSupply++;
            }
        }
        WhitelistMintInfo[msg.sender].nftsMinted += quantity;
        emit whitelistMint(msg.sender, quantity);
    }

    function mintPublicNFT(uint256 quantity) external payable {
        if (tokenIdCounter + quantity > totalNFTs - presaleNftsCount) {
            revert("quantity exceeds available nfts");
        }
        if (
            block.timestamp < publicMintSTime ||
            block.timestamp > publicMintETime
        ) {
            revert("ps is not active");
        }
        if (msg.value != publicMintFee * quantity) {
            revert("Insufficient eth sent");
        }
        publicMinted[msg.sender] += quantity;

        for (uint256 i; i < quantity; ) {
            tokenIdCounter++;
            _mint(msg.sender, tokenIdCounter);
            unchecked {
                i++;
            }
        }
        _totalSupply += quantity;
    }

    function addWhitelistUsers(
        address[] calldata users,
        uint256[] calldata amount
    ) external onlyOwner {
        if (users.length != amount.length) {
            revert("arrays musrt be of same length");
        }
        for (uint256 i; i < users.length; ) {
            WhitelistMintInfo[users[i]].nftsAllocated += amount[i];
            WhitelistMintInfo[users[i]].nftsMinted = WhitelistMintInfo[users[i]]
                .nftsMinted;
            unchecked {
                i++;
            }
        }
    }

    function addPresaleUsers(address[] memory users, uint256[] memory amount)
        external
        onlyOwner
    {
        if (users.length != amount.length) {
            revert("array length mismatch");
        }
        for (uint256 i; i < users.length; ) {
            PresaleMintInfo[users[i]].nftsAllocated += amount[i];
            presaleNftsCount +=amount[i];
            unchecked {
                i++;
            }
        }
    }

    function isWhitelisted(address addr) external view returns (bool) {
        return WhitelistMintInfo[addr].nftsAllocated > 0 ? true : false;
    }

    function setWhitelistSaleTimestamps(uint256 sTime, uint256 eTime)
        external
        onlyOwner
     {
        if (sTime < block.timestamp || eTime < sTime) {
            revert("invalid timestamp");
        }
        whitelistMintSTime = sTime;
        whitelistMintETime = eTime;
    }

    function setPublicSaleTimestamps(uint256 sTime, uint256 eTime)
        external
        onlyOwner
    {
        if (sTime < block.timestamp || eTime < sTime) {
            revert("invalid timestamp");
        }
        publicMintSTime = sTime;
        publicMintETime = eTime;
    }

    function setWhitelistMintFee(uint256 fee) external onlyOwner {
        if (fee == 0) {
            revert("zero fee");
        }
        whitelistMintFee = fee;
    }

    function setPublicMintFee(uint256 fee) external onlyOwner {
        if (fee == 0) {
            revert("zero fee");
        }
        publicMintFee = fee;
    }

    function updateTradingStatus(bool value) external onlyOwner {
        isTradingEnabled = value;
    }

    function setRoyaltyInfo(uint96 feeNumerator,address receiver) external onlyOwner { 
        royaltyReceiver = receiver;
        royaltyFeeNumerator = feeNumerator;
        _setDefaultRoyalty(royaltyReceiver, royaltyFeeNumerator);
    }
    function pause() external  whenNotPaused onlyOwner{
        _pause();
        emit Paused(msg.sender);
    }

    function unpause() external  whenPaused onlyOwner {
        _unpause();
        emit Unpaused(msg.sender);
    }
    function setBaseUri(string memory _baseUri) external onlyOwner {
        baseUriExtended = _baseUri;
    }

    function totalSupply() external view returns (uint256) {
        return _totalSupply;
    }

    function getRemainingMints() external view returns (uint256) {
        return totalNFTs - tokenIdCounter;
    }

    function getWhitelistMintFee() external view returns (uint256) {
        return whitelistMintFee;
    }

    function getPublicMintFee() external view returns (uint256) {
        return publicMintFee;
    }

    function getTotalNFTs() external view returns (uint256) {
        return totalNFTs;
    }

    function getRoyaltyFeeNumerator() external view returns (uint96) {
        return royaltyFeeNumerator;
    }

    function getWhitelistMintStartTime() external view returns (uint256) {
        return whitelistMintSTime;
    }

    function getWhitelistMintEndTime() external view returns (uint256) {
        return whitelistMintETime;
    }

    function getPublicMintStartTime() external view returns (uint256) {
        return publicMintSTime;
    }

    function getPublicMintEndTime() external view returns (uint256) {
        return publicMintETime;
    }

    function getTradingStatus() external view returns (bool) {
        return isTradingEnabled;
    }

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

    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 firstTokenId,
        uint256 batchSize
    ) internal virtual override {
        if (from != address(0) && !isTradingEnabled) {
            revert("transfer disabled");
        }

        for (uint256 i = 0; i < batchSize; ) {
            _validateBeforeTransfer(from, to, firstTokenId + i);
            unchecked {
                ++i;
            }
        }
    }

    function withdrawETH(address account) external onlyOwner {
        if (account == address(0)) {
            revert("zero withdrawl address");
        }
        uint256 value = address(this).balance;
        (bool success, ) = account.call{value: value}("");
        require(success, "Transfer failed");
    }

    function burn(uint256 tokenId) public {
        if (!_isApprovedOrOwner(_msgSender(), tokenId)) {
            revert("ERC721: caller is not owner nor approved");
        }
        _burn(tokenId);
        _totalSupply -= 1;
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint96","name":"feeNumerator","type":"uint96"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"CreatorTokenBase__InvalidTransferValidatorContract","type":"error"},{"inputs":[],"name":"CreatorTokenBase__SetTransferValidatorFirst","type":"error"},{"inputs":[{"internalType":"uint256","name":"numerator","type":"uint256"},{"internalType":"uint256","name":"denominator","type":"uint256"}],"name":"ERC2981InvalidDefaultRoyalty","type":"error"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"}],"name":"ERC2981InvalidDefaultRoyaltyReceiver","type":"error"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"numerator","type":"uint256"},{"internalType":"uint256","name":"denominator","type":"uint256"}],"name":"ERC2981InvalidTokenRoyalty","type":"error"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"address","name":"receiver","type":"address"}],"name":"ERC2981InvalidTokenRoyaltyReceiver","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"inputs":[],"name":"ShouldNotMintToBurnAddress","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"receiver","type":"address"},{"indexed":false,"internalType":"uint96","name":"feeNumerator","type":"uint96"}],"name":"DefaultRoyaltySet","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":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"receiver","type":"address"},{"indexed":false,"internalType":"uint96","name":"feeNumerator","type":"uint96"}],"name":"TokenRoyaltySet","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"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"oldValidator","type":"address"},{"indexed":false,"internalType":"address","name":"newValidator","type":"address"}],"name":"TransferValidatorUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"","type":"address"},{"indexed":false,"internalType":"uint256","name":"","type":"uint256"}],"name":"whitelistMint","type":"event"},{"inputs":[],"name":"DEFAULT_OPERATOR_WHITELIST_ID","outputs":[{"internalType":"uint120","name":"","type":"uint120"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEFAULT_TRANSFER_SECURITY_LEVEL","outputs":[{"internalType":"enum TransferSecurityLevels","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEFAULT_TRANSFER_VALIDATOR","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"PresaleMintInfo","outputs":[{"internalType":"uint256","name":"nftsAllocated","type":"uint256"},{"internalType":"uint256","name":"nftsMinted","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"WhitelistMintInfo","outputs":[{"internalType":"uint256","name":"nftsAllocated","type":"uint256"},{"internalType":"uint256","name":"nftsMinted","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"users","type":"address[]"},{"internalType":"uint256[]","name":"amount","type":"uint256[]"}],"name":"addPresaleUsers","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"users","type":"address[]"},{"internalType":"uint256[]","name":"amount","type":"uint256[]"}],"name":"addWhitelistUsers","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claimPresaleNft","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getPermittedContractReceivers","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getPublicMintEndTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getPublicMintFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getPublicMintStartTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getRemainingMints","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getRoyaltyFeeNumerator","outputs":[{"internalType":"uint96","name":"","type":"uint96"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getSecurityPolicy","outputs":[{"components":[{"internalType":"enum TransferSecurityLevels","name":"transferSecurityLevel","type":"uint8"},{"internalType":"uint120","name":"operatorWhitelistId","type":"uint120"},{"internalType":"uint120","name":"permittedContractReceiversId","type":"uint120"}],"internalType":"struct CollectionSecurityPolicy","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTotalNFTs","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTradingStatus","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTransferValidator","outputs":[{"internalType":"contract ICreatorTokenTransferValidator","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getWhitelistMintEndTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getWhitelistMintFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getWhitelistMintStartTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getWhitelistedOperators","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"}],"name":"isContractReceiverPermitted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"isOperatorWhitelisted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isTradingEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"caller","type":"address"},{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"}],"name":"isTransferAllowed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"isWhitelisted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"mintPublicNFT","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"mintWhitelistNFT","outputs":[],"stateMutability":"payable","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":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"presaleNftsCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicMintETime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicMintFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicMintSTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"publicMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"royaltyFeeNumerator","outputs":[{"internalType":"uint96","name":"","type":"uint96"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"royaltyReceiver","outputs":[{"internalType":"address","name":"","type":"address"}],"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":"string","name":"_baseUri","type":"string"}],"name":"setBaseUri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"fee","type":"uint256"}],"name":"setPublicMintFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"sTime","type":"uint256"},{"internalType":"uint256","name":"eTime","type":"uint256"}],"name":"setPublicSaleTimestamps","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint96","name":"feeNumerator","type":"uint96"},{"internalType":"address","name":"receiver","type":"address"}],"name":"setRoyaltyInfo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"enum TransferSecurityLevels","name":"level","type":"uint8"},{"internalType":"uint120","name":"operatorWhitelistId","type":"uint120"},{"internalType":"uint120","name":"permittedContractReceiversAllowlistId","type":"uint120"}],"name":"setToCustomSecurityPolicy","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"validator","type":"address"},{"internalType":"enum TransferSecurityLevels","name":"level","type":"uint8"},{"internalType":"uint120","name":"operatorWhitelistId","type":"uint120"},{"internalType":"uint120","name":"permittedContractReceiversAllowlistId","type":"uint120"}],"name":"setToCustomValidatorAndSecurityPolicy","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"setToDefaultSecurityPolicy","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"transferValidator_","type":"address"}],"name":"setTransferValidator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"fee","type":"uint256"}],"name":"setWhitelistMintFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"sTime","type":"uint256"},{"internalType":"uint256","name":"eTime","type":"uint256"}],"name":"setWhitelistSaleTimestamps","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":[],"name":"tokenIdCounter","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalNFTs","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":"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":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"value","type":"bool"}],"name":"updateTradingStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"whitelistMintETime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"whitelistMintFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"whitelistMintSTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"withdrawETH","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405266f8b0a10e470000600c5567011c37937e080000600d55610320600e556016805460ff191690553480156200003857600080fd5b50604051620046f1380380620046f18339810160408190526200005b91620003b4565b848183868660405180602001604052806000815250604051806020016040528060008152508160009081620000919190620004f5565b506001620000a08282620004f5565b505050620000b582826200016060201b60201c565b50506001600160a01b038116620000e757604051631e4fbdf760e01b8152600060048201526024015b60405180910390fd5b620000f28162000182565b506008805460ff60a01b191690556200010c8282620001d4565b5050601680546001600160a01b0390961661010002610100600160a81b0319909616959095179094555050601080546001600160601b039093166001600160601b03199093169290921790915550620005c1565b60066200016e8382620004f5565b5060076200017d8282620004f5565b505050565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b620001e082826200022b565b6040516001600160601b03821681526001600160a01b038316907f8a8bae378cb731c5c40b632330c6836c2f916f48edb967699c86736f9a6a76ef9060200160405180910390a25050565b6127106001600160601b0382168110156200026c57604051636f483d0960e01b81526001600160601b038316600482015260248101829052604401620000de565b6001600160a01b0383166200029857604051635b6cc80560e11b815260006004820152602401620000de565b50604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600a55565b80516001600160a01b0381168114620002ea57600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126200031757600080fd5b81516001600160401b0380821115620003345762000334620002ef565b604051601f8301601f19908116603f011681019082821181831017156200035f576200035f620002ef565b816040528381526020925086838588010111156200037c57600080fd5b600091505b83821015620003a0578582018301518183018401529082019062000381565b600093810190920192909252949350505050565b600080600080600060a08688031215620003cd57600080fd5b620003d886620002d2565b60208701519095506001600160401b0380821115620003f657600080fd5b6200040489838a0162000305565b955060408801519150808211156200041b57600080fd5b506200042a8882890162000305565b9350506200043b60608701620002d2565b60808701519092506001600160601b03811681146200045957600080fd5b809150509295509295909350565b600181811c908216806200047c57607f821691505b6020821081036200049d57634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200017d57600081815260208120601f850160051c81016020861015620004cc5750805b601f850160051c820191505b81811015620004ed57828155600101620004d8565b505050505050565b81516001600160401b03811115620005115762000511620002ef565b620005298162000522845462000467565b84620004a3565b602080601f831160018114620005615760008415620005485750858301515b600019600386901b1c1916600185901b178555620004ed565b600085815260208120601f198616915b82811015620005925788860151825594840194600190910190840162000571565b5085821015620005b15787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b61412080620005d16000396000f3fe60806040526004361061043c5760003560e01c8063690d832011610234578063a8744fc91161012e578063d007af5c116100b6578063f2fde38b1161007a578063f2fde38b14610cba578063f7fa323c14610cda578063fc01b0a214610cfa578063fd02c23914610d0d578063fd762d9214610d2257600080fd5b8063d007af5c14610c25578063e2fe1f8914610c3a578063e68d2b2a14610c5a578063e985e9c514610c7a578063ed621e9a14610c9a57600080fd5b8063be537f43116100fd578063be537f4314610b7a578063c75dc2b214610b9c578063c87b56dd14610bb1578063cc30647f14610bd1578063ccf1f9d014610bf157600080fd5b8063a8744fc914610b04578063a9fc664e14610b1a578063b88d4fde14610b3a578063ba76de3e14610b5a57600080fd5b80638da5cb5b116101bc5780639d645a44116101805780639d645a4414610a675780639fbc871314610a87578063a0bcfc7f14610aac578063a1305aa514610acc578063a22cb46514610ae457600080fd5b80638da5cb5b146109f257806395d89b4114610a105780639738005014610a2557806397cd244d14610a3b57806398bdf6f514610a5157600080fd5b806381ddcc1f1161020357806381ddcc1f146109735780638456cb5914610993578063849bd1e8146109a857806385f1fc6d146109bd578063870000e1146109d257600080fd5b8063690d8320146109095780636c3b86991461092957806370a082311461093e578063715018a61461095e57600080fd5b80632e8da82911610345578063495c8bf9116102cd5780635d4c1d46116102915780635d4c1d46146108745780635d8a0be6146108a157806361347162146108b65780636352211e146108d657806364255891146108f657600080fd5b8063495c8bf9146107d657806351ffdb82146107f8578063544f7fc61461082a5780635b5fbe05146108405780635c975abb1461085557600080fd5b80633f4ba83a116103145780633f4ba83a1461075757806342842e0e1461076c57806342966c681461078c578063464104b4146107ac5780634929597c146107c157600080fd5b80632e8da829146106e257806330bdb35114610702578063380dba40146107175780633af32abf1461073757600080fd5b80630d0e96da116103c85780631b25b077116103975780631b25b0771461062b5780631c33b3281461064b5780631e495fd31461066d57806323b872dd146106835780632a55205a146106a357600080fd5b80630d0e96da146105bd5780631015805b146105d3578063145f3c271461060057806318160ddd1461061657600080fd5b806306fdde031161040f57806306fdde03146104f2578063081812fc14610514578063094dbd3414610534578063095ea7b31461057d578063098144d41461059f57600080fd5b8063014635461461044157806301ffc9a71461048457806304eba7ff146104b4578063064a59d0146104d8575b600080fd5b34801561044d57600080fd5b5061046771721c310194ccfc01e523fc93c9cccfa2a0ac81565b6040516001600160a01b0390911681526020015b60405180910390f35b34801561049057600080fd5b506104a461049f3660046134e7565b610d42565b604051901515815260200161047b565b3480156104c057600080fd5b506104ca60115481565b60405190815260200161047b565b3480156104e457600080fd5b506016546104a49060ff1681565b3480156104fe57600080fd5b50610507610d53565b60405161047b9190613554565b34801561052057600080fd5b5061046761052f366004613567565b610de5565b34801561054057600080fd5b5061056861054f366004613595565b601a602052600090815260409020805460019091015482565b6040805192835260208301919091520161047b565b34801561058957600080fd5b5061059d6105983660046135b2565b610e0c565b005b3480156105ab57600080fd5b506009546001600160a01b0316610467565b3480156105c957600080fd5b506104ca600e5481565b3480156105df57600080fd5b506104ca6105ee366004613595565b60196020526000908152604090205481565b34801561060c57600080fd5b506104ca600d5481565b34801561062257600080fd5b506015546104ca565b34801561063757600080fd5b506104a46106463660046135de565b610f26565b34801561065757600080fd5b50610660600181565b60405161047b919061364b565b34801561067957600080fd5b506104ca60145481565b34801561068f57600080fd5b5061059d61069e366004613659565b610fbf565b3480156106af57600080fd5b506106c36106be36600461369a565b610ff1565b604080516001600160a01b03909316835260208301919091520161047b565b3480156106ee57600080fd5b506104a46106fd366004613595565b61109f565b34801561070e57600080fd5b50600e546104ca565b34801561072357600080fd5b5061059d610732366004613792565b6111ab565b34801561074357600080fd5b506104a4610752366004613595565b6112b1565b34801561076357600080fd5b5061059d6112dd565b34801561077857600080fd5b5061059d610787366004613659565b61132b565b34801561079857600080fd5b5061059d6107a7366004613567565b611346565b3480156107b857600080fd5b506012546104ca565b3480156107cd57600080fd5b506011546104ca565b3480156107e257600080fd5b506107eb6113d0565b60405161047b9190613854565b34801561080457600080fd5b506010546001600160601b03165b6040516001600160601b03909116815260200161047b565b34801561083657600080fd5b506104ca600c5481565b34801561084c57600080fd5b5061059d6114e1565b34801561086157600080fd5b50600854600160a01b900460ff166104a4565b34801561088057600080fd5b50610889600181565b6040516001600160781b03909116815260200161047b565b3480156108ad57600080fd5b50600c546104ca565b3480156108c257600080fd5b5061059d6108d13660046138c3565b611618565b3480156108e257600080fd5b506104676108f1366004613567565b611783565b61059d610904366004613567565b6117e3565b34801561091557600080fd5b5061059d610924366004613595565b611960565b34801561093557600080fd5b5061059d611a4c565b34801561094a57600080fd5b506104ca610959366004613595565b611b45565b34801561096a57600080fd5b5061059d611bcb565b34801561097f57600080fd5b50601054610812906001600160601b031681565b34801561099f57600080fd5b5061059d611bdf565b3480156109b457600080fd5b506013546104ca565b3480156109c957600080fd5b50600d546104ca565b3480156109de57600080fd5b5061059d6109ed366004613911565b611c27565b3480156109fe57600080fd5b506008546001600160a01b0316610467565b348015610a1c57600080fd5b50610507611c42565b348015610a3157600080fd5b506104ca60125481565b348015610a4757600080fd5b506104ca60135481565b348015610a5d57600080fd5b506104ca600f5481565b348015610a7357600080fd5b506104a4610a82366004613595565b611c51565b348015610a9357600080fd5b506016546104679061010090046001600160a01b031681565b348015610ab857600080fd5b5061059d610ac7366004613986565b611d19565b348015610ad857600080fd5b5060165460ff166104a4565b348015610af057600080fd5b5061059d610aff3660046139cf565b611d31565b348015610b1057600080fd5b506104ca60175481565b348015610b2657600080fd5b5061059d610b35366004613595565b611d3c565b348015610b4657600080fd5b5061059d610b55366004613a08565b611e5d565b348015610b6657600080fd5b5061059d610b7536600461369a565b611e8f565b348015610b8657600080fd5b50610b8f611ef0565b60405161047b9190613a88565b348015610ba857600080fd5b506014546104ca565b348015610bbd57600080fd5b50610507610bcc366004613567565b611fab565b348015610bdd57600080fd5b5061059d610bec366004613567565b612011565b348015610bfd57600080fd5b50610568610c0c366004613595565b601b602052600090815260409020805460019091015482565b348015610c3157600080fd5b506107eb612059565b348015610c4657600080fd5b5061059d610c55366004613567565b612112565b348015610c6657600080fd5b5061059d610c75366004613ac4565b61215a565b348015610c8657600080fd5b506104a4610c95366004613afe565b6121bd565b348015610ca657600080fd5b5061059d610cb5366004613b61565b6121eb565b348015610cc657600080fd5b5061059d610cd5366004613595565b612372565b348015610ce657600080fd5b5061059d610cf536600461369a565b6123b0565b61059d610d08366004613567565b612411565b348015610d1957600080fd5b506104ca61263a565b348015610d2e57600080fd5b5061059d610d3d366004613bcd565b61264c565b6000610d4d8261274b565b92915050565b606060068054610d6290613c29565b80601f0160208091040260200160405190810160405280929190818152602001828054610d8e90613c29565b8015610ddb5780601f10610db057610100808354040283529160200191610ddb565b820191906000526020600020905b815481529060010190602001808311610dbe57829003601f168201915b5050505050905090565b6000610df082612770565b506000908152600460205260409020546001600160a01b031690565b6000610e1782611783565b9050806001600160a01b0316836001600160a01b031603610e895760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084015b60405180910390fd5b336001600160a01b0382161480610ea55750610ea581336121bd565b610f175760405162461bcd60e51b815260206004820152603d60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c0000006064820152608401610e80565b610f2183836127cf565b505050565b6009546000906001600160a01b031615610fb45760095460405163050bf71960e31b81526001600160a01b038681166004830152858116602483015284811660448301529091169063285fb8c89060640160006040518083038186803b158015610f8f57600080fd5b505afa925050508015610fa0575060015b610fac57506000610fb8565b506001610fb8565b5060015b9392505050565b610fca335b8261283d565b610fe65760405162461bcd60e51b8152600401610e8090613c63565b610f2183838361289c565b6000828152600b602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b0316928201929092528291611066575060408051808201909152600a546001600160a01b0381168252600160a01b90046001600160601b031660208201525b602081015160009061271090611085906001600160601b031687613cc6565b61108f9190613cdd565b91519350909150505b9250929050565b6009546000906001600160a01b0316156111a357600954604051635caaa2a960e11b81523060048201526001600160a01b039091169063d72dde5e90829063b955455290602401606060405180830381865afa158015611103573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111279190613cff565b602001516040516001600160e01b031960e084901b1681526001600160781b0390911660048201526001600160a01b03851660248201526044015b602060405180830381865afa15801561117f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d4d9190613d71565b506000919050565b6111b3612a15565b80518251146111fc5760405162461bcd60e51b81526020600482015260156024820152740c2e4e4c2f240d8cadccee8d040dad2e6dac2e8c6d605b1b6044820152606401610e80565b60005b8251811015610f215781818151811061121a5761121a613d8e565b6020026020010151601a600085848151811061123857611238613d8e565b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060000160008282546112729190613da4565b9250508190555081818151811061128b5761128b613d8e565b6020026020010151601760008282546112a49190613da4565b90915550506001016111ff565b6001600160a01b0381166000908152601b60205260408120546112d5576000610d4d565b600192915050565b6112e5612a42565b6112ed612a15565b6112f5612a92565b6040513381527f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa906020015b60405180910390a1565b610f2183838360405180602001604052806000815250611e5d565b61134f33610fc4565b6113ac5760405162461bcd60e51b815260206004820152602860248201527f4552433732313a2063616c6c6572206973206e6f74206f776e6572206e6f7220604482015267185c1c1c9bdd995960c21b6064820152608401610e80565b6113b581612ae2565b6001601560008282546113c89190613db7565b909155505050565b6009546060906001600160a01b0316156114ce57600954604051635caaa2a960e11b81523060048201526001600160a01b0390911690633fe5df9990829063b955455290602401606060405180830381865afa158015611434573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114589190613cff565b602001516040516001600160e01b031960e084901b1681526001600160781b0390911660048201526024015b600060405180830381865afa1580156114a1573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526114c99190810190613dca565b905090565b5060408051600081526020810190915290565b6114e9612b8f565b336000908152601a60205260408120600181015490546115099190613db7565b90508060000361154c5760405162461bcd60e51b815260206004820152600e60248201526d7a65726f20636c61696d61626c6560901b6044820152606401610e80565b600e5481600f5461155d9190613da4565b11156115b75760405162461bcd60e51b8152602060048201526024808201527f6d696e7461626c65204e465473206578636565647320617661696c61626c65206044820152636e66747360e01b6064820152608401610e80565b60005b818110156115f557600f80549060006115d283613e64565b91905055506115e333600f54612bdc565b601580546001908101909155016115ba565b50336000908152601a6020526040812060010180548392906113c8908490613da4565b611620612d7f565b60006116346009546001600160a01b031690565b90506001600160a01b03811661165d57604051631cffe3dd60e11b815260040160405180910390fd5b604051630368065360e61b81526001600160a01b0382169063da0194c09061168b9030908890600401613e7d565b600060405180830381600087803b1580156116a557600080fd5b505af11580156116b9573d6000803e3d6000fd5b5050604051631182550160e11b81526001600160a01b0384169250632304aa0291506116eb9030908790600401613e9a565b600060405180830381600087803b15801561170557600080fd5b505af1158015611719573d6000803e3d6000fd5b505060405163235d10c560e21b81526001600160a01b0384169250638d744314915061174b9030908690600401613e9a565b600060405180830381600087803b15801561176557600080fd5b505af1158015611779573d6000803e3d6000fd5b5050505050505050565b6000818152600260205260408120546001600160a01b031680610d4d5760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b6044820152606401610e80565b601754600e546117f39190613db7565b81600f546118019190613da4565b111561184f5760405162461bcd60e51b815260206004820152601f60248201527f7175616e74697479206578636565647320617661696c61626c65206e667473006044820152606401610e80565b601354421080611860575060145442115b156118a05760405162461bcd60e51b815260206004820152601060248201526f7073206973206e6f742061637469766560801b6044820152606401610e80565b80600d546118ae9190613cc6565b34146118f45760405162461bcd60e51b8152602060048201526015602482015274125b9cdd59999a58da595b9d08195d1a081cd95b9d605a1b6044820152606401610e80565b3360009081526019602052604081208054839290611913908490613da4565b90915550600090505b8181101561194d57600f805490600061193483613e64565b919050555061194533600f54612bdc565b60010161191c565b5080601560008282546113c89190613da4565b611968612a15565b6001600160a01b0381166119b75760405162461bcd60e51b81526020600482015260166024820152757a65726f2077697468647261776c206164647265737360501b6044820152606401610e80565b60405147906000906001600160a01b0384169083908381818185875af1925050503d8060008114611a04576040519150601f19603f3d011682016040523d82523d6000602084013e611a09565b606091505b5050905080610f215760405162461bcd60e51b815260206004820152600f60248201526e151c985b9cd9995c8819985a5b1959608a1b6044820152606401610e80565b611a54612d7f565b611a6f71721c310194ccfc01e523fc93c9cccfa2a0ac611d3c565b604051630368065360e61b815271721c310194ccfc01e523fc93c9cccfa2a0ac9063da0194c090611aa7903090600190600401613e7d565b600060405180830381600087803b158015611ac157600080fd5b505af1158015611ad5573d6000803e3d6000fd5b5050604051631182550160e11b815271721c310194ccfc01e523fc93c9cccfa2a0ac9250632304aa029150611b11903090600190600401613e9a565b600060405180830381600087803b158015611b2b57600080fd5b505af1158015611b3f573d6000803e3d6000fd5b50505050565b60006001600160a01b038216611baf5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b6064820152608401610e80565b506001600160a01b031660009081526003602052604090205490565b611bd3612a15565b611bdd6000612d87565b565b611be7612b8f565b611bef612a15565b611bf7612dd9565b6040513381527f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25890602001611321565b611c2f612a15565b6016805460ff1916911515919091179055565b606060078054610d6290613c29565b6009546000906001600160a01b0316156111a357600954604051635caaa2a960e11b81523060048201526001600160a01b0390911690639445f53090829063b955455290602401606060405180830381865afa158015611cb5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611cd99190613cff565b60409081015190516001600160e01b031960e084901b1681526001600160781b0390911660048201526001600160a01b0385166024820152604401611162565b611d21612a15565b6018611d2d8282613f0a565b5050565b611d2d338383612e1c565b611d44612d7f565b60006001600160a01b0382163b15611dbf576040516301ffc9a760e01b8152600060048201526001600160a01b038316906301ffc9a790602401602060405180830381865afa925050508015611db7575060408051601f3d908101601f19168201909252611db491810190613d71565b60015b15611dbf5790505b6001600160a01b03821615801590611dd5575080155b15611df3576040516332483afb60e01b815260040160405180910390fd5b600954604080516001600160a01b03928316815291841660208301527fcc5dc080ff977b3c3a211fa63ab74f90f658f5ba9d3236e92c8f59570f442aac910160405180910390a150600980546001600160a01b0319166001600160a01b0392909216919091179055565b611e67338361283d565b611e835760405162461bcd60e51b8152600401610e8090613c63565b611b3f84848484612eea565b611e97612a15565b42821080611ea457508181105b15611ee55760405162461bcd60e51b81526020600482015260116024820152700696e76616c69642074696d657374616d7607c1b6044820152606401610e80565b601391909155601455565b60408051606081018252600080825260208201819052918101919091526009546001600160a01b031615611f8a57600954604051635caaa2a960e11b81523060048201526001600160a01b039091169063b955455290602401606060405180830381865afa158015611f66573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114c99190613cff565b50604080516060810182526000808252602082018190529181019190915290565b6060611fb682612770565b6000611fc0612f1d565b90506000815111611fe05760405180602001604052806000815250610fb8565b80611fea84612f2c565b604051602001611ffb929190613fca565b6040516020818303038152906040529392505050565b612019612a15565b806000036120545760405162461bcd60e51b81526020600482015260086024820152677a65726f2066656560c01b6044820152606401610e80565b600c55565b6009546060906001600160a01b0316156114ce57600954604051635caaa2a960e11b81523060048201526001600160a01b03909116906317e94a6c90829063b955455290602401606060405180830381865afa1580156120bd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120e19190613cff565b60409081015190516001600160e01b031960e084901b1681526001600160781b039091166004820152602401611484565b61211a612a15565b806000036121555760405162461bcd60e51b81526020600482015260086024820152677a65726f2066656560c01b6044820152606401610e80565b600d55565b612162612a15565b60168054610100600160a81b0319166101006001600160a01b0384811682029290921792839055601080546bffffffffffffffffffffffff19166001600160601b038716908117909155611d2d939190910490911690612fbf565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b6121f3612a15565b8281146122425760405162461bcd60e51b815260206004820152601e60248201527f617272617973206d75737274206265206f662073616d65206c656e67746800006044820152606401610e80565b60005b8381101561236b5782828281811061225f5761225f613d8e565b90506020020135601b600087878581811061227c5761227c613d8e565b90506020020160208101906122919190613595565b6001600160a01b03166001600160a01b0316815260200190815260200160002060000160008282546122c39190613da4565b90915550601b905060008686848181106122df576122df613d8e565b90506020020160208101906122f49190613595565b6001600160a01b03166001600160a01b0316815260200190815260200160002060010154601b600087878581811061232e5761232e613d8e565b90506020020160208101906123439190613595565b6001600160a01b03168152602081019190915260400160002060019081019190915501612245565b5050505050565b61237a612a15565b6001600160a01b0381166123a457604051631e4fbdf760e01b815260006004820152602401610e80565b6123ad81612d87565b50565b6123b8612a15565b428210806123c557508181105b156124065760405162461bcd60e51b81526020600482015260116024820152700696e76616c69642074696d657374616d7607c1b6044820152606401610e80565b601191909155601255565b601754600e546124219190613db7565b81600f5461242f9190613da4565b111561247d5760405162461bcd60e51b815260206004820152601f60248201527f7175616e74697479206578636565647320617661696c61626c65206e667473006044820152606401610e80565b60115442108061248e575060125442115b156124ce5760405162461bcd60e51b815260206004820152601060248201526f7773206973206e6f742061637469766560801b6044820152606401610e80565b336000908152601b6020526040902080546001909101546124f0908390613da4565b111561253e5760405162461bcd60e51b815260206004820152601f60248201527f7175616e74697479206578636565647320616c6c6f6361746564206e667473006044820152606401610e80565b600081600c5461254e9190613cc6565b90508034146125975760405162461bcd60e51b8152602060048201526015602482015274125b9cdd59999a58da595b9d08195d1a081cd95b9d605a1b6044820152606401610e80565b60005b828110156125d557600f80549060006125b283613e64565b91905055506125c333600f54612bdc565b6015805460019081019091550161259a565b50336000908152601b6020526040812060010180548492906125f8908490613da4565b909155505060408051338152602081018490527f957993881fbce19c878da84690a5ea3d4c8a1b430a3ef0d18c17976a6dde9d0d910160405180910390a15050565b6000600f54600e546114c99190613db7565b612654612d7f565b61265d84611d3c565b604051630368065360e61b81526001600160a01b0385169063da0194c09061268b9030908790600401613e7d565b600060405180830381600087803b1580156126a557600080fd5b505af11580156126b9573d6000803e3d6000fd5b5050604051631182550160e11b81526001600160a01b0387169250632304aa0291506126eb9030908690600401613e9a565b600060405180830381600087803b15801561270557600080fd5b505af1158015612719573d6000803e3d6000fd5b505060405163235d10c560e21b81526001600160a01b0387169250638d744314915061174b9030908590600401613e9a565b60006001600160e01b0319821663152a902d60e11b1480610d4d5750610d4d82613014565b6000818152600260205260409020546001600160a01b03166123ad5760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b6044820152606401610e80565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061280482611783565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60008061284983611783565b9050806001600160a01b0316846001600160a01b03161480612870575061287081856121bd565b806128945750836001600160a01b031661288984610de5565b6001600160a01b0316145b949350505050565b826001600160a01b03166128af82611783565b6001600160a01b0316146128d55760405162461bcd60e51b8152600401610e8090613ff9565b6001600160a01b0382166129375760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610e80565b6129448383836001613039565b826001600160a01b031661295782611783565b6001600160a01b03161461297d5760405162461bcd60e51b8152600401610e8090613ff9565b600081815260046020908152604080832080546001600160a01b03199081169091556001600160a01b0387811680865260038552838620805460001901905590871680865283862080546001019055868652600290945282852080549092168417909155905184937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4610f2183838360016130bc565b6008546001600160a01b03163314611bdd5760405163118cdaa760e01b8152336004820152602401610e80565b600854600160a01b900460ff16611bdd5760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610e80565b612a9a612a42565b6008805460ff60a01b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b039091168152602001611321565b6000612aed82611783565b9050612afd816000846001613039565b612b0682611783565b600083815260046020908152604080832080546001600160a01b03199081169091556001600160a01b0385168085526003845282852080546000190190558785526002909352818420805490911690555192935084927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a4611d2d8160008460016130bc565b600854600160a01b900460ff1615611bdd5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610e80565b6001600160a01b038216612c325760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610e80565b6000818152600260205260409020546001600160a01b031615612c975760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610e80565b612ca5600083836001613039565b6000818152600260205260409020546001600160a01b031615612d0a5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610e80565b6001600160a01b038216600081815260036020908152604080832080546001019055848352600290915280822080546001600160a01b0319168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4611d2d6000838360016130bc565b611bdd612a15565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b612de1612b8f565b6008805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258612aca3390565b816001600160a01b0316836001600160a01b031603612e7d5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610e80565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b612ef584848461289c565b612f01848484846130e3565b611b3f5760405162461bcd60e51b8152600401610e809061403e565b606060188054610d6290613c29565b60606000612f39836131e4565b600101905060008167ffffffffffffffff811115612f5957612f596136bc565b6040519080825280601f01601f191660200182016040528015612f83576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a8504945084612f8d57509392505050565b612fc982826132bc565b6040516001600160601b03821681526001600160a01b038316907f8a8bae378cb731c5c40b632330c6836c2f916f48edb967699c86736f9a6a76ef9060200160405180910390a25050565b60006001600160e01b031982166310c8aba560e31b1480610d4d5750610d4d8261335f565b6001600160a01b03841615801590613054575060165460ff16155b156130955760405162461bcd60e51b81526020600482015260116024820152701d1c985b9cd9995c88191a5cd8589b1959607a1b6044820152606401610e80565b60005b8181101561236b576130b485856130af8487613da4565b6133af565b600101613098565b60005b8181101561236b576130db85856130d68487613da4565b613405565b6001016130bf565b60006001600160a01b0384163b156131d957604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290613127903390899088908890600401614090565b6020604051808303816000875af1925050508015613162575060408051601f3d908101601f1916820190925261315f918101906140cd565b60015b6131bf573d808015613190576040519150601f19603f3d011682016040523d82523d6000602084013e613195565b606091505b5080516000036131b75760405162461bcd60e51b8152600401610e809061403e565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612894565b506001949350505050565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b83106132235772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef8100000000831061324f576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc10000831061326d57662386f26fc10000830492506010015b6305f5e1008310613285576305f5e100830492506008015b612710831061329957612710830492506004015b606483106132ab576064830492506002015b600a8310610d4d5760010192915050565b6127106001600160601b0382168110156132fb57604051636f483d0960e01b81526001600160601b038316600482015260248101829052604401610e80565b6001600160a01b03831661332557604051635b6cc80560e11b815260006004820152602401610e80565b50604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600a55565b60006001600160e01b031982166380ac58cd60e01b148061339057506001600160e01b03198216635b5e139f60e01b145b80610d4d57506301ffc9a760e01b6001600160e01b0319831614610d4d565b6001600160a01b0383811615908316158180156133c95750805b156133e757604051635cbd944160e01b815260040160405180910390fd5b81156133f3575b61236b565b806133ee5761236b338686863461344c565b6001600160a01b03838116159083161581801561341f5750805b1561343d57604051635cbd944160e01b815260040160405180910390fd5b816133ee57806133ee5761236b565b6009546001600160a01b03161561236b5760095460405163050bf71960e31b81526001600160a01b038781166004830152868116602483015285811660448301529091169063285fb8c89060640160006040518083038186803b1580156134b257600080fd5b505afa1580156134c6573d6000803e3d6000fd5b505050505050505050565b6001600160e01b0319811681146123ad57600080fd5b6000602082840312156134f957600080fd5b8135610fb8816134d1565b60005b8381101561351f578181015183820152602001613507565b50506000910152565b60008151808452613540816020860160208601613504565b601f01601f19169290920160200192915050565b602081526000610fb86020830184613528565b60006020828403121561357957600080fd5b5035919050565b6001600160a01b03811681146123ad57600080fd5b6000602082840312156135a757600080fd5b8135610fb881613580565b600080604083850312156135c557600080fd5b82356135d081613580565b946020939093013593505050565b6000806000606084860312156135f357600080fd5b83356135fe81613580565b9250602084013561360e81613580565b9150604084013561361e81613580565b809150509250925092565b6007811061364757634e487b7160e01b600052602160045260246000fd5b9052565b60208101610d4d8284613629565b60008060006060848603121561366e57600080fd5b833561367981613580565b9250602084013561368981613580565b929592945050506040919091013590565b600080604083850312156136ad57600080fd5b50508035926020909101359150565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff811182821017156136fb576136fb6136bc565b604052919050565b600067ffffffffffffffff82111561371d5761371d6136bc565b5060051b60200190565b600082601f83011261373857600080fd5b8135602061374d61374883613703565b6136d2565b82815260059290921b8401810191818101908684111561376c57600080fd5b8286015b848110156137875780358352918301918301613770565b509695505050505050565b600080604083850312156137a557600080fd5b823567ffffffffffffffff808211156137bd57600080fd5b818501915085601f8301126137d157600080fd5b813560206137e161374883613703565b82815260059290921b8401810191818101908984111561380057600080fd5b948201945b8386101561382757853561381881613580565b82529482019490820190613805565b9650508601359250508082111561383d57600080fd5b5061384a85828601613727565b9150509250929050565b6020808252825182820181905260009190848201906040850190845b818110156138955783516001600160a01b031683529284019291840191600101613870565b50909695505050505050565b600781106123ad57600080fd5b6001600160781b03811681146123ad57600080fd5b6000806000606084860312156138d857600080fd5b83356138e3816138a1565b925060208401356138f3816138ae565b9150604084013561361e816138ae565b80151581146123ad57600080fd5b60006020828403121561392357600080fd5b8135610fb881613903565b600067ffffffffffffffff831115613948576139486136bc565b61395b601f8401601f19166020016136d2565b905082815283838301111561396f57600080fd5b828260208301376000602084830101529392505050565b60006020828403121561399857600080fd5b813567ffffffffffffffff8111156139af57600080fd5b8201601f810184136139c057600080fd5b6128948482356020840161392e565b600080604083850312156139e257600080fd5b82356139ed81613580565b915060208301356139fd81613903565b809150509250929050565b60008060008060808587031215613a1e57600080fd5b8435613a2981613580565b93506020850135613a3981613580565b925060408501359150606085013567ffffffffffffffff811115613a5c57600080fd5b8501601f81018713613a6d57600080fd5b613a7c8782356020840161392e565b91505092959194509250565b6000606082019050613a9b828451613629565b60208301516001600160781b038082166020850152806040860151166040850152505092915050565b60008060408385031215613ad757600080fd5b82356001600160601b0381168114613aee57600080fd5b915060208301356139fd81613580565b60008060408385031215613b1157600080fd5b8235613aee81613580565b60008083601f840112613b2e57600080fd5b50813567ffffffffffffffff811115613b4657600080fd5b6020830191508360208260051b850101111561109857600080fd5b60008060008060408587031215613b7757600080fd5b843567ffffffffffffffff80821115613b8f57600080fd5b613b9b88838901613b1c565b90965094506020870135915080821115613bb457600080fd5b50613bc187828801613b1c565b95989497509550505050565b60008060008060808587031215613be357600080fd5b8435613bee81613580565b93506020850135613bfe816138a1565b92506040850135613c0e816138ae565b91506060850135613c1e816138ae565b939692955090935050565b600181811c90821680613c3d57607f821691505b602082108103613c5d57634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252602d908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526c1c881bdc88185c1c1c9bdd9959609a1b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b8082028115828204841417610d4d57610d4d613cb0565b600082613cfa57634e487b7160e01b600052601260045260246000fd5b500490565b600060608284031215613d1157600080fd5b6040516060810181811067ffffffffffffffff82111715613d3457613d346136bc565b6040528251613d42816138a1565b81526020830151613d52816138ae565b60208201526040830151613d65816138ae565b60408201529392505050565b600060208284031215613d8357600080fd5b8151610fb881613903565b634e487b7160e01b600052603260045260246000fd5b80820180821115610d4d57610d4d613cb0565b81810381811115610d4d57610d4d613cb0565b60006020808385031215613ddd57600080fd5b825167ffffffffffffffff811115613df457600080fd5b8301601f81018513613e0557600080fd5b8051613e1361374882613703565b81815260059190911b82018301908381019087831115613e3257600080fd5b928401925b82841015613e59578351613e4a81613580565b82529284019290840190613e37565b979650505050505050565b600060018201613e7657613e76613cb0565b5060010190565b6001600160a01b038316815260408101610fb86020830184613629565b6001600160a01b039290921682526001600160781b0316602082015260400190565b601f821115610f2157600081815260208120601f850160051c81016020861015613ee35750805b601f850160051c820191505b81811015613f0257828155600101613eef565b505050505050565b815167ffffffffffffffff811115613f2457613f246136bc565b613f3881613f328454613c29565b84613ebc565b602080601f831160018114613f6d5760008415613f555750858301515b600019600386901b1c1916600185901b178555613f02565b600085815260208120601f198616915b82811015613f9c57888601518255948401946001909101908401613f7d565b5085821015613fba5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60008351613fdc818460208801613504565b835190830190613ff0818360208801613504565b01949350505050565b60208082526025908201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060408201526437bbb732b960d91b606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906140c390830184613528565b9695505050505050565b6000602082840312156140df57600080fd5b8151610fb8816134d156fea2646970667358221220e85fafac170416ace003e18487c0f4c3dd83a9e5bb903ff457fbbdec9ef6d56664736f6c63430008150033000000000000000000000000b0ac5912ebd669751612d0fe6f79cc92c333206100000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000b07ee4aaa7916d305d8fcb1d7aa598acbd648ce800000000000000000000000000000000000000000000000000000000000001f40000000000000000000000000000000000000000000000000000000000000015534d4f4b332047656e6573697320506f74696f6e7300000000000000000000000000000000000000000000000000000000000000000000000000000000000007504f54494f4e5300000000000000000000000000000000000000000000000000

Deployed Bytecode

0x60806040526004361061043c5760003560e01c8063690d832011610234578063a8744fc91161012e578063d007af5c116100b6578063f2fde38b1161007a578063f2fde38b14610cba578063f7fa323c14610cda578063fc01b0a214610cfa578063fd02c23914610d0d578063fd762d9214610d2257600080fd5b8063d007af5c14610c25578063e2fe1f8914610c3a578063e68d2b2a14610c5a578063e985e9c514610c7a578063ed621e9a14610c9a57600080fd5b8063be537f43116100fd578063be537f4314610b7a578063c75dc2b214610b9c578063c87b56dd14610bb1578063cc30647f14610bd1578063ccf1f9d014610bf157600080fd5b8063a8744fc914610b04578063a9fc664e14610b1a578063b88d4fde14610b3a578063ba76de3e14610b5a57600080fd5b80638da5cb5b116101bc5780639d645a44116101805780639d645a4414610a675780639fbc871314610a87578063a0bcfc7f14610aac578063a1305aa514610acc578063a22cb46514610ae457600080fd5b80638da5cb5b146109f257806395d89b4114610a105780639738005014610a2557806397cd244d14610a3b57806398bdf6f514610a5157600080fd5b806381ddcc1f1161020357806381ddcc1f146109735780638456cb5914610993578063849bd1e8146109a857806385f1fc6d146109bd578063870000e1146109d257600080fd5b8063690d8320146109095780636c3b86991461092957806370a082311461093e578063715018a61461095e57600080fd5b80632e8da82911610345578063495c8bf9116102cd5780635d4c1d46116102915780635d4c1d46146108745780635d8a0be6146108a157806361347162146108b65780636352211e146108d657806364255891146108f657600080fd5b8063495c8bf9146107d657806351ffdb82146107f8578063544f7fc61461082a5780635b5fbe05146108405780635c975abb1461085557600080fd5b80633f4ba83a116103145780633f4ba83a1461075757806342842e0e1461076c57806342966c681461078c578063464104b4146107ac5780634929597c146107c157600080fd5b80632e8da829146106e257806330bdb35114610702578063380dba40146107175780633af32abf1461073757600080fd5b80630d0e96da116103c85780631b25b077116103975780631b25b0771461062b5780631c33b3281461064b5780631e495fd31461066d57806323b872dd146106835780632a55205a146106a357600080fd5b80630d0e96da146105bd5780631015805b146105d3578063145f3c271461060057806318160ddd1461061657600080fd5b806306fdde031161040f57806306fdde03146104f2578063081812fc14610514578063094dbd3414610534578063095ea7b31461057d578063098144d41461059f57600080fd5b8063014635461461044157806301ffc9a71461048457806304eba7ff146104b4578063064a59d0146104d8575b600080fd5b34801561044d57600080fd5b5061046771721c310194ccfc01e523fc93c9cccfa2a0ac81565b6040516001600160a01b0390911681526020015b60405180910390f35b34801561049057600080fd5b506104a461049f3660046134e7565b610d42565b604051901515815260200161047b565b3480156104c057600080fd5b506104ca60115481565b60405190815260200161047b565b3480156104e457600080fd5b506016546104a49060ff1681565b3480156104fe57600080fd5b50610507610d53565b60405161047b9190613554565b34801561052057600080fd5b5061046761052f366004613567565b610de5565b34801561054057600080fd5b5061056861054f366004613595565b601a602052600090815260409020805460019091015482565b6040805192835260208301919091520161047b565b34801561058957600080fd5b5061059d6105983660046135b2565b610e0c565b005b3480156105ab57600080fd5b506009546001600160a01b0316610467565b3480156105c957600080fd5b506104ca600e5481565b3480156105df57600080fd5b506104ca6105ee366004613595565b60196020526000908152604090205481565b34801561060c57600080fd5b506104ca600d5481565b34801561062257600080fd5b506015546104ca565b34801561063757600080fd5b506104a46106463660046135de565b610f26565b34801561065757600080fd5b50610660600181565b60405161047b919061364b565b34801561067957600080fd5b506104ca60145481565b34801561068f57600080fd5b5061059d61069e366004613659565b610fbf565b3480156106af57600080fd5b506106c36106be36600461369a565b610ff1565b604080516001600160a01b03909316835260208301919091520161047b565b3480156106ee57600080fd5b506104a46106fd366004613595565b61109f565b34801561070e57600080fd5b50600e546104ca565b34801561072357600080fd5b5061059d610732366004613792565b6111ab565b34801561074357600080fd5b506104a4610752366004613595565b6112b1565b34801561076357600080fd5b5061059d6112dd565b34801561077857600080fd5b5061059d610787366004613659565b61132b565b34801561079857600080fd5b5061059d6107a7366004613567565b611346565b3480156107b857600080fd5b506012546104ca565b3480156107cd57600080fd5b506011546104ca565b3480156107e257600080fd5b506107eb6113d0565b60405161047b9190613854565b34801561080457600080fd5b506010546001600160601b03165b6040516001600160601b03909116815260200161047b565b34801561083657600080fd5b506104ca600c5481565b34801561084c57600080fd5b5061059d6114e1565b34801561086157600080fd5b50600854600160a01b900460ff166104a4565b34801561088057600080fd5b50610889600181565b6040516001600160781b03909116815260200161047b565b3480156108ad57600080fd5b50600c546104ca565b3480156108c257600080fd5b5061059d6108d13660046138c3565b611618565b3480156108e257600080fd5b506104676108f1366004613567565b611783565b61059d610904366004613567565b6117e3565b34801561091557600080fd5b5061059d610924366004613595565b611960565b34801561093557600080fd5b5061059d611a4c565b34801561094a57600080fd5b506104ca610959366004613595565b611b45565b34801561096a57600080fd5b5061059d611bcb565b34801561097f57600080fd5b50601054610812906001600160601b031681565b34801561099f57600080fd5b5061059d611bdf565b3480156109b457600080fd5b506013546104ca565b3480156109c957600080fd5b50600d546104ca565b3480156109de57600080fd5b5061059d6109ed366004613911565b611c27565b3480156109fe57600080fd5b506008546001600160a01b0316610467565b348015610a1c57600080fd5b50610507611c42565b348015610a3157600080fd5b506104ca60125481565b348015610a4757600080fd5b506104ca60135481565b348015610a5d57600080fd5b506104ca600f5481565b348015610a7357600080fd5b506104a4610a82366004613595565b611c51565b348015610a9357600080fd5b506016546104679061010090046001600160a01b031681565b348015610ab857600080fd5b5061059d610ac7366004613986565b611d19565b348015610ad857600080fd5b5060165460ff166104a4565b348015610af057600080fd5b5061059d610aff3660046139cf565b611d31565b348015610b1057600080fd5b506104ca60175481565b348015610b2657600080fd5b5061059d610b35366004613595565b611d3c565b348015610b4657600080fd5b5061059d610b55366004613a08565b611e5d565b348015610b6657600080fd5b5061059d610b7536600461369a565b611e8f565b348015610b8657600080fd5b50610b8f611ef0565b60405161047b9190613a88565b348015610ba857600080fd5b506014546104ca565b348015610bbd57600080fd5b50610507610bcc366004613567565b611fab565b348015610bdd57600080fd5b5061059d610bec366004613567565b612011565b348015610bfd57600080fd5b50610568610c0c366004613595565b601b602052600090815260409020805460019091015482565b348015610c3157600080fd5b506107eb612059565b348015610c4657600080fd5b5061059d610c55366004613567565b612112565b348015610c6657600080fd5b5061059d610c75366004613ac4565b61215a565b348015610c8657600080fd5b506104a4610c95366004613afe565b6121bd565b348015610ca657600080fd5b5061059d610cb5366004613b61565b6121eb565b348015610cc657600080fd5b5061059d610cd5366004613595565b612372565b348015610ce657600080fd5b5061059d610cf536600461369a565b6123b0565b61059d610d08366004613567565b612411565b348015610d1957600080fd5b506104ca61263a565b348015610d2e57600080fd5b5061059d610d3d366004613bcd565b61264c565b6000610d4d8261274b565b92915050565b606060068054610d6290613c29565b80601f0160208091040260200160405190810160405280929190818152602001828054610d8e90613c29565b8015610ddb5780601f10610db057610100808354040283529160200191610ddb565b820191906000526020600020905b815481529060010190602001808311610dbe57829003601f168201915b5050505050905090565b6000610df082612770565b506000908152600460205260409020546001600160a01b031690565b6000610e1782611783565b9050806001600160a01b0316836001600160a01b031603610e895760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084015b60405180910390fd5b336001600160a01b0382161480610ea55750610ea581336121bd565b610f175760405162461bcd60e51b815260206004820152603d60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c0000006064820152608401610e80565b610f2183836127cf565b505050565b6009546000906001600160a01b031615610fb45760095460405163050bf71960e31b81526001600160a01b038681166004830152858116602483015284811660448301529091169063285fb8c89060640160006040518083038186803b158015610f8f57600080fd5b505afa925050508015610fa0575060015b610fac57506000610fb8565b506001610fb8565b5060015b9392505050565b610fca335b8261283d565b610fe65760405162461bcd60e51b8152600401610e8090613c63565b610f2183838361289c565b6000828152600b602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b0316928201929092528291611066575060408051808201909152600a546001600160a01b0381168252600160a01b90046001600160601b031660208201525b602081015160009061271090611085906001600160601b031687613cc6565b61108f9190613cdd565b91519350909150505b9250929050565b6009546000906001600160a01b0316156111a357600954604051635caaa2a960e11b81523060048201526001600160a01b039091169063d72dde5e90829063b955455290602401606060405180830381865afa158015611103573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111279190613cff565b602001516040516001600160e01b031960e084901b1681526001600160781b0390911660048201526001600160a01b03851660248201526044015b602060405180830381865afa15801561117f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d4d9190613d71565b506000919050565b6111b3612a15565b80518251146111fc5760405162461bcd60e51b81526020600482015260156024820152740c2e4e4c2f240d8cadccee8d040dad2e6dac2e8c6d605b1b6044820152606401610e80565b60005b8251811015610f215781818151811061121a5761121a613d8e565b6020026020010151601a600085848151811061123857611238613d8e565b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060000160008282546112729190613da4565b9250508190555081818151811061128b5761128b613d8e565b6020026020010151601760008282546112a49190613da4565b90915550506001016111ff565b6001600160a01b0381166000908152601b60205260408120546112d5576000610d4d565b600192915050565b6112e5612a42565b6112ed612a15565b6112f5612a92565b6040513381527f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa906020015b60405180910390a1565b610f2183838360405180602001604052806000815250611e5d565b61134f33610fc4565b6113ac5760405162461bcd60e51b815260206004820152602860248201527f4552433732313a2063616c6c6572206973206e6f74206f776e6572206e6f7220604482015267185c1c1c9bdd995960c21b6064820152608401610e80565b6113b581612ae2565b6001601560008282546113c89190613db7565b909155505050565b6009546060906001600160a01b0316156114ce57600954604051635caaa2a960e11b81523060048201526001600160a01b0390911690633fe5df9990829063b955455290602401606060405180830381865afa158015611434573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114589190613cff565b602001516040516001600160e01b031960e084901b1681526001600160781b0390911660048201526024015b600060405180830381865afa1580156114a1573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526114c99190810190613dca565b905090565b5060408051600081526020810190915290565b6114e9612b8f565b336000908152601a60205260408120600181015490546115099190613db7565b90508060000361154c5760405162461bcd60e51b815260206004820152600e60248201526d7a65726f20636c61696d61626c6560901b6044820152606401610e80565b600e5481600f5461155d9190613da4565b11156115b75760405162461bcd60e51b8152602060048201526024808201527f6d696e7461626c65204e465473206578636565647320617661696c61626c65206044820152636e66747360e01b6064820152608401610e80565b60005b818110156115f557600f80549060006115d283613e64565b91905055506115e333600f54612bdc565b601580546001908101909155016115ba565b50336000908152601a6020526040812060010180548392906113c8908490613da4565b611620612d7f565b60006116346009546001600160a01b031690565b90506001600160a01b03811661165d57604051631cffe3dd60e11b815260040160405180910390fd5b604051630368065360e61b81526001600160a01b0382169063da0194c09061168b9030908890600401613e7d565b600060405180830381600087803b1580156116a557600080fd5b505af11580156116b9573d6000803e3d6000fd5b5050604051631182550160e11b81526001600160a01b0384169250632304aa0291506116eb9030908790600401613e9a565b600060405180830381600087803b15801561170557600080fd5b505af1158015611719573d6000803e3d6000fd5b505060405163235d10c560e21b81526001600160a01b0384169250638d744314915061174b9030908690600401613e9a565b600060405180830381600087803b15801561176557600080fd5b505af1158015611779573d6000803e3d6000fd5b5050505050505050565b6000818152600260205260408120546001600160a01b031680610d4d5760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b6044820152606401610e80565b601754600e546117f39190613db7565b81600f546118019190613da4565b111561184f5760405162461bcd60e51b815260206004820152601f60248201527f7175616e74697479206578636565647320617661696c61626c65206e667473006044820152606401610e80565b601354421080611860575060145442115b156118a05760405162461bcd60e51b815260206004820152601060248201526f7073206973206e6f742061637469766560801b6044820152606401610e80565b80600d546118ae9190613cc6565b34146118f45760405162461bcd60e51b8152602060048201526015602482015274125b9cdd59999a58da595b9d08195d1a081cd95b9d605a1b6044820152606401610e80565b3360009081526019602052604081208054839290611913908490613da4565b90915550600090505b8181101561194d57600f805490600061193483613e64565b919050555061194533600f54612bdc565b60010161191c565b5080601560008282546113c89190613da4565b611968612a15565b6001600160a01b0381166119b75760405162461bcd60e51b81526020600482015260166024820152757a65726f2077697468647261776c206164647265737360501b6044820152606401610e80565b60405147906000906001600160a01b0384169083908381818185875af1925050503d8060008114611a04576040519150601f19603f3d011682016040523d82523d6000602084013e611a09565b606091505b5050905080610f215760405162461bcd60e51b815260206004820152600f60248201526e151c985b9cd9995c8819985a5b1959608a1b6044820152606401610e80565b611a54612d7f565b611a6f71721c310194ccfc01e523fc93c9cccfa2a0ac611d3c565b604051630368065360e61b815271721c310194ccfc01e523fc93c9cccfa2a0ac9063da0194c090611aa7903090600190600401613e7d565b600060405180830381600087803b158015611ac157600080fd5b505af1158015611ad5573d6000803e3d6000fd5b5050604051631182550160e11b815271721c310194ccfc01e523fc93c9cccfa2a0ac9250632304aa029150611b11903090600190600401613e9a565b600060405180830381600087803b158015611b2b57600080fd5b505af1158015611b3f573d6000803e3d6000fd5b50505050565b60006001600160a01b038216611baf5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b6064820152608401610e80565b506001600160a01b031660009081526003602052604090205490565b611bd3612a15565b611bdd6000612d87565b565b611be7612b8f565b611bef612a15565b611bf7612dd9565b6040513381527f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25890602001611321565b611c2f612a15565b6016805460ff1916911515919091179055565b606060078054610d6290613c29565b6009546000906001600160a01b0316156111a357600954604051635caaa2a960e11b81523060048201526001600160a01b0390911690639445f53090829063b955455290602401606060405180830381865afa158015611cb5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611cd99190613cff565b60409081015190516001600160e01b031960e084901b1681526001600160781b0390911660048201526001600160a01b0385166024820152604401611162565b611d21612a15565b6018611d2d8282613f0a565b5050565b611d2d338383612e1c565b611d44612d7f565b60006001600160a01b0382163b15611dbf576040516301ffc9a760e01b8152600060048201526001600160a01b038316906301ffc9a790602401602060405180830381865afa925050508015611db7575060408051601f3d908101601f19168201909252611db491810190613d71565b60015b15611dbf5790505b6001600160a01b03821615801590611dd5575080155b15611df3576040516332483afb60e01b815260040160405180910390fd5b600954604080516001600160a01b03928316815291841660208301527fcc5dc080ff977b3c3a211fa63ab74f90f658f5ba9d3236e92c8f59570f442aac910160405180910390a150600980546001600160a01b0319166001600160a01b0392909216919091179055565b611e67338361283d565b611e835760405162461bcd60e51b8152600401610e8090613c63565b611b3f84848484612eea565b611e97612a15565b42821080611ea457508181105b15611ee55760405162461bcd60e51b81526020600482015260116024820152700696e76616c69642074696d657374616d7607c1b6044820152606401610e80565b601391909155601455565b60408051606081018252600080825260208201819052918101919091526009546001600160a01b031615611f8a57600954604051635caaa2a960e11b81523060048201526001600160a01b039091169063b955455290602401606060405180830381865afa158015611f66573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114c99190613cff565b50604080516060810182526000808252602082018190529181019190915290565b6060611fb682612770565b6000611fc0612f1d565b90506000815111611fe05760405180602001604052806000815250610fb8565b80611fea84612f2c565b604051602001611ffb929190613fca565b6040516020818303038152906040529392505050565b612019612a15565b806000036120545760405162461bcd60e51b81526020600482015260086024820152677a65726f2066656560c01b6044820152606401610e80565b600c55565b6009546060906001600160a01b0316156114ce57600954604051635caaa2a960e11b81523060048201526001600160a01b03909116906317e94a6c90829063b955455290602401606060405180830381865afa1580156120bd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120e19190613cff565b60409081015190516001600160e01b031960e084901b1681526001600160781b039091166004820152602401611484565b61211a612a15565b806000036121555760405162461bcd60e51b81526020600482015260086024820152677a65726f2066656560c01b6044820152606401610e80565b600d55565b612162612a15565b60168054610100600160a81b0319166101006001600160a01b0384811682029290921792839055601080546bffffffffffffffffffffffff19166001600160601b038716908117909155611d2d939190910490911690612fbf565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b6121f3612a15565b8281146122425760405162461bcd60e51b815260206004820152601e60248201527f617272617973206d75737274206265206f662073616d65206c656e67746800006044820152606401610e80565b60005b8381101561236b5782828281811061225f5761225f613d8e565b90506020020135601b600087878581811061227c5761227c613d8e565b90506020020160208101906122919190613595565b6001600160a01b03166001600160a01b0316815260200190815260200160002060000160008282546122c39190613da4565b90915550601b905060008686848181106122df576122df613d8e565b90506020020160208101906122f49190613595565b6001600160a01b03166001600160a01b0316815260200190815260200160002060010154601b600087878581811061232e5761232e613d8e565b90506020020160208101906123439190613595565b6001600160a01b03168152602081019190915260400160002060019081019190915501612245565b5050505050565b61237a612a15565b6001600160a01b0381166123a457604051631e4fbdf760e01b815260006004820152602401610e80565b6123ad81612d87565b50565b6123b8612a15565b428210806123c557508181105b156124065760405162461bcd60e51b81526020600482015260116024820152700696e76616c69642074696d657374616d7607c1b6044820152606401610e80565b601191909155601255565b601754600e546124219190613db7565b81600f5461242f9190613da4565b111561247d5760405162461bcd60e51b815260206004820152601f60248201527f7175616e74697479206578636565647320617661696c61626c65206e667473006044820152606401610e80565b60115442108061248e575060125442115b156124ce5760405162461bcd60e51b815260206004820152601060248201526f7773206973206e6f742061637469766560801b6044820152606401610e80565b336000908152601b6020526040902080546001909101546124f0908390613da4565b111561253e5760405162461bcd60e51b815260206004820152601f60248201527f7175616e74697479206578636565647320616c6c6f6361746564206e667473006044820152606401610e80565b600081600c5461254e9190613cc6565b90508034146125975760405162461bcd60e51b8152602060048201526015602482015274125b9cdd59999a58da595b9d08195d1a081cd95b9d605a1b6044820152606401610e80565b60005b828110156125d557600f80549060006125b283613e64565b91905055506125c333600f54612bdc565b6015805460019081019091550161259a565b50336000908152601b6020526040812060010180548492906125f8908490613da4565b909155505060408051338152602081018490527f957993881fbce19c878da84690a5ea3d4c8a1b430a3ef0d18c17976a6dde9d0d910160405180910390a15050565b6000600f54600e546114c99190613db7565b612654612d7f565b61265d84611d3c565b604051630368065360e61b81526001600160a01b0385169063da0194c09061268b9030908790600401613e7d565b600060405180830381600087803b1580156126a557600080fd5b505af11580156126b9573d6000803e3d6000fd5b5050604051631182550160e11b81526001600160a01b0387169250632304aa0291506126eb9030908690600401613e9a565b600060405180830381600087803b15801561270557600080fd5b505af1158015612719573d6000803e3d6000fd5b505060405163235d10c560e21b81526001600160a01b0387169250638d744314915061174b9030908590600401613e9a565b60006001600160e01b0319821663152a902d60e11b1480610d4d5750610d4d82613014565b6000818152600260205260409020546001600160a01b03166123ad5760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b6044820152606401610e80565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061280482611783565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60008061284983611783565b9050806001600160a01b0316846001600160a01b03161480612870575061287081856121bd565b806128945750836001600160a01b031661288984610de5565b6001600160a01b0316145b949350505050565b826001600160a01b03166128af82611783565b6001600160a01b0316146128d55760405162461bcd60e51b8152600401610e8090613ff9565b6001600160a01b0382166129375760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610e80565b6129448383836001613039565b826001600160a01b031661295782611783565b6001600160a01b03161461297d5760405162461bcd60e51b8152600401610e8090613ff9565b600081815260046020908152604080832080546001600160a01b03199081169091556001600160a01b0387811680865260038552838620805460001901905590871680865283862080546001019055868652600290945282852080549092168417909155905184937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4610f2183838360016130bc565b6008546001600160a01b03163314611bdd5760405163118cdaa760e01b8152336004820152602401610e80565b600854600160a01b900460ff16611bdd5760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610e80565b612a9a612a42565b6008805460ff60a01b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b039091168152602001611321565b6000612aed82611783565b9050612afd816000846001613039565b612b0682611783565b600083815260046020908152604080832080546001600160a01b03199081169091556001600160a01b0385168085526003845282852080546000190190558785526002909352818420805490911690555192935084927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a4611d2d8160008460016130bc565b600854600160a01b900460ff1615611bdd5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610e80565b6001600160a01b038216612c325760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610e80565b6000818152600260205260409020546001600160a01b031615612c975760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610e80565b612ca5600083836001613039565b6000818152600260205260409020546001600160a01b031615612d0a5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610e80565b6001600160a01b038216600081815260036020908152604080832080546001019055848352600290915280822080546001600160a01b0319168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4611d2d6000838360016130bc565b611bdd612a15565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b612de1612b8f565b6008805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258612aca3390565b816001600160a01b0316836001600160a01b031603612e7d5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610e80565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b612ef584848461289c565b612f01848484846130e3565b611b3f5760405162461bcd60e51b8152600401610e809061403e565b606060188054610d6290613c29565b60606000612f39836131e4565b600101905060008167ffffffffffffffff811115612f5957612f596136bc565b6040519080825280601f01601f191660200182016040528015612f83576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a8504945084612f8d57509392505050565b612fc982826132bc565b6040516001600160601b03821681526001600160a01b038316907f8a8bae378cb731c5c40b632330c6836c2f916f48edb967699c86736f9a6a76ef9060200160405180910390a25050565b60006001600160e01b031982166310c8aba560e31b1480610d4d5750610d4d8261335f565b6001600160a01b03841615801590613054575060165460ff16155b156130955760405162461bcd60e51b81526020600482015260116024820152701d1c985b9cd9995c88191a5cd8589b1959607a1b6044820152606401610e80565b60005b8181101561236b576130b485856130af8487613da4565b6133af565b600101613098565b60005b8181101561236b576130db85856130d68487613da4565b613405565b6001016130bf565b60006001600160a01b0384163b156131d957604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290613127903390899088908890600401614090565b6020604051808303816000875af1925050508015613162575060408051601f3d908101601f1916820190925261315f918101906140cd565b60015b6131bf573d808015613190576040519150601f19603f3d011682016040523d82523d6000602084013e613195565b606091505b5080516000036131b75760405162461bcd60e51b8152600401610e809061403e565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612894565b506001949350505050565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b83106132235772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef8100000000831061324f576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc10000831061326d57662386f26fc10000830492506010015b6305f5e1008310613285576305f5e100830492506008015b612710831061329957612710830492506004015b606483106132ab576064830492506002015b600a8310610d4d5760010192915050565b6127106001600160601b0382168110156132fb57604051636f483d0960e01b81526001600160601b038316600482015260248101829052604401610e80565b6001600160a01b03831661332557604051635b6cc80560e11b815260006004820152602401610e80565b50604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600a55565b60006001600160e01b031982166380ac58cd60e01b148061339057506001600160e01b03198216635b5e139f60e01b145b80610d4d57506301ffc9a760e01b6001600160e01b0319831614610d4d565b6001600160a01b0383811615908316158180156133c95750805b156133e757604051635cbd944160e01b815260040160405180910390fd5b81156133f3575b61236b565b806133ee5761236b338686863461344c565b6001600160a01b03838116159083161581801561341f5750805b1561343d57604051635cbd944160e01b815260040160405180910390fd5b816133ee57806133ee5761236b565b6009546001600160a01b03161561236b5760095460405163050bf71960e31b81526001600160a01b038781166004830152868116602483015285811660448301529091169063285fb8c89060640160006040518083038186803b1580156134b257600080fd5b505afa1580156134c6573d6000803e3d6000fd5b505050505050505050565b6001600160e01b0319811681146123ad57600080fd5b6000602082840312156134f957600080fd5b8135610fb8816134d1565b60005b8381101561351f578181015183820152602001613507565b50506000910152565b60008151808452613540816020860160208601613504565b601f01601f19169290920160200192915050565b602081526000610fb86020830184613528565b60006020828403121561357957600080fd5b5035919050565b6001600160a01b03811681146123ad57600080fd5b6000602082840312156135a757600080fd5b8135610fb881613580565b600080604083850312156135c557600080fd5b82356135d081613580565b946020939093013593505050565b6000806000606084860312156135f357600080fd5b83356135fe81613580565b9250602084013561360e81613580565b9150604084013561361e81613580565b809150509250925092565b6007811061364757634e487b7160e01b600052602160045260246000fd5b9052565b60208101610d4d8284613629565b60008060006060848603121561366e57600080fd5b833561367981613580565b9250602084013561368981613580565b929592945050506040919091013590565b600080604083850312156136ad57600080fd5b50508035926020909101359150565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff811182821017156136fb576136fb6136bc565b604052919050565b600067ffffffffffffffff82111561371d5761371d6136bc565b5060051b60200190565b600082601f83011261373857600080fd5b8135602061374d61374883613703565b6136d2565b82815260059290921b8401810191818101908684111561376c57600080fd5b8286015b848110156137875780358352918301918301613770565b509695505050505050565b600080604083850312156137a557600080fd5b823567ffffffffffffffff808211156137bd57600080fd5b818501915085601f8301126137d157600080fd5b813560206137e161374883613703565b82815260059290921b8401810191818101908984111561380057600080fd5b948201945b8386101561382757853561381881613580565b82529482019490820190613805565b9650508601359250508082111561383d57600080fd5b5061384a85828601613727565b9150509250929050565b6020808252825182820181905260009190848201906040850190845b818110156138955783516001600160a01b031683529284019291840191600101613870565b50909695505050505050565b600781106123ad57600080fd5b6001600160781b03811681146123ad57600080fd5b6000806000606084860312156138d857600080fd5b83356138e3816138a1565b925060208401356138f3816138ae565b9150604084013561361e816138ae565b80151581146123ad57600080fd5b60006020828403121561392357600080fd5b8135610fb881613903565b600067ffffffffffffffff831115613948576139486136bc565b61395b601f8401601f19166020016136d2565b905082815283838301111561396f57600080fd5b828260208301376000602084830101529392505050565b60006020828403121561399857600080fd5b813567ffffffffffffffff8111156139af57600080fd5b8201601f810184136139c057600080fd5b6128948482356020840161392e565b600080604083850312156139e257600080fd5b82356139ed81613580565b915060208301356139fd81613903565b809150509250929050565b60008060008060808587031215613a1e57600080fd5b8435613a2981613580565b93506020850135613a3981613580565b925060408501359150606085013567ffffffffffffffff811115613a5c57600080fd5b8501601f81018713613a6d57600080fd5b613a7c8782356020840161392e565b91505092959194509250565b6000606082019050613a9b828451613629565b60208301516001600160781b038082166020850152806040860151166040850152505092915050565b60008060408385031215613ad757600080fd5b82356001600160601b0381168114613aee57600080fd5b915060208301356139fd81613580565b60008060408385031215613b1157600080fd5b8235613aee81613580565b60008083601f840112613b2e57600080fd5b50813567ffffffffffffffff811115613b4657600080fd5b6020830191508360208260051b850101111561109857600080fd5b60008060008060408587031215613b7757600080fd5b843567ffffffffffffffff80821115613b8f57600080fd5b613b9b88838901613b1c565b90965094506020870135915080821115613bb457600080fd5b50613bc187828801613b1c565b95989497509550505050565b60008060008060808587031215613be357600080fd5b8435613bee81613580565b93506020850135613bfe816138a1565b92506040850135613c0e816138ae565b91506060850135613c1e816138ae565b939692955090935050565b600181811c90821680613c3d57607f821691505b602082108103613c5d57634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252602d908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526c1c881bdc88185c1c1c9bdd9959609a1b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b8082028115828204841417610d4d57610d4d613cb0565b600082613cfa57634e487b7160e01b600052601260045260246000fd5b500490565b600060608284031215613d1157600080fd5b6040516060810181811067ffffffffffffffff82111715613d3457613d346136bc565b6040528251613d42816138a1565b81526020830151613d52816138ae565b60208201526040830151613d65816138ae565b60408201529392505050565b600060208284031215613d8357600080fd5b8151610fb881613903565b634e487b7160e01b600052603260045260246000fd5b80820180821115610d4d57610d4d613cb0565b81810381811115610d4d57610d4d613cb0565b60006020808385031215613ddd57600080fd5b825167ffffffffffffffff811115613df457600080fd5b8301601f81018513613e0557600080fd5b8051613e1361374882613703565b81815260059190911b82018301908381019087831115613e3257600080fd5b928401925b82841015613e59578351613e4a81613580565b82529284019290840190613e37565b979650505050505050565b600060018201613e7657613e76613cb0565b5060010190565b6001600160a01b038316815260408101610fb86020830184613629565b6001600160a01b039290921682526001600160781b0316602082015260400190565b601f821115610f2157600081815260208120601f850160051c81016020861015613ee35750805b601f850160051c820191505b81811015613f0257828155600101613eef565b505050505050565b815167ffffffffffffffff811115613f2457613f246136bc565b613f3881613f328454613c29565b84613ebc565b602080601f831160018114613f6d5760008415613f555750858301515b600019600386901b1c1916600185901b178555613f02565b600085815260208120601f198616915b82811015613f9c57888601518255948401946001909101908401613f7d565b5085821015613fba5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60008351613fdc818460208801613504565b835190830190613ff0818360208801613504565b01949350505050565b60208082526025908201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060408201526437bbb732b960d91b606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906140c390830184613528565b9695505050505050565b6000602082840312156140df57600080fd5b8151610fb8816134d156fea2646970667358221220e85fafac170416ace003e18487c0f4c3dd83a9e5bb903ff457fbbdec9ef6d56664736f6c63430008150033

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

000000000000000000000000b0ac5912ebd669751612d0fe6f79cc92c333206100000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000b07ee4aaa7916d305d8fcb1d7aa598acbd648ce800000000000000000000000000000000000000000000000000000000000001f40000000000000000000000000000000000000000000000000000000000000015534d4f4b332047656e6573697320506f74696f6e7300000000000000000000000000000000000000000000000000000000000000000000000000000000000007504f54494f4e5300000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : receiver (address): 0xB0aC5912eBd669751612D0fe6f79Cc92C3332061
Arg [1] : name (string): SMOK3 Genesis Potions
Arg [2] : symbol (string): POTIONS
Arg [3] : owner (address): 0xB07EE4Aaa7916D305d8fCB1D7Aa598Acbd648Ce8
Arg [4] : feeNumerator (uint96): 500

-----Encoded View---------------
9 Constructor Arguments found :
Arg [0] : 000000000000000000000000b0ac5912ebd669751612d0fe6f79cc92c3332061
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [2] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [3] : 000000000000000000000000b07ee4aaa7916d305d8fcb1d7aa598acbd648ce8
Arg [4] : 00000000000000000000000000000000000000000000000000000000000001f4
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000015
Arg [6] : 534d4f4b332047656e6573697320506f74696f6e730000000000000000000000
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000007
Arg [8] : 504f54494f4e5300000000000000000000000000000000000000000000000000


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.