ETH Price: $3,448.51 (+1.47%)

Token

Polarys Polar Bears (POLARBEAR)
 

Overview

Max Total Supply

2,366 POLARBEAR

Holders

618

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
williamwallet.eth
Balance
2 POLARBEAR
0xe12d731750e222ec53b001e00d978901b134cfc9
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:
PolarBearNFTContract

Compiler Version
v0.8.15+commit.e14f2714

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 14 : PolarBearNFTContract.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.15;

import '@openzeppelin/contracts/utils/Strings.sol';
import '@openzeppelin/contracts/access/Ownable.sol';
import "@openzeppelin/contracts/token/common/ERC2981.sol";
import "@openzeppelin/contracts/access/AccessControl.sol";
import "@openzeppelin/contracts/utils/cryptography/draft-EIP712.sol";
import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";
import "./ERC721B.sol";

contract PolarBearNFTContract is ERC2981, ERC721B, EIP712, AccessControl, Ownable {

    using Strings for uint256;
    
    event MintedPolarBear(address indexed recipient, uint256 quantity, uint256 nonce);
    event ManualMintedPolarBear(address indexed recipient, uint256 quantity);
    event SetBaseURI(string baseURI);
    event SetRoyalty(address royaltyAddress, uint96 fee);
    
    string private baseURI;
    uint256 private constant MAX_SUPPLY = 5000;
    bytes32 public constant VERIFY_ROLE = keccak256("VERIFY_ROLE");
    bytes32 constant public POLARBEARNFT_TYPEHASH = keccak256("PolarBearNFT(address account,uint256 quantity,uint256 nonce,uint256 deadline)");

    constructor(
        string memory name_, 
        string memory symbol_
    ) ERC721B(name_, symbol_) EIP712("PolarBearNFTContract", "1.0.0") {
    }

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

    function setRoyalty(address _royaltyAddress, uint96 fee) external onlyOwner {
        require(fee < 100 * 1e2, "Incorrect royalty fee");
        _setDefaultRoyalty(_royaltyAddress, fee);
        emit SetRoyalty(_royaltyAddress, fee);
    }
    
    /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    function tokenURI(uint256 _tokenId) public view override returns (string memory) {
        if (!_exists(_tokenId)) revert OwnerQueryForNonexistentToken();
        return string(abi.encodePacked(baseURI, Strings.toString(_tokenId+1), ".json"));
    }

    /**
    @dev Setup verify role
     */
    function setupVerifyRole(address account) external onlyOwner {
        _grantRole(VERIFY_ROLE, account);
    }

    /**
     * Set base URI of NFT
     */
    function setBaseURI(string calldata _baseURI) external onlyOwner {
        baseURI = _baseURI;
        emit SetBaseURI(_baseURI);
    }

    function exists(uint256 tokenId) external view returns (bool) {
        return _exists(tokenId);
    }

    function mint(
        uint256 quantity,
        uint256 nonce,
        uint256 deadline,
        bytes calldata signature
    ) external {
        require(_msgSender() == tx.origin, "Can not mint NFT to contract address");
        require(block.timestamp <= deadline, "Invalid expiration in mint");
        require(_owners.length + quantity <= MAX_SUPPLY, "Can not mint NFT more than MAX_SUPPLY");
        require(_verify(_hash(_msgSender(), quantity, nonce, deadline), signature), "Invalid signature");
        _mint(_msgSender(), quantity);

        emit MintedPolarBear(_msgSender(), quantity, nonce);
    }

    function manualMint(
        address to, 
        uint256 quantity
    ) external onlyOwner {
        require(_owners.length + quantity <= MAX_SUPPLY, "Can not mint NFT more than MAX_SUPPLY");
        _mint(to, quantity);

        emit ManualMintedPolarBear(to, quantity);
    }

    function _hash(address account, uint256 quantity, uint256 nonce, uint256 deadline)
    internal view returns (bytes32)
    {
        return _hashTypedDataV4(keccak256(abi.encode(
            POLARBEARNFT_TYPEHASH,
            account,
            quantity,
            nonce,
            deadline
        )));
    }

    function _verify(bytes32 digest, bytes memory signature)
    internal view returns (bool)
    {
        return hasRole(VERIFY_ROLE, ECDSA.recover(digest, signature));
    }
}

File 2 of 14 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

File 3 of 14 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)

pragma solidity ^0.8.0;

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

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

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

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

    /**
     * @dev 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 {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
    }

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

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

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

File 4 of 14 : ERC2981.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/common/ERC2981.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

        return (royalty.receiver, royaltyAmount);
    }

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

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

        _defaultRoyaltyInfo = RoyaltyInfo(receiver, feeNumerator);
    }

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

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

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

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

File 5 of 14 : AccessControl.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (access/AccessControl.sol)

pragma solidity ^0.8.0;

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

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

    mapping(bytes32 => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

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

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

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

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

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

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

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

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

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

        _revokeRole(role, account);
    }

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

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

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

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

File 6 of 14 : draft-EIP712.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/cryptography/draft-EIP712.sol)

pragma solidity ^0.8.0;

import "./ECDSA.sol";

/**
 * @dev https://eips.ethereum.org/EIPS/eip-712[EIP 712] is a standard for hashing and signing of typed structured data.
 *
 * The encoding specified in the EIP is very generic, and such a generic implementation in Solidity is not feasible,
 * thus this contract does not implement the encoding itself. Protocols need to implement the type-specific encoding
 * they need in their contracts using a combination of `abi.encode` and `keccak256`.
 *
 * This contract implements the EIP 712 domain separator ({_domainSeparatorV4}) that is used as part of the encoding
 * scheme, and the final step of the encoding to obtain the message digest that is then signed via ECDSA
 * ({_hashTypedDataV4}).
 *
 * The implementation of the domain separator was designed to be as efficient as possible while still properly updating
 * the chain id to protect against replay attacks on an eventual fork of the chain.
 *
 * NOTE: This contract implements the version of the encoding known as "v4", as implemented by the JSON RPC method
 * https://docs.metamask.io/guide/signing-data.html[`eth_signTypedDataV4` in MetaMask].
 *
 * _Available since v3.4._
 */
abstract contract EIP712 {
    /* solhint-disable var-name-mixedcase */
    // Cache the domain separator as an immutable value, but also store the chain id that it corresponds to, in order to
    // invalidate the cached domain separator if the chain id changes.
    bytes32 private immutable _CACHED_DOMAIN_SEPARATOR;
    uint256 private immutable _CACHED_CHAIN_ID;
    address private immutable _CACHED_THIS;

    bytes32 private immutable _HASHED_NAME;
    bytes32 private immutable _HASHED_VERSION;
    bytes32 private immutable _TYPE_HASH;

    /* solhint-enable var-name-mixedcase */

    /**
     * @dev Initializes the domain separator and parameter caches.
     *
     * The meaning of `name` and `version` is specified in
     * https://eips.ethereum.org/EIPS/eip-712#definition-of-domainseparator[EIP 712]:
     *
     * - `name`: the user readable name of the signing domain, i.e. the name of the DApp or the protocol.
     * - `version`: the current major version of the signing domain.
     *
     * NOTE: These parameters cannot be changed except through a xref:learn::upgrading-smart-contracts.adoc[smart
     * contract upgrade].
     */
    constructor(string memory name, string memory version) {
        bytes32 hashedName = keccak256(bytes(name));
        bytes32 hashedVersion = keccak256(bytes(version));
        bytes32 typeHash = keccak256(
            "EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)"
        );
        _HASHED_NAME = hashedName;
        _HASHED_VERSION = hashedVersion;
        _CACHED_CHAIN_ID = block.chainid;
        _CACHED_DOMAIN_SEPARATOR = _buildDomainSeparator(typeHash, hashedName, hashedVersion);
        _CACHED_THIS = address(this);
        _TYPE_HASH = typeHash;
    }

    /**
     * @dev Returns the domain separator for the current chain.
     */
    function _domainSeparatorV4() internal view returns (bytes32) {
        if (address(this) == _CACHED_THIS && block.chainid == _CACHED_CHAIN_ID) {
            return _CACHED_DOMAIN_SEPARATOR;
        } else {
            return _buildDomainSeparator(_TYPE_HASH, _HASHED_NAME, _HASHED_VERSION);
        }
    }

    function _buildDomainSeparator(
        bytes32 typeHash,
        bytes32 nameHash,
        bytes32 versionHash
    ) private view returns (bytes32) {
        return keccak256(abi.encode(typeHash, nameHash, versionHash, block.chainid, address(this)));
    }

    /**
     * @dev Given an already https://eips.ethereum.org/EIPS/eip-712#definition-of-hashstruct[hashed struct], this
     * function returns the hash of the fully encoded EIP712 message for this domain.
     *
     * This hash can be used together with {ECDSA-recover} to obtain the signer of a message. For example:
     *
     * ```solidity
     * bytes32 digest = _hashTypedDataV4(keccak256(abi.encode(
     *     keccak256("Mail(address to,string contents)"),
     *     mailTo,
     *     keccak256(bytes(mailContents))
     * )));
     * address signer = ECDSA.recover(digest, signature);
     * ```
     */
    function _hashTypedDataV4(bytes32 structHash) internal view virtual returns (bytes32) {
        return ECDSA.toTypedDataHash(_domainSeparatorV4(), structHash);
    }
}

File 7 of 14 : ECDSA.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.3) (utils/cryptography/ECDSA.sol)

pragma solidity ^0.8.0;

import "../Strings.sol";

/**
 * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.
 *
 * These functions can be used to verify that a message was signed by the holder
 * of the private keys of a given address.
 */
library ECDSA {
    enum RecoverError {
        NoError,
        InvalidSignature,
        InvalidSignatureLength,
        InvalidSignatureS,
        InvalidSignatureV
    }

    function _throwError(RecoverError error) private pure {
        if (error == RecoverError.NoError) {
            return; // no error: do nothing
        } else if (error == RecoverError.InvalidSignature) {
            revert("ECDSA: invalid signature");
        } else if (error == RecoverError.InvalidSignatureLength) {
            revert("ECDSA: invalid signature length");
        } else if (error == RecoverError.InvalidSignatureS) {
            revert("ECDSA: invalid signature 's' value");
        } else if (error == RecoverError.InvalidSignatureV) {
            revert("ECDSA: invalid signature 'v' value");
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature` or error string. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     *
     * Documentation for signature generation:
     * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js]
     * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers]
     *
     * _Available since v4.3._
     */
    function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) {
        if (signature.length == 65) {
            bytes32 r;
            bytes32 s;
            uint8 v;
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            /// @solidity memory-safe-assembly
            assembly {
                r := mload(add(signature, 0x20))
                s := mload(add(signature, 0x40))
                v := byte(0, mload(add(signature, 0x60)))
            }
            return tryRecover(hash, v, r, s);
        } else {
            return (address(0), RecoverError.InvalidSignatureLength);
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature`. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     */
    function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, signature);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately.
     *
     * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures]
     *
     * _Available since v4.3._
     */
    function tryRecover(
        bytes32 hash,
        bytes32 r,
        bytes32 vs
    ) internal pure returns (address, RecoverError) {
        bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff);
        uint8 v = uint8((uint256(vs) >> 255) + 27);
        return tryRecover(hash, v, r, s);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately.
     *
     * _Available since v4.2._
     */
    function recover(
        bytes32 hash,
        bytes32 r,
        bytes32 vs
    ) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, r, vs);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `v`,
     * `r` and `s` signature fields separately.
     *
     * _Available since v4.3._
     */
    function tryRecover(
        bytes32 hash,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal pure returns (address, RecoverError) {
        // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature
        // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines
        // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most
        // signatures from current libraries generate a unique signature with an s-value in the lower half order.
        //
        // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value
        // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or
        // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept
        // these malleable signatures as well.
        if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) {
            return (address(0), RecoverError.InvalidSignatureS);
        }
        if (v != 27 && v != 28) {
            return (address(0), RecoverError.InvalidSignatureV);
        }

        // If the signature is valid (and not malleable), return the signer address
        address signer = ecrecover(hash, v, r, s);
        if (signer == address(0)) {
            return (address(0), RecoverError.InvalidSignature);
        }

        return (signer, RecoverError.NoError);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `v`,
     * `r` and `s` signature fields separately.
     */
    function recover(
        bytes32 hash,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, v, r, s);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from a `hash`. This
     * produces hash corresponding to the one signed with the
     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
     * JSON-RPC method as part of EIP-191.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) {
        // 32 is the length in bytes of hash,
        // enforced by the type signature above
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash));
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from `s`. This
     * produces hash corresponding to the one signed with the
     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
     * JSON-RPC method as part of EIP-191.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s));
    }

    /**
     * @dev Returns an Ethereum Signed Typed Data, created from a
     * `domainSeparator` and a `structHash`. This produces hash corresponding
     * to the one signed with the
     * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`]
     * JSON-RPC method as part of EIP-712.
     *
     * See {recover}.
     */
    function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash));
    }
}

File 8 of 14 : ERC721B.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.8.15;

import '@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol';

error ApprovalCallerNotOwnerNorApproved();
error ApprovalQueryForNonexistentToken();
error ApproveToCaller();
error ApprovalToCurrentOwner();
error BalanceQueryForZeroAddress();
error MintedQueryForZeroAddress();
error MintToZeroAddress();
error MintZeroQuantity();
error OwnerIndexOutOfBounds();
error OwnerQueryForNonexistentToken();
error TokenIndexOutOfBounds();
error TransferCallerNotOwnerNorApproved();
error TransferFromIncorrectOwner();
error TransferToNonERC721ReceiverImplementer();
error TransferToZeroAddress();
error UnableDetermineTokenOwner();
error UnableGetTokenOwnerByIndex();
error URIQueryForNonexistentToken();

/**
 * Updated, minimalist and gas efficient version of OpenZeppelins ERC721 contract.
 * Includes the Metadata and  Enumerable extension.
 *
 * Assumes serials are sequentially minted starting at 0 (e.g. 0, 1, 2, 3..).
 * Does not support burning tokens
 *
 * @author beskay0x
 * Credits: chiru-labs, solmate, transmissions11, nftchance, squeebo_nft and others
 */

abstract contract ERC721B {
    /*///////////////////////////////////////////////////////////////
                                 EVENTS
    //////////////////////////////////////////////////////////////*/

    event Transfer(address indexed from, address indexed to, uint256 indexed id);

    event Approval(address indexed owner, address indexed spender, uint256 indexed id);

    event ApprovalForAll(address indexed owner, address indexed operator, bool approved);

    /*///////////////////////////////////////////////////////////////
                          METADATA STORAGE/LOGIC
    //////////////////////////////////////////////////////////////*/

    string public name;

    string public symbol;

    function tokenURI(uint256 tokenId) public view virtual returns (string memory);

    /*///////////////////////////////////////////////////////////////
                          ERC721 STORAGE
    //////////////////////////////////////////////////////////////*/

    // Array which maps token ID to address (index is tokenID)
    address[] internal _owners;

    // 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;

    /*///////////////////////////////////////////////////////////////
                              CONSTRUCTOR
    //////////////////////////////////////////////////////////////*/

    constructor(string memory _name, string memory _symbol) {
        name = _name;
        symbol = _symbol;
    }

    /*///////////////////////////////////////////////////////////////
                              ERC165 LOGIC
    //////////////////////////////////////////////////////////////*/

    function supportsInterface(bytes4 interfaceId) public view virtual returns (bool) {
        return
            interfaceId == 0x01ffc9a7 || // ERC165 Interface ID for ERC165
            interfaceId == 0x80ac58cd || // ERC165 Interface ID for ERC721
            interfaceId == 0x780e9d63 || // ERC165 Interface ID for ERC721Enumerable
            interfaceId == 0x5b5e139f; // ERC165 Interface ID for ERC721Metadata
    }

    /*///////////////////////////////////////////////////////////////
                       ERC721ENUMERABLE LOGIC
    //////////////////////////////////////////////////////////////*/

    /**
     * @dev See {IERC721Enumerable-totalSupply}.
     */
    function totalSupply() public view returns (uint256) {
        return _owners.length;
    }

    /**
     * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}.
     * Dont call this function on chain from another smart contract, since it can become quite expensive
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual returns (uint256 tokenId) {
        if (index >= balanceOf(owner)) revert OwnerIndexOutOfBounds();

        uint256 count;
        uint256 qty = _owners.length;
        // Cannot realistically overflow, since we are using uint256
        unchecked {
            for (tokenId; tokenId < qty; tokenId++) {
                if (owner == ownerOf(tokenId)) {
                    if (count == index) return tokenId;
                    else count++;
                }
            }
        }

        revert UnableGetTokenOwnerByIndex();
    }

    /**
     * @dev See {IERC721Enumerable-tokenByIndex}.
     */
    function tokenByIndex(uint256 index) public view virtual returns (uint256) {
        if (index >= totalSupply()) revert TokenIndexOutOfBounds();
        return index;
    }

    /*///////////////////////////////////////////////////////////////
                              ERC721 LOGIC
    //////////////////////////////////////////////////////////////*/

    /**
     * @dev Iterates through _owners array, returns balance of address
     * It is not recommended to call this function from another smart contract
     * as it can become quite expensive -- call this function off chain instead.
     */
    function balanceOf(address owner) public view virtual returns (uint256) {
        if (owner == address(0)) revert BalanceQueryForZeroAddress();

        uint256 count;
        uint256 qty = _owners.length;
        // Cannot realistically overflow, since we are using uint256
        unchecked {
            for (uint256 i; i < qty; i++) {
                if (owner == ownerOf(i)) {
                    count++;
                }
            }
        }
        return count;
    }

    /**
     * @dev See {IERC721-ownerOf}.
     * Gas spent here starts off proportional to the maximum mint batch size.
     * It gradually moves to O(1) as tokens get transferred around in the collection over time.
     */
    function ownerOf(uint256 tokenId) public view virtual returns (address) {
        if (!_exists(tokenId)) revert OwnerQueryForNonexistentToken();

        // Cannot realistically overflow, since we are using uint256
        unchecked {
            for (tokenId; ; tokenId++) {
                if (_owners[tokenId] != address(0)) {
                    return _owners[tokenId];
                }
            }
        }

        revert UnableDetermineTokenOwner();
    }

    /**
     * @dev See {IERC721-approve}.
     */
    function approve(address to, uint256 tokenId) public virtual {
        address owner = ownerOf(tokenId);
        if (to == owner) revert ApprovalToCurrentOwner();

        if (msg.sender != owner && !isApprovedForAll(owner, msg.sender)) revert ApprovalCallerNotOwnerNorApproved();

        _tokenApprovals[tokenId] = to;
        emit Approval(owner, to, tokenId);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view virtual returns (address) {
        if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken();

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual {
        if (operator == msg.sender) revert ApproveToCaller();

        _operatorApprovals[msg.sender][operator] = approved;
        emit ApprovalForAll(msg.sender, operator, approved);
    }

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

    /**
     * @dev See {IERC721-transferFrom}.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual {
        if (!_exists(tokenId)) revert OwnerQueryForNonexistentToken();
        if (ownerOf(tokenId) != from) revert TransferFromIncorrectOwner();
        if (to == address(0)) revert TransferToZeroAddress();

        bool isApprovedOrOwner = (msg.sender == from ||
            msg.sender == getApproved(tokenId) ||
            isApprovedForAll(from, msg.sender));
        if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved();

        // delete token approvals from previous owner
        delete _tokenApprovals[tokenId];
        _owners[tokenId] = to;

        // if token ID below transferred one isnt set, set it to previous owner
        // if tokenid is zero, skip this to prevent underflow
        if (tokenId > 0 && _owners[tokenId - 1] == address(0)) {
            _owners[tokenId - 1] = from;
        }

        emit Transfer(from, to, tokenId);
    }

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

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 id,
        bytes memory data
    ) public virtual {
        transferFrom(from, to, id);

        if (!_checkOnERC721Received(from, to, id, data)) revert TransferToNonERC721ReceiverImplementer();
    }

    /**
     * @dev Returns whether `tokenId` exists.
     */
    function _exists(uint256 tokenId) internal view virtual returns (bool) {
        return tokenId < _owners.length;
    }

    /**
     * @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.code.length == 0) return true;

        try IERC721Receiver(to).onERC721Received(msg.sender, from, tokenId, _data) returns (bytes4 retval) {
            return retval == IERC721Receiver(to).onERC721Received.selector;
        } catch (bytes memory reason) {
            if (reason.length == 0) revert TransferToNonERC721ReceiverImplementer();

            assembly {
                revert(add(32, reason), mload(reason))
            }
        }
    }

    /*///////////////////////////////////////////////////////////////
                       INTERNAL MINT LOGIC
    //////////////////////////////////////////////////////////////*/

    /**
     * @dev check if contract confirms token transfer, if not - reverts
     * unlike the standard ERC721 implementation this is only called once per mint,
     * no matter how many tokens get minted, since it is useless to check this
     * requirement several times -- if the contract confirms one token,
     * it will confirm all additional ones too.
     * This saves us around 5k gas per additional mint
     */
    function _safeMint(address to, uint256 qty) internal virtual {
        _safeMint(to, qty, '');
    }

    function _safeMint(
        address to,
        uint256 qty,
        bytes memory data
    ) internal virtual {
        _mint(to, qty);

        if (!_checkOnERC721Received(address(0), to, _owners.length - 1, data))
            revert TransferToNonERC721ReceiverImplementer();
    }

    function _mint(address to, uint256 qty) internal virtual {
        if (to == address(0)) revert MintToZeroAddress();
        if (qty == 0) revert MintZeroQuantity();

        uint256 _currentIndex = _owners.length;

        // Cannot realistically overflow, since we are using uint256
        unchecked {
            for (uint256 i; i < qty - 1; i++) {
                _owners.push();
                emit Transfer(address(0), to, _currentIndex + i);
            }
        }

        // set last index to receiver
        _owners.push(to);
        emit Transfer(address(0), to, _currentIndex + (qty - 1));
    }
}

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

pragma solidity ^0.8.0;

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

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

File 10 of 14 : IERC2981.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (interfaces/IERC2981.sol)

pragma solidity ^0.8.0;

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

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

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

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

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

pragma solidity ^0.8.0;

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"name_","type":"string"},{"internalType":"string","name":"symbol_","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApprovalToCurrentOwner","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerIndexOutOfBounds","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"TokenIndexOutOfBounds","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"UnableDetermineTokenOwner","type":"error"},{"inputs":[],"name":"UnableGetTokenOwnerByIndex","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":true,"internalType":"uint256","name":"id","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":"recipient","type":"address"},{"indexed":false,"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"ManualMintedPolarBear","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"recipient","type":"address"},{"indexed":false,"internalType":"uint256","name":"quantity","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"nonce","type":"uint256"}],"name":"MintedPolarBear","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"baseURI","type":"string"}],"name":"SetBaseURI","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"royaltyAddress","type":"address"},{"indexed":false,"internalType":"uint96","name":"fee","type":"uint96"}],"name":"SetRoyalty","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":"id","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"POLARBEARNFT_TYPEHASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"VERIFY_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"exists","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"manualMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"},{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","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":"id","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":"address","name":"_royaltyAddress","type":"address"},{"internalType":"uint96","name":"fee","type":"uint96"}],"name":"setRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"setupVerifyRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6101406040523480156200001257600080fd5b5060405162002c7938038062002c7983398101604081905262000035916200026f565b6040518060400160405280601481526020017f506f6c6172426561724e4654436f6e7472616374000000000000000000000000815250604051806040016040528060058152602001640312e302e360dc1b815250838381600290816200009c919062000368565b506003620000ab828262000368565b5050825160209384012082519284019290922060e08390526101008190524660a0818152604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f818901819052818301979097526060810194909452608080850193909352308483018190528151808603909301835260c0948501909152815191909601209052929092526101205250620001483362000150565b505062000434565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b634e487b7160e01b600052604160045260246000fd5b600082601f830112620001ca57600080fd5b81516001600160401b0380821115620001e757620001e7620001a2565b604051601f8301601f19908116603f01168101908282118183101715620002125762000212620001a2565b816040528381526020925086838588010111156200022f57600080fd5b600091505b8382101562000253578582018301518183018401529082019062000234565b83821115620002655760008385830101525b9695505050505050565b600080604083850312156200028357600080fd5b82516001600160401b03808211156200029b57600080fd5b620002a986838701620001b8565b93506020850151915080821115620002c057600080fd5b50620002cf85828601620001b8565b9150509250929050565b600181811c90821680620002ee57607f821691505b6020821081036200030f57634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200036357600081815260208120601f850160051c810160208610156200033e5750805b601f850160051c820191505b818110156200035f578281556001016200034a565b5050505b505050565b81516001600160401b03811115620003845762000384620001a2565b6200039c81620003958454620002d9565b8462000315565b602080601f831160018114620003d45760008415620003bb5750858301515b600019600386901b1c1916600185901b1785556200035f565b600085815260208120601f198616915b828110156200040557888601518255948401946001909101908401620003e4565b5085821015620004245787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60805160a05160c05160e05161010051610120516127f5620004846000396000611c0501526000611c5401526000611c2f01526000611b8801526000611bb201526000611bdc01526127f56000f3fe608060405234801561001057600080fd5b50600436106102065760003560e01c806370a082311161011a578063a9e12067116100ad578063d41d0e5c1161007c578063d41d0e5c14610482578063d547741f146104a9578063e4c5ff46146104bc578063e985e9c5146104cf578063f2fde38b146104e257600080fd5b8063a9e1206714610422578063b88d4fde14610435578063b9a6046414610448578063c87b56dd1461046f57600080fd5b806391d14854116100e957806391d14854146103ec57806395d89b41146103ff578063a217fddf14610407578063a22cb4651461040f57600080fd5b806370a08231146103ad578063715018a6146103c05780638da5cb5b146103c85780638f2fc60b146103d957600080fd5b80632f2ff15d1161019d5780634a9eee691161016c5780634a9eee691461034e5780634f558e79146103615780634f6ccce71461037457806355f804b3146103875780636352211e1461039a57600080fd5b80632f2ff15d146103025780632f745c591461031557806336568abe1461032857806342842e0e1461033b57600080fd5b806318160ddd116101d957806318160ddd1461028857806323b872dd1461029a578063248a9ca3146102ad5780632a55205a146102d057600080fd5b806301ffc9a71461020b57806306fdde0314610233578063081812fc14610248578063095ea7b314610273575b600080fd5b61021e610219366004611f9d565b6104f5565b60405190151581526020015b60405180910390f35b61023b610506565b60405161022a9190612012565b61025b610256366004612025565b610594565b6040516001600160a01b03909116815260200161022a565b61028661028136600461205a565b6105da565b005b6004545b60405190815260200161022a565b6102866102a8366004612084565b6106b3565b61028c6102bb366004612025565b60009081526007602052604090206001015490565b6102e36102de3660046120c0565b6108d8565b604080516001600160a01b03909316835260208301919091520161022a565b6102866103103660046120e2565b610986565b61028c61032336600461205a565b6109b0565b6102866103363660046120e2565b610a43565b610286610349366004612084565b610ac6565b61028661035c366004612150565b610ae1565b61021e61036f366004612025565b610c93565b61028c610382366004612025565b610ca0565b6102866103953660046121b1565b610cce565b61025b6103a8366004612025565b610d21565b61028c6103bb3660046121f3565b610dbc565b610286610e2e565b6008546001600160a01b031661025b565b6102866103e736600461220e565b610e42565b61021e6103fa3660046120e2565b610eed565b61023b610f18565b61028c600081565b61028661041d366004612251565b610f25565b6102866104303660046121f3565b610fba565b610286610443366004612298565b610fef565b61028c7fdc6859579061dfe8b50dccc3817b10c2c38308a24fa7bc2990e8f180537ccd3981565b61023b61047d366004612025565b611029565b61028c7fd262a1e181ec035692bcc8c920b971bccc173d5263f104f91c1561b5033679dd81565b6102866104b73660046120e2565b61108f565b6102866104ca36600461205a565b6110b4565b61021e6104dd366004612374565b61113d565b6102866104f03660046121f3565b61116b565b6000610500826111e1565b92915050565b600280546105139061239e565b80601f016020809104026020016040519081016040528092919081815260200182805461053f9061239e565b801561058c5780601f106105615761010080835404028352916020019161058c565b820191906000526020600020905b81548152906001019060200180831161056f57829003601f168201915b505050505081565b60006105a1826004541190565b6105be576040516333d1c03960e21b815260040160405180910390fd5b506000908152600560205260409020546001600160a01b031690565b60006105e582610d21565b9050806001600160a01b0316836001600160a01b0316036106195760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b038216148015906106395750610637813361113d565b155b15610657576040516367d9dca160e11b815260040160405180910390fd5b60008281526005602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6106be816004541190565b6106db57604051636f96cda160e11b815260040160405180910390fd5b826001600160a01b03166106ee82610d21565b6001600160a01b0316146107145760405162a1148160e81b815260040160405180910390fd5b6001600160a01b03821661073b57604051633a954ecd60e21b815260040160405180910390fd5b6000336001600160a01b038516148061076d575061075882610594565b6001600160a01b0316336001600160a01b0316145b8061077d575061077d843361113d565b90508061079d57604051632ce44b5f60e11b815260040160405180910390fd5b600082815260056020526040902080546001600160a01b031916905560048054849190849081106107d0576107d06123d8565b9060005260206000200160006101000a8154816001600160a01b0302191690836001600160a01b0316021790555060008211801561083f575060006004610818600185612404565b81548110610828576108286123d8565b6000918252602090912001546001600160a01b0316145b1561089157836004610852600185612404565b81548110610862576108626123d8565b9060005260206000200160006101000a8154816001600160a01b0302191690836001600160a01b031602179055505b81836001600160a01b0316856001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a450505050565b60008281526001602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b031692820192909252829161094d5750604080518082019091526000546001600160a01b0381168252600160a01b90046001600160601b031660208201525b60208101516000906127109061096c906001600160601b03168761241b565b6109769190612450565b91519350909150505b9250929050565b6000828152600760205260409020600101546109a181611206565b6109ab8383611210565b505050565b60006109bb83610dbc565b82106109da576040516306ed618760e11b815260040160405180910390fd5b6004546000905b80831015610a2a576109f283610d21565b6001600160a01b0316856001600160a01b031603610a1f57838203610a18575050610500565b6001909101905b6001909201916109e1565b604051637339954760e01b815260040160405180910390fd5b6001600160a01b0381163314610ab85760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b60648201526084015b60405180910390fd5b610ac28282611296565b5050565b6109ab83838360405180602001604052806000815250610fef565b333214610b3c5760405162461bcd60e51b8152602060048201526024808201527f43616e206e6f74206d696e74204e465420746f20636f6e7472616374206164646044820152637265737360e01b6064820152608401610aaf565b82421115610b8c5760405162461bcd60e51b815260206004820152601a60248201527f496e76616c69642065787069726174696f6e20696e206d696e740000000000006044820152606401610aaf565b60045461138890610b9e908790612464565b1115610bbc5760405162461bcd60e51b8152600401610aaf9061247c565b610c07610bcb338787876112fd565b83838080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061137d92505050565b610c475760405162461bcd60e51b8152602060048201526011602482015270496e76616c6964207369676e617475726560781b6044820152606401610aaf565b610c5133866113b4565b604080518681526020810186905233917f580f3a9f233290a970cb71ea7679c59f5443f72352cc0c16902a7080c53e549b910160405180910390a25050505050565b6000610500826004541190565b6000610cab60045490565b8210610cca576040516329c8c00760e21b815260040160405180910390fd5b5090565b610cd66114f5565b6009610ce382848361250f565b507f23c8c9488efebfd474e85a7956de6f39b17c7ab88502d42a623db2d8e382bbaa8282604051610d159291906125d0565b60405180910390a15050565b6000610d2e826004541190565b610d4b57604051636f96cda160e11b815260040160405180910390fd5b60006001600160a01b031660048381548110610d6957610d696123d8565b6000918252602090912001546001600160a01b031614610db15760048281548110610d9657610d966123d8565b6000918252602090912001546001600160a01b031692915050565b600190910190610d4b565b60006001600160a01b038216610de5576040516323d3ad8160e21b815260040160405180910390fd5b600454600090815b81811015610e2557610dfe81610d21565b6001600160a01b0316856001600160a01b031603610e1d576001909201915b600101610ded565b50909392505050565b610e366114f5565b610e40600061154f565b565b610e4a6114f5565b612710816001600160601b031610610e9c5760405162461bcd60e51b8152602060048201526015602482015274496e636f727265637420726f79616c74792066656560581b6044820152606401610aaf565b610ea682826115a1565b604080516001600160a01b03841681526001600160601b03831660208201527f9468d3b471de0b6cdb1448e57f72866ad8cc544a2a711a4587e5dbb2ef8298839101610d15565b60009182526007602090815260408084206001600160a01b0393909316845291905290205460ff1690565b600380546105139061239e565b336001600160a01b03831603610f4e5760405163b06307db60e01b815260040160405180910390fd5b3360008181526006602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b610fc26114f5565b610fec7fd262a1e181ec035692bcc8c920b971bccc173d5263f104f91c1561b5033679dd82611210565b50565b610ffa8484846106b3565b6110068484848461169e565b611023576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b6060611036826004541190565b61105357604051636f96cda160e11b815260040160405180910390fd5b6009611068611063846001612464565b61179f565b6040516020016110799291906125ff565b6040516020818303038152906040529050919050565b6000828152600760205260409020600101546110aa81611206565b6109ab8383611296565b6110bc6114f5565b600454611388906110ce908390612464565b11156110ec5760405162461bcd60e51b8152600401610aaf9061247c565b6110f682826113b4565b816001600160a01b03167fd7b45b481fe95ccd2bdccf53e79e7407b2dc1c111d0061ab4d16768ea5f7cba28260405161113191815260200190565b60405180910390a25050565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b6111736114f5565b6001600160a01b0381166111d85760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610aaf565b610fec8161154f565b60006001600160e01b03198216637965db0b60e01b14806105005750610500826118a0565b610fec8133611909565b61121a8282610eed565b610ac25760008281526007602090815260408083206001600160a01b03851684529091529020805460ff191660011790556112523390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6112a08282610eed565b15610ac25760008281526007602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b604080517fdc6859579061dfe8b50dccc3817b10c2c38308a24fa7bc2990e8f180537ccd3960208201526001600160a01b03861691810191909152606081018490526080810183905260a081018290526000906113729060c0016040516020818303038152906040528051906020012061196d565b90505b949350505050565b60006113ad7fd262a1e181ec035692bcc8c920b971bccc173d5263f104f91c1561b5033679dd6103fa85856119bb565b9392505050565b6001600160a01b0382166113da57604051622e076360e81b815260040160405180910390fd5b806000036113fb5760405163b562e8dd60e01b815260040160405180910390fd5b60045460005b60018303811015611459576004805460010181556000908152604051838301916001600160a01b038716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4600101611401565b5060048054600180820183556000929092527f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b0180546001600160a01b0319166001600160a01b0386161790556114b09083612404565b6114ba9082612464565b6040516001600160a01b038516906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4505050565b6008546001600160a01b03163314610e405760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610aaf565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6127106001600160601b038216111561160f5760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b6064820152608401610aaf565b6001600160a01b0382166116655760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152606401610aaf565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600055565b6000836001600160a01b03163b6000036116ba57506001611375565b604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906116ec903390899088908890600401612696565b6020604051808303816000875af1925050508015611727575060408051601f3d908101601f19168201909252611724918101906126d3565b60015b611785573d808015611755576040519150601f19603f3d011682016040523d82523d6000602084013e61175a565b606091505b50805160000361177d576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611375565b6060816000036117c65750506040805180820190915260018152600360fc1b602082015290565b8160005b81156117f057806117da816126f0565b91506117e99050600a83612450565b91506117ca565b60008167ffffffffffffffff81111561180b5761180b612282565b6040519080825280601f01601f191660200182016040528015611835576020820181803683370190505b5090505b84156113755761184a600183612404565b9150611857600a86612709565b611862906030612464565b60f81b818381518110611877576118776123d8565b60200101906001600160f81b031916908160001a905350611899600a86612450565b9450611839565b60006301ffc9a760e01b6001600160e01b0319831614806118d157506380ac58cd60e01b6001600160e01b03198316145b806118ec575063780e9d6360e01b6001600160e01b03198316145b806105005750506001600160e01b031916635b5e139f60e01b1490565b6119138282610eed565b610ac25761192b816001600160a01b031660146119df565b6119368360206119df565b60405160200161194792919061271d565b60408051601f198184030181529082905262461bcd60e51b8252610aaf91600401612012565b600061050061197a611b7b565b8360405161190160f01b6020820152602281018390526042810182905260009060620160405160208183030381529060405280519060200120905092915050565b60008060006119ca8585611ca2565b915091506119d781611ce4565b509392505050565b606060006119ee83600261241b565b6119f9906002612464565b67ffffffffffffffff811115611a1157611a11612282565b6040519080825280601f01601f191660200182016040528015611a3b576020820181803683370190505b509050600360fc1b81600081518110611a5657611a566123d8565b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110611a8557611a856123d8565b60200101906001600160f81b031916908160001a9053506000611aa984600261241b565b611ab4906001612464565b90505b6001811115611b2c576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110611ae857611ae86123d8565b1a60f81b828281518110611afe57611afe6123d8565b60200101906001600160f81b031916908160001a90535060049490941c93611b2581612792565b9050611ab7565b5083156113ad5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610aaf565b6000306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148015611bd457507f000000000000000000000000000000000000000000000000000000000000000046145b15611bfe57507f000000000000000000000000000000000000000000000000000000000000000090565b50604080517f00000000000000000000000000000000000000000000000000000000000000006020808301919091527f0000000000000000000000000000000000000000000000000000000000000000828401527f000000000000000000000000000000000000000000000000000000000000000060608301524660808301523060a0808401919091528351808403909101815260c0909201909252805191012090565b6000808251604103611cd85760208301516040840151606085015160001a611ccc87828585611e9a565b9450945050505061097f565b5060009050600261097f565b6000816004811115611cf857611cf86127a9565b03611d005750565b6001816004811115611d1457611d146127a9565b03611d615760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610aaf565b6002816004811115611d7557611d756127a9565b03611dc25760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610aaf565b6003816004811115611dd657611dd66127a9565b03611e2e5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610aaf565b6004816004811115611e4257611e426127a9565b03610fec5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610aaf565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115611ed15750600090506003611f7e565b8460ff16601b14158015611ee957508460ff16601c14155b15611efa5750600090506004611f7e565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015611f4e573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116611f7757600060019250925050611f7e565b9150600090505b94509492505050565b6001600160e01b031981168114610fec57600080fd5b600060208284031215611faf57600080fd5b81356113ad81611f87565b60005b83811015611fd5578181015183820152602001611fbd565b838111156110235750506000910152565b60008151808452611ffe816020860160208601611fba565b601f01601f19169290920160200192915050565b6020815260006113ad6020830184611fe6565b60006020828403121561203757600080fd5b5035919050565b80356001600160a01b038116811461205557600080fd5b919050565b6000806040838503121561206d57600080fd5b6120768361203e565b946020939093013593505050565b60008060006060848603121561209957600080fd5b6120a28461203e565b92506120b06020850161203e565b9150604084013590509250925092565b600080604083850312156120d357600080fd5b50508035926020909101359150565b600080604083850312156120f557600080fd5b823591506121056020840161203e565b90509250929050565b60008083601f84011261212057600080fd5b50813567ffffffffffffffff81111561213857600080fd5b60208301915083602082850101111561097f57600080fd5b60008060008060006080868803121561216857600080fd5b853594506020860135935060408601359250606086013567ffffffffffffffff81111561219457600080fd5b6121a08882890161210e565b969995985093965092949392505050565b600080602083850312156121c457600080fd5b823567ffffffffffffffff8111156121db57600080fd5b6121e78582860161210e565b90969095509350505050565b60006020828403121561220557600080fd5b6113ad8261203e565b6000806040838503121561222157600080fd5b61222a8361203e565b915060208301356001600160601b038116811461224657600080fd5b809150509250929050565b6000806040838503121561226457600080fd5b61226d8361203e565b91506020830135801515811461224657600080fd5b634e487b7160e01b600052604160045260246000fd5b600080600080608085870312156122ae57600080fd5b6122b78561203e565b93506122c56020860161203e565b925060408501359150606085013567ffffffffffffffff808211156122e957600080fd5b818701915087601f8301126122fd57600080fd5b81358181111561230f5761230f612282565b604051601f8201601f19908116603f0116810190838211818310171561233757612337612282565b816040528281528a602084870101111561235057600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b6000806040838503121561238757600080fd5b6123908361203e565b91506121056020840161203e565b600181811c908216806123b257607f821691505b6020821081036123d257634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600082821015612416576124166123ee565b500390565b6000816000190483118215151615612435576124356123ee565b500290565b634e487b7160e01b600052601260045260246000fd5b60008261245f5761245f61243a565b500490565b60008219821115612477576124776123ee565b500190565b60208082526025908201527f43616e206e6f74206d696e74204e4654206d6f7265207468616e204d41585f536040820152645550504c5960d81b606082015260800190565b601f8211156109ab57600081815260208120601f850160051c810160208610156124e85750805b601f850160051c820191505b81811015612507578281556001016124f4565b505050505050565b67ffffffffffffffff83111561252757612527612282565b61253b83612535835461239e565b836124c1565b6000601f84116001811461256f57600085156125575750838201355b600019600387901b1c1916600186901b1783556125c9565b600083815260209020601f19861690835b828110156125a05786850135825560209485019460019092019101612580565b50868210156125bd5760001960f88860031b161c19848701351681555b505060018560011b0183555b5050505050565b60208152816020820152818360408301376000818301604090810191909152601f909201601f19160101919050565b600080845461260d8161239e565b60018281168015612625576001811461263a57612669565b60ff1984168752821515830287019450612669565b8860005260208060002060005b858110156126605781548a820152908401908201612647565b50505082870194505b50505050835161267d818360208801611fba565b64173539b7b760d91b9101908152600501949350505050565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906126c990830184611fe6565b9695505050505050565b6000602082840312156126e557600080fd5b81516113ad81611f87565b600060018201612702576127026123ee565b5060010190565b6000826127185761271861243a565b500690565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351612755816017850160208801611fba565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351612786816028840160208801611fba565b01602801949350505050565b6000816127a1576127a16123ee565b506000190190565b634e487b7160e01b600052602160045260246000fdfea264697066735822122024ae941fe57e28c3776b22674f18d3dfc4a739590f18ca4176b18bba04b033d964736f6c634300080f0033000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000013506f6c6172797320506f6c6172204265617273000000000000000000000000000000000000000000000000000000000000000000000000000000000000000009504f4c4152424541520000000000000000000000000000000000000000000000

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106102065760003560e01c806370a082311161011a578063a9e12067116100ad578063d41d0e5c1161007c578063d41d0e5c14610482578063d547741f146104a9578063e4c5ff46146104bc578063e985e9c5146104cf578063f2fde38b146104e257600080fd5b8063a9e1206714610422578063b88d4fde14610435578063b9a6046414610448578063c87b56dd1461046f57600080fd5b806391d14854116100e957806391d14854146103ec57806395d89b41146103ff578063a217fddf14610407578063a22cb4651461040f57600080fd5b806370a08231146103ad578063715018a6146103c05780638da5cb5b146103c85780638f2fc60b146103d957600080fd5b80632f2ff15d1161019d5780634a9eee691161016c5780634a9eee691461034e5780634f558e79146103615780634f6ccce71461037457806355f804b3146103875780636352211e1461039a57600080fd5b80632f2ff15d146103025780632f745c591461031557806336568abe1461032857806342842e0e1461033b57600080fd5b806318160ddd116101d957806318160ddd1461028857806323b872dd1461029a578063248a9ca3146102ad5780632a55205a146102d057600080fd5b806301ffc9a71461020b57806306fdde0314610233578063081812fc14610248578063095ea7b314610273575b600080fd5b61021e610219366004611f9d565b6104f5565b60405190151581526020015b60405180910390f35b61023b610506565b60405161022a9190612012565b61025b610256366004612025565b610594565b6040516001600160a01b03909116815260200161022a565b61028661028136600461205a565b6105da565b005b6004545b60405190815260200161022a565b6102866102a8366004612084565b6106b3565b61028c6102bb366004612025565b60009081526007602052604090206001015490565b6102e36102de3660046120c0565b6108d8565b604080516001600160a01b03909316835260208301919091520161022a565b6102866103103660046120e2565b610986565b61028c61032336600461205a565b6109b0565b6102866103363660046120e2565b610a43565b610286610349366004612084565b610ac6565b61028661035c366004612150565b610ae1565b61021e61036f366004612025565b610c93565b61028c610382366004612025565b610ca0565b6102866103953660046121b1565b610cce565b61025b6103a8366004612025565b610d21565b61028c6103bb3660046121f3565b610dbc565b610286610e2e565b6008546001600160a01b031661025b565b6102866103e736600461220e565b610e42565b61021e6103fa3660046120e2565b610eed565b61023b610f18565b61028c600081565b61028661041d366004612251565b610f25565b6102866104303660046121f3565b610fba565b610286610443366004612298565b610fef565b61028c7fdc6859579061dfe8b50dccc3817b10c2c38308a24fa7bc2990e8f180537ccd3981565b61023b61047d366004612025565b611029565b61028c7fd262a1e181ec035692bcc8c920b971bccc173d5263f104f91c1561b5033679dd81565b6102866104b73660046120e2565b61108f565b6102866104ca36600461205a565b6110b4565b61021e6104dd366004612374565b61113d565b6102866104f03660046121f3565b61116b565b6000610500826111e1565b92915050565b600280546105139061239e565b80601f016020809104026020016040519081016040528092919081815260200182805461053f9061239e565b801561058c5780601f106105615761010080835404028352916020019161058c565b820191906000526020600020905b81548152906001019060200180831161056f57829003601f168201915b505050505081565b60006105a1826004541190565b6105be576040516333d1c03960e21b815260040160405180910390fd5b506000908152600560205260409020546001600160a01b031690565b60006105e582610d21565b9050806001600160a01b0316836001600160a01b0316036106195760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b038216148015906106395750610637813361113d565b155b15610657576040516367d9dca160e11b815260040160405180910390fd5b60008281526005602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6106be816004541190565b6106db57604051636f96cda160e11b815260040160405180910390fd5b826001600160a01b03166106ee82610d21565b6001600160a01b0316146107145760405162a1148160e81b815260040160405180910390fd5b6001600160a01b03821661073b57604051633a954ecd60e21b815260040160405180910390fd5b6000336001600160a01b038516148061076d575061075882610594565b6001600160a01b0316336001600160a01b0316145b8061077d575061077d843361113d565b90508061079d57604051632ce44b5f60e11b815260040160405180910390fd5b600082815260056020526040902080546001600160a01b031916905560048054849190849081106107d0576107d06123d8565b9060005260206000200160006101000a8154816001600160a01b0302191690836001600160a01b0316021790555060008211801561083f575060006004610818600185612404565b81548110610828576108286123d8565b6000918252602090912001546001600160a01b0316145b1561089157836004610852600185612404565b81548110610862576108626123d8565b9060005260206000200160006101000a8154816001600160a01b0302191690836001600160a01b031602179055505b81836001600160a01b0316856001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a450505050565b60008281526001602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b031692820192909252829161094d5750604080518082019091526000546001600160a01b0381168252600160a01b90046001600160601b031660208201525b60208101516000906127109061096c906001600160601b03168761241b565b6109769190612450565b91519350909150505b9250929050565b6000828152600760205260409020600101546109a181611206565b6109ab8383611210565b505050565b60006109bb83610dbc565b82106109da576040516306ed618760e11b815260040160405180910390fd5b6004546000905b80831015610a2a576109f283610d21565b6001600160a01b0316856001600160a01b031603610a1f57838203610a18575050610500565b6001909101905b6001909201916109e1565b604051637339954760e01b815260040160405180910390fd5b6001600160a01b0381163314610ab85760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b60648201526084015b60405180910390fd5b610ac28282611296565b5050565b6109ab83838360405180602001604052806000815250610fef565b333214610b3c5760405162461bcd60e51b8152602060048201526024808201527f43616e206e6f74206d696e74204e465420746f20636f6e7472616374206164646044820152637265737360e01b6064820152608401610aaf565b82421115610b8c5760405162461bcd60e51b815260206004820152601a60248201527f496e76616c69642065787069726174696f6e20696e206d696e740000000000006044820152606401610aaf565b60045461138890610b9e908790612464565b1115610bbc5760405162461bcd60e51b8152600401610aaf9061247c565b610c07610bcb338787876112fd565b83838080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061137d92505050565b610c475760405162461bcd60e51b8152602060048201526011602482015270496e76616c6964207369676e617475726560781b6044820152606401610aaf565b610c5133866113b4565b604080518681526020810186905233917f580f3a9f233290a970cb71ea7679c59f5443f72352cc0c16902a7080c53e549b910160405180910390a25050505050565b6000610500826004541190565b6000610cab60045490565b8210610cca576040516329c8c00760e21b815260040160405180910390fd5b5090565b610cd66114f5565b6009610ce382848361250f565b507f23c8c9488efebfd474e85a7956de6f39b17c7ab88502d42a623db2d8e382bbaa8282604051610d159291906125d0565b60405180910390a15050565b6000610d2e826004541190565b610d4b57604051636f96cda160e11b815260040160405180910390fd5b60006001600160a01b031660048381548110610d6957610d696123d8565b6000918252602090912001546001600160a01b031614610db15760048281548110610d9657610d966123d8565b6000918252602090912001546001600160a01b031692915050565b600190910190610d4b565b60006001600160a01b038216610de5576040516323d3ad8160e21b815260040160405180910390fd5b600454600090815b81811015610e2557610dfe81610d21565b6001600160a01b0316856001600160a01b031603610e1d576001909201915b600101610ded565b50909392505050565b610e366114f5565b610e40600061154f565b565b610e4a6114f5565b612710816001600160601b031610610e9c5760405162461bcd60e51b8152602060048201526015602482015274496e636f727265637420726f79616c74792066656560581b6044820152606401610aaf565b610ea682826115a1565b604080516001600160a01b03841681526001600160601b03831660208201527f9468d3b471de0b6cdb1448e57f72866ad8cc544a2a711a4587e5dbb2ef8298839101610d15565b60009182526007602090815260408084206001600160a01b0393909316845291905290205460ff1690565b600380546105139061239e565b336001600160a01b03831603610f4e5760405163b06307db60e01b815260040160405180910390fd5b3360008181526006602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b610fc26114f5565b610fec7fd262a1e181ec035692bcc8c920b971bccc173d5263f104f91c1561b5033679dd82611210565b50565b610ffa8484846106b3565b6110068484848461169e565b611023576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b6060611036826004541190565b61105357604051636f96cda160e11b815260040160405180910390fd5b6009611068611063846001612464565b61179f565b6040516020016110799291906125ff565b6040516020818303038152906040529050919050565b6000828152600760205260409020600101546110aa81611206565b6109ab8383611296565b6110bc6114f5565b600454611388906110ce908390612464565b11156110ec5760405162461bcd60e51b8152600401610aaf9061247c565b6110f682826113b4565b816001600160a01b03167fd7b45b481fe95ccd2bdccf53e79e7407b2dc1c111d0061ab4d16768ea5f7cba28260405161113191815260200190565b60405180910390a25050565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b6111736114f5565b6001600160a01b0381166111d85760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610aaf565b610fec8161154f565b60006001600160e01b03198216637965db0b60e01b14806105005750610500826118a0565b610fec8133611909565b61121a8282610eed565b610ac25760008281526007602090815260408083206001600160a01b03851684529091529020805460ff191660011790556112523390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6112a08282610eed565b15610ac25760008281526007602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b604080517fdc6859579061dfe8b50dccc3817b10c2c38308a24fa7bc2990e8f180537ccd3960208201526001600160a01b03861691810191909152606081018490526080810183905260a081018290526000906113729060c0016040516020818303038152906040528051906020012061196d565b90505b949350505050565b60006113ad7fd262a1e181ec035692bcc8c920b971bccc173d5263f104f91c1561b5033679dd6103fa85856119bb565b9392505050565b6001600160a01b0382166113da57604051622e076360e81b815260040160405180910390fd5b806000036113fb5760405163b562e8dd60e01b815260040160405180910390fd5b60045460005b60018303811015611459576004805460010181556000908152604051838301916001600160a01b038716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4600101611401565b5060048054600180820183556000929092527f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b0180546001600160a01b0319166001600160a01b0386161790556114b09083612404565b6114ba9082612464565b6040516001600160a01b038516906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4505050565b6008546001600160a01b03163314610e405760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610aaf565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6127106001600160601b038216111561160f5760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b6064820152608401610aaf565b6001600160a01b0382166116655760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152606401610aaf565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600055565b6000836001600160a01b03163b6000036116ba57506001611375565b604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906116ec903390899088908890600401612696565b6020604051808303816000875af1925050508015611727575060408051601f3d908101601f19168201909252611724918101906126d3565b60015b611785573d808015611755576040519150601f19603f3d011682016040523d82523d6000602084013e61175a565b606091505b50805160000361177d576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611375565b6060816000036117c65750506040805180820190915260018152600360fc1b602082015290565b8160005b81156117f057806117da816126f0565b91506117e99050600a83612450565b91506117ca565b60008167ffffffffffffffff81111561180b5761180b612282565b6040519080825280601f01601f191660200182016040528015611835576020820181803683370190505b5090505b84156113755761184a600183612404565b9150611857600a86612709565b611862906030612464565b60f81b818381518110611877576118776123d8565b60200101906001600160f81b031916908160001a905350611899600a86612450565b9450611839565b60006301ffc9a760e01b6001600160e01b0319831614806118d157506380ac58cd60e01b6001600160e01b03198316145b806118ec575063780e9d6360e01b6001600160e01b03198316145b806105005750506001600160e01b031916635b5e139f60e01b1490565b6119138282610eed565b610ac25761192b816001600160a01b031660146119df565b6119368360206119df565b60405160200161194792919061271d565b60408051601f198184030181529082905262461bcd60e51b8252610aaf91600401612012565b600061050061197a611b7b565b8360405161190160f01b6020820152602281018390526042810182905260009060620160405160208183030381529060405280519060200120905092915050565b60008060006119ca8585611ca2565b915091506119d781611ce4565b509392505050565b606060006119ee83600261241b565b6119f9906002612464565b67ffffffffffffffff811115611a1157611a11612282565b6040519080825280601f01601f191660200182016040528015611a3b576020820181803683370190505b509050600360fc1b81600081518110611a5657611a566123d8565b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110611a8557611a856123d8565b60200101906001600160f81b031916908160001a9053506000611aa984600261241b565b611ab4906001612464565b90505b6001811115611b2c576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110611ae857611ae86123d8565b1a60f81b828281518110611afe57611afe6123d8565b60200101906001600160f81b031916908160001a90535060049490941c93611b2581612792565b9050611ab7565b5083156113ad5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610aaf565b6000306001600160a01b037f00000000000000000000000070c8eb24c5a2a429c635886a433571ee70a93db316148015611bd457507f000000000000000000000000000000000000000000000000000000000000000146145b15611bfe57507f778a70c334915a96e93fb05f5e50e5990742e53256d71634ee7e657d22e67b8e90565b50604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f6020808301919091527f86427206cec9647d8456bb6275ac449b79893b81d2aed927cb4af56295691f20828401527f06c015bd22b4c69690933c1058878ebdfef31f9aaae40bbe86d8a09fe1b2972c60608301524660808301523060a0808401919091528351808403909101815260c0909201909252805191012090565b6000808251604103611cd85760208301516040840151606085015160001a611ccc87828585611e9a565b9450945050505061097f565b5060009050600261097f565b6000816004811115611cf857611cf86127a9565b03611d005750565b6001816004811115611d1457611d146127a9565b03611d615760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610aaf565b6002816004811115611d7557611d756127a9565b03611dc25760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610aaf565b6003816004811115611dd657611dd66127a9565b03611e2e5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610aaf565b6004816004811115611e4257611e426127a9565b03610fec5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610aaf565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115611ed15750600090506003611f7e565b8460ff16601b14158015611ee957508460ff16601c14155b15611efa5750600090506004611f7e565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015611f4e573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116611f7757600060019250925050611f7e565b9150600090505b94509492505050565b6001600160e01b031981168114610fec57600080fd5b600060208284031215611faf57600080fd5b81356113ad81611f87565b60005b83811015611fd5578181015183820152602001611fbd565b838111156110235750506000910152565b60008151808452611ffe816020860160208601611fba565b601f01601f19169290920160200192915050565b6020815260006113ad6020830184611fe6565b60006020828403121561203757600080fd5b5035919050565b80356001600160a01b038116811461205557600080fd5b919050565b6000806040838503121561206d57600080fd5b6120768361203e565b946020939093013593505050565b60008060006060848603121561209957600080fd5b6120a28461203e565b92506120b06020850161203e565b9150604084013590509250925092565b600080604083850312156120d357600080fd5b50508035926020909101359150565b600080604083850312156120f557600080fd5b823591506121056020840161203e565b90509250929050565b60008083601f84011261212057600080fd5b50813567ffffffffffffffff81111561213857600080fd5b60208301915083602082850101111561097f57600080fd5b60008060008060006080868803121561216857600080fd5b853594506020860135935060408601359250606086013567ffffffffffffffff81111561219457600080fd5b6121a08882890161210e565b969995985093965092949392505050565b600080602083850312156121c457600080fd5b823567ffffffffffffffff8111156121db57600080fd5b6121e78582860161210e565b90969095509350505050565b60006020828403121561220557600080fd5b6113ad8261203e565b6000806040838503121561222157600080fd5b61222a8361203e565b915060208301356001600160601b038116811461224657600080fd5b809150509250929050565b6000806040838503121561226457600080fd5b61226d8361203e565b91506020830135801515811461224657600080fd5b634e487b7160e01b600052604160045260246000fd5b600080600080608085870312156122ae57600080fd5b6122b78561203e565b93506122c56020860161203e565b925060408501359150606085013567ffffffffffffffff808211156122e957600080fd5b818701915087601f8301126122fd57600080fd5b81358181111561230f5761230f612282565b604051601f8201601f19908116603f0116810190838211818310171561233757612337612282565b816040528281528a602084870101111561235057600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b6000806040838503121561238757600080fd5b6123908361203e565b91506121056020840161203e565b600181811c908216806123b257607f821691505b6020821081036123d257634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600082821015612416576124166123ee565b500390565b6000816000190483118215151615612435576124356123ee565b500290565b634e487b7160e01b600052601260045260246000fd5b60008261245f5761245f61243a565b500490565b60008219821115612477576124776123ee565b500190565b60208082526025908201527f43616e206e6f74206d696e74204e4654206d6f7265207468616e204d41585f536040820152645550504c5960d81b606082015260800190565b601f8211156109ab57600081815260208120601f850160051c810160208610156124e85750805b601f850160051c820191505b81811015612507578281556001016124f4565b505050505050565b67ffffffffffffffff83111561252757612527612282565b61253b83612535835461239e565b836124c1565b6000601f84116001811461256f57600085156125575750838201355b600019600387901b1c1916600186901b1783556125c9565b600083815260209020601f19861690835b828110156125a05786850135825560209485019460019092019101612580565b50868210156125bd5760001960f88860031b161c19848701351681555b505060018560011b0183555b5050505050565b60208152816020820152818360408301376000818301604090810191909152601f909201601f19160101919050565b600080845461260d8161239e565b60018281168015612625576001811461263a57612669565b60ff1984168752821515830287019450612669565b8860005260208060002060005b858110156126605781548a820152908401908201612647565b50505082870194505b50505050835161267d818360208801611fba565b64173539b7b760d91b9101908152600501949350505050565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906126c990830184611fe6565b9695505050505050565b6000602082840312156126e557600080fd5b81516113ad81611f87565b600060018201612702576127026123ee565b5060010190565b6000826127185761271861243a565b500690565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351612755816017850160208801611fba565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351612786816028840160208801611fba565b01602801949350505050565b6000816127a1576127a16123ee565b506000190190565b634e487b7160e01b600052602160045260246000fdfea264697066735822122024ae941fe57e28c3776b22674f18d3dfc4a739590f18ca4176b18bba04b033d964736f6c634300080f0033

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

000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000013506f6c6172797320506f6c6172204265617273000000000000000000000000000000000000000000000000000000000000000000000000000000000000000009504f4c4152424541520000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : name_ (string): Polarys Polar Bears
Arg [1] : symbol_ (string): POLARBEAR

-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000013
Arg [3] : 506f6c6172797320506f6c617220426561727300000000000000000000000000
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000009
Arg [5] : 504f4c4152424541520000000000000000000000000000000000000000000000


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.