ETH Price: $2,483.89 (-3.03%)

Token

Supreme Skulls (SP)
 

Overview

Max Total Supply

4,040 SP

Holders

1,469

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
2 SP
0x6EFa6AF18263b5E4064c636EB4baC31a49EdE4eE
Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

4,040 Supreme Skulls by JustinNCR. Supreme Skulls are fully animated characters that can be seamlessly integrated into 3D environments.

# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
SupremeSkulls

Compiler Version
v0.8.12+commit.f00d7308

Optimization Enabled:
Yes with 10000 runs

Other Settings:
default evmVersion
File 1 of 21 : SupremeSkulls.sol
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.12;

/**
 *    ███████╗██╗   ██╗██████╗ ██████╗ ███████╗███╗   ███╗███████╗
 *    ██╔════╝██║   ██║██╔══██╗██╔══██╗██╔════╝████╗ ████║██╔════╝
 *    ███████╗██║   ██║██████╔╝██████╔╝█████╗  ██╔████╔██║█████╗
 *    ╚════██║██║   ██║██╔═══╝ ██╔══██╗██╔══╝  ██║╚██╔╝██║██╔══╝
 *    ███████║╚██████╔╝██║     ██║  ██║███████╗██║ ╚═╝ ██║███████╗
 *    ╚══════╝ ╚═════╝ ╚═╝     ╚═╝  ╚═╝╚══════╝╚═╝     ╚═╝╚══════╝
 *
 *    ███████╗██╗  ██╗██╗   ██╗██╗     ██╗     ███████╗
 *    ██╔════╝██║ ██╔╝██║   ██║██║     ██║     ██╔════╝
 *    ███████╗█████╔╝ ██║   ██║██║     ██║     ███████╗
 *    ╚════██║██╔═██╗ ██║   ██║██║     ██║     ╚════██║
 *    ███████║██║  ██╗╚██████╔╝███████╗███████╗███████║
 *    ╚══════╝╚═╝  ╚═╝ ╚═════╝ ╚══════╝╚══════╝╚══════╝
 */

import "./ISupremeSkulls.sol";
import "./token/ERC721Enumerable.sol";
import "./token/ERC2981ContractWideRoyalties.sol";
import "./token/TokenRescuer.sol";
import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";

/**
 * @title Supreme Skulls
 * @author Aaron Hanson <[email protected]> @CoffeeConverter
 */
contract SupremeSkulls is
    ISupremeSkulls,
    ERC721Enumerable,
    ERC2981ContractWideRoyalties,
    TokenRescuer
{
    /// The maximum token supply.
    uint256 public constant MAX_SUPPLY = 6666;

    /// The maximum number of minted tokens per address in the whitelist phase.
    uint256 public constant MAX_WHITELIST_MINT = 2;

    /// The maximum number of minted tokens per transaction.
    uint256 public constant MAX_MINT_PER_TX = 2;

    /// The maximum ERC-2981 royalties percentage (two decimals).
    uint256 public constant MAX_ROYALTIES_PCT = 1000; // 10%

    /// The price per token mint (whitelist phase).
    uint256 public priceWhitelist;

    /// The price per token mint (public phase).
    uint256 public pricePublic;

    /// The base URI for token metadata.
    string public baseURI;

    /// The contract URI for contract-level metadata.
    string public contractURI;

    /// The provenance hash summarizing token order and content.
    bytes32 public provenanceHash;

    /// Whether the provenance hash has been locked forever.
    bool public provenanceIsLocked;

    /// Whether the tokenURI() method returns fully revealed tokenURIs
    bool public isRevealed;

    /// The token sale state (0=Paused, 1=Whitelist, 2=Public, 3=Open).
    SaleState public saleState;

    /// The address of the OpenSea proxy registry contract.
    address public proxyRegistry;

    /// The address which signs the mint coupons.
    address public couponSigner;

    /// Whether an address has revoked the automatic OpenSea proxy approval.
    mapping(address => bool) public userRevokedRegistryApproval;

    /// The total tokens minted by an address in whitelist phase.
    mapping(address => uint256) public whitelistMinted;

    /// Reverts if the current sale state is not `_saleState`.
    modifier onlyInSaleState(SaleState _saleState) {
        if (saleState != _saleState) revert SalePhaseNotActive();
        _;
    }

    /// Reverts if `_mintAmount` exceeds MAX_MINT_PER_TX.
    modifier onlyWithValidMintAmount(uint256 _mintAmount) {
        if (_mintAmount > MAX_MINT_PER_TX) revert ExceedsMaxMintPerTx();
        _;
    }

    /// Reverts if the correct ether value was not sent.
    modifier onlyWithCorrectPayment(uint256 _mintAmount, uint256 _price) {
        unchecked {
            if (msg.value != _mintAmount * _price)
                revert IncorrectPaymentAmount();
        }
        _;
    }

    /// Reverts if the signature is invalid.
    modifier onlyWithValidSignature(
        bytes calldata _signature,
        SaleState _saleState
    ) {
        if (!isValidSignature(
            _signature,
            _msgSender(),
            _saleState,
            block.chainid
        )) revert InvalidSignature();
        _;
    }

    constructor(
        string memory _name,
        string memory _symbol,
        uint256 _startingTokenID,
        address _couponSigner,
        uint256 _priceWhitelist,
        uint256 _pricePublic,
        string memory _contractURI,
        string memory _baseURI,
        address _proxyRegistry,
        address _royaltiesReceiver,
        uint256 _royaltiesPercent
    )
        ERC721(_name, _symbol, _startingTokenID)
    {
        couponSigner = _couponSigner;
        priceWhitelist = _priceWhitelist;
        pricePublic = _pricePublic;
        contractURI = _contractURI;
        baseURI = _baseURI;
        proxyRegistry = _proxyRegistry;
        setRoyalties(
            _royaltiesReceiver,
            _royaltiesPercent
        );
    }

    /**
     * @notice Mints `_mintAmount` tokens if the signature is valid.
     * @param _mintAmount The number of tokens to mint.
     * @param _signature The signature to be verified.
     */
    function mintWhitelist(
        uint256 _mintAmount,
        bytes calldata _signature
    )
        external
        payable
        onlyInSaleState(SaleState.Whitelist)
        onlyWithCorrectPayment(_mintAmount, priceWhitelist)
        onlyWithValidSignature(_signature, SaleState.Whitelist)
    {
        unchecked {
            whitelistMinted[_msgSender()] += _mintAmount;
        }
        if (whitelistMinted[_msgSender()] > MAX_WHITELIST_MINT)
            revert ExceedsMintPhaseAllocation();

        _mint(_mintAmount);
    }

    /**
     * @notice Mints `_mintAmount` tokens if the signature is valid.
     * @param _mintAmount The number of tokens to mint.
     * @param _signature The signature to be verified.
     */
    function mintPublic(
        uint256 _mintAmount,
        bytes calldata _signature
    )
        external
        payable
        onlyInSaleState(SaleState.Public)
        onlyWithValidMintAmount(_mintAmount)
        onlyWithCorrectPayment(_mintAmount, pricePublic)
        onlyWithValidSignature(_signature, SaleState.Public)
    {
        _mint(_mintAmount);
    }

    /**
     * @notice Mints `_mintAmount` tokens.
     * @param _mintAmount The number of tokens to mint.
     */
    function mintOpen(
        uint256 _mintAmount
    )
        external
        payable
        onlyInSaleState(SaleState.Open)
        onlyWithValidMintAmount(_mintAmount)
        onlyWithCorrectPayment(_mintAmount, pricePublic)
    {
        _mint(_mintAmount);
    }

    /**
     * @notice Revokes the automatic approval of the caller's OpenSea proxy.
     */
    function revokeRegistryApproval()
        external
    {
        if (userRevokedRegistryApproval[_msgSender()])
            revert AlreadyRevokedRegistryApproval();

        userRevokedRegistryApproval[_msgSender()] = true;
    }

    /**
     * @notice (only owner) Mints `_mintAmount` free tokens to the caller.
     * @param _mintAmount The number of tokens to mint.
     */
    function mintPromo(
        uint256 _mintAmount
    )
        external
        onlyOwner
    {
        _mint(_mintAmount);
    }

    /**
     * @notice (only owner) Sets the saleState to `_newSaleState`.
     * @param _newSaleState The new sale state
     * (0=Paused, 1=Whitelist, 2=Presale, 3=Public).
     */
    function setSaleState(
        SaleState _newSaleState
    )
        external
        onlyOwner
    {
        saleState = _newSaleState;
        emit SaleStateChanged(_newSaleState);
    }

    /**
     * @notice (only owner) Sets the whitelist mint price.
     * @param _newPrice The new whitelist mint price.
     */
    function setPriceWhitelist(
        uint256 _newPrice
    )
        external
        onlyOwner
    {
        priceWhitelist = _newPrice;
    }

    /**
     * @notice (only owner) Sets the public mint price.
     * @param _newPrice The new public mint price.
     */
    function setPricePublic(
        uint256 _newPrice
    )
        external
        onlyOwner
    {
        pricePublic = _newPrice;
    }

    /**
     * @notice (only owner) Sets the OpenSea proxy registry contract address.
     * @param _newProxyRegistry The OpenSea proxy registry contract address.
     */
    function setProxyRegistry(
        address _newProxyRegistry
    )
        external
        onlyOwner
    {
        proxyRegistry = _newProxyRegistry;
    }

    /**
     * @notice (only owner) Sets the coupon signer address.
     * @param _newCouponSigner The new coupon signer address.
     */
    function setCouponSigner(
        address _newCouponSigner
    )
        external
        onlyOwner
    {
        couponSigner = _newCouponSigner;
    }

    /**
     * @notice (only owner) Sets the contract URI for contract metadata.
     * @param _newContractURI The new contract URI.
     */
    function setContractURI(
        string calldata _newContractURI
    )
        external
        onlyOwner
    {
        contractURI = _newContractURI;
    }

    /**
     * @notice (only owner) Sets the base URI for token metadata.
     * @param _newBaseURI The new base URI.
     * @param _doReveal If true, this reveals the full tokenURIs.
     */
    function setBaseURI(
        string calldata _newBaseURI,
        bool _doReveal
    )
        external
        onlyOwner
    {
        baseURI = _newBaseURI;
        isRevealed = _doReveal;
    }

    /**
     * @notice (only owner) Sets the provenance hash, optionally locking it.
     * @param _newProvenanceHash The new provenance hash.
     * @param _lockForever Whether to lock this new provenance hash forever.
     */
    function setProvenanceHash(
        bytes32 _newProvenanceHash,
        bool _lockForever
    )
        external
        onlyOwner
    {
        if (provenanceIsLocked) revert ProvenanceHashAlreadyLocked();

        provenanceHash = _newProvenanceHash;
        if (_lockForever) provenanceIsLocked = true;
    }

    /**
     * @notice (only owner) Withdraws all ether to the caller.
     */
    function withdrawAll()
        external
        onlyOwner
    {
        withdraw(address(this).balance);
    }

    /**
     * @notice (only owner) Withdraws `_weiAmount` wei to the caller.
     * @param _weiAmount The amount of ether (in wei) to withdraw.
     */
    function withdraw(
        uint256 _weiAmount
    )
        public
        onlyOwner
    {
        (bool success, ) = payable(_msgSender()).call{value: _weiAmount}("");
        if (!success) revert FailedToWithdraw();
    }

    /**
     * @notice (only owner) Sets ERC-2981 royalties recipient and percentage.
     * @param _recipient The address to which to send royalties.
     * @param _value The royalties percentage (two decimals, e.g. 1000 = 10%).
     */
    function setRoyalties(
        address _recipient,
        uint256 _value
    )
        public
        onlyOwner
    {
        if (_value > MAX_ROYALTIES_PCT) revert ExceedsMaxRoyaltiesPercentage();

        _setRoyalties(
            _recipient,
            _value
        );
    }

    /**
     * @notice Determines whether `_account` owns all token IDs `_tokenIDs`.
     * @param _account The account to be checked for token ownership.
     * @param _tokenIDs An array of token IDs to be checked for ownership.
     * @return True if `_account` owns all token IDs `_tokenIDs`, else false.
     */
    function isOwnerOf(
        address _account,
        uint256[] calldata _tokenIDs
    )
        external
        view
        returns (bool)
    {
        unchecked {
            for (uint256 i; i < _tokenIDs.length; ++i) {
                if (ownerOf(_tokenIDs[i]) != _account)
                    return false;
            }
        }

        return true;
    }

    /**
     * @notice Returns an array of all token IDs owned by `_owner`.
     * @param _owner The address for which to return all owned token IDs.
     * @return An array of all token IDs owned by `_owner`.
     */
    function walletOfOwner(
        address _owner
    )
        public
        view
        returns (uint256[] memory)
    {
        uint256 tokenCount = balanceOf(_owner);
        if (tokenCount == 0) return new uint256[](0);

        uint256[] memory tokenIDs = new uint256[](tokenCount);
        unchecked {
            for (uint256 i; i < tokenCount; i++) {
                tokenIDs[i] = tokenOfOwnerByIndex(_owner, i);
            }
        }
        return tokenIDs;
    }

    /**
     * @notice Checks if `_operator` can transfer tokens owned by `_owner`.
     * @param _owner The address that may own tokens.
     * @param _operator The address that would transfer tokens of `_owner`.
     * @return True if `_operator` can transfer tokens of `_owner`, else false.
     */
    function isApprovedForAll(
        address _owner,
        address _operator
    )
        public
        view
        override (ERC721, IERC721)
        returns (bool)
    {
        if (!userRevokedRegistryApproval[_owner]) {
            OpenSeaProxyRegistry reg = OpenSeaProxyRegistry(proxyRegistry);
            if (address(reg.proxies(_owner)) == _operator) return true;
        }

        return super.isApprovedForAll(_owner, _operator);
    }

    /**
     * @notice Returns the token metadata URI for token ID `_tokenID`.
     * @param _tokenID The token ID whose metadata URI should be returned.
     * @return The metadata URI for token ID `_tokenID`.
     */
    function tokenURI(
        uint256 _tokenID
    )
        public
        view
        override
        returns (string memory)
    {
        if (!_exists(_tokenID)) revert TokenDoesNotExist();
        if (!isRevealed) return baseURI;
        return string(
            abi.encodePacked(
                baseURI,
                Strings.toString(_tokenID),
                ".json"
            )
        );
    }

    /**
     * @inheritdoc ERC165
     */
    function supportsInterface(
        bytes4 _interfaceId
    )
        public
        view
        override (ERC721Enumerable, ERC2981Base)
        returns (bool)
    {
        return super.supportsInterface(_interfaceId);
    }

    /**
     * @notice Checks validity of the signature, sender, and saleState.
     * @param _signature The signature to be verified.
     * @param _sender The address part of the signed message.
     * @param _saleState The saleState part of the signed message.
     * @param _chainId The chain ID part of the signed message.
     */
    function isValidSignature(
        bytes calldata _signature,
        address _sender,
        SaleState _saleState,
        uint256 _chainId
    )
        public
        view
        returns (bool)
    {
        bytes32 hash = ECDSA.toEthSignedMessageHash(
            keccak256(
                abi.encodePacked(
                    _sender,
                    _saleState,
                    _chainId
                )
            )
        );
        return couponSigner == ECDSA.recover(hash, _signature);
    }

    /**
     * @notice Mints `_mintAmount` tokens to caller, emits actual token IDs.
     */
    function _mint(
        uint256 _mintAmount
    )
        internal
    {
        uint256 totalSupply = _owners.length;
        unchecked {
            if (totalSupply + _mintAmount > MAX_SUPPLY)
                revert ExceedsMaxSupply();
            for (uint256 i; i < _mintAmount; i++) {
                _owners.push(_msgSender());
                emit Transfer(
                    address(0),
                    _msgSender(),
                    _startingTokenID + totalSupply + i
                );
            }
        }
    }
}

/// Stub for OpenSea's per-user-address proxy contract.
contract OwnableDelegateProxy {}

/// Stub for OpenSea's proxy registry contract.
contract OpenSeaProxyRegistry {
    mapping(address => OwnableDelegateProxy) public proxies;
}

File 2 of 21 : ISupremeSkulls.sol
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.12;

interface ISupremeSkulls {
    enum SaleState {
        Paused,    // 0
        Whitelist, // 1
        Public,    // 2
        Open       // 3
    }

    event SaleStateChanged(
        SaleState newSaleState
    );

    error AlreadyRevokedRegistryApproval();
    error ExceedsMaxMintPerTx();
    error ExceedsMaxRoyaltiesPercentage();
    error ExceedsMaxSupply();
    error ExceedsMintPhaseAllocation();
    error FailedToWithdraw();
    error IncorrectPaymentAmount();
    error InvalidSignature();
    error ProvenanceHashAlreadyLocked();
    error SalePhaseNotActive();
    error TokenDoesNotExist();
}

File 3 of 21 : ERC721Enumerable.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.12;

import "./ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol";

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

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

    /**
     * @dev See {IERC721Enumerable-tokenByIndex}.
     */
    function tokenByIndex(
        uint256 index
    )
        public
        view
        virtual
        override
        returns (uint256)
    {
        require(
            index < _owners.length,
            "ERC721Enumerable: global index out of bounds"
        );
        unchecked {
            return index + _startingTokenID;
        }
    }

    /**
     * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}.
     */
    function tokenOfOwnerByIndex(
        address owner,
        uint256 index
    )
        public
        view
        virtual
        override
        returns (uint256 tokenId)
    {
        require(
            index < balanceOf(owner),
            "ERC721Enumerable: owner index out of bounds"
        );

        uint count;
        unchecked {
            for (uint i; i < _owners.length; i++) {
                if (owner == _owners[i]) {
                    if (count == index) return _startingTokenID + i;
                    else count++;
                }
            }
        }

        revert("ERC721Enumerable: owner index out of bounds");
    }
}

File 4 of 21 : ERC2981ContractWideRoyalties.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;

import "./ERC2981Base.sol";

/// @dev This is a contract used to add ERC2981 support to ERC721 and 1155
/// @dev This implementation has the same royalties for each and every tokens
abstract contract ERC2981ContractWideRoyalties is ERC2981Base {
    RoyaltyInfo private _royalties;

    /// @dev Sets token royalties
    /// @param _recipient recipient of the royalties
    /// @param _value percentage (using 2 decimals - 10000 = 100, 0 = 0)
    function _setRoyalties(
        address _recipient,
        uint256 _value
    )
        internal
    {
        // unneeded since the derived contract has a lower _value limit
        // require(_value <= 10000, "ERC2981Royalties: Too high");
        _royalties = RoyaltyInfo(_recipient, uint24(_value));
    }

    /// @inheritdoc	IERC2981Royalties
    function royaltyInfo(
        uint256,
        uint256 _value
    )
        external
        view
        override
        returns (address receiver, uint256 royaltyAmount)
    {
        RoyaltyInfo memory royalties = _royalties;
        receiver = royalties.recipient;
        royaltyAmount = (_value * royalties.amount) / 10000;
    }
}

File 5 of 21 : TokenRescuer.sol
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.12;

import "./IStuckTokens.sol";
import "./SafeERC20.sol";
import "../utils/Ownable.sol";

error ArrayLengthMismatch();

/**
 * @title Token Rescuer
 * @notice Allows owner to transfer out any tokens accidentally sent in.
 * @author Aaron Hanson <[email protected]> @CoffeeConverter
 */
contract TokenRescuer is Ownable {
    using SafeERC20 for IStuckERC20;

    /**
     * @notice Transfers a set of ERC20 `_token` amounts to a set of receivers.
     * @param _token The contract address of the token to be transferred.
     * @param _receivers An array of addresses to receive the tokens.
     * @param _amounts An array of token amounts to transfer to each receiver.
     */
    function rescueBatchERC20(
        address _token,
        address[] calldata _receivers,
        uint256[] calldata _amounts
    )
        external
        onlyOwner
    {
        if (_receivers.length != _amounts.length) revert ArrayLengthMismatch();
        unchecked {
            for (uint i; i < _receivers.length; i += 1) {
                _rescueERC20(_token, _receivers[i], _amounts[i]);
            }
        }
    }

    /**
     * @notice Transfers an ERC20 `_token` amount to a single receiver.
     * @param _token The contract address of the token to be transferred.
     * @param _receiver The address to receive the tokens.
     * @param _amount The token amount to transfer to the receiver.
     */
    function rescueERC20(
        address _token,
        address _receiver,
        uint256 _amount
    )
        external
        onlyOwner
    {
        _rescueERC20(_token, _receiver, _amount);
    }

    /**
     * @notice Transfers sets of ERC721 `_token` IDs to a set of receivers.
     * @param _token The contract address of the token to be transferred.
     * @param _receivers An array of addresses to receive the tokens.
     * @param _tokenIDs Arrays of token IDs to transfer to each receiver.
     */
    function rescueBatchERC721(
        address _token,
        address[] calldata _receivers,
        uint256[][] calldata _tokenIDs
    )
        external
        onlyOwner
    {
        if (_receivers.length != _tokenIDs.length) revert ArrayLengthMismatch();
        unchecked {
            for (uint i; i < _receivers.length; i += 1) {
                uint256[] memory tokenIDs = _tokenIDs[i];
                for (uint j; j < tokenIDs.length; j += 1) {
                    _rescueERC721(_token, _receivers[i], tokenIDs[j]);
                }
            }
        }
    }

    /**
     * @notice Transfers a single ERC721 `_token` token to a single receiver.
     * @param _token The contract address of the token to be transferred.
     * @param _receiver The address to receive the token.
     * @param _tokenID The token ID to transfer to the receiver.
     */
    function rescueERC721(
        address _token,
        address _receiver,
        uint256 _tokenID
    )
        external
        onlyOwner
    {
        _rescueERC721(_token, _receiver, _tokenID);
    }

    function _rescueERC20(
        address _token,
        address _receiver,
        uint256 _amount
    )
        private
    {
        IStuckERC20(_token).safeTransfer(_receiver, _amount);
    }

    function _rescueERC721(
        address _token,
        address _receiver,
        uint256 _tokenID
    )
        private
    {
        IStuckERC721(_token).safeTransferFrom(
            address(this),
            _receiver,
            _tokenID
        );
    }
}

File 6 of 21 : ECDSA.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (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) {
        // Check the signature length
        // - case 65: r,s,v signature (standard)
        // - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._
        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.
            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 if (signature.length == 64) {
            bytes32 r;
            bytes32 vs;
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            assembly {
                r := mload(add(signature, 0x20))
                vs := mload(add(signature, 0x40))
            }
            return tryRecover(hash, r, vs);
        } 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 7 of 21 : ERC721.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.12;

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

abstract contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
    using Address for address;
    using Strings for uint256;

    string private _name;
    string private _symbol;
    uint256 internal immutable _startingTokenID;

    // Mapping from token ID to owner address
    address[] internal _owners;

    mapping(uint256 => address) private _tokenApprovals;
    mapping(address => mapping(address => bool)) private _operatorApprovals;

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

    function _internalTokenID(
        uint256 externalTokenID_
    )
        private
        view
        returns (uint256)
    {
        require(
            externalTokenID_ >= _startingTokenID,
            "ERC721: owner query for nonexistent token"
        );

        unchecked {
            return externalTokenID_ - _startingTokenID;
        }
    }

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

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

        uint count;
        for (uint i; i < _owners.length; ++i) {
            if (owner == _owners[i]) ++count;
        }
        return count;
    }

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

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

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

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

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

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved)
        public
        virtual
        override
    {
        require(operator != _msgSender(), "ERC721: approve to caller");

        _operatorApprovals[_msgSender()][operator] = approved;
        emit ApprovalForAll(_msgSender(), operator, approved);
    }

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

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

        _transfer(from, to, tokenId);
    }

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

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

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

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

        uint256 internalID = _internalTokenID(tokenId);
        return internalID < _owners.length && _owners[internalID] != address(0);
    }

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

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

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

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

        _beforeTokenTransfer(address(0), to, tokenId);
        _owners.push(to);

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

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

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

        // Clear approvals
        _approve(address(0), tokenId);
        _owners[_internalTokenID(tokenId)] = address(0);

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

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

        _beforeTokenTransfer(from, to, tokenId);

        // Clear approvals from the previous owner
        _approve(address(0), tokenId);
        _owners[_internalTokenID(tokenId)] = to;

        emit Transfer(from, to, tokenId);
    }

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

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

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

File 8 of 21 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol)

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

File 13 of 21 : 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 14 of 21 : Context.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }
}

File 15 of 21 : Address.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.1;

library Address {
    function isContract(address account) internal view returns (bool) {
        return account.code.length > 0;
    }

    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionCall(target, data, "Address: low-level call failed");
    }

    function functionCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, errorMessage);
    }

    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        require(isContract(target), "Address: call to non-contract");

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

    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

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

File 16 of 21 : 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 17 of 21 : ERC2981Base.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;

import "@openzeppelin/contracts/utils/introspection/ERC165.sol";
import "./IERC2981Royalties.sol";

/// @dev This is a contract used to add ERC2981 support to ERC721 and 1155
abstract contract ERC2981Base is ERC165, IERC2981Royalties {
    struct RoyaltyInfo {
        address recipient;
        uint24 amount;
    }

    /// @inheritdoc	ERC165
    function supportsInterface(bytes4 interfaceId)
        public
        view
        virtual
        override
        returns (bool)
    {
        return
        interfaceId == type(IERC2981Royalties).interfaceId ||
        super.supportsInterface(interfaceId);
    }
}

File 18 of 21 : IERC2981Royalties.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;

/// @title IERC2981Royalties
/// @dev Interface for the ERC2981 - Token Royalty standard
interface IERC2981Royalties {
    /// @notice Called with the sale price to determine how much royalty
    ///         is owed and to whom.
    /// @param _tokenId The NFT asset queried for royalty information
    /// @param _value The sale price of the NFT asset specified by _tokenId
    /// @return _receiver Address of who should be sent the royalty payment
    /// @return _royaltyAmount The royalty payment amount for value sale price
    function royaltyInfo(uint256 _tokenId, uint256 _value)
        external
        view
        returns (address _receiver, uint256 _royaltyAmount);
}

File 19 of 21 : IStuckTokens.sol
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.12;

interface IStuckERC20 {
    function transfer(
        address to,
        uint256 amount
    ) external returns (bool);
}

interface IStuckERC721 {
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;
}

File 20 of 21 : SafeERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;

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

/**
 * @title SafeERC20
 * @dev Wrappers around ERC20 operations that throw on failure (when the token
 * contract returns false). Tokens that return no value (and instead revert or
 * throw on failure) are also supported, non-reverting calls are assumed to be
 * successful.
 * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeERC20 {
    using Address for address;

    function safeTransfer(
        IStuckERC20 token,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     */
    function _callOptionalReturn(IStuckERC20 token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that
        // the target address contains contract code and also asserts for success in the low-level call.

        bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
        if (returndata.length > 0) {
            // Return data is optional
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}

File 21 of 21 : Ownable.sol
// SPDX-License-Identifier: MIT
// Based on OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)
// With renounceOwnership() removed

pragma solidity ^0.8.12;

import "./Context.sol";

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

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

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

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

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

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

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 10000
  },
  "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"},{"internalType":"uint256","name":"_startingTokenID","type":"uint256"},{"internalType":"address","name":"_couponSigner","type":"address"},{"internalType":"uint256","name":"_priceWhitelist","type":"uint256"},{"internalType":"uint256","name":"_pricePublic","type":"uint256"},{"internalType":"string","name":"_contractURI","type":"string"},{"internalType":"string","name":"_baseURI","type":"string"},{"internalType":"address","name":"_proxyRegistry","type":"address"},{"internalType":"address","name":"_royaltiesReceiver","type":"address"},{"internalType":"uint256","name":"_royaltiesPercent","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"AlreadyRevokedRegistryApproval","type":"error"},{"inputs":[],"name":"ArrayLengthMismatch","type":"error"},{"inputs":[],"name":"ExceedsMaxMintPerTx","type":"error"},{"inputs":[],"name":"ExceedsMaxRoyaltiesPercentage","type":"error"},{"inputs":[],"name":"ExceedsMaxSupply","type":"error"},{"inputs":[],"name":"ExceedsMintPhaseAllocation","type":"error"},{"inputs":[],"name":"FailedToWithdraw","type":"error"},{"inputs":[],"name":"IncorrectPaymentAmount","type":"error"},{"inputs":[],"name":"InvalidSignature","type":"error"},{"inputs":[],"name":"ProvenanceHashAlreadyLocked","type":"error"},{"inputs":[],"name":"SalePhaseNotActive","type":"error"},{"inputs":[],"name":"TokenDoesNotExist","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"enum ISupremeSkulls.SaleState","name":"newSaleState","type":"uint8"}],"name":"SaleStateChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"MAX_MINT_PER_TX","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_ROYALTIES_PCT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_WHITELIST_MINT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"couponSigner","outputs":[{"internalType":"address","name":"","type":"address"}],"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":"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":"_account","type":"address"},{"internalType":"uint256[]","name":"_tokenIDs","type":"uint256[]"}],"name":"isOwnerOf","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isRevealed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes","name":"_signature","type":"bytes"},{"internalType":"address","name":"_sender","type":"address"},{"internalType":"enum ISupremeSkulls.SaleState","name":"_saleState","type":"uint8"},{"internalType":"uint256","name":"_chainId","type":"uint256"}],"name":"isValidSignature","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintAmount","type":"uint256"}],"name":"mintOpen","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintAmount","type":"uint256"}],"name":"mintPromo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintAmount","type":"uint256"},{"internalType":"bytes","name":"_signature","type":"bytes"}],"name":"mintPublic","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintAmount","type":"uint256"},{"internalType":"bytes","name":"_signature","type":"bytes"}],"name":"mintWhitelist","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pricePublic","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"priceWhitelist","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"provenanceHash","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"provenanceIsLocked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"proxyRegistry","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"address[]","name":"_receivers","type":"address[]"},{"internalType":"uint256[]","name":"_amounts","type":"uint256[]"}],"name":"rescueBatchERC20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"address[]","name":"_receivers","type":"address[]"},{"internalType":"uint256[][]","name":"_tokenIDs","type":"uint256[][]"}],"name":"rescueBatchERC721","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"address","name":"_receiver","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"rescueERC20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"address","name":"_receiver","type":"address"},{"internalType":"uint256","name":"_tokenID","type":"uint256"}],"name":"rescueERC721","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"revokeRegistryApproval","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"_value","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"royaltyAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"saleState","outputs":[{"internalType":"enum ISupremeSkulls.SaleState","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newBaseURI","type":"string"},{"internalType":"bool","name":"_doReveal","type":"bool"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newContractURI","type":"string"}],"name":"setContractURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newCouponSigner","type":"address"}],"name":"setCouponSigner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newPrice","type":"uint256"}],"name":"setPricePublic","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newPrice","type":"uint256"}],"name":"setPriceWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_newProvenanceHash","type":"bytes32"},{"internalType":"bool","name":"_lockForever","type":"bool"}],"name":"setProvenanceHash","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newProxyRegistry","type":"address"}],"name":"setProxyRegistry","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_recipient","type":"address"},{"internalType":"uint256","name":"_value","type":"uint256"}],"name":"setRoyalties","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"enum ISupremeSkulls.SaleState","name":"_newSaleState","type":"uint8"}],"name":"setSaleState","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"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"userRevokedRegistryApproval","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"walletOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"whitelistMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_weiAmount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawAll","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60a06040523480156200001157600080fd5b5060405162004a5538038062004a558339810160408190526200003491620003b6565b8a8a8a82600090805190602001906200004f92919062000226565b5081516200006590600190602085019062000226565b50608052506200007790503362000109565b600d80546001600160a01b0319166001600160a01b038a16179055600787905560088690558451620000b190600a90602088019062000226565b508351620000c790600990602087019062000226565b50600c80546301000000600160b81b03191663010000006001600160a01b03861602179055620000f882826200015b565b505050505050505050505062000524565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6006546001600160a01b03163314620001ba5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640160405180910390fd5b6103e8811115620001de576040516303e231b960e01b815260040160405180910390fd5b604080518082019091526001600160a01b03831680825262ffffff83166020909201829052600580546001600160b81b031916909117600160a01b9092029190911790555050565b8280546200023490620004e7565b90600052602060002090601f016020900481019282620002585760008555620002a3565b82601f106200027357805160ff1916838001178555620002a3565b82800160010185558215620002a3579182015b82811115620002a357825182559160200191906001019062000286565b50620002b1929150620002b5565b5090565b5b80821115620002b15760008155600101620002b6565b634e487b7160e01b600052604160045260246000fd5b600082601f830112620002f457600080fd5b81516001600160401b0380821115620003115762000311620002cc565b604051601f8301601f19908116603f011681019082821181831017156200033c576200033c620002cc565b816040528381526020925086838588010111156200035957600080fd5b600091505b838210156200037d57858201830151818301840152908201906200035e565b838211156200038f5760008385830101525b9695505050505050565b80516001600160a01b0381168114620003b157600080fd5b919050565b60008060008060008060008060008060006101608c8e031215620003d957600080fd5b8b516001600160401b03811115620003f057600080fd5b620003fe8e828f01620002e2565b60208e0151909c5090506001600160401b038111156200041d57600080fd5b6200042b8e828f01620002e2565b9a505060408c015198506200044360608d0162000399565b60808d015160a08e015160c08f0151929a5090985096506001600160401b038111156200046f57600080fd5b6200047d8e828f01620002e2565b60e08e015190965090506001600160401b038111156200049c57600080fd5b620004aa8e828f01620002e2565b945050620004bc6101008d0162000399565b9250620004cd6101208d0162000399565b91506101408c015190509295989b509295989b9093969950565b600181811c90821680620004fc57607f821691505b602082108114156200051e57634e487b7160e01b600052602260045260246000fd5b50919050565b6080516144f26200056360003960008181610f9c0152818161137c0152818161275601528181612b8b01528181612bfd0152612c9401526144f26000f3fe6080604052600436106103815760003560e01c8063853828b6116101d1578063b2118a8d11610102578063c87b56dd116100a0578063e985e9c51161006f578063e985e9c514610a1d578063ede9dddd14610a3d578063f02678e914610a53578063f2fde38b14610a7357600080fd5b8063c87b56dd146109b3578063cfcf6d91146109d3578063e79433f5146109e8578063e8a3d48514610a0857600080fd5b8063b88d4fde116100dc578063b88d4fde1461095d578063b95f8b5f1461097d578063c08dfd3c146107c9578063c6ab67a31461099d57600080fd5b8063b2118a8d146108f6578063b50cbd9f14610916578063b64b21ca1461093d57600080fd5b80639816c0ca1161016f5780639f41554a116101495780639f41554a14610873578063a22cb46514610886578063a9c68c6d146108a6578063adfdeef9146108d657600080fd5b80639816c0ca1461081357806398a8cffe146108265780639b1a51731461085357600080fd5b80638da5cb5b116101ab5780638da5cb5b146107ab5780638ecad721146107c9578063938e3d7b146107de57806395d89b41146107fe57600080fd5b8063853828b61461075c578063857e087d146107715780638c7ea24b1461078b57600080fd5b8063438b6300116102b657806354214f69116102545780636c0360eb116102235780636c0360eb146106e757806370a08231146106fc5780637312808b1461071c5780637df325e11461073c57600080fd5b806354214f691461065b5780635a67de071461067a578063603f4d521461069a5780636352211e146106c757600080fd5b80634d44660c116102905780634d44660c146105db5780634f6ccce7146105fb5780634fd1f1981461061b57806351d3f6101461063b57600080fd5b8063438b63001461057b57806344a8715b146105a85780634530a832146105bb57600080fd5b806323b872dd116103235780632f745c59116102fd5780632f745c591461050f5780632fff17961461052f57806332cb6b0c1461054557806342842e0e1461055b57600080fd5b806323b872dd146104905780632a55205a146104b05780632e1a7d4d146104ef57600080fd5b8063095ea7b31161035f578063095ea7b314610415578063102e766d1461043757806318160ddd1461045b5780631ea111791461047057600080fd5b806301ffc9a71461038657806306fdde03146103bb578063081812fc146103dd575b600080fd5b34801561039257600080fd5b506103a66103a1366004613988565b610a93565b60405190151581526020015b60405180910390f35b3480156103c757600080fd5b506103d0610aa4565b6040516103b29190613a1b565b3480156103e957600080fd5b506103fd6103f8366004613a2e565b610b36565b6040516001600160a01b0390911681526020016103b2565b34801561042157600080fd5b50610435610430366004613a5c565b610bd4565b005b34801561044357600080fd5b5061044d60085481565b6040519081526020016103b2565b34801561046757600080fd5b5060025461044d565b34801561047c57600080fd5b50600d546103fd906001600160a01b031681565b34801561049c57600080fd5b506104356104ab366004613a88565b610d06565b3480156104bc57600080fd5b506104d06104cb366004613ac9565b610d8d565b604080516001600160a01b0390931683526020830191909152016103b2565b3480156104fb57600080fd5b5061043561050a366004613a2e565b610df3565b34801561051b57600080fd5b5061044d61052a366004613a5c565b610ed3565b34801561053b57600080fd5b5061044d60075481565b34801561055157600080fd5b5061044d611a0a81565b34801561056757600080fd5b50610435610576366004613a88565b611043565b34801561058757600080fd5b5061059b610596366004613aeb565b61105e565b6040516103b29190613b08565b6104356105b6366004613b8e565b61110d565b3480156105c757600080fd5b506104356105d6366004613a2e565b61123c565b3480156105e757600080fd5b506103a66105f6366004613c1f565b61129b565b34801561060757600080fd5b5061044d610616366004613a2e565b6112ff565b34801561062757600080fd5b506103a6610636366004613c7b565b61139f565b34801561064757600080fd5b50610435610656366004613cf7565b611496565b34801561066757600080fd5b50600c546103a690610100900460ff1681565b34801561068657600080fd5b50610435610695366004613d27565b611567565b3480156106a657600080fd5b50600c546106ba9062010000900460ff1681565b6040516103b29190613d71565b3480156106d357600080fd5b506103fd6106e2366004613a2e565b61163f565b3480156106f357600080fd5b506103d06116e7565b34801561070857600080fd5b5061044d610717366004613aeb565b611775565b34801561072857600080fd5b50610435610737366004613db2565b611856565b34801561074857600080fd5b50610435610757366004613a88565b61194d565b34801561076857600080fd5b506104356119b2565b34801561077d57600080fd5b50600c546103a69060ff1681565b34801561079757600080fd5b506104356107a6366004613a5c565b611a17565b3480156107b757600080fd5b506006546001600160a01b03166103fd565b3480156107d557600080fd5b5061044d600281565b3480156107ea57600080fd5b506104356107f9366004613e35565b611b1e565b34801561080a57600080fd5b506103d0611b84565b610435610821366004613a2e565b611b93565b34801561083257600080fd5b5061044d610841366004613aeb565b600f6020526000908152604090205481565b34801561085f57600080fd5b5061043561086e366004613aeb565b611c75565b610435610881366004613b8e565b611d09565b34801561089257600080fd5b506104356108a1366004613e77565b611e49565b3480156108b257600080fd5b506103a66108c1366004613aeb565b600e6020526000908152604090205460ff1681565b3480156108e257600080fd5b506104356108f1366004613aeb565b611f2c565b34801561090257600080fd5b50610435610911366004613a88565b611fc7565b34801561092257600080fd5b50600c546103fd90630100000090046001600160a01b031681565b34801561094957600080fd5b50610435610958366004613ea5565b61202c565b34801561096957600080fd5b50610435610978366004613f2b565b6120cc565b34801561098957600080fd5b50610435610998366004613a2e565b61215a565b3480156109a957600080fd5b5061044d600b5481565b3480156109bf57600080fd5b506103d06109ce366004613a2e565b6121b9565b3480156109df57600080fd5b506104356122cd565b3480156109f457600080fd5b50610435610a03366004613a2e565b612351565b348015610a1457600080fd5b506103d06123b7565b348015610a2957600080fd5b506103a6610a38366004614029565b6123c4565b348015610a4957600080fd5b5061044d6103e881565b348015610a5f57600080fd5b50610435610a6e366004613db2565b6124c0565b348015610a7f57600080fd5b50610435610a8e366004613aeb565b61261d565b6000610a9e826126fc565b92915050565b606060008054610ab390614057565b80601f0160208091040260200160405190810160405280929190818152602001828054610adf90614057565b8015610b2c5780601f10610b0157610100808354040283529160200191610b2c565b820191906000526020600020905b815481529060010190602001808311610b0f57829003601f168201915b5050505050905090565b6000610b4182612752565b610bb85760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e000000000000000000000000000000000000000060648201526084015b60405180910390fd5b506000908152600360205260409020546001600160a01b031690565b6000610bdf8261163f565b9050806001600160a01b0316836001600160a01b03161415610c695760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152608401610baf565b336001600160a01b0382161480610c855750610c8581336123c4565b610cf75760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610baf565b610d0183836127da565b505050565b610d103382612860565b610d825760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610baf565b610d0183838361293b565b604080518082019091526005546001600160a01b0381168083527401000000000000000000000000000000000000000090910462ffffff1660208301819052909160009161271090610ddf90866140da565b610de99190614146565b9150509250929050565b6006546001600160a01b03163314610e4d5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610baf565b604051600090339083908381818185875af1925050503d8060008114610e8f576040519150601f19603f3d011682016040523d82523d6000602084013e610e94565b606091505b5050905080610ecf576040517f2684a07900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5050565b6000610ede83611775565b8210610f525760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201527f74206f6620626f756e64730000000000000000000000000000000000000000006064820152608401610baf565b6000805b600254811015610fd45760028181548110610f7357610f7361415a565b6000918252602090912001546001600160a01b0386811691161415610fcc5783821415610fc5577f0000000000000000000000000000000000000000000000000000000000000000019150610a9e9050565b6001909101905b600101610f56565b5060405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201527f74206f6620626f756e64730000000000000000000000000000000000000000006064820152608401610baf565b610d01838383604051806020016040528060008152506120cc565b6060600061106b83611775565b90508061108c5760408051600080825260208201909252905b509392505050565b60008167ffffffffffffffff8111156110a7576110a7613efc565b6040519080825280602002602001820160405280156110d0578160200160208202803683370190505b50905060005b82811015611084576110e88582610ed3565b8282815181106110fa576110fa61415a565b60209081029190910101526001016110d6565b600280600c5462010000900460ff16600381111561112d5761112d613d42565b14611164576040517fa0d5833800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8360028111156111a0576040517fccf0a4cb00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8460085480820234146111df576040517f6992e1ff00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b858560026111f18383335b844661139f565b611227576040517f8baa579f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6112308a612ade565b50505050505050505050565b6006546001600160a01b031633146112965760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610baf565b600855565b6000805b828110156112f257846001600160a01b03166112d28585848181106112c6576112c661415a565b9050602002013561163f565b6001600160a01b0316146112ea5760009150506112f8565b60010161129f565b50600190505b9392505050565b60025460009082106113795760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201527f7574206f6620626f756e647300000000000000000000000000000000000000006064820152608401610baf565b507f00000000000000000000000000000000000000000000000000000000000000000190565b6000806114388585856040516020016113ba93929190614189565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe081840301815282825280516020918201207f19457468657265756d205369676e6564204d6573736167653a0a33320000000084830152603c8085019190915282518085039091018152605c909301909152815191012090565b905061147a8188888080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250612bdd92505050565b600d546001600160a01b03918216911614979650505050505050565b6006546001600160a01b031633146114f05760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610baf565b600c5460ff161561152d576040517f7bbf047e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600b8290558015610ecf57600c80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660011790555050565b6006546001600160a01b031633146115c15760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610baf565b600c80548291907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ffff166201000083600381111561160057611600613d42565b02179055507f92a17b827ee9d42ea9454bb4ca941a1800870e6d01c0842d09ba23ccc0190ee1816040516116349190613d71565b60405180910390a150565b600080600261164d84612bf9565b8154811061165d5761165d61415a565b6000918252602090912001546001600160a01b0316905080610a9e5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e00000000000000000000000000000000000000000000006064820152608401610baf565b600980546116f490614057565b80601f016020809104026020016040519081016040528092919081815260200182805461172090614057565b801561176d5780601f106117425761010080835404028352916020019161176d565b820191906000526020600020905b81548152906001019060200180831161175057829003601f168201915b505050505081565b60006001600160a01b0382166117f35760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f2061646472657373000000000000000000000000000000000000000000006064820152608401610baf565b6000805b60025481101561184f57600281815481106118145761181461415a565b6000918252602090912001546001600160a01b038581169116141561183f5761183c82614203565b91505b61184881614203565b90506117f7565b5092915050565b6006546001600160a01b031633146118b05760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610baf565b8281146118e9576040517fa24a13a600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60005b838110156119455761193d8686868481811061190a5761190a61415a565b905060200201602081019061191f9190613aeb565b8585858181106119315761193161415a565b90506020020135612cb8565b6001016118ec565b505050505050565b6006546001600160a01b031633146119a75760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610baf565b610d01838383612ccc565b6006546001600160a01b03163314611a0c5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610baf565b611a1547610df3565b565b6006546001600160a01b03163314611a715760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610baf565b6103e8811115611aad576040517f03e231b900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b604080518082019091526001600160a01b03831680825262ffffff83166020909201829052600580547fffffffffffffffffff000000000000000000000000000000000000000000000016909117740100000000000000000000000000000000000000009092029190911790555050565b6006546001600160a01b03163314611b785760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610baf565b610d01600a83836138a3565b606060018054610ab390614057565b600380600c5462010000900460ff166003811115611bb357611bb3613d42565b14611bea576040517fa0d5833800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b816002811115611c26576040517fccf0a4cb00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b826008548082023414611c65576040517f6992e1ff00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611c6e85612ade565b5050505050565b6006546001600160a01b03163314611ccf5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610baf565b600d80547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b600180600c5462010000900460ff166003811115611d2957611d29613d42565b14611d60576040517fa0d5833800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b836007548082023414611d9f576040517f6992e1ff00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b84846001611dae8383336111ea565b611de4576040517f8baa579f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b336000908152600f6020526040902080548a019081905560021015611e35576040517f216a8a7700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611e3e89612ade565b505050505050505050565b6001600160a01b038216331415611ea25760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610baf565b3360008181526004602090815260408083206001600160a01b0387168085529083529281902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6006546001600160a01b03163314611f865760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610baf565b600c80546001600160a01b039092166301000000027fffffffffffffffffff0000000000000000000000000000000000000000ffffff909216919091179055565b6006546001600160a01b031633146120215760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610baf565b610d01838383612cb8565b6006546001600160a01b031633146120865760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610baf565b612092600984846138a3565b50600c8054911515610100027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff9092169190911790555050565b6120d63383612860565b6121485760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610baf565b61215484848484612d52565b50505050565b6006546001600160a01b031633146121b45760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610baf565b600755565b60606121c482612752565b6121fa576040517fceea21b600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600c54610100900460ff1661229b576009805461221690614057565b80601f016020809104026020016040519081016040528092919081815260200182805461224290614057565b801561228f5780601f106122645761010080835404028352916020019161228f565b820191906000526020600020905b81548152906001019060200180831161227257829003601f168201915b50505050509050919050565b60096122a683612ddb565b6040516020016122b7929190614258565b6040516020818303038152906040529050919050565b336000908152600e602052604090205460ff1615612317576040517ff91d3ca000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b336000908152600e6020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055565b6006546001600160a01b031633146123ab5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610baf565b6123b481612ade565b50565b600a80546116f490614057565b6001600160a01b0382166000908152600e602052604081205460ff1661249257600c546040517fc45527910000000000000000000000000000000000000000000000000000000081526001600160a01b0385811660048301526301000000909204821691841690829063c455279190602401602060405180830381865afa158015612453573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124779190614362565b6001600160a01b03161415612490576001915050610a9e565b505b6001600160a01b0380841660009081526004602090815260408083209386168352929052205460ff166112f8565b6006546001600160a01b0316331461251a5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610baf565b828114612553576040517fa24a13a600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60005b838110156119455760008383838181106125725761257261415a565b9050602002810190612584919061437f565b8080602002602001604051908101604052809392919081815260200183836020028082843760009201829052509394505050505b81518110156126135761260b888888868181106125d7576125d761415a565b90506020020160208101906125ec9190613aeb565b8484815181106125fe576125fe61415a565b6020026020010151612ccc565b6001016125b8565b5050600101612556565b6006546001600160a01b031633146126775760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610baf565b6001600160a01b0381166126f35760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610baf565b6123b481612f0d565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f2a55205a000000000000000000000000000000000000000000000000000000001480610a9e5750610a9e82612f77565b60007f000000000000000000000000000000000000000000000000000000000000000082101561278457506000919050565b600061278f83612bf9565b600254909150811080156112f8575060006001600160a01b0316600282815481106127bc576127bc61415a565b6000918252602090912001546001600160a01b031614159392505050565b600081815260036020526040902080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b03841690811790915581906128278261163f565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600061286b82612752565b6128dd5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e00000000000000000000000000000000000000006064820152608401610baf565b60006128e88361163f565b9050806001600160a01b0316846001600160a01b031614806129235750836001600160a01b031661291884610b36565b6001600160a01b0316145b80612933575061293381856123c4565b949350505050565b826001600160a01b031661294e8261163f565b6001600160a01b0316146129ca5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201527f73206e6f74206f776e00000000000000000000000000000000000000000000006064820152608401610baf565b6001600160a01b038216612a455760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610baf565b612a506000826127da565b816002612a5c83612bf9565b81548110612a6c57612a6c61415a565b6000918252602082200180547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b03938416179055604051839285811692908716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9190a4505050565b600254611a0a8282011115612b1f576040517fc30436e900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60005b82811015610d01576002805460018101825560009182527f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace0180547fffffffffffffffffffffffff000000000000000000000000000000000000000016339081179091556040517f00000000000000000000000000000000000000000000000000000000000000008501840192907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4600101612b22565b6000806000612bec8585612fcd565b915091506110848161303d565b60007f0000000000000000000000000000000000000000000000000000000000000000821015612c915760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e00000000000000000000000000000000000000000000006064820152608401610baf565b507f0000000000000000000000000000000000000000000000000000000000000000900390565b610d016001600160a01b038416838361322e565b6040517f42842e0e0000000000000000000000000000000000000000000000000000000081523060048201526001600160a01b038381166024830152604482018390528416906342842e0e90606401600060405180830381600087803b158015612d3557600080fd5b505af1158015612d49573d6000803e3d6000fd5b50505050505050565b612d5d84848461293b565b612d69848484846132ae565b6121545760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610baf565b606081612e1b57505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115612e455780612e2f81614203565b9150612e3e9050600a83614146565b9150612e1f565b60008167ffffffffffffffff811115612e6057612e60613efc565b6040519080825280601f01601f191660200182016040528015612e8a576020820181803683370190505b5090505b841561293357612e9f6001836143e7565b9150612eac600a866143fe565b612eb7906030614412565b60f81b818381518110612ecc57612ecc61415a565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350612f06600a86614146565b9450612e8e565b600680546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f780e9d63000000000000000000000000000000000000000000000000000000001480610a9e5750610a9e8261346a565b6000808251604114156130045760208301516040840151606085015160001a612ff88782858561354d565b94509450505050613036565b82516040141561302e5760208301516040840151613023868383613658565b935093505050613036565b506000905060025b9250929050565b600081600481111561305157613051613d42565b141561305a5750565b600181600481111561306e5761306e613d42565b14156130bc5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610baf565b60028160048111156130d0576130d0613d42565b141561311e5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610baf565b600381600481111561313257613132613d42565b14156131a65760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c60448201527f75650000000000000000000000000000000000000000000000000000000000006064820152608401610baf565b60048160048111156131ba576131ba613d42565b14156123b45760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c60448201527f75650000000000000000000000000000000000000000000000000000000000006064820152608401610baf565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb00000000000000000000000000000000000000000000000000000000179052610d019084906136aa565b60006001600160a01b0384163b1561345f576040517f150b7a020000000000000000000000000000000000000000000000000000000081526001600160a01b0385169063150b7a029061330b90339089908890889060040161442a565b6020604051808303816000875af1925050508015613364575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016820190925261336191810190614466565b60015b613414573d808015613392576040519150601f19603f3d011682016040523d82523d6000602084013e613397565b606091505b50805161340c5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610baf565b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a0200000000000000000000000000000000000000000000000000000000149050612933565b506001949350505050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd0000000000000000000000000000000000000000000000000000000014806134fd57507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610a9e57507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff00000000000000000000000000000000000000000000000000000000831614610a9e565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115613584575060009050600361364f565b8460ff16601b1415801561359c57508460ff16601c14155b156135ad575060009050600461364f565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015613601573d6000803e3d6000fd5b50506040517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe001519150506001600160a01b0381166136485760006001925092505061364f565b9150600090505b94509492505050565b6000807f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff83168161368e60ff86901c601b614412565b905061369c8782888561354d565b935093505050935093915050565b60006136ff826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b031661378f9092919063ffffffff16565b805190915015610d01578080602001905181019061371d9190614483565b610d015760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152608401610baf565b60606129338484600085856001600160a01b0385163b6137f15760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610baf565b600080866001600160a01b0316858760405161380d91906144a0565b60006040518083038185875af1925050503d806000811461384a576040519150601f19603f3d011682016040523d82523d6000602084013e61384f565b606091505b509150915061385f82828661386a565b979650505050505050565b606083156138795750816112f8565b8251156138895782518084602001fd5b8160405162461bcd60e51b8152600401610baf9190613a1b565b8280546138af90614057565b90600052602060002090601f0160209004810192826138d15760008555613935565b82601f10613908578280017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00823516178555613935565b82800160010185558215613935579182015b8281111561393557823582559160200191906001019061391a565b50613941929150613945565b5090565b5b808211156139415760008155600101613946565b7fffffffff00000000000000000000000000000000000000000000000000000000811681146123b457600080fd5b60006020828403121561399a57600080fd5b81356112f88161395a565b60005b838110156139c05781810151838201526020016139a8565b838111156121545750506000910152565b600081518084526139e98160208601602086016139a5565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b6020815260006112f860208301846139d1565b600060208284031215613a4057600080fd5b5035919050565b6001600160a01b03811681146123b457600080fd5b60008060408385031215613a6f57600080fd5b8235613a7a81613a47565b946020939093013593505050565b600080600060608486031215613a9d57600080fd5b8335613aa881613a47565b92506020840135613ab881613a47565b929592945050506040919091013590565b60008060408385031215613adc57600080fd5b50508035926020909101359150565b600060208284031215613afd57600080fd5b81356112f881613a47565b6020808252825182820181905260009190848201906040850190845b81811015613b4057835183529284019291840191600101613b24565b50909695505050505050565b60008083601f840112613b5e57600080fd5b50813567ffffffffffffffff811115613b7657600080fd5b60208301915083602082850101111561303657600080fd5b600080600060408486031215613ba357600080fd5b83359250602084013567ffffffffffffffff811115613bc157600080fd5b613bcd86828701613b4c565b9497909650939450505050565b60008083601f840112613bec57600080fd5b50813567ffffffffffffffff811115613c0457600080fd5b6020830191508360208260051b850101111561303657600080fd5b600080600060408486031215613c3457600080fd5b8335613c3f81613a47565b9250602084013567ffffffffffffffff811115613c5b57600080fd5b613bcd86828701613bda565b803560048110613c7657600080fd5b919050565b600080600080600060808688031215613c9357600080fd5b853567ffffffffffffffff811115613caa57600080fd5b613cb688828901613b4c565b9096509450506020860135613cca81613a47565b9250613cd860408701613c67565b949793965091946060013592915050565b80151581146123b457600080fd5b60008060408385031215613d0a57600080fd5b823591506020830135613d1c81613ce9565b809150509250929050565b600060208284031215613d3957600080fd5b6112f882613c67565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b6020810160048310613dac577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b91905290565b600080600080600060608688031215613dca57600080fd5b8535613dd581613a47565b9450602086013567ffffffffffffffff80821115613df257600080fd5b613dfe89838a01613bda565b90965094506040880135915080821115613e1757600080fd5b50613e2488828901613bda565b969995985093965092949392505050565b60008060208385031215613e4857600080fd5b823567ffffffffffffffff811115613e5f57600080fd5b613e6b85828601613b4c565b90969095509350505050565b60008060408385031215613e8a57600080fd5b8235613e9581613a47565b91506020830135613d1c81613ce9565b600080600060408486031215613eba57600080fd5b833567ffffffffffffffff811115613ed157600080fd5b613edd86828701613b4c565b9094509250506020840135613ef181613ce9565b809150509250925092565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b60008060008060808587031215613f4157600080fd5b8435613f4c81613a47565b93506020850135613f5c81613a47565b925060408501359150606085013567ffffffffffffffff80821115613f8057600080fd5b818701915087601f830112613f9457600080fd5b813581811115613fa657613fa6613efc565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0908116603f01168101908382118183101715613fec57613fec613efc565b816040528281528a602084870101111561400557600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b6000806040838503121561403c57600080fd5b823561404781613a47565b91506020830135613d1c81613a47565b600181811c9082168061406b57607f821691505b602082108114156140a5577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615614112576141126140ab565b500290565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60008261415557614155614117565b500490565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7fffffffffffffffffffffffffffffffffffffffff0000000000000000000000008460601b1681526000600484106141ea577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b5060f89290921b60148301526015820152603501919050565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415614235576142356140ab565b5060010190565b6000815161424e8185602086016139a5565b9290920192915050565b600080845481600182811c91508083168061427457607f831692505b60208084108214156142ad577f4e487b710000000000000000000000000000000000000000000000000000000086526022600452602486fd5b8180156142c157600181146142f05761431d565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0086168952848901965061431d565b60008b81526020902060005b868110156143155781548b8201529085019083016142fc565b505084890196505b505050505050614359614330828661423c565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000815260050190565b95945050505050565b60006020828403121561437457600080fd5b81516112f881613a47565b60008083357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe18436030181126143b457600080fd5b83018035915067ffffffffffffffff8211156143cf57600080fd5b6020019150600581901b360382131561303657600080fd5b6000828210156143f9576143f96140ab565b500390565b60008261440d5761440d614117565b500690565b60008219821115614425576144256140ab565b500190565b60006001600160a01b0380871683528086166020840152508360408301526080606083015261445c60808301846139d1565b9695505050505050565b60006020828403121561447857600080fd5b81516112f88161395a565b60006020828403121561449557600080fd5b81516112f881613ce9565b600082516144b28184602087016139a5565b919091019291505056fea26469706673582212200f892737c949d9c035db7bd16fda9e20c559ca607e0481f010011ff9f47c921a64736f6c634300080c0033000000000000000000000000000000000000000000000000000000000000016000000000000000000000000000000000000000000000000000000000000001a0000000000000000000000000000000000000000000000000000000000000000100000000000000000000000091da72e5913bcde556e097e4838244f2b9cc81a10000000000000000000000000000000000000000000000000118aa14d9418000000000000000000000000000000000000000000000000000013c31074902800000000000000000000000000000000000000000000000000000000000000001e00000000000000000000000000000000000000000000000000000000000000240000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1000000000000000000000000729fbd680ba391d941c69785824e042e0e38cfda00000000000000000000000000000000000000000000000000000000000001f4000000000000000000000000000000000000000000000000000000000000000e53757072656d6520536b756c6c73000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000253500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000035697066733a2f2f516d514a556b46674655734473387a465479726a4a71363663334a5455674e65555442415534564e5534715959350000000000000000000000000000000000000000000000000000000000000000000000000000000000000b4e6f742059657420536574000000000000000000000000000000000000000000

Deployed Bytecode

0x6080604052600436106103815760003560e01c8063853828b6116101d1578063b2118a8d11610102578063c87b56dd116100a0578063e985e9c51161006f578063e985e9c514610a1d578063ede9dddd14610a3d578063f02678e914610a53578063f2fde38b14610a7357600080fd5b8063c87b56dd146109b3578063cfcf6d91146109d3578063e79433f5146109e8578063e8a3d48514610a0857600080fd5b8063b88d4fde116100dc578063b88d4fde1461095d578063b95f8b5f1461097d578063c08dfd3c146107c9578063c6ab67a31461099d57600080fd5b8063b2118a8d146108f6578063b50cbd9f14610916578063b64b21ca1461093d57600080fd5b80639816c0ca1161016f5780639f41554a116101495780639f41554a14610873578063a22cb46514610886578063a9c68c6d146108a6578063adfdeef9146108d657600080fd5b80639816c0ca1461081357806398a8cffe146108265780639b1a51731461085357600080fd5b80638da5cb5b116101ab5780638da5cb5b146107ab5780638ecad721146107c9578063938e3d7b146107de57806395d89b41146107fe57600080fd5b8063853828b61461075c578063857e087d146107715780638c7ea24b1461078b57600080fd5b8063438b6300116102b657806354214f69116102545780636c0360eb116102235780636c0360eb146106e757806370a08231146106fc5780637312808b1461071c5780637df325e11461073c57600080fd5b806354214f691461065b5780635a67de071461067a578063603f4d521461069a5780636352211e146106c757600080fd5b80634d44660c116102905780634d44660c146105db5780634f6ccce7146105fb5780634fd1f1981461061b57806351d3f6101461063b57600080fd5b8063438b63001461057b57806344a8715b146105a85780634530a832146105bb57600080fd5b806323b872dd116103235780632f745c59116102fd5780632f745c591461050f5780632fff17961461052f57806332cb6b0c1461054557806342842e0e1461055b57600080fd5b806323b872dd146104905780632a55205a146104b05780632e1a7d4d146104ef57600080fd5b8063095ea7b31161035f578063095ea7b314610415578063102e766d1461043757806318160ddd1461045b5780631ea111791461047057600080fd5b806301ffc9a71461038657806306fdde03146103bb578063081812fc146103dd575b600080fd5b34801561039257600080fd5b506103a66103a1366004613988565b610a93565b60405190151581526020015b60405180910390f35b3480156103c757600080fd5b506103d0610aa4565b6040516103b29190613a1b565b3480156103e957600080fd5b506103fd6103f8366004613a2e565b610b36565b6040516001600160a01b0390911681526020016103b2565b34801561042157600080fd5b50610435610430366004613a5c565b610bd4565b005b34801561044357600080fd5b5061044d60085481565b6040519081526020016103b2565b34801561046757600080fd5b5060025461044d565b34801561047c57600080fd5b50600d546103fd906001600160a01b031681565b34801561049c57600080fd5b506104356104ab366004613a88565b610d06565b3480156104bc57600080fd5b506104d06104cb366004613ac9565b610d8d565b604080516001600160a01b0390931683526020830191909152016103b2565b3480156104fb57600080fd5b5061043561050a366004613a2e565b610df3565b34801561051b57600080fd5b5061044d61052a366004613a5c565b610ed3565b34801561053b57600080fd5b5061044d60075481565b34801561055157600080fd5b5061044d611a0a81565b34801561056757600080fd5b50610435610576366004613a88565b611043565b34801561058757600080fd5b5061059b610596366004613aeb565b61105e565b6040516103b29190613b08565b6104356105b6366004613b8e565b61110d565b3480156105c757600080fd5b506104356105d6366004613a2e565b61123c565b3480156105e757600080fd5b506103a66105f6366004613c1f565b61129b565b34801561060757600080fd5b5061044d610616366004613a2e565b6112ff565b34801561062757600080fd5b506103a6610636366004613c7b565b61139f565b34801561064757600080fd5b50610435610656366004613cf7565b611496565b34801561066757600080fd5b50600c546103a690610100900460ff1681565b34801561068657600080fd5b50610435610695366004613d27565b611567565b3480156106a657600080fd5b50600c546106ba9062010000900460ff1681565b6040516103b29190613d71565b3480156106d357600080fd5b506103fd6106e2366004613a2e565b61163f565b3480156106f357600080fd5b506103d06116e7565b34801561070857600080fd5b5061044d610717366004613aeb565b611775565b34801561072857600080fd5b50610435610737366004613db2565b611856565b34801561074857600080fd5b50610435610757366004613a88565b61194d565b34801561076857600080fd5b506104356119b2565b34801561077d57600080fd5b50600c546103a69060ff1681565b34801561079757600080fd5b506104356107a6366004613a5c565b611a17565b3480156107b757600080fd5b506006546001600160a01b03166103fd565b3480156107d557600080fd5b5061044d600281565b3480156107ea57600080fd5b506104356107f9366004613e35565b611b1e565b34801561080a57600080fd5b506103d0611b84565b610435610821366004613a2e565b611b93565b34801561083257600080fd5b5061044d610841366004613aeb565b600f6020526000908152604090205481565b34801561085f57600080fd5b5061043561086e366004613aeb565b611c75565b610435610881366004613b8e565b611d09565b34801561089257600080fd5b506104356108a1366004613e77565b611e49565b3480156108b257600080fd5b506103a66108c1366004613aeb565b600e6020526000908152604090205460ff1681565b3480156108e257600080fd5b506104356108f1366004613aeb565b611f2c565b34801561090257600080fd5b50610435610911366004613a88565b611fc7565b34801561092257600080fd5b50600c546103fd90630100000090046001600160a01b031681565b34801561094957600080fd5b50610435610958366004613ea5565b61202c565b34801561096957600080fd5b50610435610978366004613f2b565b6120cc565b34801561098957600080fd5b50610435610998366004613a2e565b61215a565b3480156109a957600080fd5b5061044d600b5481565b3480156109bf57600080fd5b506103d06109ce366004613a2e565b6121b9565b3480156109df57600080fd5b506104356122cd565b3480156109f457600080fd5b50610435610a03366004613a2e565b612351565b348015610a1457600080fd5b506103d06123b7565b348015610a2957600080fd5b506103a6610a38366004614029565b6123c4565b348015610a4957600080fd5b5061044d6103e881565b348015610a5f57600080fd5b50610435610a6e366004613db2565b6124c0565b348015610a7f57600080fd5b50610435610a8e366004613aeb565b61261d565b6000610a9e826126fc565b92915050565b606060008054610ab390614057565b80601f0160208091040260200160405190810160405280929190818152602001828054610adf90614057565b8015610b2c5780601f10610b0157610100808354040283529160200191610b2c565b820191906000526020600020905b815481529060010190602001808311610b0f57829003601f168201915b5050505050905090565b6000610b4182612752565b610bb85760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e000000000000000000000000000000000000000060648201526084015b60405180910390fd5b506000908152600360205260409020546001600160a01b031690565b6000610bdf8261163f565b9050806001600160a01b0316836001600160a01b03161415610c695760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152608401610baf565b336001600160a01b0382161480610c855750610c8581336123c4565b610cf75760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610baf565b610d0183836127da565b505050565b610d103382612860565b610d825760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610baf565b610d0183838361293b565b604080518082019091526005546001600160a01b0381168083527401000000000000000000000000000000000000000090910462ffffff1660208301819052909160009161271090610ddf90866140da565b610de99190614146565b9150509250929050565b6006546001600160a01b03163314610e4d5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610baf565b604051600090339083908381818185875af1925050503d8060008114610e8f576040519150601f19603f3d011682016040523d82523d6000602084013e610e94565b606091505b5050905080610ecf576040517f2684a07900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5050565b6000610ede83611775565b8210610f525760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201527f74206f6620626f756e64730000000000000000000000000000000000000000006064820152608401610baf565b6000805b600254811015610fd45760028181548110610f7357610f7361415a565b6000918252602090912001546001600160a01b0386811691161415610fcc5783821415610fc5577f0000000000000000000000000000000000000000000000000000000000000001019150610a9e9050565b6001909101905b600101610f56565b5060405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201527f74206f6620626f756e64730000000000000000000000000000000000000000006064820152608401610baf565b610d01838383604051806020016040528060008152506120cc565b6060600061106b83611775565b90508061108c5760408051600080825260208201909252905b509392505050565b60008167ffffffffffffffff8111156110a7576110a7613efc565b6040519080825280602002602001820160405280156110d0578160200160208202803683370190505b50905060005b82811015611084576110e88582610ed3565b8282815181106110fa576110fa61415a565b60209081029190910101526001016110d6565b600280600c5462010000900460ff16600381111561112d5761112d613d42565b14611164576040517fa0d5833800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8360028111156111a0576040517fccf0a4cb00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8460085480820234146111df576040517f6992e1ff00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b858560026111f18383335b844661139f565b611227576040517f8baa579f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6112308a612ade565b50505050505050505050565b6006546001600160a01b031633146112965760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610baf565b600855565b6000805b828110156112f257846001600160a01b03166112d28585848181106112c6576112c661415a565b9050602002013561163f565b6001600160a01b0316146112ea5760009150506112f8565b60010161129f565b50600190505b9392505050565b60025460009082106113795760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201527f7574206f6620626f756e647300000000000000000000000000000000000000006064820152608401610baf565b507f00000000000000000000000000000000000000000000000000000000000000010190565b6000806114388585856040516020016113ba93929190614189565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe081840301815282825280516020918201207f19457468657265756d205369676e6564204d6573736167653a0a33320000000084830152603c8085019190915282518085039091018152605c909301909152815191012090565b905061147a8188888080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250612bdd92505050565b600d546001600160a01b03918216911614979650505050505050565b6006546001600160a01b031633146114f05760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610baf565b600c5460ff161561152d576040517f7bbf047e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600b8290558015610ecf57600c80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660011790555050565b6006546001600160a01b031633146115c15760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610baf565b600c80548291907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ffff166201000083600381111561160057611600613d42565b02179055507f92a17b827ee9d42ea9454bb4ca941a1800870e6d01c0842d09ba23ccc0190ee1816040516116349190613d71565b60405180910390a150565b600080600261164d84612bf9565b8154811061165d5761165d61415a565b6000918252602090912001546001600160a01b0316905080610a9e5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e00000000000000000000000000000000000000000000006064820152608401610baf565b600980546116f490614057565b80601f016020809104026020016040519081016040528092919081815260200182805461172090614057565b801561176d5780601f106117425761010080835404028352916020019161176d565b820191906000526020600020905b81548152906001019060200180831161175057829003601f168201915b505050505081565b60006001600160a01b0382166117f35760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f2061646472657373000000000000000000000000000000000000000000006064820152608401610baf565b6000805b60025481101561184f57600281815481106118145761181461415a565b6000918252602090912001546001600160a01b038581169116141561183f5761183c82614203565b91505b61184881614203565b90506117f7565b5092915050565b6006546001600160a01b031633146118b05760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610baf565b8281146118e9576040517fa24a13a600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60005b838110156119455761193d8686868481811061190a5761190a61415a565b905060200201602081019061191f9190613aeb565b8585858181106119315761193161415a565b90506020020135612cb8565b6001016118ec565b505050505050565b6006546001600160a01b031633146119a75760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610baf565b610d01838383612ccc565b6006546001600160a01b03163314611a0c5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610baf565b611a1547610df3565b565b6006546001600160a01b03163314611a715760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610baf565b6103e8811115611aad576040517f03e231b900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b604080518082019091526001600160a01b03831680825262ffffff83166020909201829052600580547fffffffffffffffffff000000000000000000000000000000000000000000000016909117740100000000000000000000000000000000000000009092029190911790555050565b6006546001600160a01b03163314611b785760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610baf565b610d01600a83836138a3565b606060018054610ab390614057565b600380600c5462010000900460ff166003811115611bb357611bb3613d42565b14611bea576040517fa0d5833800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b816002811115611c26576040517fccf0a4cb00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b826008548082023414611c65576040517f6992e1ff00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611c6e85612ade565b5050505050565b6006546001600160a01b03163314611ccf5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610baf565b600d80547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b600180600c5462010000900460ff166003811115611d2957611d29613d42565b14611d60576040517fa0d5833800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b836007548082023414611d9f576040517f6992e1ff00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b84846001611dae8383336111ea565b611de4576040517f8baa579f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b336000908152600f6020526040902080548a019081905560021015611e35576040517f216a8a7700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611e3e89612ade565b505050505050505050565b6001600160a01b038216331415611ea25760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610baf565b3360008181526004602090815260408083206001600160a01b0387168085529083529281902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6006546001600160a01b03163314611f865760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610baf565b600c80546001600160a01b039092166301000000027fffffffffffffffffff0000000000000000000000000000000000000000ffffff909216919091179055565b6006546001600160a01b031633146120215760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610baf565b610d01838383612cb8565b6006546001600160a01b031633146120865760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610baf565b612092600984846138a3565b50600c8054911515610100027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff9092169190911790555050565b6120d63383612860565b6121485760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610baf565b61215484848484612d52565b50505050565b6006546001600160a01b031633146121b45760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610baf565b600755565b60606121c482612752565b6121fa576040517fceea21b600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600c54610100900460ff1661229b576009805461221690614057565b80601f016020809104026020016040519081016040528092919081815260200182805461224290614057565b801561228f5780601f106122645761010080835404028352916020019161228f565b820191906000526020600020905b81548152906001019060200180831161227257829003601f168201915b50505050509050919050565b60096122a683612ddb565b6040516020016122b7929190614258565b6040516020818303038152906040529050919050565b336000908152600e602052604090205460ff1615612317576040517ff91d3ca000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b336000908152600e6020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055565b6006546001600160a01b031633146123ab5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610baf565b6123b481612ade565b50565b600a80546116f490614057565b6001600160a01b0382166000908152600e602052604081205460ff1661249257600c546040517fc45527910000000000000000000000000000000000000000000000000000000081526001600160a01b0385811660048301526301000000909204821691841690829063c455279190602401602060405180830381865afa158015612453573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124779190614362565b6001600160a01b03161415612490576001915050610a9e565b505b6001600160a01b0380841660009081526004602090815260408083209386168352929052205460ff166112f8565b6006546001600160a01b0316331461251a5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610baf565b828114612553576040517fa24a13a600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60005b838110156119455760008383838181106125725761257261415a565b9050602002810190612584919061437f565b8080602002602001604051908101604052809392919081815260200183836020028082843760009201829052509394505050505b81518110156126135761260b888888868181106125d7576125d761415a565b90506020020160208101906125ec9190613aeb565b8484815181106125fe576125fe61415a565b6020026020010151612ccc565b6001016125b8565b5050600101612556565b6006546001600160a01b031633146126775760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610baf565b6001600160a01b0381166126f35760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610baf565b6123b481612f0d565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f2a55205a000000000000000000000000000000000000000000000000000000001480610a9e5750610a9e82612f77565b60007f000000000000000000000000000000000000000000000000000000000000000182101561278457506000919050565b600061278f83612bf9565b600254909150811080156112f8575060006001600160a01b0316600282815481106127bc576127bc61415a565b6000918252602090912001546001600160a01b031614159392505050565b600081815260036020526040902080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b03841690811790915581906128278261163f565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600061286b82612752565b6128dd5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e00000000000000000000000000000000000000006064820152608401610baf565b60006128e88361163f565b9050806001600160a01b0316846001600160a01b031614806129235750836001600160a01b031661291884610b36565b6001600160a01b0316145b80612933575061293381856123c4565b949350505050565b826001600160a01b031661294e8261163f565b6001600160a01b0316146129ca5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201527f73206e6f74206f776e00000000000000000000000000000000000000000000006064820152608401610baf565b6001600160a01b038216612a455760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610baf565b612a506000826127da565b816002612a5c83612bf9565b81548110612a6c57612a6c61415a565b6000918252602082200180547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b03938416179055604051839285811692908716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9190a4505050565b600254611a0a8282011115612b1f576040517fc30436e900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60005b82811015610d01576002805460018101825560009182527f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace0180547fffffffffffffffffffffffff000000000000000000000000000000000000000016339081179091556040517f00000000000000000000000000000000000000000000000000000000000000018501840192907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4600101612b22565b6000806000612bec8585612fcd565b915091506110848161303d565b60007f0000000000000000000000000000000000000000000000000000000000000001821015612c915760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e00000000000000000000000000000000000000000000006064820152608401610baf565b507f0000000000000000000000000000000000000000000000000000000000000001900390565b610d016001600160a01b038416838361322e565b6040517f42842e0e0000000000000000000000000000000000000000000000000000000081523060048201526001600160a01b038381166024830152604482018390528416906342842e0e90606401600060405180830381600087803b158015612d3557600080fd5b505af1158015612d49573d6000803e3d6000fd5b50505050505050565b612d5d84848461293b565b612d69848484846132ae565b6121545760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610baf565b606081612e1b57505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115612e455780612e2f81614203565b9150612e3e9050600a83614146565b9150612e1f565b60008167ffffffffffffffff811115612e6057612e60613efc565b6040519080825280601f01601f191660200182016040528015612e8a576020820181803683370190505b5090505b841561293357612e9f6001836143e7565b9150612eac600a866143fe565b612eb7906030614412565b60f81b818381518110612ecc57612ecc61415a565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350612f06600a86614146565b9450612e8e565b600680546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f780e9d63000000000000000000000000000000000000000000000000000000001480610a9e5750610a9e8261346a565b6000808251604114156130045760208301516040840151606085015160001a612ff88782858561354d565b94509450505050613036565b82516040141561302e5760208301516040840151613023868383613658565b935093505050613036565b506000905060025b9250929050565b600081600481111561305157613051613d42565b141561305a5750565b600181600481111561306e5761306e613d42565b14156130bc5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610baf565b60028160048111156130d0576130d0613d42565b141561311e5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610baf565b600381600481111561313257613132613d42565b14156131a65760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c60448201527f75650000000000000000000000000000000000000000000000000000000000006064820152608401610baf565b60048160048111156131ba576131ba613d42565b14156123b45760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c60448201527f75650000000000000000000000000000000000000000000000000000000000006064820152608401610baf565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb00000000000000000000000000000000000000000000000000000000179052610d019084906136aa565b60006001600160a01b0384163b1561345f576040517f150b7a020000000000000000000000000000000000000000000000000000000081526001600160a01b0385169063150b7a029061330b90339089908890889060040161442a565b6020604051808303816000875af1925050508015613364575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016820190925261336191810190614466565b60015b613414573d808015613392576040519150601f19603f3d011682016040523d82523d6000602084013e613397565b606091505b50805161340c5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610baf565b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a0200000000000000000000000000000000000000000000000000000000149050612933565b506001949350505050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd0000000000000000000000000000000000000000000000000000000014806134fd57507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610a9e57507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff00000000000000000000000000000000000000000000000000000000831614610a9e565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115613584575060009050600361364f565b8460ff16601b1415801561359c57508460ff16601c14155b156135ad575060009050600461364f565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015613601573d6000803e3d6000fd5b50506040517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe001519150506001600160a01b0381166136485760006001925092505061364f565b9150600090505b94509492505050565b6000807f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff83168161368e60ff86901c601b614412565b905061369c8782888561354d565b935093505050935093915050565b60006136ff826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b031661378f9092919063ffffffff16565b805190915015610d01578080602001905181019061371d9190614483565b610d015760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152608401610baf565b60606129338484600085856001600160a01b0385163b6137f15760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610baf565b600080866001600160a01b0316858760405161380d91906144a0565b60006040518083038185875af1925050503d806000811461384a576040519150601f19603f3d011682016040523d82523d6000602084013e61384f565b606091505b509150915061385f82828661386a565b979650505050505050565b606083156138795750816112f8565b8251156138895782518084602001fd5b8160405162461bcd60e51b8152600401610baf9190613a1b565b8280546138af90614057565b90600052602060002090601f0160209004810192826138d15760008555613935565b82601f10613908578280017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00823516178555613935565b82800160010185558215613935579182015b8281111561393557823582559160200191906001019061391a565b50613941929150613945565b5090565b5b808211156139415760008155600101613946565b7fffffffff00000000000000000000000000000000000000000000000000000000811681146123b457600080fd5b60006020828403121561399a57600080fd5b81356112f88161395a565b60005b838110156139c05781810151838201526020016139a8565b838111156121545750506000910152565b600081518084526139e98160208601602086016139a5565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b6020815260006112f860208301846139d1565b600060208284031215613a4057600080fd5b5035919050565b6001600160a01b03811681146123b457600080fd5b60008060408385031215613a6f57600080fd5b8235613a7a81613a47565b946020939093013593505050565b600080600060608486031215613a9d57600080fd5b8335613aa881613a47565b92506020840135613ab881613a47565b929592945050506040919091013590565b60008060408385031215613adc57600080fd5b50508035926020909101359150565b600060208284031215613afd57600080fd5b81356112f881613a47565b6020808252825182820181905260009190848201906040850190845b81811015613b4057835183529284019291840191600101613b24565b50909695505050505050565b60008083601f840112613b5e57600080fd5b50813567ffffffffffffffff811115613b7657600080fd5b60208301915083602082850101111561303657600080fd5b600080600060408486031215613ba357600080fd5b83359250602084013567ffffffffffffffff811115613bc157600080fd5b613bcd86828701613b4c565b9497909650939450505050565b60008083601f840112613bec57600080fd5b50813567ffffffffffffffff811115613c0457600080fd5b6020830191508360208260051b850101111561303657600080fd5b600080600060408486031215613c3457600080fd5b8335613c3f81613a47565b9250602084013567ffffffffffffffff811115613c5b57600080fd5b613bcd86828701613bda565b803560048110613c7657600080fd5b919050565b600080600080600060808688031215613c9357600080fd5b853567ffffffffffffffff811115613caa57600080fd5b613cb688828901613b4c565b9096509450506020860135613cca81613a47565b9250613cd860408701613c67565b949793965091946060013592915050565b80151581146123b457600080fd5b60008060408385031215613d0a57600080fd5b823591506020830135613d1c81613ce9565b809150509250929050565b600060208284031215613d3957600080fd5b6112f882613c67565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b6020810160048310613dac577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b91905290565b600080600080600060608688031215613dca57600080fd5b8535613dd581613a47565b9450602086013567ffffffffffffffff80821115613df257600080fd5b613dfe89838a01613bda565b90965094506040880135915080821115613e1757600080fd5b50613e2488828901613bda565b969995985093965092949392505050565b60008060208385031215613e4857600080fd5b823567ffffffffffffffff811115613e5f57600080fd5b613e6b85828601613b4c565b90969095509350505050565b60008060408385031215613e8a57600080fd5b8235613e9581613a47565b91506020830135613d1c81613ce9565b600080600060408486031215613eba57600080fd5b833567ffffffffffffffff811115613ed157600080fd5b613edd86828701613b4c565b9094509250506020840135613ef181613ce9565b809150509250925092565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b60008060008060808587031215613f4157600080fd5b8435613f4c81613a47565b93506020850135613f5c81613a47565b925060408501359150606085013567ffffffffffffffff80821115613f8057600080fd5b818701915087601f830112613f9457600080fd5b813581811115613fa657613fa6613efc565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0908116603f01168101908382118183101715613fec57613fec613efc565b816040528281528a602084870101111561400557600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b6000806040838503121561403c57600080fd5b823561404781613a47565b91506020830135613d1c81613a47565b600181811c9082168061406b57607f821691505b602082108114156140a5577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615614112576141126140ab565b500290565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60008261415557614155614117565b500490565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7fffffffffffffffffffffffffffffffffffffffff0000000000000000000000008460601b1681526000600484106141ea577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b5060f89290921b60148301526015820152603501919050565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415614235576142356140ab565b5060010190565b6000815161424e8185602086016139a5565b9290920192915050565b600080845481600182811c91508083168061427457607f831692505b60208084108214156142ad577f4e487b710000000000000000000000000000000000000000000000000000000086526022600452602486fd5b8180156142c157600181146142f05761431d565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0086168952848901965061431d565b60008b81526020902060005b868110156143155781548b8201529085019083016142fc565b505084890196505b505050505050614359614330828661423c565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000815260050190565b95945050505050565b60006020828403121561437457600080fd5b81516112f881613a47565b60008083357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe18436030181126143b457600080fd5b83018035915067ffffffffffffffff8211156143cf57600080fd5b6020019150600581901b360382131561303657600080fd5b6000828210156143f9576143f96140ab565b500390565b60008261440d5761440d614117565b500690565b60008219821115614425576144256140ab565b500190565b60006001600160a01b0380871683528086166020840152508360408301526080606083015261445c60808301846139d1565b9695505050505050565b60006020828403121561447857600080fd5b81516112f88161395a565b60006020828403121561449557600080fd5b81516112f881613ce9565b600082516144b28184602087016139a5565b919091019291505056fea26469706673582212200f892737c949d9c035db7bd16fda9e20c559ca607e0481f010011ff9f47c921a64736f6c634300080c0033

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

000000000000000000000000000000000000000000000000000000000000016000000000000000000000000000000000000000000000000000000000000001a0000000000000000000000000000000000000000000000000000000000000000100000000000000000000000091da72e5913bcde556e097e4838244f2b9cc81a10000000000000000000000000000000000000000000000000118aa14d9418000000000000000000000000000000000000000000000000000013c31074902800000000000000000000000000000000000000000000000000000000000000001e00000000000000000000000000000000000000000000000000000000000000240000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1000000000000000000000000729fbd680ba391d941c69785824e042e0e38cfda00000000000000000000000000000000000000000000000000000000000001f4000000000000000000000000000000000000000000000000000000000000000e53757072656d6520536b756c6c73000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000253500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000035697066733a2f2f516d514a556b46674655734473387a465479726a4a71363663334a5455674e65555442415534564e5534715959350000000000000000000000000000000000000000000000000000000000000000000000000000000000000b4e6f742059657420536574000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _name (string): Supreme Skulls
Arg [1] : _symbol (string): SP
Arg [2] : _startingTokenID (uint256): 1
Arg [3] : _couponSigner (address): 0x91da72E5913BCDe556e097E4838244f2B9Cc81a1
Arg [4] : _priceWhitelist (uint256): 79000000000000000
Arg [5] : _pricePublic (uint256): 89000000000000000
Arg [6] : _contractURI (string): ipfs://QmQJUkFgFUsDs8zFTyrjJq66c3JTUgNeUTBAU4VNU4qYY5
Arg [7] : _baseURI (string): Not Yet Set
Arg [8] : _proxyRegistry (address): 0xa5409ec958C83C3f309868babACA7c86DCB077c1
Arg [9] : _royaltiesReceiver (address): 0x729fbd680BA391D941c69785824e042e0e38cFdA
Arg [10] : _royaltiesPercent (uint256): 500

-----Encoded View---------------
20 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000160
Arg [1] : 00000000000000000000000000000000000000000000000000000000000001a0
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [3] : 00000000000000000000000091da72e5913bcde556e097e4838244f2b9cc81a1
Arg [4] : 0000000000000000000000000000000000000000000000000118aa14d9418000
Arg [5] : 000000000000000000000000000000000000000000000000013c310749028000
Arg [6] : 00000000000000000000000000000000000000000000000000000000000001e0
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000240
Arg [8] : 000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1
Arg [9] : 000000000000000000000000729fbd680ba391d941c69785824e042e0e38cfda
Arg [10] : 00000000000000000000000000000000000000000000000000000000000001f4
Arg [11] : 000000000000000000000000000000000000000000000000000000000000000e
Arg [12] : 53757072656d6520536b756c6c73000000000000000000000000000000000000
Arg [13] : 0000000000000000000000000000000000000000000000000000000000000002
Arg [14] : 5350000000000000000000000000000000000000000000000000000000000000
Arg [15] : 0000000000000000000000000000000000000000000000000000000000000035
Arg [16] : 697066733a2f2f516d514a556b46674655734473387a465479726a4a71363663
Arg [17] : 334a5455674e65555442415534564e5534715959350000000000000000000000
Arg [18] : 000000000000000000000000000000000000000000000000000000000000000b
Arg [19] : 4e6f742059657420536574000000000000000000000000000000000000000000


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.