ETH Price: $2,386.23 (+1.43%)

Token

GASPACK (GASPACK)
 

Overview

Max Total Supply

68 GASPACK

Holders

58

Total Transfers

-

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information
# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
GaspackNFT

Compiler Version
v0.8.13+commit.abaa5c0e

Optimization Enabled:
Yes with 1000 runs

Other Settings:
default evmVersion
File 1 of 15 : GaspackNFT.sol
/**
SPDX-License-Identifier: MIT
*/
import "./IGaspackAppImplementation.sol";
import "erc721a/contracts/ERC721A.sol";
import "@openzeppelin/contracts/token/common/ERC2981.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/cryptography/draft-EIP712.sol";

pragma solidity ^0.8.13;

contract GaspackNFT is
    IGaspackAppImplementation,
    ERC721A,
    ERC2981,
    EIP712,
    ReentrancyGuard,
    Ownable
{
    using ECDSA for bytes32;

    bytes32 public constant PRIVATE_SALE_TYPEHASH =
        keccak256(
            "PrivateSale(uint256 price,uint256 quantity,uint256 txLimit,uint256 walletLimit,uint256 deadline,uint256 kind,address recipient)"
        );
    uint256 public maxSupply;
    string public baseURI;
    Stage public stage;
    address public signer;
    address private constant WALLET =
        0x83739A8Ec78f74Ed2f1e6256fEa391DB01F1566F;
    PublicSale public publicSale;

    mapping(address => uint256) public PrivateSaleMinter;
    mapping(address => uint256) public PublicSaleMinter;
    mapping(address => uint256) public userNonce;
    mapping(uint256 => PrivateSale) public privateSales;
    mapping(address => bool) public authorizedAddresses;

    event PrivateSaleMint(
        address owner,
        PrivateSale privateSale,
        uint256 nonce,
        uint256 kind
    );

    modifier notContract() {
        require(!_isContract(_msgSender()), "NOT_ALLOWED_CONTRACT");
        require(_msgSender() == tx.origin, "NOT_ALLOWED_PROXY");
        _;
    }

    modifier onlyAuthorizedAddress() {
        require(
            msg.sender == owner() || authorizedAddresses[msg.sender],
            "Caller is not the owner or the minter"
        );
        _;
    }

    constructor(
        string memory _name,
        string memory _symbol,
        string memory _previewURI,
        uint256 _maxSupply,
        address _signer,
        address _authorizedAddress,
        address _royaltyAddress,
        PublicSale memory _publicSaleProperty,
        PrivateSale memory _privateSaleProperty
    ) ERC721A(_name, _symbol) EIP712("GaspackApp", "1.0.0") {
        stage = Stage.Pause;
        baseURI = _previewURI;
        maxSupply = _maxSupply;
        signer = _signer;
        authorizedAddresses[_authorizedAddress] = true;
        publicSale = _publicSaleProperty;
        privateSales[0] = _privateSaleProperty;
        _setDefaultRoyalty(_royaltyAddress, 1000);
    }

    // Override the start token id because by defaut ERC71A set the
    // start token id to 0
    function _startTokenId() internal view virtual override returns (uint256) {
        return 1;
    }

    function _isContract(address _addr) internal view returns (bool) {
        uint256 size;
        assembly {
            size := extcodesize(_addr)
        }
        return size > 0;
    }

    function mintTo(
        address[] calldata _to,
        uint256[] calldata _amount
    ) external onlyAuthorizedAddress {
        for (uint256 i = 0; i < _to.length; i++) {
            require(
                totalSupply() + _amount[i] <= maxSupply,
                "MAX_SUPPLY_EXCEEDED"
            );
            _mint(_to[i], _amount[i]);
        }
    }

    /**
     * @inheritdoc IGaspackAppImplementation
     */
    function privateSaleMint(
        PrivateSale memory _privateSale,
        uint256 _nonce,
        uint256 _kind,
        bytes calldata _signature
    ) external payable {
        require(stage == Stage.Private || stage == Stage.Mint, "STAGE_NMATCH");
        require(
            signer ==
                _verifyPrivateSale(_privateSale, msg.sender, _kind, _signature),
            "INVALID_SIGNATURE"
        );

        PrivateSale memory privateSale = privateSales[_kind];
        require(_nonce == userNonce[msg.sender], "INVALID_NONCE");
        require(
            block.timestamp <= _privateSale.deadline,
            "INVALID_DEADLINE_SIGNATURE"
        );
        require(
            _privateSale.quantity <= privateSale.txLimit,
            "TX_LIMIT_EXCEEDED"
        );
        require(
            PrivateSaleMinter[msg.sender] + _privateSale.quantity <=
                privateSale.walletLimit,
            "WALLET_LIMIT_EXCEEDED"
        );
        require(
            totalSupply() + _privateSale.quantity <= maxSupply,
            "SUPPLY_EXCEEDED"
        );
        require(
            msg.value >= (privateSale.price * _privateSale.quantity),
            "INSUFFICIENT_FUND"
        );

        userNonce[msg.sender]++;
        PrivateSaleMinter[msg.sender] += _privateSale.quantity;
        _mint(msg.sender, _privateSale.quantity);

        emit PrivateSaleMint(msg.sender, _privateSale, _nonce, _kind);
    }

    /**
     * @inheritdoc IGaspackAppImplementation
     */
    function publicSaleMint(uint256 _quantity) external payable {
        require(stage == Stage.Public || stage == Stage.Mint, "STAGE_NMATCH");
        require(_quantity <= publicSale.txLimit, "TX_LIMIT_EXCEEDED");
        require(
            PublicSaleMinter[msg.sender] + _quantity <= publicSale.walletLimit,
            "WALLET_LIMIT_EXCEEDED"
        );
        require(totalSupply() + _quantity <= maxSupply, "SUPPLY_EXCEEDED");
        require(
            msg.value >= (publicSale.price * _quantity),
            "INSUFFICIENT_FUND"
        );

        PublicSaleMinter[msg.sender] += _quantity;
        _mint(msg.sender, _quantity);
    }

    function _verifyPrivateSale(
        PrivateSale memory _privateSale,
        address _sender,
        uint256 _kind,
        bytes calldata _sign
    ) internal view returns (address) {
        bytes32 digest = _hashTypedDataV4(
            keccak256(
                abi.encode(
                    PRIVATE_SALE_TYPEHASH,
                    _privateSale.price,
                    _privateSale.quantity,
                    _privateSale.txLimit,
                    _privateSale.walletLimit,
                    _privateSale.deadline,
                    _kind,
                    _sender
                )
            )
        );
        return ECDSA.recover(digest, _sign);
    }

    function setPrivateSale(
        uint256 _kind,
        PrivateSale memory _privateSale
    ) external onlyOwner {
        privateSales[_kind] = _privateSale;
    }

    function updatePublicSale(
        PublicSale memory _publicSale
    ) external onlyOwner {
        publicSale = _publicSale;
    }

    function supportsInterface(
        bytes4 interfaceId
    ) public view virtual override(ERC721A, ERC2981) returns (bool) {
        // IERC165: 0x01ffc9a7, IERC721: 0x80ac58cd, IERC721Metadata: 0x5b5e139f, IERC29081: 0x2a55205a
        return
            ERC721A.supportsInterface(interfaceId) ||
            ERC2981.supportsInterface(interfaceId);
    }

    /**
     * @inheritdoc IGaspackAppImplementation
     */
    function setStage(Stage _stage) external onlyOwner {
        stage = _stage;
    }

    /**
     * @inheritdoc IGaspackAppImplementation
     */
    function setSigner(address _signer) external onlyOwner {
        signer = _signer;
    }

    /**
     * @inheritdoc IGaspackAppImplementation
     */
    function setBaseURI(string calldata _baseURI) external onlyOwner {
        baseURI = _baseURI;
    }

    /**
     * @inheritdoc IGaspackAppImplementation
     */
    function setAuthorizedAddress(
        address _authorizedAddress,
        bool value
    ) external onlyOwner {
        authorizedAddresses[_authorizedAddress] = value;
    }

    function setMaxSupply(uint256 _maxSupply) external onlyOwner {
        maxSupply = _maxSupply;
    }

    /**
     * @inheritdoc IGaspackAppImplementation
     */
    function burn(uint256 _tokenId) external onlyAuthorizedAddress {
        _burn(_tokenId);
    }

    /// @notice Set royalties for EIP 2981.
    /// @param _recipient the recipient of royalty
    /// @param _amount the amount of royalty (use bps)
    function setRoyalties(
        address _recipient,
        uint96 _amount
    ) external onlyOwner {
        _setDefaultRoyalty(_recipient, _amount);
    }

    /**
     * @inheritdoc IGaspackAppImplementation
     */
    function withdrawAll() external onlyOwner {
        require(address(this).balance > 0, "BALANCE_ZERO");
        uint256 balance = address(this).balance;

        sendValue(payable(WALLET), balance);
    }

    function sendValue(address payable recipient, uint256 amount) internal {
        require(
            address(this).balance >= amount,
            "Address: insufficient balance"
        );

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

    function tokenURI(
        uint256 _id
    ) public view override returns (string memory) {
        require(_exists(_id), "Token does not exist");

        return string(abi.encodePacked(baseURI, _toString(_id)));
    }
}

File 2 of 15 : IGaspackAppImplementation.sol
/**
SPDX-License-Identifier: MIT
*/

pragma solidity ^0.8.13;

interface IGaspackAppImplementation {
    enum Stage {
        Pause,
        Private,
        Public,
        Mint,
        Ended
    }

    struct PublicSale {
        uint256 price;
        uint256 quantity;
        uint256 txLimit;
        uint256 walletLimit;
    }

    struct PrivateSale {
        uint256 price;
        uint256 quantity;
        uint256 txLimit;
        uint256 walletLimit;
        uint256 deadline;
    }

    /**
     * @dev Mints the token with desired amounts and addresses
     *
     * Calling condition:
     * - The caller must be owner of the contract or the one
     *   who has the right role.
     *
     * @param _to An array of addresses.
     * @param _amount An array of amounts. Array length must be same as _to param.
     */
    function mintTo(
        address[] calldata _to,
        uint256[] calldata _amount
    ) external;

    /**
     * @dev Mints the token through private sale phase by verifying the given signature.
     *
     * @param _privateSale The {PrivateSale} struct configuration.
     * @param _nonce User nonce.
     * @param _kind The index of private sale.
     * @param _signature The signature that has been generated.
     */
    function privateSaleMint(
        PrivateSale memory _privateSale,
        uint256 _nonce,
        uint256 _kind,
        bytes calldata _signature
    ) external payable;

    /**
     * @dev Mints the token through public sale phase.
     *
     * @param _quantity Amount of token to be minted.
     */
    function publicSaleMint(uint256 _quantity) external payable;

    /**
     * @dev Mints the token through public sale phase.
     *
     * @param _kind The private sale index.
     * @param _privateSale The struct of PrivateSale that are going to be used.
     */
    function setPrivateSale(
        uint256 _kind,
        PrivateSale memory _privateSale
    ) external;

    /**
     * @dev Updates the contract stage
     *
     * Calling condition:
     * - The caller must be the owner of the contract.
     *
     * @param _stage The new stage.
     */
    function setStage(Stage _stage) external;

    /**
     * @dev Updates the configured signer.
     *
     * Calling condition:
     * - The caller must be the owner of the contract.
     *
     * @param _signer The new signer.
     */
    function setSigner(address _signer) external;

    /**
     * @dev Updates the configured base URI.
     *
     * Calling condition:
     * - The caller must be the owner of the contract.
     *
     * @param _baseURI The new base URI.
     */
    function setBaseURI(string calldata _baseURI) external;

    /**
     * @dev Updates the configured minter address.
     *
     * Calling condition:
     * - The caller must be the owner of the contract.
     *
     * @param _authorizedAddress New authorized address
     * @param _value Access value
     */
    function setAuthorizedAddress(
        address _authorizedAddress,
        bool _value
    ) external;

    /**
     * @dev Burns the token with inputted id.
     *
     * Calling condition:
     * - The caller must be the one who has the right role.
     *
     * @param _tokenId ID of the token.
     */
    function burn(uint256 _tokenId) external;

    /**
     * @dev Withdraw all the contract balance.
     *
     * Calling condition:
     * - The caller must be owner of the contract.
     */
    function withdrawAll() external;
}

File 3 of 15 : ERC721A.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.0.0
// Creator: Chiru Labs

pragma solidity ^0.8.4;

import './IERC721A.sol';

/**
 * @dev ERC721 token receiver interface.
 */
interface ERC721A__IERC721Receiver {
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
 * the Metadata extension. Built to optimize for lower gas during batch mints.
 *
 * Assumes serials are sequentially minted starting at _startTokenId() (defaults to 0, e.g. 0, 1, 2, 3..).
 *
 * Assumes that an owner cannot have more than 2**64 - 1 (max value of uint64) of supply.
 *
 * Assumes that the maximum token id cannot exceed 2**256 - 1 (max value of uint256).
 */
contract ERC721A is IERC721A {
    // Mask of an entry in packed address data.
    uint256 private constant BITMASK_ADDRESS_DATA_ENTRY = (1 << 64) - 1;

    // The bit position of `numberMinted` in packed address data.
    uint256 private constant BITPOS_NUMBER_MINTED = 64;

    // The bit position of `numberBurned` in packed address data.
    uint256 private constant BITPOS_NUMBER_BURNED = 128;

    // The bit position of `aux` in packed address data.
    uint256 private constant BITPOS_AUX = 192;

    // Mask of all 256 bits in packed address data except the 64 bits for `aux`.
    uint256 private constant BITMASK_AUX_COMPLEMENT = (1 << 192) - 1;

    // The bit position of `startTimestamp` in packed ownership.
    uint256 private constant BITPOS_START_TIMESTAMP = 160;

    // The bit mask of the `burned` bit in packed ownership.
    uint256 private constant BITMASK_BURNED = 1 << 224;
    
    // The bit position of the `nextInitialized` bit in packed ownership.
    uint256 private constant BITPOS_NEXT_INITIALIZED = 225;

    // The bit mask of the `nextInitialized` bit in packed ownership.
    uint256 private constant BITMASK_NEXT_INITIALIZED = 1 << 225;

    // The tokenId of the next token to be minted.
    uint256 private _currentIndex;

    // The number of tokens burned.
    uint256 private _burnCounter;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Mapping from token ID to ownership details
    // An empty struct value does not necessarily mean the token is unowned.
    // See `_packedOwnershipOf` implementation for details.
    //
    // Bits Layout:
    // - [0..159]   `addr`
    // - [160..223] `startTimestamp`
    // - [224]      `burned`
    // - [225]      `nextInitialized`
    mapping(uint256 => uint256) private _packedOwnerships;

    // Mapping owner address to address data.
    //
    // Bits Layout:
    // - [0..63]    `balance`
    // - [64..127]  `numberMinted`
    // - [128..191] `numberBurned`
    // - [192..255] `aux`
    mapping(address => uint256) private _packedAddressData;

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

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

    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
        _currentIndex = _startTokenId();
    }

    /**
     * @dev Returns the starting token ID. 
     * To change the starting token ID, please override this function.
     */
    function _startTokenId() internal view virtual returns (uint256) {
        return 0;
    }

    /**
     * @dev Returns the next token ID to be minted.
     */
    function _nextTokenId() internal view returns (uint256) {
        return _currentIndex;
    }

    /**
     * @dev Returns the total number of tokens in existence.
     * Burned tokens will reduce the count. 
     * To get the total number of tokens minted, please see `_totalMinted`.
     */
    function totalSupply() public view override returns (uint256) {
        // Counter underflow is impossible as _burnCounter cannot be incremented
        // more than `_currentIndex - _startTokenId()` times.
        unchecked {
            return _currentIndex - _burnCounter - _startTokenId();
        }
    }

    /**
     * @dev Returns the total amount of tokens minted in the contract.
     */
    function _totalMinted() internal view returns (uint256) {
        // Counter underflow is impossible as _currentIndex does not decrement,
        // and it is initialized to `_startTokenId()`
        unchecked {
            return _currentIndex - _startTokenId();
        }
    }

    /**
     * @dev Returns the total number of tokens burned.
     */
    function _totalBurned() internal view returns (uint256) {
        return _burnCounter;
    }

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        // The interface IDs are constants representing the first 4 bytes of the XOR of
        // all function selectors in the interface. See: https://eips.ethereum.org/EIPS/eip-165
        // e.g. `bytes4(i.functionA.selector ^ i.functionB.selector ^ ...)`
        return
            interfaceId == 0x01ffc9a7 || // ERC165 interface ID for ERC165.
            interfaceId == 0x80ac58cd || // ERC165 interface ID for ERC721.
            interfaceId == 0x5b5e139f; // ERC165 interface ID for ERC721Metadata.
    }

    /**
     * @dev See {IERC721-balanceOf}.
     */
    function balanceOf(address owner) public view override returns (uint256) {
        if (owner == address(0)) revert BalanceQueryForZeroAddress();
        return _packedAddressData[owner] & BITMASK_ADDRESS_DATA_ENTRY;
    }

    /**
     * Returns the number of tokens minted by `owner`.
     */
    function _numberMinted(address owner) internal view returns (uint256) {
        return (_packedAddressData[owner] >> BITPOS_NUMBER_MINTED) & BITMASK_ADDRESS_DATA_ENTRY;
    }

    /**
     * Returns the number of tokens burned by or on behalf of `owner`.
     */
    function _numberBurned(address owner) internal view returns (uint256) {
        return (_packedAddressData[owner] >> BITPOS_NUMBER_BURNED) & BITMASK_ADDRESS_DATA_ENTRY;
    }

    /**
     * Returns the auxillary data for `owner`. (e.g. number of whitelist mint slots used).
     */
    function _getAux(address owner) internal view returns (uint64) {
        return uint64(_packedAddressData[owner] >> BITPOS_AUX);
    }

    /**
     * Sets the auxillary data for `owner`. (e.g. number of whitelist mint slots used).
     * If there are multiple variables, please pack them into a uint64.
     */
    function _setAux(address owner, uint64 aux) internal {
        uint256 packed = _packedAddressData[owner];
        uint256 auxCasted;
        assembly { // Cast aux without masking.
            auxCasted := aux
        }
        packed = (packed & BITMASK_AUX_COMPLEMENT) | (auxCasted << BITPOS_AUX);
        _packedAddressData[owner] = packed;
    }

    /**
     * Returns the packed ownership data of `tokenId`.
     */
    function _packedOwnershipOf(uint256 tokenId) private view returns (uint256) {
        uint256 curr = tokenId;

        unchecked {
            if (_startTokenId() <= curr)
                if (curr < _currentIndex) {
                    uint256 packed = _packedOwnerships[curr];
                    // If not burned.
                    if (packed & BITMASK_BURNED == 0) {
                        // Invariant:
                        // There will always be an ownership that has an address and is not burned
                        // before an ownership that does not have an address and is not burned.
                        // Hence, curr will not underflow.
                        //
                        // We can directly compare the packed value.
                        // If the address is zero, packed is zero.
                        while (packed == 0) {
                            packed = _packedOwnerships[--curr];
                        }
                        return packed;
                    }
                }
        }
        revert OwnerQueryForNonexistentToken();
    }

    /**
     * Returns the unpacked `TokenOwnership` struct from `packed`.
     */
    function _unpackedOwnership(uint256 packed) private pure returns (TokenOwnership memory ownership) {
        ownership.addr = address(uint160(packed));
        ownership.startTimestamp = uint64(packed >> BITPOS_START_TIMESTAMP);
        ownership.burned = packed & BITMASK_BURNED != 0;
    }

    /**
     * Returns the unpacked `TokenOwnership` struct at `index`.
     */
    function _ownershipAt(uint256 index) internal view returns (TokenOwnership memory) {
        return _unpackedOwnership(_packedOwnerships[index]);
    }

    /**
     * @dev Initializes the ownership slot minted at `index` for efficiency purposes.
     */
    function _initializeOwnershipAt(uint256 index) internal {
        if (_packedOwnerships[index] == 0) {
            _packedOwnerships[index] = _packedOwnershipOf(index);
        }
    }

    /**
     * Gas spent here starts off proportional to the maximum mint batch size.
     * It gradually moves to O(1) as tokens get transferred around in the collection over time.
     */
    function _ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) {
        return _unpackedOwnership(_packedOwnershipOf(tokenId));
    }

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view override returns (address) {
        return address(uint160(_packedOwnershipOf(tokenId)));
    }

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

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

    /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        if (!_exists(tokenId)) revert URIQueryForNonexistentToken();

        string memory baseURI = _baseURI();
        return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, _toString(tokenId))) : '';
    }

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

    /**
     * @dev Casts the address to uint256 without masking.
     */
    function _addressToUint256(address value) private pure returns (uint256 result) {
        assembly {
            result := value
        }
    }

    /**
     * @dev Casts the boolean to uint256 without branching.
     */
    function _boolToUint256(bool value) private pure returns (uint256 result) {
        assembly {
            result := value
        }
    }

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

        if (_msgSenderERC721A() != owner)
            if (!isApprovedForAll(owner, _msgSenderERC721A())) {
                revert ApprovalCallerNotOwnerNorApproved();
            }

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

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

        return _tokenApprovals[tokenId];
    }

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

        _operatorApprovals[_msgSenderERC721A()][operator] = approved;
        emit ApprovalForAll(_msgSenderERC721A(), 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 {
        _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 {
        _transfer(from, to, tokenId);
        if (to.code.length != 0)
            if (!_checkContractOnERC721Received(from, to, tokenId, _data)) {
                revert TransferToNonERC721ReceiverImplementer();
            }
    }

    /**
     * @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`),
     */
    function _exists(uint256 tokenId) internal view returns (bool) {
        return
            _startTokenId() <= tokenId &&
            tokenId < _currentIndex && // If within bounds,
            _packedOwnerships[tokenId] & BITMASK_BURNED == 0; // and not burned.
    }

    /**
     * @dev Equivalent to `_safeMint(to, quantity, '')`.
     */
    function _safeMint(address to, uint256 quantity) internal {
        _safeMint(to, quantity, '');
    }

    /**
     * @dev Safely mints `quantity` tokens and transfers them to `to`.
     *
     * Requirements:
     *
     * - If `to` refers to a smart contract, it must implement
     *   {IERC721Receiver-onERC721Received}, which is called for each safe transfer.
     * - `quantity` must be greater than 0.
     *
     * Emits a {Transfer} event.
     */
    function _safeMint(
        address to,
        uint256 quantity,
        bytes memory _data
    ) internal {
        uint256 startTokenId = _currentIndex;
        if (to == address(0)) revert MintToZeroAddress();
        if (quantity == 0) revert MintZeroQuantity();

        _beforeTokenTransfers(address(0), to, startTokenId, quantity);

        // Overflows are incredibly unrealistic.
        // balance or numberMinted overflow if current value of either + quantity > 1.8e19 (2**64) - 1
        // updatedIndex overflows if _currentIndex + quantity > 1.2e77 (2**256) - 1
        unchecked {
            // Updates:
            // - `balance += quantity`.
            // - `numberMinted += quantity`.
            //
            // We can directly add to the balance and number minted.
            _packedAddressData[to] += quantity * ((1 << BITPOS_NUMBER_MINTED) | 1);

            // Updates:
            // - `address` to the owner.
            // - `startTimestamp` to the timestamp of minting.
            // - `burned` to `false`.
            // - `nextInitialized` to `quantity == 1`.
            _packedOwnerships[startTokenId] =
                _addressToUint256(to) |
                (block.timestamp << BITPOS_START_TIMESTAMP) |
                (_boolToUint256(quantity == 1) << BITPOS_NEXT_INITIALIZED);

            uint256 updatedIndex = startTokenId;
            uint256 end = updatedIndex + quantity;

            if (to.code.length != 0) {
                do {
                    emit Transfer(address(0), to, updatedIndex);
                    if (!_checkContractOnERC721Received(address(0), to, updatedIndex++, _data)) {
                        revert TransferToNonERC721ReceiverImplementer();
                    }
                } while (updatedIndex < end);
                // Reentrancy protection
                if (_currentIndex != startTokenId) revert();
            } else {
                do {
                    emit Transfer(address(0), to, updatedIndex++);
                } while (updatedIndex < end);
            }
            _currentIndex = updatedIndex;
        }
        _afterTokenTransfers(address(0), to, startTokenId, quantity);
    }

    /**
     * @dev Mints `quantity` tokens and transfers them to `to`.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `quantity` must be greater than 0.
     *
     * Emits a {Transfer} event.
     */
    function _mint(address to, uint256 quantity) internal {
        uint256 startTokenId = _currentIndex;
        if (to == address(0)) revert MintToZeroAddress();
        if (quantity == 0) revert MintZeroQuantity();

        _beforeTokenTransfers(address(0), to, startTokenId, quantity);

        // Overflows are incredibly unrealistic.
        // balance or numberMinted overflow if current value of either + quantity > 1.8e19 (2**64) - 1
        // updatedIndex overflows if _currentIndex + quantity > 1.2e77 (2**256) - 1
        unchecked {
            // Updates:
            // - `balance += quantity`.
            // - `numberMinted += quantity`.
            //
            // We can directly add to the balance and number minted.
            _packedAddressData[to] += quantity * ((1 << BITPOS_NUMBER_MINTED) | 1);

            // Updates:
            // - `address` to the owner.
            // - `startTimestamp` to the timestamp of minting.
            // - `burned` to `false`.
            // - `nextInitialized` to `quantity == 1`.
            _packedOwnerships[startTokenId] =
                _addressToUint256(to) |
                (block.timestamp << BITPOS_START_TIMESTAMP) |
                (_boolToUint256(quantity == 1) << BITPOS_NEXT_INITIALIZED);

            uint256 updatedIndex = startTokenId;
            uint256 end = updatedIndex + quantity;

            do {
                emit Transfer(address(0), to, updatedIndex++);
            } while (updatedIndex < end);

            _currentIndex = updatedIndex;
        }
        _afterTokenTransfers(address(0), to, startTokenId, quantity);
    }

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *
     * 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
    ) private {
        uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId);

        if (address(uint160(prevOwnershipPacked)) != from) revert TransferFromIncorrectOwner();

        bool isApprovedOrOwner = (_msgSenderERC721A() == from ||
            isApprovedForAll(from, _msgSenderERC721A()) ||
            getApproved(tokenId) == _msgSenderERC721A());

        if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved();
        if (to == address(0)) revert TransferToZeroAddress();

        _beforeTokenTransfers(from, to, tokenId, 1);

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

        // Underflow of the sender's balance is impossible because we check for
        // ownership above and the recipient's balance can't realistically overflow.
        // Counter overflow is incredibly unrealistic as tokenId would have to be 2**256.
        unchecked {
            // We can directly increment and decrement the balances.
            --_packedAddressData[from]; // Updates: `balance -= 1`.
            ++_packedAddressData[to]; // Updates: `balance += 1`.

            // Updates:
            // - `address` to the next owner.
            // - `startTimestamp` to the timestamp of transfering.
            // - `burned` to `false`.
            // - `nextInitialized` to `true`.
            _packedOwnerships[tokenId] =
                _addressToUint256(to) |
                (block.timestamp << BITPOS_START_TIMESTAMP) |
                BITMASK_NEXT_INITIALIZED;

            // If the next slot may not have been initialized (i.e. `nextInitialized == false`) .
            if (prevOwnershipPacked & BITMASK_NEXT_INITIALIZED == 0) {
                uint256 nextTokenId = tokenId + 1;
                // If the next slot's address is zero and not burned (i.e. packed value is zero).
                if (_packedOwnerships[nextTokenId] == 0) {
                    // If the next slot is within bounds.
                    if (nextTokenId != _currentIndex) {
                        // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`.
                        _packedOwnerships[nextTokenId] = prevOwnershipPacked;
                    }
                }
            }
        }

        emit Transfer(from, to, tokenId);
        _afterTokenTransfers(from, to, tokenId, 1);
    }

    /**
     * @dev Equivalent to `_burn(tokenId, false)`.
     */
    function _burn(uint256 tokenId) internal virtual {
        _burn(tokenId, false);
    }

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

        address from = address(uint160(prevOwnershipPacked));

        if (approvalCheck) {
            bool isApprovedOrOwner = (_msgSenderERC721A() == from ||
                isApprovedForAll(from, _msgSenderERC721A()) ||
                getApproved(tokenId) == _msgSenderERC721A());

            if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved();
        }

        _beforeTokenTransfers(from, address(0), tokenId, 1);

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

        // Underflow of the sender's balance is impossible because we check for
        // ownership above and the recipient's balance can't realistically overflow.
        // Counter overflow is incredibly unrealistic as tokenId would have to be 2**256.
        unchecked {
            // Updates:
            // - `balance -= 1`.
            // - `numberBurned += 1`.
            //
            // We can directly decrement the balance, and increment the number burned.
            // This is equivalent to `packed -= 1; packed += 1 << BITPOS_NUMBER_BURNED;`.
            _packedAddressData[from] += (1 << BITPOS_NUMBER_BURNED) - 1;

            // Updates:
            // - `address` to the last owner.
            // - `startTimestamp` to the timestamp of burning.
            // - `burned` to `true`.
            // - `nextInitialized` to `true`.
            _packedOwnerships[tokenId] =
                _addressToUint256(from) |
                (block.timestamp << BITPOS_START_TIMESTAMP) |
                BITMASK_BURNED | 
                BITMASK_NEXT_INITIALIZED;

            // If the next slot may not have been initialized (i.e. `nextInitialized == false`) .
            if (prevOwnershipPacked & BITMASK_NEXT_INITIALIZED == 0) {
                uint256 nextTokenId = tokenId + 1;
                // If the next slot's address is zero and not burned (i.e. packed value is zero).
                if (_packedOwnerships[nextTokenId] == 0) {
                    // If the next slot is within bounds.
                    if (nextTokenId != _currentIndex) {
                        // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`.
                        _packedOwnerships[nextTokenId] = prevOwnershipPacked;
                    }
                }
            }
        }

        emit Transfer(from, address(0), tokenId);
        _afterTokenTransfers(from, address(0), tokenId, 1);

        // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times.
        unchecked {
            _burnCounter++;
        }
    }

    /**
     * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target 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 _checkContractOnERC721Received(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) private returns (bool) {
        try ERC721A__IERC721Receiver(to).onERC721Received(_msgSenderERC721A(), from, tokenId, _data) returns (
            bytes4 retval
        ) {
            return retval == ERC721A__IERC721Receiver(to).onERC721Received.selector;
        } catch (bytes memory reason) {
            if (reason.length == 0) {
                revert TransferToNonERC721ReceiverImplementer();
            } else {
                assembly {
                    revert(add(32, reason), mload(reason))
                }
            }
        }
    }

    /**
     * @dev Hook that is called before a set of serially-ordered token ids are about to be transferred. This includes minting.
     * And also called before burning one token.
     *
     * startTokenId - the first token id to be transferred
     * quantity - the amount to be transferred
     *
     * 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, `tokenId` will be burned by `from`.
     * - `from` and `to` are never both zero.
     */
    function _beforeTokenTransfers(
        address from,
        address to,
        uint256 startTokenId,
        uint256 quantity
    ) internal virtual {}

    /**
     * @dev Hook that is called after a set of serially-ordered token ids have been transferred. This includes
     * minting.
     * And also called after one token has been burned.
     *
     * startTokenId - the first token id to be transferred
     * quantity - the amount to be transferred
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been
     * transferred to `to`.
     * - When `from` is zero, `tokenId` has been minted for `to`.
     * - When `to` is zero, `tokenId` has been burned by `from`.
     * - `from` and `to` are never both zero.
     */
    function _afterTokenTransfers(
        address from,
        address to,
        uint256 startTokenId,
        uint256 quantity
    ) internal virtual {}

    /**
     * @dev Returns the message sender (defaults to `msg.sender`).
     *
     * If you are writing GSN compatible contracts, you need to override this function.
     */
    function _msgSenderERC721A() internal view virtual returns (address) {
        return msg.sender;
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function _toString(uint256 value) internal pure returns (string memory ptr) {
        assembly {
            // The maximum value of a uint256 contains 78 digits (1 byte per digit), 
            // but we allocate 128 bytes to keep the free memory pointer 32-byte word aliged.
            // We will need 1 32-byte word to store the length, 
            // and 3 32-byte words to store a maximum of 78 digits. Total: 32 + 3 * 32 = 128.
            ptr := add(mload(0x40), 128)
            // Update the free memory pointer to allocate.
            mstore(0x40, ptr)

            // Cache the end of the memory to calculate the length later.
            let end := ptr

            // We write the string from the rightmost digit to the leftmost digit.
            // The following is essentially a do-while loop that also handles the zero case.
            // Costs a bit more than early returning for the zero case,
            // but cheaper in terms of deployment and overall runtime costs.
            for { 
                // Initialize and perform the first pass without check.
                let temp := value
                // Move the pointer 1 byte leftwards to point to an empty character slot.
                ptr := sub(ptr, 1)
                // Write the character to the pointer. 48 is the ASCII index of '0'.
                mstore8(ptr, add(48, mod(temp, 10)))
                temp := div(temp, 10)
            } temp { 
                // Keep dividing `temp` until zero.
                temp := div(temp, 10)
            } { // Body of the for loop.
                ptr := sub(ptr, 1)
                mstore8(ptr, add(48, mod(temp, 10)))
            }
            
            let length := sub(end, ptr)
            // Move the pointer 32 bytes leftwards to make room for the length.
            ptr := sub(ptr, 32)
            // Store the length.
            mstore(ptr, length)
        }
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

        return (royalty.receiver, royaltyAmount);
    }

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

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

        _defaultRoyaltyInfo = RoyaltyInfo(receiver, feeNumerator);
    }

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

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

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

        _;

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

File 6 of 15 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

import "./ECDSA.sol";

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

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

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

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

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

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

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

File 8 of 15 : IERC721A.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.0.0
// Creator: Chiru Labs

pragma solidity ^0.8.4;

/**
 * @dev Interface of an ERC721A compliant contract.
 */
interface IERC721A {
    /**
     * The caller must own the token or be an approved operator.
     */
    error ApprovalCallerNotOwnerNorApproved();

    /**
     * The token does not exist.
     */
    error ApprovalQueryForNonexistentToken();

    /**
     * The caller cannot approve to their own address.
     */
    error ApproveToCaller();

    /**
     * The caller cannot approve to the current owner.
     */
    error ApprovalToCurrentOwner();

    /**
     * Cannot query the balance for the zero address.
     */
    error BalanceQueryForZeroAddress();

    /**
     * Cannot mint to the zero address.
     */
    error MintToZeroAddress();

    /**
     * The quantity of tokens minted must be more than zero.
     */
    error MintZeroQuantity();

    /**
     * The token does not exist.
     */
    error OwnerQueryForNonexistentToken();

    /**
     * The caller must own the token or be an approved operator.
     */
    error TransferCallerNotOwnerNorApproved();

    /**
     * The token must be owned by `from`.
     */
    error TransferFromIncorrectOwner();

    /**
     * Cannot safely transfer to a contract that does not implement the ERC721Receiver interface.
     */
    error TransferToNonERC721ReceiverImplementer();

    /**
     * Cannot transfer to the zero address.
     */
    error TransferToZeroAddress();

    /**
     * The token does not exist.
     */
    error URIQueryForNonexistentToken();

    struct TokenOwnership {
        // The address of the owner.
        address addr;
        // Keeps track of the start time of ownership with minimal overhead for tokenomics.
        uint64 startTimestamp;
        // Whether the token has been burned.
        bool burned;
    }

    /**
     * @dev Returns the total amount of tokens stored by the contract.
     *
     * Burned tokens are calculated here, use `_totalMinted()` if you want to count just minted tokens.
     */
    function totalSupply() external view returns (uint256);

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

    // ==============================
    //            IERC721
    // ==============================

    /**
     * @dev Emitted when `tokenId` token is transferred from `from` to `to`.
     */
    event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);

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

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

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

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

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

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

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

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

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

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

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

    // ==============================
    //        IERC721Metadata
    // ==============================

    /**
     * @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 9 of 15 : IERC2981.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (interfaces/IERC2981.sol)

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

File 10 of 15 : 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 11 of 15 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (interfaces/IERC165.sol)

pragma solidity ^0.8.0;

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

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

pragma solidity ^0.8.0;

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

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

pragma solidity ^0.8.0;

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

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

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

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 1000
  },
  "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":"string","name":"_previewURI","type":"string"},{"internalType":"uint256","name":"_maxSupply","type":"uint256"},{"internalType":"address","name":"_signer","type":"address"},{"internalType":"address","name":"_authorizedAddress","type":"address"},{"internalType":"address","name":"_royaltyAddress","type":"address"},{"components":[{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"uint256","name":"quantity","type":"uint256"},{"internalType":"uint256","name":"txLimit","type":"uint256"},{"internalType":"uint256","name":"walletLimit","type":"uint256"}],"internalType":"struct IGaspackAppImplementation.PublicSale","name":"_publicSaleProperty","type":"tuple"},{"components":[{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"uint256","name":"quantity","type":"uint256"},{"internalType":"uint256","name":"txLimit","type":"uint256"},{"internalType":"uint256","name":"walletLimit","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"}],"internalType":"struct IGaspackAppImplementation.PrivateSale","name":"_privateSaleProperty","type":"tuple"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApprovalToCurrentOwner","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","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":"address","name":"owner","type":"address"},{"components":[{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"uint256","name":"quantity","type":"uint256"},{"internalType":"uint256","name":"txLimit","type":"uint256"},{"internalType":"uint256","name":"walletLimit","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"}],"indexed":false,"internalType":"struct IGaspackAppImplementation.PrivateSale","name":"privateSale","type":"tuple"},{"indexed":false,"internalType":"uint256","name":"nonce","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"kind","type":"uint256"}],"name":"PrivateSaleMint","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":"PRIVATE_SALE_TYPEHASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"PrivateSaleMinter","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"PublicSaleMinter","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":"","type":"address"}],"name":"authorizedAddresses","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_to","type":"address[]"},{"internalType":"uint256[]","name":"_amount","type":"uint256[]"}],"name":"mintTo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"uint256","name":"quantity","type":"uint256"},{"internalType":"uint256","name":"txLimit","type":"uint256"},{"internalType":"uint256","name":"walletLimit","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"}],"internalType":"struct IGaspackAppImplementation.PrivateSale","name":"_privateSale","type":"tuple"},{"internalType":"uint256","name":"_nonce","type":"uint256"},{"internalType":"uint256","name":"_kind","type":"uint256"},{"internalType":"bytes","name":"_signature","type":"bytes"}],"name":"privateSaleMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"privateSales","outputs":[{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"uint256","name":"quantity","type":"uint256"},{"internalType":"uint256","name":"txLimit","type":"uint256"},{"internalType":"uint256","name":"walletLimit","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicSale","outputs":[{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"uint256","name":"quantity","type":"uint256"},{"internalType":"uint256","name":"txLimit","type":"uint256"},{"internalType":"uint256","name":"walletLimit","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_quantity","type":"uint256"}],"name":"publicSaleMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_authorizedAddress","type":"address"},{"internalType":"bool","name":"value","type":"bool"}],"name":"setAuthorizedAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxSupply","type":"uint256"}],"name":"setMaxSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_kind","type":"uint256"},{"components":[{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"uint256","name":"quantity","type":"uint256"},{"internalType":"uint256","name":"txLimit","type":"uint256"},{"internalType":"uint256","name":"walletLimit","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"}],"internalType":"struct IGaspackAppImplementation.PrivateSale","name":"_privateSale","type":"tuple"}],"name":"setPrivateSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_recipient","type":"address"},{"internalType":"uint96","name":"_amount","type":"uint96"}],"name":"setRoyalties","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_signer","type":"address"}],"name":"setSigner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"enum IGaspackAppImplementation.Stage","name":"_stage","type":"uint8"}],"name":"setStage","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"signer","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"stage","outputs":[{"internalType":"enum IGaspackAppImplementation.Stage","name":"","type":"uint8"}],"stateMutability":"view","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":"_id","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":[{"components":[{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"uint256","name":"quantity","type":"uint256"},{"internalType":"uint256","name":"txLimit","type":"uint256"},{"internalType":"uint256","name":"walletLimit","type":"uint256"}],"internalType":"struct IGaspackAppImplementation.PublicSale","name":"_publicSale","type":"tuple"}],"name":"updatePublicSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"userNonce","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdrawAll","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6101406040523480156200001257600080fd5b5060405162003d4738038062003d47833981016040819052620000359162000689565b6040518060400160405280600a81526020016904761737061636b4170760b41b815250604051806040016040528060058152602001640312e302e360dc1b8152508a8a8160029080519060200190620000909291906200040c565b508051620000a69060039060208401906200040c565b5050600160005550815160208084019190912082518383012060e08290526101008190524660a0818152604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f81880181905281830187905260608201869052608082019490945230818401528151808203909301835260c00190528051940193909320919290916080523060c0526101205250506001600a555062000150905033620002b5565b600e805460ff1916905586516200016f90600d9060208a01906200040c565b50600c869055600e80546001600160a01b0380881661010002610100600160a81b03199092169190911790915584166000908152601760209081526040808320805460ff191660011790558451600f5584820151601055848101516011556060808601516012559280526016825283517f0263c2b778d062355049effc2dece97bc6547ff8a88a3258daa512061c2153dd55908301517f0263c2b778d062355049effc2dece97bc6547ff8a88a3258daa512061c2153de558201517f0263c2b778d062355049effc2dece97bc6547ff8a88a3258daa512061c2153df558101517f0263c2b778d062355049effc2dece97bc6547ff8a88a3258daa512061c2153e05560808101517f0263c2b778d062355049effc2dece97bc6547ff8a88a3258daa512061c2153e155620002a6836103e862000307565b505050505050505050620007c0565b600b80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6127106001600160601b03821611156200037b5760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b60648201526084015b60405180910390fd5b6001600160a01b038216620003d35760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c696420726563656976657200000000000000604482015260640162000372565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600855565b8280546200041a9062000784565b90600052602060002090601f0160209004810192826200043e576000855562000489565b82601f106200045957805160ff191683800117855562000489565b8280016001018555821562000489579182015b82811115620004895782518255916020019190600101906200046c565b50620004979291506200049b565b5090565b5b808211156200049757600081556001016200049c565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b0381118282101715620004f357620004f3620004b2565b604052919050565b600082601f8301126200050d57600080fd5b81516001600160401b03811115620005295762000529620004b2565b60206200053f601f8301601f19168201620004c8565b82815285828487010111156200055457600080fd5b60005b838110156200057457858101830151828201840152820162000557565b83811115620005865760008385840101525b5095945050505050565b80516001600160a01b0381168114620005a857600080fd5b919050565b600060808284031215620005c057600080fd5b604051608081016001600160401b0381118282101715620005e557620005e5620004b2565b8060405250809150825181526020830151602082015260408301516040820152606083015160608201525092915050565b600060a082840312156200062957600080fd5b60405160a081016001600160401b03811182821017156200064e576200064e620004b2565b806040525080915082518152602083015160208201526040830151604082015260608301516060820152608083015160808201525092915050565b60008060008060008060008060006102008a8c031215620006a957600080fd5b89516001600160401b0380821115620006c157600080fd5b620006cf8d838e01620004fb565b9a5060208c0151915080821115620006e657600080fd5b620006f48d838e01620004fb565b995060408c01519150808211156200070b57600080fd5b506200071a8c828d01620004fb565b97505060608a015195506200073260808b0162000590565b94506200074260a08b0162000590565b93506200075260c08b0162000590565b9250620007638b60e08c01620005ad565b9150620007758b6101608c0162000616565b90509295985092959850929598565b600181811c908216806200079957607f821691505b602082108103620007ba57634e487b7160e01b600052602260045260246000fd5b50919050565b60805160a05160c05160e05161010051610120516135376200081060003960006128370152600061288601526000612861015260006127ba015260006127e40152600061280e01526135376000f3fe6080604052600436106102d15760003560e01c8063853828b611610179578063b88d4fde116100d6578063d5abeb011161008a578063f19e207e11610064578063f19e207e1461088c578063f2fde38b146108bc578063f891d579146108dc57600080fd5b8063d5abeb011461081a578063e5376b9a14610830578063e985e9c51461084357600080fd5b8063c21b471b116100bb578063c21b471b146107ba578063c87b56dd146107da578063ce3cd997146107fa57600080fd5b8063b88d4fde14610773578063c040e6b81461079357600080fd5b8063a09f23721161012d578063a971b04411610112578063a971b04414610713578063afb8b96b14610740578063b3ab66b01461076057600080fd5b8063a09f237214610681578063a22cb465146106f357600080fd5b80638da5cb5b1161015e5780638da5cb5b1461062e57806395d89b411461064c5780639fd08aa91461066157600080fd5b8063853828b6146105ec5780638671602e1461060157600080fd5b806333bc1c5c1161023257806369add11d116101e65780636f8b44b0116101c05780636f8b44b01461059757806370a08231146105b7578063715018a6146105d757600080fd5b806369add11d146105425780636c0360eb146105625780636c19e7831461057757600080fd5b806342966c681161021757806342966c68146104e257806355f804b3146105025780636352211e1461052257600080fd5b806333bc1c5c1461047f57806342842e0e146104c257600080fd5b806318160ddd1161028957806323b872dd1161026e57806323b872dd146103f35780632a55205a146104135780632e04b8e71461045257600080fd5b806318160ddd146103a7578063238ac933146103ce57600080fd5b8063081812fc116102ba578063081812fc1461032d578063095ea7b3146103655780631351cf511461038757600080fd5b806301ffc9a7146102d657806306fdde031461030b575b600080fd5b3480156102e257600080fd5b506102f66102f1366004612ce3565b610910565b60405190151581526020015b60405180910390f35b34801561031757600080fd5b50610320610930565b6040516103029190612d58565b34801561033957600080fd5b5061034d610348366004612d6b565b6109c2565b6040516001600160a01b039091168152602001610302565b34801561037157600080fd5b50610385610380366004612da0565b610a1f565b005b34801561039357600080fd5b506103856103a2366004612dca565b610b30565b3480156103b357600080fd5b5060015460005403600019015b604051908152602001610302565b3480156103da57600080fd5b50600e5461034d9061010090046001600160a01b031681565b3480156103ff57600080fd5b5061038561040e366004612e06565b610ba8565b34801561041f57600080fd5b5061043361042e366004612e42565b610bb8565b604080516001600160a01b039093168352602083019190915201610302565b34801561045e57600080fd5b506103c061046d366004612e64565b60156020526000908152604090205481565b34801561048b57600080fd5b50600f546010546011546012546104a29392919084565b604080519485526020850193909352918301526060820152608001610302565b3480156104ce57600080fd5b506103856104dd366004612e06565b610c75565b3480156104ee57600080fd5b506103856104fd366004612d6b565b610c90565b34801561050e57600080fd5b5061038561051d366004612ec1565b610d1e565b34801561052e57600080fd5b5061034d61053d366004612d6b565b610d72565b34801561054e57600080fd5b5061038561055d366004612f48565b610d7d565b34801561056e57600080fd5b50610320610ef2565b34801561058357600080fd5b50610385610592366004612e64565b610f80565b3480156105a357600080fd5b506103856105b2366004612d6b565b611007565b3480156105c357600080fd5b506103c06105d2366004612e64565b611054565b3480156105e357600080fd5b506103856110bc565b3480156105f857600080fd5b50610385611110565b34801561060d57600080fd5b506103c061061c366004612e64565b60136020526000908152604090205481565b34801561063a57600080fd5b50600b546001600160a01b031661034d565b34801561065857600080fd5b506103206111c7565b34801561066d57600080fd5b5061038561067c366004612ffb565b6111d6565b34801561068d57600080fd5b506106cb61069c366004612d6b565b601660205260009081526040902080546001820154600283015460038401546004909401549293919290919085565b604080519586526020860194909452928401919091526060830152608082015260a001610302565b3480156106ff57600080fd5b5061038561070e366004612dca565b61123c565b34801561071f57600080fd5b506103c061072e366004612e64565b60146020526000908152604090205481565b34801561074c57600080fd5b5061038561075b3660046130d1565b6112ea565b61038561076e366004612d6b565b611370565b34801561077f57600080fd5b5061038561078e3660046130fe565b611599565b34801561079f57600080fd5b50600e546107ad9060ff1681565b60405161030291906131d4565b3480156107c657600080fd5b506103856107d53660046131fc565b6115e3565b3480156107e657600080fd5b506103206107f5366004612d6b565b611639565b34801561080657600080fd5b50610385610815366004613239565b6116c2565b34801561082657600080fd5b506103c0600c5481565b61038561083e36600461325a565b611731565b34801561084f57600080fd5b506102f661085e3660046132c4565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b34801561089857600080fd5b506102f66108a7366004612e64565b60176020526000908152604090205460ff1681565b3480156108c857600080fd5b506103856108d7366004612e64565b611b78565b3480156108e857600080fd5b506103c07f043f6e5f589c41197e26263db04f344258a0ff046f90521418ecf44e482812fb81565b600061091b82611c45565b8061092a575061092a82611cc5565b92915050565b60606002805461093f906132ee565b80601f016020809104026020016040519081016040528092919081815260200182805461096b906132ee565b80156109b85780601f1061098d576101008083540402835291602001916109b8565b820191906000526020600020905b81548152906001019060200180831161099b57829003601f168201915b5050505050905090565b60006109cd82611d13565b610a03576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b6000610a2a82611d48565b9050806001600160a01b0316836001600160a01b031603610a77576040517f943f7b8c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b336001600160a01b03821614610ac757610a91813361085e565b610ac7576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600082815260066020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600b546001600160a01b03163314610b7d5760405162461bcd60e51b815260206004820181905260248201526000805160206134e283398151915260448201526064015b60405180910390fd5b6001600160a01b03919091166000908152601760205260409020805460ff1916911515919091179055565b610bb3838383611dd7565b505050565b60008281526009602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046bffffffffffffffffffffffff16928201929092528291610c375750604080518082019091526008546001600160a01b0381168252600160a01b90046bffffffffffffffffffffffff1660208201525b602081015160009061271090610c5b906bffffffffffffffffffffffff168761333e565b610c65919061335d565b91519350909150505b9250929050565b610bb383838360405180602001604052806000815250611599565b600b546001600160a01b0316331480610cb857503360009081526017602052604090205460ff165b610d125760405162461bcd60e51b815260206004820152602560248201527f43616c6c6572206973206e6f7420746865206f776e6572206f7220746865206d60448201526434b73a32b960d91b6064820152608401610b74565b610d1b81611fbc565b50565b600b546001600160a01b03163314610d665760405162461bcd60e51b815260206004820181905260248201526000805160206134e28339815191526044820152606401610b74565b610bb3600d8383612c34565b600061092a82611d48565b600b546001600160a01b0316331480610da557503360009081526017602052604090205460ff165b610dff5760405162461bcd60e51b815260206004820152602560248201527f43616c6c6572206973206e6f7420746865206f776e6572206f7220746865206d60448201526434b73a32b960d91b6064820152608401610b74565b60005b83811015610eeb57600c54838383818110610e1f57610e1f61337f565b90506020020135610e396001546000546000199190030190565b610e439190613395565b1115610e915760405162461bcd60e51b815260206004820152601360248201527f4d41585f535550504c595f4558434545444544000000000000000000000000006044820152606401610b74565b610ed9858583818110610ea657610ea661337f565b9050602002016020810190610ebb9190612e64565b848484818110610ecd57610ecd61337f565b90506020020135611fc7565b80610ee3816133ad565b915050610e02565b5050505050565b600d8054610eff906132ee565b80601f0160208091040260200160405190810160405280929190818152602001828054610f2b906132ee565b8015610f785780601f10610f4d57610100808354040283529160200191610f78565b820191906000526020600020905b815481529060010190602001808311610f5b57829003601f168201915b505050505081565b600b546001600160a01b03163314610fc85760405162461bcd60e51b815260206004820181905260248201526000805160206134e28339815191526044820152606401610b74565b600e80546001600160a01b03909216610100027fffffffffffffffffffffff0000000000000000000000000000000000000000ff909216919091179055565b600b546001600160a01b0316331461104f5760405162461bcd60e51b815260206004820181905260248201526000805160206134e28339815191526044820152606401610b74565b600c55565b60006001600160a01b038216611096576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b600b546001600160a01b031633146111045760405162461bcd60e51b815260206004820181905260248201526000805160206134e28339815191526044820152606401610b74565b61110e60006120db565b565b600b546001600160a01b031633146111585760405162461bcd60e51b815260206004820181905260248201526000805160206134e28339815191526044820152606401610b74565b600047116111a85760405162461bcd60e51b815260206004820152600c60248201527f42414c414e43455f5a45524f00000000000000000000000000000000000000006044820152606401610b74565b47610d1b7383739a8ec78f74ed2f1e6256fea391db01f1566f8261213a565b60606003805461093f906132ee565b600b546001600160a01b0316331461121e5760405162461bcd60e51b815260206004820181905260248201526000805160206134e28339815191526044820152606401610b74565b8051600f556020810151601055604081015160115560600151601255565b336001600160a01b0383160361127e576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b600b546001600160a01b031633146113325760405162461bcd60e51b815260206004820181905260248201526000805160206134e28339815191526044820152606401610b74565b600091825260166020908152604092839020825181559082015160018201559181015160028301556060810151600383015560800151600490910155565b6002600e5460ff166004811115611389576113896131be565b14806113ab57506003600e5460ff1660048111156113a9576113a96131be565b145b6113e65760405162461bcd60e51b815260206004820152600c60248201526b0a6a8828e8abe9c9a82a886960a31b6044820152606401610b74565b6011548111156114385760405162461bcd60e51b815260206004820152601160248201527f54585f4c494d49545f45584345454445440000000000000000000000000000006044820152606401610b74565b60125433600090815260146020526040902054611456908390613395565b11156114a45760405162461bcd60e51b815260206004820152601560248201527f57414c4c45545f4c494d49545f455843454544454400000000000000000000006044820152606401610b74565b600c5460015460005483919003600019016114bf9190613395565b111561150d5760405162461bcd60e51b815260206004820152600f60248201527f535550504c595f455843454544454400000000000000000000000000000000006044820152606401610b74565b600f5461151b90829061333e565b34101561156a5760405162461bcd60e51b815260206004820152601160248201527f494e53554646494349454e545f46554e440000000000000000000000000000006044820152606401610b74565b3360009081526014602052604081208054839290611589908490613395565b90915550610d1b90503382611fc7565b6115a4848484611dd7565b6001600160a01b0383163b156115dd576115c084848484612253565b6115dd576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b600b546001600160a01b0316331461162b5760405162461bcd60e51b815260206004820181905260248201526000805160206134e28339815191526044820152606401610b74565b611635828261233e565b5050565b606061164482611d13565b6116905760405162461bcd60e51b815260206004820152601460248201527f546f6b656e20646f6573206e6f742065786973740000000000000000000000006044820152606401610b74565b600d61169b83612458565b6040516020016116ac9291906133e2565b6040516020818303038152906040529050919050565b600b546001600160a01b0316331461170a5760405162461bcd60e51b815260206004820181905260248201526000805160206134e28339815191526044820152606401610b74565b600e805482919060ff19166001836004811115611729576117296131be565b021790555050565b6001600e5460ff16600481111561174a5761174a6131be565b148061176c57506003600e5460ff16600481111561176a5761176a6131be565b145b6117a75760405162461bcd60e51b815260206004820152600c60248201526b0a6a8828e8abe9c9a82a886960a31b6044820152606401610b74565b6117b485338585856124a7565b600e5461010090046001600160a01b039081169116146118165760405162461bcd60e51b815260206004820152601160248201527f494e56414c49445f5349474e41545552450000000000000000000000000000006044820152606401610b74565b6000838152601660209081526040808320815160a0810183528154815260018201548185015260028201548184015260038201546060820152600490910154608082015233845260159092529091205485146118b45760405162461bcd60e51b815260206004820152600d60248201527f494e56414c49445f4e4f4e4345000000000000000000000000000000000000006044820152606401610b74565b85608001514211156119085760405162461bcd60e51b815260206004820152601a60248201527f494e56414c49445f444541444c494e455f5349474e41545552450000000000006044820152606401610b74565b8060400151866020015111156119605760405162461bcd60e51b815260206004820152601160248201527f54585f4c494d49545f45584345454445440000000000000000000000000000006044820152606401610b74565b606081015160208088015133600090815260139092526040909120546119869190613395565b11156119d45760405162461bcd60e51b815260206004820152601560248201527f57414c4c45545f4c494d49545f455843454544454400000000000000000000006044820152606401610b74565b600c54602087015160015460005403600019016119f19190613395565b1115611a3f5760405162461bcd60e51b815260206004820152600f60248201527f535550504c595f455843454544454400000000000000000000000000000000006044820152606401610b74565b60208601518151611a50919061333e565b341015611a9f5760405162461bcd60e51b815260206004820152601160248201527f494e53554646494349454e545f46554e440000000000000000000000000000006044820152606401610b74565b336000908152601560205260408120805491611aba836133ad565b9091555050602080870151336000908152601390925260408220805491929091611ae5908490613395565b92505081905550611afa338760200151611fc7565b604080513381528751602080830191909152880151818301529087015160608083019190915287015160808083019190915287015160a082015260c0810186905260e081018590527f08363e897e78bb2d9ed326cf57650998c305abb630d3c1d921c412f732a8829d906101000160405180910390a1505050505050565b600b546001600160a01b03163314611bc05760405162461bcd60e51b815260206004820181905260248201526000805160206134e28339815191526044820152606401610b74565b6001600160a01b038116611c3c5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610b74565b610d1b816120db565b60006301ffc9a760e01b6001600160e01b031983161480611c8f57507f80ac58cd000000000000000000000000000000000000000000000000000000006001600160e01b03198316145b8061092a5750506001600160e01b0319167f5b5e139f000000000000000000000000000000000000000000000000000000001490565b60006001600160e01b031982167f2a55205a00000000000000000000000000000000000000000000000000000000148061092a57506301ffc9a760e01b6001600160e01b031983161461092a565b600081600111158015611d27575060005482105b801561092a575050600090815260046020526040902054600160e01b161590565b60008180600111611da557600054811015611da55760008181526004602052604081205490600160e01b82169003611da3575b80600003611d9c575060001901600081815260046020526040902054611d7b565b9392505050565b505b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000611de282611d48565b9050836001600160a01b0316816001600160a01b031614611e2f576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000336001600160a01b0386161480611e4d5750611e4d853361085e565b80611e68575033611e5d846109c2565b6001600160a01b0316145b905080611e8857604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b038416611ec8576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000838152600660209081526040808320805473ffffffffffffffffffffffffffffffffffffffff191690556001600160a01b038881168452600583528184208054600019019055871683528083208054600101905585835260049091528120600160e11b4260a01b8717811790915583169003611f7657600183016000818152600460205260408120549003611f74576000548114611f745760008181526004602052604090208390555b505b82846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4610eeb565b610d1b8160006125a2565b6000546001600160a01b03831661200a576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81600003612044576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b03831660009081526005602090815260408083208054680100000000000000018702019055838352600490915290204260a01b84176001841460e11b179055808083015b6040516001830192906001600160a01b038716906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a480821061208f5750600055505050565b600b80546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8047101561218a5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610b74565b6000826001600160a01b03168260405160006040518083038185875af1925050503d80600081146121d7576040519150601f19603f3d011682016040523d82523d6000602084013e6121dc565b606091505b5050905080610bb35760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610b74565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290612288903390899088908890600401613488565b6020604051808303816000875af19250505080156122c3575060408051601f3d908101601f191682019092526122c0918101906134c4565b60015b612321573d8080156122f1576040519150601f19603f3d011682016040523d82523d6000602084013e6122f6565b606091505b508051600003612319576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b6127106bffffffffffffffffffffffff821611156123c45760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c2065786365656460448201527f2073616c655072696365000000000000000000000000000000000000000000006064820152608401610b74565b6001600160a01b03821661241a5760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152606401610b74565b604080518082019091526001600160a01b039092168083526bffffffffffffffffffffffff9091166020909201829052600160a01b90910217600855565b604080516080810191829052607f0190826030600a8206018353600a90045b801561249557600183039250600a81066030018353600a9004612477565b50819003601f19909101908152919050565b6000806125557f043f6e5f589c41197e26263db04f344258a0ff046f90521418ecf44e482812fb886000015189602001518a604001518b606001518c608001518b8d60405160200161253a989796959493929190978852602088019690965260408701949094526060860192909252608085015260a084015260c08301526001600160a01b031660e08201526101000190565b60405160208183030381529060405280519060200120612720565b90506125978185858080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061278992505050565b979650505050505050565b60006125ad83611d48565b9050808215612611576000336001600160a01b03831614806125d457506125d4823361085e565b806125ef5750336125e4866109c2565b6001600160a01b0316145b90508061260f57604051632ce44b5f60e11b815260040160405180910390fd5b505b6000848152600660209081526040808320805473ffffffffffffffffffffffffffffffffffffffff191690556001600160a01b03841683526005825280832080546fffffffffffffffffffffffffffffffff019055868352600490915281207c03000000000000000000000000000000000000000000000000000000004260a01b8417179055600160e11b831690036126da576001840160008181526004602052604081205490036126d85760005481146126d85760008181526004602052604090208390555b505b60405184906000906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a4505060018054810190555050565b600061092a61272d6127ad565b836040517f19010000000000000000000000000000000000000000000000000000000000006020820152602281018390526042810182905260009060620160405160208183030381529060405280519060200120905092915050565b600080600061279885856128d4565b915091506127a58161293f565b509392505050565b6000306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614801561280657507f000000000000000000000000000000000000000000000000000000000000000046145b1561283057507f000000000000000000000000000000000000000000000000000000000000000090565b50604080517f00000000000000000000000000000000000000000000000000000000000000006020808301919091527f0000000000000000000000000000000000000000000000000000000000000000828401527f000000000000000000000000000000000000000000000000000000000000000060608301524660808301523060a0808401919091528351808403909101815260c0909201909252805191012090565b600080825160410361290a5760208301516040840151606085015160001a6128fe87828585612af5565b94509450505050610c6e565b82516040036129335760208301516040840151612928868383612be2565b935093505050610c6e565b50600090506002610c6e565b6000816004811115612953576129536131be565b0361295b5750565b600181600481111561296f5761296f6131be565b036129bc5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610b74565b60028160048111156129d0576129d06131be565b03612a1d5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610b74565b6003816004811115612a3157612a316131be565b03612a895760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610b74565b6004816004811115612a9d57612a9d6131be565b03610d1b5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610b74565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115612b2c5750600090506003612bd9565b8460ff16601b14158015612b4457508460ff16601c14155b15612b555750600090506004612bd9565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015612ba9573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116612bd257600060019250925050612bd9565b9150600090505b94509492505050565b6000807f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff831681612c1860ff86901c601b613395565b9050612c2687828885612af5565b935093505050935093915050565b828054612c40906132ee565b90600052602060002090601f016020900481019282612c625760008555612ca8565b82601f10612c7b5782800160ff19823516178555612ca8565b82800160010185558215612ca8579182015b82811115612ca8578235825591602001919060010190612c8d565b50612cb4929150612cb8565b5090565b5b80821115612cb45760008155600101612cb9565b6001600160e01b031981168114610d1b57600080fd5b600060208284031215612cf557600080fd5b8135611d9c81612ccd565b60005b83811015612d1b578181015183820152602001612d03565b838111156115dd5750506000910152565b60008151808452612d44816020860160208601612d00565b601f01601f19169290920160200192915050565b602081526000611d9c6020830184612d2c565b600060208284031215612d7d57600080fd5b5035919050565b80356001600160a01b0381168114612d9b57600080fd5b919050565b60008060408385031215612db357600080fd5b612dbc83612d84565b946020939093013593505050565b60008060408385031215612ddd57600080fd5b612de683612d84565b915060208301358015158114612dfb57600080fd5b809150509250929050565b600080600060608486031215612e1b57600080fd5b612e2484612d84565b9250612e3260208501612d84565b9150604084013590509250925092565b60008060408385031215612e5557600080fd5b50508035926020909101359150565b600060208284031215612e7657600080fd5b611d9c82612d84565b60008083601f840112612e9157600080fd5b50813567ffffffffffffffff811115612ea957600080fd5b602083019150836020828501011115610c6e57600080fd5b60008060208385031215612ed457600080fd5b823567ffffffffffffffff811115612eeb57600080fd5b612ef785828601612e7f565b90969095509350505050565b60008083601f840112612f1557600080fd5b50813567ffffffffffffffff811115612f2d57600080fd5b6020830191508360208260051b8501011115610c6e57600080fd5b60008060008060408587031215612f5e57600080fd5b843567ffffffffffffffff80821115612f7657600080fd5b612f8288838901612f03565b90965094506020870135915080821115612f9b57600080fd5b50612fa887828801612f03565b95989497509550505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715612ff357612ff3612fb4565b604052919050565b60006080828403121561300d57600080fd5b6040516080810181811067ffffffffffffffff8211171561303057613030612fb4565b8060405250823581526020830135602082015260408301356040820152606083013560608201528091505092915050565b600060a0828403121561307357600080fd5b60405160a0810181811067ffffffffffffffff8211171561309657613096612fb4565b806040525080915082358152602083013560208201526040830135604082015260608301356060820152608083013560808201525092915050565b60008060c083850312156130e457600080fd5b823591506130f58460208501613061565b90509250929050565b6000806000806080858703121561311457600080fd5b61311d85612d84565b9350602061312c818701612d84565b935060408601359250606086013567ffffffffffffffff8082111561315057600080fd5b818801915088601f83011261316457600080fd5b81358181111561317657613176612fb4565b613188601f8201601f19168501612fca565b9150808252898482850101111561319e57600080fd5b808484018584013760008482840101525080935050505092959194509250565b634e487b7160e01b600052602160045260246000fd5b60208101600583106131f657634e487b7160e01b600052602160045260246000fd5b91905290565b6000806040838503121561320f57600080fd5b61321883612d84565b915060208301356bffffffffffffffffffffffff81168114612dfb57600080fd5b60006020828403121561324b57600080fd5b813560058110611d9c57600080fd5b6000806000806000610100868803121561327357600080fd5b61327d8787613061565b945060a0860135935060c0860135925060e086013567ffffffffffffffff8111156132a757600080fd5b6132b388828901612e7f565b969995985093965092949392505050565b600080604083850312156132d757600080fd5b6132e083612d84565b91506130f560208401612d84565b600181811c9082168061330257607f821691505b60208210810361332257634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b600081600019048311821515161561335857613358613328565b500290565b60008261337a57634e487b7160e01b600052601260045260246000fd5b500490565b634e487b7160e01b600052603260045260246000fd5b600082198211156133a8576133a8613328565b500190565b6000600182016133bf576133bf613328565b5060010190565b600081516133d8818560208601612d00565b9290920192915050565b600080845481600182811c9150808316806133fe57607f831692505b6020808410820361341d57634e487b7160e01b86526022600452602486fd5b81801561343157600181146134425761346f565b60ff1986168952848901965061346f565b60008b81526020902060005b868110156134675781548b82015290850190830161344e565b505084890196505b50505050505061347f81856133c6565b95945050505050565b60006001600160a01b038087168352808616602084015250836040830152608060608301526134ba6080830184612d2c565b9695505050505050565b6000602082840312156134d657600080fd5b8151611d9c81612ccd56fe4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a26469706673582212207256c33d77cf66adb5894109c220f1422c8d6f72b143cdd4586a58d021b9f1e564736f6c634300080d0033000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000002400000000000000000000000000000000000000000000000000000000000000280000000000000000000000000000000000000000000000000000000000000014d000000000000000000000000f4c363b4acfb4526f236b5b8c5168e080a3128d10000000000000000000000006ccf2b4c1f4a058c2a367b75c59c679fdcac49d200000000000000000000000083739a8ec78f74ed2f1e6256fea391db01f1566f00000000000000000000000000000000000000000000000000038d7ea4c680000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000001f40000000000000000000000000000000000000000000000000001c6bf526340000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000001f4000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000074741535041434b0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000074741535041434b000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000036697066733a2f2f516d557968317969745768315a346959696469567a355a4455706139576979484b44484a53453838724645706b342f00000000000000000000

Deployed Bytecode

0x6080604052600436106102d15760003560e01c8063853828b611610179578063b88d4fde116100d6578063d5abeb011161008a578063f19e207e11610064578063f19e207e1461088c578063f2fde38b146108bc578063f891d579146108dc57600080fd5b8063d5abeb011461081a578063e5376b9a14610830578063e985e9c51461084357600080fd5b8063c21b471b116100bb578063c21b471b146107ba578063c87b56dd146107da578063ce3cd997146107fa57600080fd5b8063b88d4fde14610773578063c040e6b81461079357600080fd5b8063a09f23721161012d578063a971b04411610112578063a971b04414610713578063afb8b96b14610740578063b3ab66b01461076057600080fd5b8063a09f237214610681578063a22cb465146106f357600080fd5b80638da5cb5b1161015e5780638da5cb5b1461062e57806395d89b411461064c5780639fd08aa91461066157600080fd5b8063853828b6146105ec5780638671602e1461060157600080fd5b806333bc1c5c1161023257806369add11d116101e65780636f8b44b0116101c05780636f8b44b01461059757806370a08231146105b7578063715018a6146105d757600080fd5b806369add11d146105425780636c0360eb146105625780636c19e7831461057757600080fd5b806342966c681161021757806342966c68146104e257806355f804b3146105025780636352211e1461052257600080fd5b806333bc1c5c1461047f57806342842e0e146104c257600080fd5b806318160ddd1161028957806323b872dd1161026e57806323b872dd146103f35780632a55205a146104135780632e04b8e71461045257600080fd5b806318160ddd146103a7578063238ac933146103ce57600080fd5b8063081812fc116102ba578063081812fc1461032d578063095ea7b3146103655780631351cf511461038757600080fd5b806301ffc9a7146102d657806306fdde031461030b575b600080fd5b3480156102e257600080fd5b506102f66102f1366004612ce3565b610910565b60405190151581526020015b60405180910390f35b34801561031757600080fd5b50610320610930565b6040516103029190612d58565b34801561033957600080fd5b5061034d610348366004612d6b565b6109c2565b6040516001600160a01b039091168152602001610302565b34801561037157600080fd5b50610385610380366004612da0565b610a1f565b005b34801561039357600080fd5b506103856103a2366004612dca565b610b30565b3480156103b357600080fd5b5060015460005403600019015b604051908152602001610302565b3480156103da57600080fd5b50600e5461034d9061010090046001600160a01b031681565b3480156103ff57600080fd5b5061038561040e366004612e06565b610ba8565b34801561041f57600080fd5b5061043361042e366004612e42565b610bb8565b604080516001600160a01b039093168352602083019190915201610302565b34801561045e57600080fd5b506103c061046d366004612e64565b60156020526000908152604090205481565b34801561048b57600080fd5b50600f546010546011546012546104a29392919084565b604080519485526020850193909352918301526060820152608001610302565b3480156104ce57600080fd5b506103856104dd366004612e06565b610c75565b3480156104ee57600080fd5b506103856104fd366004612d6b565b610c90565b34801561050e57600080fd5b5061038561051d366004612ec1565b610d1e565b34801561052e57600080fd5b5061034d61053d366004612d6b565b610d72565b34801561054e57600080fd5b5061038561055d366004612f48565b610d7d565b34801561056e57600080fd5b50610320610ef2565b34801561058357600080fd5b50610385610592366004612e64565b610f80565b3480156105a357600080fd5b506103856105b2366004612d6b565b611007565b3480156105c357600080fd5b506103c06105d2366004612e64565b611054565b3480156105e357600080fd5b506103856110bc565b3480156105f857600080fd5b50610385611110565b34801561060d57600080fd5b506103c061061c366004612e64565b60136020526000908152604090205481565b34801561063a57600080fd5b50600b546001600160a01b031661034d565b34801561065857600080fd5b506103206111c7565b34801561066d57600080fd5b5061038561067c366004612ffb565b6111d6565b34801561068d57600080fd5b506106cb61069c366004612d6b565b601660205260009081526040902080546001820154600283015460038401546004909401549293919290919085565b604080519586526020860194909452928401919091526060830152608082015260a001610302565b3480156106ff57600080fd5b5061038561070e366004612dca565b61123c565b34801561071f57600080fd5b506103c061072e366004612e64565b60146020526000908152604090205481565b34801561074c57600080fd5b5061038561075b3660046130d1565b6112ea565b61038561076e366004612d6b565b611370565b34801561077f57600080fd5b5061038561078e3660046130fe565b611599565b34801561079f57600080fd5b50600e546107ad9060ff1681565b60405161030291906131d4565b3480156107c657600080fd5b506103856107d53660046131fc565b6115e3565b3480156107e657600080fd5b506103206107f5366004612d6b565b611639565b34801561080657600080fd5b50610385610815366004613239565b6116c2565b34801561082657600080fd5b506103c0600c5481565b61038561083e36600461325a565b611731565b34801561084f57600080fd5b506102f661085e3660046132c4565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b34801561089857600080fd5b506102f66108a7366004612e64565b60176020526000908152604090205460ff1681565b3480156108c857600080fd5b506103856108d7366004612e64565b611b78565b3480156108e857600080fd5b506103c07f043f6e5f589c41197e26263db04f344258a0ff046f90521418ecf44e482812fb81565b600061091b82611c45565b8061092a575061092a82611cc5565b92915050565b60606002805461093f906132ee565b80601f016020809104026020016040519081016040528092919081815260200182805461096b906132ee565b80156109b85780601f1061098d576101008083540402835291602001916109b8565b820191906000526020600020905b81548152906001019060200180831161099b57829003601f168201915b5050505050905090565b60006109cd82611d13565b610a03576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b6000610a2a82611d48565b9050806001600160a01b0316836001600160a01b031603610a77576040517f943f7b8c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b336001600160a01b03821614610ac757610a91813361085e565b610ac7576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600082815260066020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600b546001600160a01b03163314610b7d5760405162461bcd60e51b815260206004820181905260248201526000805160206134e283398151915260448201526064015b60405180910390fd5b6001600160a01b03919091166000908152601760205260409020805460ff1916911515919091179055565b610bb3838383611dd7565b505050565b60008281526009602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046bffffffffffffffffffffffff16928201929092528291610c375750604080518082019091526008546001600160a01b0381168252600160a01b90046bffffffffffffffffffffffff1660208201525b602081015160009061271090610c5b906bffffffffffffffffffffffff168761333e565b610c65919061335d565b91519350909150505b9250929050565b610bb383838360405180602001604052806000815250611599565b600b546001600160a01b0316331480610cb857503360009081526017602052604090205460ff165b610d125760405162461bcd60e51b815260206004820152602560248201527f43616c6c6572206973206e6f7420746865206f776e6572206f7220746865206d60448201526434b73a32b960d91b6064820152608401610b74565b610d1b81611fbc565b50565b600b546001600160a01b03163314610d665760405162461bcd60e51b815260206004820181905260248201526000805160206134e28339815191526044820152606401610b74565b610bb3600d8383612c34565b600061092a82611d48565b600b546001600160a01b0316331480610da557503360009081526017602052604090205460ff165b610dff5760405162461bcd60e51b815260206004820152602560248201527f43616c6c6572206973206e6f7420746865206f776e6572206f7220746865206d60448201526434b73a32b960d91b6064820152608401610b74565b60005b83811015610eeb57600c54838383818110610e1f57610e1f61337f565b90506020020135610e396001546000546000199190030190565b610e439190613395565b1115610e915760405162461bcd60e51b815260206004820152601360248201527f4d41585f535550504c595f4558434545444544000000000000000000000000006044820152606401610b74565b610ed9858583818110610ea657610ea661337f565b9050602002016020810190610ebb9190612e64565b848484818110610ecd57610ecd61337f565b90506020020135611fc7565b80610ee3816133ad565b915050610e02565b5050505050565b600d8054610eff906132ee565b80601f0160208091040260200160405190810160405280929190818152602001828054610f2b906132ee565b8015610f785780601f10610f4d57610100808354040283529160200191610f78565b820191906000526020600020905b815481529060010190602001808311610f5b57829003601f168201915b505050505081565b600b546001600160a01b03163314610fc85760405162461bcd60e51b815260206004820181905260248201526000805160206134e28339815191526044820152606401610b74565b600e80546001600160a01b03909216610100027fffffffffffffffffffffff0000000000000000000000000000000000000000ff909216919091179055565b600b546001600160a01b0316331461104f5760405162461bcd60e51b815260206004820181905260248201526000805160206134e28339815191526044820152606401610b74565b600c55565b60006001600160a01b038216611096576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b600b546001600160a01b031633146111045760405162461bcd60e51b815260206004820181905260248201526000805160206134e28339815191526044820152606401610b74565b61110e60006120db565b565b600b546001600160a01b031633146111585760405162461bcd60e51b815260206004820181905260248201526000805160206134e28339815191526044820152606401610b74565b600047116111a85760405162461bcd60e51b815260206004820152600c60248201527f42414c414e43455f5a45524f00000000000000000000000000000000000000006044820152606401610b74565b47610d1b7383739a8ec78f74ed2f1e6256fea391db01f1566f8261213a565b60606003805461093f906132ee565b600b546001600160a01b0316331461121e5760405162461bcd60e51b815260206004820181905260248201526000805160206134e28339815191526044820152606401610b74565b8051600f556020810151601055604081015160115560600151601255565b336001600160a01b0383160361127e576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b600b546001600160a01b031633146113325760405162461bcd60e51b815260206004820181905260248201526000805160206134e28339815191526044820152606401610b74565b600091825260166020908152604092839020825181559082015160018201559181015160028301556060810151600383015560800151600490910155565b6002600e5460ff166004811115611389576113896131be565b14806113ab57506003600e5460ff1660048111156113a9576113a96131be565b145b6113e65760405162461bcd60e51b815260206004820152600c60248201526b0a6a8828e8abe9c9a82a886960a31b6044820152606401610b74565b6011548111156114385760405162461bcd60e51b815260206004820152601160248201527f54585f4c494d49545f45584345454445440000000000000000000000000000006044820152606401610b74565b60125433600090815260146020526040902054611456908390613395565b11156114a45760405162461bcd60e51b815260206004820152601560248201527f57414c4c45545f4c494d49545f455843454544454400000000000000000000006044820152606401610b74565b600c5460015460005483919003600019016114bf9190613395565b111561150d5760405162461bcd60e51b815260206004820152600f60248201527f535550504c595f455843454544454400000000000000000000000000000000006044820152606401610b74565b600f5461151b90829061333e565b34101561156a5760405162461bcd60e51b815260206004820152601160248201527f494e53554646494349454e545f46554e440000000000000000000000000000006044820152606401610b74565b3360009081526014602052604081208054839290611589908490613395565b90915550610d1b90503382611fc7565b6115a4848484611dd7565b6001600160a01b0383163b156115dd576115c084848484612253565b6115dd576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b600b546001600160a01b0316331461162b5760405162461bcd60e51b815260206004820181905260248201526000805160206134e28339815191526044820152606401610b74565b611635828261233e565b5050565b606061164482611d13565b6116905760405162461bcd60e51b815260206004820152601460248201527f546f6b656e20646f6573206e6f742065786973740000000000000000000000006044820152606401610b74565b600d61169b83612458565b6040516020016116ac9291906133e2565b6040516020818303038152906040529050919050565b600b546001600160a01b0316331461170a5760405162461bcd60e51b815260206004820181905260248201526000805160206134e28339815191526044820152606401610b74565b600e805482919060ff19166001836004811115611729576117296131be565b021790555050565b6001600e5460ff16600481111561174a5761174a6131be565b148061176c57506003600e5460ff16600481111561176a5761176a6131be565b145b6117a75760405162461bcd60e51b815260206004820152600c60248201526b0a6a8828e8abe9c9a82a886960a31b6044820152606401610b74565b6117b485338585856124a7565b600e5461010090046001600160a01b039081169116146118165760405162461bcd60e51b815260206004820152601160248201527f494e56414c49445f5349474e41545552450000000000000000000000000000006044820152606401610b74565b6000838152601660209081526040808320815160a0810183528154815260018201548185015260028201548184015260038201546060820152600490910154608082015233845260159092529091205485146118b45760405162461bcd60e51b815260206004820152600d60248201527f494e56414c49445f4e4f4e4345000000000000000000000000000000000000006044820152606401610b74565b85608001514211156119085760405162461bcd60e51b815260206004820152601a60248201527f494e56414c49445f444541444c494e455f5349474e41545552450000000000006044820152606401610b74565b8060400151866020015111156119605760405162461bcd60e51b815260206004820152601160248201527f54585f4c494d49545f45584345454445440000000000000000000000000000006044820152606401610b74565b606081015160208088015133600090815260139092526040909120546119869190613395565b11156119d45760405162461bcd60e51b815260206004820152601560248201527f57414c4c45545f4c494d49545f455843454544454400000000000000000000006044820152606401610b74565b600c54602087015160015460005403600019016119f19190613395565b1115611a3f5760405162461bcd60e51b815260206004820152600f60248201527f535550504c595f455843454544454400000000000000000000000000000000006044820152606401610b74565b60208601518151611a50919061333e565b341015611a9f5760405162461bcd60e51b815260206004820152601160248201527f494e53554646494349454e545f46554e440000000000000000000000000000006044820152606401610b74565b336000908152601560205260408120805491611aba836133ad565b9091555050602080870151336000908152601390925260408220805491929091611ae5908490613395565b92505081905550611afa338760200151611fc7565b604080513381528751602080830191909152880151818301529087015160608083019190915287015160808083019190915287015160a082015260c0810186905260e081018590527f08363e897e78bb2d9ed326cf57650998c305abb630d3c1d921c412f732a8829d906101000160405180910390a1505050505050565b600b546001600160a01b03163314611bc05760405162461bcd60e51b815260206004820181905260248201526000805160206134e28339815191526044820152606401610b74565b6001600160a01b038116611c3c5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610b74565b610d1b816120db565b60006301ffc9a760e01b6001600160e01b031983161480611c8f57507f80ac58cd000000000000000000000000000000000000000000000000000000006001600160e01b03198316145b8061092a5750506001600160e01b0319167f5b5e139f000000000000000000000000000000000000000000000000000000001490565b60006001600160e01b031982167f2a55205a00000000000000000000000000000000000000000000000000000000148061092a57506301ffc9a760e01b6001600160e01b031983161461092a565b600081600111158015611d27575060005482105b801561092a575050600090815260046020526040902054600160e01b161590565b60008180600111611da557600054811015611da55760008181526004602052604081205490600160e01b82169003611da3575b80600003611d9c575060001901600081815260046020526040902054611d7b565b9392505050565b505b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000611de282611d48565b9050836001600160a01b0316816001600160a01b031614611e2f576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000336001600160a01b0386161480611e4d5750611e4d853361085e565b80611e68575033611e5d846109c2565b6001600160a01b0316145b905080611e8857604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b038416611ec8576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000838152600660209081526040808320805473ffffffffffffffffffffffffffffffffffffffff191690556001600160a01b038881168452600583528184208054600019019055871683528083208054600101905585835260049091528120600160e11b4260a01b8717811790915583169003611f7657600183016000818152600460205260408120549003611f74576000548114611f745760008181526004602052604090208390555b505b82846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4610eeb565b610d1b8160006125a2565b6000546001600160a01b03831661200a576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81600003612044576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b03831660009081526005602090815260408083208054680100000000000000018702019055838352600490915290204260a01b84176001841460e11b179055808083015b6040516001830192906001600160a01b038716906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a480821061208f5750600055505050565b600b80546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8047101561218a5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610b74565b6000826001600160a01b03168260405160006040518083038185875af1925050503d80600081146121d7576040519150601f19603f3d011682016040523d82523d6000602084013e6121dc565b606091505b5050905080610bb35760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610b74565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290612288903390899088908890600401613488565b6020604051808303816000875af19250505080156122c3575060408051601f3d908101601f191682019092526122c0918101906134c4565b60015b612321573d8080156122f1576040519150601f19603f3d011682016040523d82523d6000602084013e6122f6565b606091505b508051600003612319576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b6127106bffffffffffffffffffffffff821611156123c45760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c2065786365656460448201527f2073616c655072696365000000000000000000000000000000000000000000006064820152608401610b74565b6001600160a01b03821661241a5760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152606401610b74565b604080518082019091526001600160a01b039092168083526bffffffffffffffffffffffff9091166020909201829052600160a01b90910217600855565b604080516080810191829052607f0190826030600a8206018353600a90045b801561249557600183039250600a81066030018353600a9004612477565b50819003601f19909101908152919050565b6000806125557f043f6e5f589c41197e26263db04f344258a0ff046f90521418ecf44e482812fb886000015189602001518a604001518b606001518c608001518b8d60405160200161253a989796959493929190978852602088019690965260408701949094526060860192909252608085015260a084015260c08301526001600160a01b031660e08201526101000190565b60405160208183030381529060405280519060200120612720565b90506125978185858080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061278992505050565b979650505050505050565b60006125ad83611d48565b9050808215612611576000336001600160a01b03831614806125d457506125d4823361085e565b806125ef5750336125e4866109c2565b6001600160a01b0316145b90508061260f57604051632ce44b5f60e11b815260040160405180910390fd5b505b6000848152600660209081526040808320805473ffffffffffffffffffffffffffffffffffffffff191690556001600160a01b03841683526005825280832080546fffffffffffffffffffffffffffffffff019055868352600490915281207c03000000000000000000000000000000000000000000000000000000004260a01b8417179055600160e11b831690036126da576001840160008181526004602052604081205490036126d85760005481146126d85760008181526004602052604090208390555b505b60405184906000906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a4505060018054810190555050565b600061092a61272d6127ad565b836040517f19010000000000000000000000000000000000000000000000000000000000006020820152602281018390526042810182905260009060620160405160208183030381529060405280519060200120905092915050565b600080600061279885856128d4565b915091506127a58161293f565b509392505050565b6000306001600160a01b037f0000000000000000000000003f80c08ae7f3b5d494bfaf7885100d5f09057ad71614801561280657507f000000000000000000000000000000000000000000000000000000000000000146145b1561283057507f668dce1f2a385cd6f2c9520c0b6f80c6c06023e06071eb200969f2aaa38a337590565b50604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f6020808301919091527f368ed25b64ee995a7e9a3e9f524771f381996b746ad523fad5878dff9677a64a828401527f06c015bd22b4c69690933c1058878ebdfef31f9aaae40bbe86d8a09fe1b2972c60608301524660808301523060a0808401919091528351808403909101815260c0909201909252805191012090565b600080825160410361290a5760208301516040840151606085015160001a6128fe87828585612af5565b94509450505050610c6e565b82516040036129335760208301516040840151612928868383612be2565b935093505050610c6e565b50600090506002610c6e565b6000816004811115612953576129536131be565b0361295b5750565b600181600481111561296f5761296f6131be565b036129bc5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610b74565b60028160048111156129d0576129d06131be565b03612a1d5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610b74565b6003816004811115612a3157612a316131be565b03612a895760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610b74565b6004816004811115612a9d57612a9d6131be565b03610d1b5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610b74565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115612b2c5750600090506003612bd9565b8460ff16601b14158015612b4457508460ff16601c14155b15612b555750600090506004612bd9565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015612ba9573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116612bd257600060019250925050612bd9565b9150600090505b94509492505050565b6000807f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff831681612c1860ff86901c601b613395565b9050612c2687828885612af5565b935093505050935093915050565b828054612c40906132ee565b90600052602060002090601f016020900481019282612c625760008555612ca8565b82601f10612c7b5782800160ff19823516178555612ca8565b82800160010185558215612ca8579182015b82811115612ca8578235825591602001919060010190612c8d565b50612cb4929150612cb8565b5090565b5b80821115612cb45760008155600101612cb9565b6001600160e01b031981168114610d1b57600080fd5b600060208284031215612cf557600080fd5b8135611d9c81612ccd565b60005b83811015612d1b578181015183820152602001612d03565b838111156115dd5750506000910152565b60008151808452612d44816020860160208601612d00565b601f01601f19169290920160200192915050565b602081526000611d9c6020830184612d2c565b600060208284031215612d7d57600080fd5b5035919050565b80356001600160a01b0381168114612d9b57600080fd5b919050565b60008060408385031215612db357600080fd5b612dbc83612d84565b946020939093013593505050565b60008060408385031215612ddd57600080fd5b612de683612d84565b915060208301358015158114612dfb57600080fd5b809150509250929050565b600080600060608486031215612e1b57600080fd5b612e2484612d84565b9250612e3260208501612d84565b9150604084013590509250925092565b60008060408385031215612e5557600080fd5b50508035926020909101359150565b600060208284031215612e7657600080fd5b611d9c82612d84565b60008083601f840112612e9157600080fd5b50813567ffffffffffffffff811115612ea957600080fd5b602083019150836020828501011115610c6e57600080fd5b60008060208385031215612ed457600080fd5b823567ffffffffffffffff811115612eeb57600080fd5b612ef785828601612e7f565b90969095509350505050565b60008083601f840112612f1557600080fd5b50813567ffffffffffffffff811115612f2d57600080fd5b6020830191508360208260051b8501011115610c6e57600080fd5b60008060008060408587031215612f5e57600080fd5b843567ffffffffffffffff80821115612f7657600080fd5b612f8288838901612f03565b90965094506020870135915080821115612f9b57600080fd5b50612fa887828801612f03565b95989497509550505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715612ff357612ff3612fb4565b604052919050565b60006080828403121561300d57600080fd5b6040516080810181811067ffffffffffffffff8211171561303057613030612fb4565b8060405250823581526020830135602082015260408301356040820152606083013560608201528091505092915050565b600060a0828403121561307357600080fd5b60405160a0810181811067ffffffffffffffff8211171561309657613096612fb4565b806040525080915082358152602083013560208201526040830135604082015260608301356060820152608083013560808201525092915050565b60008060c083850312156130e457600080fd5b823591506130f58460208501613061565b90509250929050565b6000806000806080858703121561311457600080fd5b61311d85612d84565b9350602061312c818701612d84565b935060408601359250606086013567ffffffffffffffff8082111561315057600080fd5b818801915088601f83011261316457600080fd5b81358181111561317657613176612fb4565b613188601f8201601f19168501612fca565b9150808252898482850101111561319e57600080fd5b808484018584013760008482840101525080935050505092959194509250565b634e487b7160e01b600052602160045260246000fd5b60208101600583106131f657634e487b7160e01b600052602160045260246000fd5b91905290565b6000806040838503121561320f57600080fd5b61321883612d84565b915060208301356bffffffffffffffffffffffff81168114612dfb57600080fd5b60006020828403121561324b57600080fd5b813560058110611d9c57600080fd5b6000806000806000610100868803121561327357600080fd5b61327d8787613061565b945060a0860135935060c0860135925060e086013567ffffffffffffffff8111156132a757600080fd5b6132b388828901612e7f565b969995985093965092949392505050565b600080604083850312156132d757600080fd5b6132e083612d84565b91506130f560208401612d84565b600181811c9082168061330257607f821691505b60208210810361332257634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b600081600019048311821515161561335857613358613328565b500290565b60008261337a57634e487b7160e01b600052601260045260246000fd5b500490565b634e487b7160e01b600052603260045260246000fd5b600082198211156133a8576133a8613328565b500190565b6000600182016133bf576133bf613328565b5060010190565b600081516133d8818560208601612d00565b9290920192915050565b600080845481600182811c9150808316806133fe57607f831692505b6020808410820361341d57634e487b7160e01b86526022600452602486fd5b81801561343157600181146134425761346f565b60ff1986168952848901965061346f565b60008b81526020902060005b868110156134675781548b82015290850190830161344e565b505084890196505b50505050505061347f81856133c6565b95945050505050565b60006001600160a01b038087168352808616602084015250836040830152608060608301526134ba6080830184612d2c565b9695505050505050565b6000602082840312156134d657600080fd5b8151611d9c81612ccd56fe4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a26469706673582212207256c33d77cf66adb5894109c220f1422c8d6f72b143cdd4586a58d021b9f1e564736f6c634300080d0033

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

000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000002400000000000000000000000000000000000000000000000000000000000000280000000000000000000000000000000000000000000000000000000000000014d000000000000000000000000f4c363b4acfb4526f236b5b8c5168e080a3128d10000000000000000000000006ccf2b4c1f4a058c2a367b75c59c679fdcac49d200000000000000000000000083739a8ec78f74ed2f1e6256fea391db01f1566f00000000000000000000000000000000000000000000000000038d7ea4c680000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000001f40000000000000000000000000000000000000000000000000001c6bf526340000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000001f4000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000074741535041434b0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000074741535041434b000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000036697066733a2f2f516d557968317969745768315a346959696469567a355a4455706139576979484b44484a53453838724645706b342f00000000000000000000

-----Decoded View---------------
Arg [0] : _name (string): GASPACK
Arg [1] : _symbol (string): GASPACK
Arg [2] : _previewURI (string): ipfs://QmUyh1yitWh1Z4iYidiVz5ZDUpa9WiyHKDHJSE88rFEpk4/
Arg [3] : _maxSupply (uint256): 333
Arg [4] : _signer (address): 0xF4C363B4aCfb4526F236b5b8c5168e080a3128d1
Arg [5] : _authorizedAddress (address): 0x6Ccf2B4C1F4A058c2A367b75c59C679fdCac49d2
Arg [6] : _royaltyAddress (address): 0x83739A8Ec78f74Ed2f1e6256fEa391DB01F1566F
Arg [7] : _publicSaleProperty (tuple): System.Collections.Generic.List`1[Nethereum.ABI.FunctionEncoding.ParameterOutput]
Arg [8] : _privateSaleProperty (tuple): System.Collections.Generic.List`1[Nethereum.ABI.FunctionEncoding.ParameterOutput]

-----Encoded View---------------
23 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000200
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000240
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000280
Arg [3] : 000000000000000000000000000000000000000000000000000000000000014d
Arg [4] : 000000000000000000000000f4c363b4acfb4526f236b5b8c5168e080a3128d1
Arg [5] : 0000000000000000000000006ccf2b4c1f4a058c2a367b75c59c679fdcac49d2
Arg [6] : 00000000000000000000000083739a8ec78f74ed2f1e6256fea391db01f1566f
Arg [7] : 00000000000000000000000000000000000000000000000000038d7ea4c68000
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [10] : 00000000000000000000000000000000000000000000000000000000000001f4
Arg [11] : 0000000000000000000000000000000000000000000000000001c6bf52634000
Arg [12] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [13] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [14] : 00000000000000000000000000000000000000000000000000000000000001f4
Arg [15] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [16] : 0000000000000000000000000000000000000000000000000000000000000007
Arg [17] : 4741535041434b00000000000000000000000000000000000000000000000000
Arg [18] : 0000000000000000000000000000000000000000000000000000000000000007
Arg [19] : 4741535041434b00000000000000000000000000000000000000000000000000
Arg [20] : 0000000000000000000000000000000000000000000000000000000000000036
Arg [21] : 697066733a2f2f516d557968317969745768315a346959696469567a355a4455
Arg [22] : 706139576979484b44484a53453838724645706b342f00000000000000000000


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.