ETH Price: $3,085.15 (-1.09%)
Gas: 2 Gwei

Token

StudioUno Palabras (S1PALABRAS)
 

Overview

Max Total Supply

1,337 S1PALABRAS

Holders

541

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
1 S1PALABRAS
0xdb6314DC3068BF6788A64D9cb772c4d3D7fAFAf2
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:
StudioUnoPalabras

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 24 : StudioUnoPalabras.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.17;

import "@openzeppelin/contracts/token/common/ERC2981.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/Pausable.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/utils/cryptography/SignatureChecker.sol";

import "./ERC721A.sol";
import "./interfaces/IOwnershipable.sol";
import "./ERC721ATokenUriDelegate.sol";
import "./ERC721AOperatorFilter.sol";

contract StudioUnoPalabras is ERC721A, ERC2981, Pausable, Ownable, ERC721AOperatorFilter, ERC721ATokenUriDelegate {
    using SignatureChecker for address;
    using Strings for uint256;

    bool public allowListMinting;
    bool public publicMinting;

    uint256 public publicPrice;
    uint256 public maxPublicMints;
    string public apiBaseURI;
    string public ipfsBaseURI;
    uint256 public currentRoundNumber;

    uint256 public lastIpfsTokenId;

    address public signer;

    address public trustedWallet_A;
    address public trustedWallet_B;

    uint256 public tokenId;

    mapping(bytes32 => bool) public claimedTokenIds;
    mapping(string => mapping(uint256 => uint256)) public mintedCounts;
    mapping(string => mapping(uint256 => mapping(address => uint256))) public claimWithSignatureMintedCounts;
    mapping(string => bool) public mintedWords;
    mapping(uint256 => string) public tokenWords;

    event FundsTransferred(address _wallet, uint256 _amount);
    event Minted(address _buyer, uint256 _paid, uint256 _quantity, uint256 _tokenId, string _word, uint256 _round);
    event ClaimMinted(address _buyer, uint256 _paid, uint256 _tokenId, string _word, uint256 _round);
    event PrivateMinted(address _buyer, uint256 _quantity, uint256 _tokenId, string _word, uint256 _round);
    event ArtistMinted(address _buyer, uint256 _quantity, uint256 _tokenId, string _word, uint256 _round);
    event PremiumMinted(address _buyer, uint256 _paid, uint256 _tokenId, string _word, uint256 _round);

    /**
     * @dev Initializes the contract by setting a `name` and a `symbol` to the token.
     */
    constructor(
      address _trustedWallet_A,
      address _trustedWallet_B,        
      address _signer,
      uint256 _publicPrice,
      uint256 _maxPublicMints
    ) ERC721A("StudioUno Palabras", "S1PALABRAS") {
        trustedWallet_A = _trustedWallet_A;
        trustedWallet_B = _trustedWallet_B;

        signer = _signer;
        publicPrice = _publicPrice;
        maxPublicMints = _maxPublicMints;
        currentRoundNumber = 1;
        lastIpfsTokenId = 0;

        allowListMinting = false;
        publicMinting = false;

        _pause();
    }

    function mint(address _receiver, uint256 _quantity) internal {
      if(msg.value > 0) {
          payment();
      }

      _safeMint(_receiver, _quantity);
    }

    function allowListMint(
        string memory _word,
        uint256 _roundNumber,
        uint256 _quantityToMint,
        uint256 _quantityAllowed,
        bytes memory _signature
    ) external payable whenNotPaused whenAllowListMinting {
        require(_quantityToMint > 0, "S1: mint quantity must be greater than 0");
        require(maxPublicMints >= _quantityToMint, "S1: minted quantity is higher than max public mints");
        require(_quantityAllowed >= mintedCounts[_word][_roundNumber] + _quantityToMint, "S1: wrong quantity to mint");
        require(verifyAllowListMintSignature(_word, _roundNumber, _quantityAllowed, msg.sender, _signature), "S1: signature not valid");
        require(_roundNumber == currentRoundNumber, "S1: wrong round number");
        require(msg.value >= publicPrice * _quantityToMint, "S1: value sent is lower");
        
        mintedCounts[_word][_roundNumber] += _quantityToMint;
        for (uint256 i = 0; i < _quantityToMint; i++) {
          tokenId ++;
          tokenWords[tokenId] = _word;
        }
        mintedWords[_word] = true;
        mint(msg.sender, _quantityToMint);
        emit Minted(msg.sender, msg.value, _quantityToMint, tokenId, _word, _roundNumber);
    }

    function publicMint(
        string memory _word,
        uint256 _roundNumber,
        uint256 _quantityToMint,
        uint256 _quantityAllowed,
        bytes memory _signature
    ) external payable whenNotPaused whenPublicMinting {
        require(_quantityToMint > 0, "S1: mint quantity must be greater than 0");
        require(_quantityAllowed >= mintedCounts[_word][_roundNumber] + _quantityToMint, "S1: wrong quantity to mint");
        require(verifyPublicMintSignature(_word, _roundNumber, _quantityAllowed, _signature), "S1: signature not valid");
        require(_roundNumber == currentRoundNumber, "S1: wrong round number");
        require(msg.value >= publicPrice * _quantityToMint, "S1: value sent is lower");
        
        mintedCounts[_word][_roundNumber] += _quantityToMint;
        for (uint256 i = 0; i < _quantityToMint; i++) {
          tokenId ++;
          tokenWords[tokenId] = _word;
        }
        mintedWords[_word] = true;
        mint(msg.sender, _quantityToMint);
        emit Minted(msg.sender, msg.value, _quantityToMint, tokenId, _word, _roundNumber);
    }

    function premiumMint(
        string memory _word,
        uint256 _premiumPublicPrice,
        bytes memory _signature
    ) external payable whenNotPaused {
        require(msg.value >= _premiumPublicPrice, "S1: value sent is lower");
        require(verifyPremiumMintSignature(_word, _premiumPublicPrice, _signature), "S1: signature not valid");
        require(mintedWords[_word] == false, "S1: Premium word already minted");
        tokenId++;
        mintedWords[_word] = true;
        tokenWords[tokenId] = _word;
        mint(msg.sender, 1);
        emit PremiumMinted(msg.sender, msg.value, tokenId, _word, currentRoundNumber);
    }

    function premiumRequestedMint(
        string memory _word,
        uint256 _premiumPublicPrice,
        bytes memory _signature
    ) external payable whenNotPaused {
        require(msg.value >= _premiumPublicPrice, "S1: value sent is lower");
        require(verifyPremiumRequestedMintSignature(_word, msg.sender, _premiumPublicPrice, _signature), "S1: signature not valid");
        require(mintedWords[_word] == false, "S1: Premium word already minted");
        tokenId++;
        mintedWords[_word] = true;
        tokenWords[tokenId] = _word;
        mint(msg.sender, 1);
        emit PremiumMinted(msg.sender, msg.value, tokenId, _word, currentRoundNumber);
    }

    function claim(
        uint256 _tokenId,
        address _collectionAddress,
        string memory _word,
        uint256 _roundNumber,
        bytes memory _signature
    ) external whenNotPaused {
        require(IOwnershipable(_collectionAddress).ownerOf(_tokenId) == msg.sender, "S1: sender is not owner");
        require(verifyClaimSignature(_word, _roundNumber, _collectionAddress, _signature), "S1: signature not valid");
        require(_roundNumber == currentRoundNumber, "S1: wrong round number");
        
        bytes32 hashed_key = keccak256(abi.encodePacked(_tokenId, _word, _collectionAddress, _roundNumber));
        
        require(claimedTokenIds[hashed_key] == false, "S1: Token has been claimed");
        claimedTokenIds[hashed_key] = true;

        tokenId++;
        mintedWords[_word] = true;
        tokenWords[tokenId] = _word;
        mint(msg.sender, 1);
        emit ClaimMinted(msg.sender, 0, tokenId, _word, _roundNumber);
    }

    function claimWithSignature(
        string memory _word,
        uint256 _roundNumber,
        uint256 _quantityToMint,
        uint256 _quantityAllowed,
        bytes memory _signature
    ) external whenNotPaused {
        require(_quantityToMint > 0, "S1: mint quantity must be greater than 0");
        require(_quantityAllowed >= claimWithSignatureMintedCounts[_word][_roundNumber][msg.sender] + _quantityToMint, "S1: wrong quantity to mint");
        require(verifyClaimWithSignature(_word, _roundNumber, _quantityAllowed, msg.sender, _signature), "S1: signature not valid");
        require(_roundNumber == currentRoundNumber, "S1: wrong round number");
        
        claimWithSignatureMintedCounts[_word][_roundNumber][msg.sender] += _quantityToMint;
        for (uint256 i = 0; i < _quantityToMint; i++) {
          tokenId ++;
          tokenWords[tokenId] = _word;
        }
        mintedWords[_word] = true;
        mint(msg.sender, _quantityToMint);
        emit ClaimMinted(msg.sender, 0, tokenId, _word, _roundNumber);
    }

    function privateMint(
        address _receiver,
        string memory _word,
        uint256 _quantity,
        uint256 _roundNumber,
        bool _artistMint
    ) external onlyOwner {
        mintedCounts[_word][_roundNumber] += _quantity;
        for (uint256 i = 0; i < _quantity; i++) {
          tokenId ++;
          tokenWords[tokenId] = _word;
        }
        mintedWords[_word] = true;
        mint(_receiver, _quantity);
        if (_artistMint) {
          emit ArtistMinted(_receiver, _quantity, tokenId, _word, _roundNumber);
        } else {
          emit PrivateMinted(_receiver, _quantity, tokenId, _word, _roundNumber);
        }
    }

    /// @dev Returns if signature is whitelisted to mint tokens.
    function verifyPublicMintSignature(
        string memory _word,
        uint256 _roundNumber,
        uint256 _quantityAllowed,
        bytes memory _signature
    ) internal view returns (bool) {
        bytes32 result = keccak256(abi.encodePacked(_word, _roundNumber, _quantityAllowed));
        bytes32 hash = keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", result));
        return signer.isValidSignatureNow(hash, _signature);
    }

    function verifyAllowListMintSignature(
        string memory _word,
        uint256 _roundNumber,
        uint256 _quantityAllowed,
        address _senderAddress,
        bytes memory _signature
    ) internal view returns (bool) {
        bytes32 result = keccak256(abi.encodePacked(_word, _roundNumber, _quantityAllowed, _senderAddress));
        bytes32 hash = keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", result));
        return signer.isValidSignatureNow(hash, _signature);
    }

    function verifyPremiumMintSignature(
        string memory _word,
        uint256 _premiumPublicPrice,
        bytes memory _signature
    ) internal view returns (bool) {
        bytes32 result = keccak256(abi.encodePacked(_word, _premiumPublicPrice));
        bytes32 hash = keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", result));
        return signer.isValidSignatureNow(hash, _signature);
    }

    function verifyPremiumRequestedMintSignature(
        string memory _word,
        address _authorizedAddress,
        uint256 _premiumPublicPrice,
        bytes memory _signature
    ) internal view returns (bool) {
        bytes32 result = keccak256(abi.encodePacked(_word, _authorizedAddress, _premiumPublicPrice));
        bytes32 hash = keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", result));
        return signer.isValidSignatureNow(hash, _signature);
    }

    function verifyClaimSignature(
        string memory _word,
        uint256 _roundNumber,
        address _collectionAddress,
        bytes memory _signature
    ) internal view returns (bool) {
        bytes32 result = keccak256(abi.encodePacked(_word, _roundNumber, _collectionAddress));
        bytes32 hash = keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", result));
        return signer.isValidSignatureNow(hash, _signature);
    }

    function verifyClaimWithSignature(
        string memory _word,
        uint256 _roundNumber,
        uint256 _quantityAllowed,
        address _senderAddress,
        bytes memory _signature
    ) internal view returns (bool) {
        bytes32 result = keccak256(abi.encodePacked(_word, _roundNumber, _quantityAllowed, _senderAddress, "S1Claim"));
        bytes32 hash = keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", result));
        return signer.isValidSignatureNow(hash, _signature);
    }

    /// @dev Split value paid for a token
    /// Emits two {FundsTransfered} events.
    function payment() internal {
        uint256 amount = (msg.value * 95) / 100;
        (bool success, ) = trustedWallet_A.call{value: amount}("");
        require(success, "S1: Transfer A failed");
        emit FundsTransferred(trustedWallet_A, amount);

        amount = msg.value - amount;
        (success, ) = trustedWallet_B.call{value: amount}("");
        require(success, "S1: Transfer B failed");
        emit FundsTransferred(trustedWallet_B, amount);
    }

    /// @dev Pause getGenesisToken(). Only DEFAULT_ADMIN_ROLE can call it.
    function pause() external onlyOwner {
        _pause();
    }

    /// @dev Unpause getGenesisToken(). Only DEFAULT_ADMIN_ROLE can call it.
    function unpause() external onlyOwner {
        _unpause();
    }

    /**
     * @dev Updates address of 'signer'
     * @param _signer  New address for 'signer'
     */
    function setSigner(address _signer) external onlyOwner {
        signer = _signer;
    }

    /**
     * @dev Updates address of 'trustedWallet_A'
     * @param _trustedWallet  New address for 'trustedWallet_A'
     */
    function setTrustedWallet_A(address _trustedWallet) external onlyOwner {
        trustedWallet_A = _trustedWallet;
    }

    /**
     * @dev Updates address of 'trustedWallet_B'
     * @param _trustedWallet  New address for 'trustedWallet_B'
     */
    function setTrustedWallet_B(address _trustedWallet) external onlyOwner {
        trustedWallet_B = _trustedWallet;
    }

    function setPublicPrice(uint256 _publicPrice) external onlyOwner {
        publicPrice = _publicPrice;
    }

    function setMaxPublicMints(uint256 _maxPublicMints) external onlyOwner {
        maxPublicMints = _maxPublicMints;
    }

    function setLastIpfsTokenId(uint256 _newLastIpfsTokenId) external onlyOwner {
        lastIpfsTokenId = _newLastIpfsTokenId;
    }

    function setApiBaseURI(string memory _newApiBaseURI) external onlyOwner {
        apiBaseURI = _newApiBaseURI;
    }

    function setIpfsBaseURI(string memory _newIpfsBaseURI) external onlyOwner {
        ipfsBaseURI = _newIpfsBaseURI;
    }

    function setAllowListMinting(bool _allowListMinting) external onlyOwner {
        allowListMinting = _allowListMinting;
    }

    function setPublicMinting(bool _publicMinting) external onlyOwner {
        publicMinting = _publicMinting;
    }

    function startNextRound() external onlyOwner {
        currentRoundNumber += 1;
    }

    function tokenURI(uint256 _tokenId) public view virtual override(ERC721ATokenUriDelegate, ERC721A) returns (string memory) {
        if (!_exists(_tokenId)) revert URIQueryForNonexistentToken();

        string memory baseURI = "";
        if(_tokenId <= lastIpfsTokenId) {
            baseURI = ipfsBaseURI;
        } else {
            baseURI = apiBaseURI;
        }
        return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, _tokenId.toString())) : '';
    }

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 _interfaceId) public view virtual override(ERC2981, ERC721A) returns (bool) {
        return
            _interfaceId == 0x7f5828d0 ||
            super.supportsInterface(_interfaceId);
    }

    modifier whenPublicMinting {
        require(publicMinting == true, "S1: PublicMinting is not enabled");
        _;
    }

    modifier whenAllowListMinting {
        require(allowListMinting == true, "S1: AllowListMinting is not enabled");
        _;
    }

    // ERC2981 functions
    function setDefaultRoyalty(address _receiver, uint96 _feeNumerator) external onlyOwner {
        _setDefaultRoyalty(_receiver, _feeNumerator);
    }

    function deleteDefaultRoyalty() external onlyOwner {
        _deleteDefaultRoyalty();
    }

    function setTokenRoyalty(uint256 _tokenId, address _receiver, uint96 _feeNumerator) external onlyOwner {
        _setTokenRoyalty(_tokenId, _receiver, _feeNumerator);
    }

    function resetTokenRoyalty(uint256 _tokenId) external onlyOwner {
        _resetTokenRoyalty(_tokenId);
    }

    function _beforeTokenTransfers(
        address _from,
        address _to,
        uint256 _tokenId,
        uint256 _quantity
    )
        internal
        virtual
        override(ERC721A, ERC721AOperatorFilter)
    {
        super._beforeTokenTransfers(_from, _to, _tokenId, _quantity);
    }
}

File 2 of 24 : ITokenUriDelegate.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.8;

interface ITokenUriDelegate {
    function tokenURI(uint256 tokenId) external view returns (string memory);
}

File 3 of 24 : IOwnershipable.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.17;

/**
 * @dev Interface of an ERC721ABurnable compliant contract.
 */
interface IOwnershipable {
    function ownerOf(uint256 tokenId) external view returns (address owner);
}

File 4 of 24 : IOperatorFilter.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.8;

interface IOperatorFilter {
    function mayTransfer(address operator) external view returns (bool);
}

File 5 of 24 : ERC721ATokenUriDelegate.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/access/Ownable.sol";
import "./ERC721A.sol";

import "./interfaces/ITokenUriDelegate.sol";

abstract contract ERC721ATokenUriDelegate is ERC721A, Ownable {
    ITokenUriDelegate private tokenUriDelegate_;

    function setTokenUriDelegate(ITokenUriDelegate delegate) public onlyOwner {
        tokenUriDelegate_ = delegate;
    }

    function tokenUriDelegate() public view returns (ITokenUriDelegate) {
        return tokenUriDelegate_;
    }

    function tokenURI(uint256 tokenId)
        public
        view
        virtual
        override
        returns (string memory)
    {
        if (!_exists(tokenId)) revert("ERC721A: invalid token ID");
        ITokenUriDelegate delegate = tokenUriDelegate_;
        if (address(delegate) == address(0)) return "";
        return delegate.tokenURI(tokenId);
    }
}

File 6 of 24 : ERC721AOperatorFilter.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/access/Ownable.sol";
import "./ERC721A.sol";

import "./interfaces/IOperatorFilter.sol";

abstract contract ERC721AOperatorFilter is ERC721A, Ownable {
    IOperatorFilter private operatorFilter_;

    function setOperatorFilter(IOperatorFilter filter) public onlyOwner {
        operatorFilter_ = filter;
    }

    function operatorFilter() public view returns (IOperatorFilter) {
        return operatorFilter_;
    }

    function _beforeTokenTransfers(
        address from,
        address to,
        uint256 tokenId,
        uint256 quantity
    ) internal virtual override(ERC721A) {
        if (
            from != address(0) &&
            to != address(0) &&
            !_mayTransfer(msg.sender, tokenId)
        ) {
            revert("ERC721AOperatorFilter: illegal operator");
        }
        super._beforeTokenTransfers(from, to, tokenId, quantity);
    }

    function _mayTransfer(address operator, uint256 tokenId)
        private
        view
        returns (bool)
    {
        IOperatorFilter filter = operatorFilter_;
        if (address(filter) == address(0)) return true;
        if (operator == ownerOf(tokenId)) return true;
        return filter.mayTransfer(msg.sender);
    }
}

File 7 of 24 : ERC721A.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v3.3.0
// Creator: Chiru Labs

pragma solidity ^0.8.4;

import 'erc721a/contracts/IERC721A.sol';
import '@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol';
import '@openzeppelin/contracts/utils/Address.sol';
import '@openzeppelin/contracts/utils/Context.sol';
import '@openzeppelin/contracts/utils/Strings.sol';
import '@openzeppelin/contracts/utils/introspection/ERC165.sol';

/**
 * @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 Context, ERC165, IERC721A {
    using Address for address;
    using Strings for uint256;

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

    // The number of tokens burned.
    uint256 internal _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 _ownershipOf implementation for details.
    mapping(uint256 => TokenOwnership) internal _ownerships;

    // Mapping owner address to address data
    mapping(address => AddressData) private _addressData;

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

    /**
     * To change the starting tokenId, please override this function.
     */
    function _startTokenId() internal view virtual returns (uint256) {
        return 1;
    }

    /**
     * @dev Burned tokens are calculated here, use _totalMinted() if you want to count just minted tokens.
     */
    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();
        }
    }

    /**
     * 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 See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) {
        return
            interfaceId == type(IERC721).interfaceId ||
            interfaceId == type(IERC721Metadata).interfaceId ||
            super.supportsInterface(interfaceId);
    }

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

    /**
     * Returns the number of tokens minted by `owner`.
     */
    function _numberMinted(address owner) internal view returns (uint256) {
        return uint256(_addressData[owner].numberMinted);
    }

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

    /**
     * Returns the auxillary data for `owner`. (e.g. number of whitelist mint slots used).
     */
    function _getAux(address owner) internal view returns (uint64) {
        return _addressData[owner].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 {
        _addressData[owner].aux = aux;
    }

    /**
     * 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) {
        uint256 curr = tokenId;

        unchecked {
            if (_startTokenId() <= curr) if (curr < _currentIndex) {
                TokenOwnership memory ownership = _ownerships[curr];
                if (!ownership.burned) {
                    if (ownership.addr != address(0)) {
                        return ownership;
                    }
                    // 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.
                    while (true) {
                        curr--;
                        ownership = _ownerships[curr];
                        if (ownership.addr != address(0)) {
                            return ownership;
                        }
                    }
                }
            }
        }
        revert OwnerQueryForNonexistentToken();
    }

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

    /**
     * @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, tokenId.toString())) : '';
    }

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

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

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

        _approve(to, tokenId, owner);
    }

    /**
     * @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 == _msgSender()) revert ApproveToCaller();

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

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

    /**
     * @dev See {IERC721-transferFrom}.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        _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.isContract()) 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 && !_ownerships[tokenId].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 {
            _addressData[to].balance += uint64(quantity);
            _addressData[to].numberMinted += uint64(quantity);

            _ownerships[startTokenId].addr = to;
            _ownerships[startTokenId].startTimestamp = uint64(block.timestamp);

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

            if (to.isContract()) {
                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 {
            _addressData[to].balance += uint64(quantity);
            _addressData[to].numberMinted += uint64(quantity);

            _ownerships[startTokenId].addr = to;
            _ownerships[startTokenId].startTimestamp = uint64(block.timestamp);

            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 {
        TokenOwnership memory prevOwnership = _ownershipOf(tokenId);

        if (prevOwnership.addr != from) revert TransferFromIncorrectOwner();

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

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

        _beforeTokenTransfers(from, to, tokenId, 1);

        // Clear approvals from the previous owner
        _approve(address(0), tokenId, from);

        // 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 {
            _addressData[from].balance -= 1;
            _addressData[to].balance += 1;

            TokenOwnership storage currSlot = _ownerships[tokenId];
            currSlot.addr = to;
            currSlot.startTimestamp = uint64(block.timestamp);

            // If the ownership slot of tokenId+1 is not explicitly set, that means the transfer initiator owns it.
            // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls.
            uint256 nextTokenId = tokenId + 1;
            TokenOwnership storage nextSlot = _ownerships[nextTokenId];
            if (nextSlot.addr == address(0)) {
                // This will suffice for checking _exists(nextTokenId),
                // as a burned slot cannot contain the zero address.
                if (nextTokenId != _currentIndex) {
                    nextSlot.addr = from;
                    nextSlot.startTimestamp = prevOwnership.startTimestamp;
                }
            }
        }

        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 {
        TokenOwnership memory prevOwnership = _ownershipOf(tokenId);

        address from = prevOwnership.addr;

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

            if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved();
        }

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

        // Clear approvals from the previous owner
        _approve(address(0), tokenId, from);

        // 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 {
            AddressData storage addressData = _addressData[from];
            addressData.balance -= 1;
            addressData.numberBurned += 1;

            // Keep track of who burned the token, and the timestamp of burning.
            TokenOwnership storage currSlot = _ownerships[tokenId];
            currSlot.addr = from;
            currSlot.startTimestamp = uint64(block.timestamp);
            currSlot.burned = true;

            // If the ownership slot of tokenId+1 is not explicitly set, that means the burn initiator owns it.
            // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls.
            uint256 nextTokenId = tokenId + 1;
            TokenOwnership storage nextSlot = _ownerships[nextTokenId];
            if (nextSlot.addr == address(0)) {
                // This will suffice for checking _exists(nextTokenId),
                // as a burned slot cannot contain the zero address.
                if (nextTokenId != _currentIndex) {
                    nextSlot.addr = from;
                    nextSlot.startTimestamp = prevOwnership.startTimestamp;
                }
            }
        }

        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 Approve `to` to operate on `tokenId`
     *
     * Emits a {Approval} event.
     */
    function _approve(
        address to,
        uint256 tokenId,
        address owner
    ) private {
        _tokenApprovals[tokenId] = to;
        emit Approval(owner, to, tokenId);
    }

    /**
     * @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 IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) {
            return retval == 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 {}
}

File 8 of 24 : IERC721A.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v3.3.0
// Creator: Chiru Labs

pragma solidity ^0.8.4;

import '@openzeppelin/contracts/token/ERC721/IERC721.sol';
import '@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol';

/**
 * @dev Interface of an ERC721A compliant contract.
 */
interface IERC721A is IERC721, IERC721Metadata {
    /**
     * 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();

    // Compiler will pack this into a single 256bit word.
    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;
    }

    // Compiler will pack this into a single 256bit word.
    struct AddressData {
        // Realistically, 2**64-1 is more than enough.
        uint64 balance;
        // Keeps track of mint count with minimal overhead for tokenomics.
        uint64 numberMinted;
        // Keeps track of burn count with minimal overhead for tokenomics.
        uint64 numberBurned;
        // For miscellaneous variable(s) pertaining to the address
        // (e.g. number of whitelist mint slots used).
        // If there are multiple variables, please pack them into a uint64.
        uint64 aux;
    }

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

File 9 of 24 : Math.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0-rc.2) (utils/math/Math.sol)

pragma solidity ^0.8.0;

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library Math {
    enum Rounding {
        Down, // Toward negative infinity
        Up, // Toward infinity
        Zero // Toward zero
    }

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

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

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

    /**
     * @dev Returns the ceiling of the division of two numbers.
     *
     * This differs from standard division with `/` in that it rounds up instead
     * of rounding down.
     */
    function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b - 1) / b can overflow on addition, so we distribute.
        return a == 0 ? 0 : (a - 1) / b + 1;
    }

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

            // Handle non-overflow cases, 256 by 256 division.
            if (prod1 == 0) {
                return prod0 / denominator;
            }

            // Make sure the result is less than 2^256. Also prevents denominator == 0.
            require(denominator > prod1);

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

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

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

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

            // Does not overflow because the denominator cannot be zero at this stage in the function.
            uint256 twos = denominator & (~denominator + 1);
            assembly {
                // Divide denominator by twos.
                denominator := div(denominator, twos)

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 10 of 24 : 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 11 of 24 : ERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

File 12 of 24 : SignatureChecker.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0-rc.2) (utils/cryptography/SignatureChecker.sol)

pragma solidity ^0.8.0;

import "./ECDSA.sol";
import "../Address.sol";
import "../../interfaces/IERC1271.sol";

/**
 * @dev Signature verification helper that can be used instead of `ECDSA.recover` to seamlessly support both ECDSA
 * signatures from externally owned accounts (EOAs) as well as ERC1271 signatures from smart contract wallets like
 * Argent and Gnosis Safe.
 *
 * _Available since v4.1._
 */
library SignatureChecker {
    /**
     * @dev Checks if a signature is valid for a given signer and data hash. If the signer is a smart contract, the
     * signature is validated against that smart contract using ERC1271, otherwise it's validated using `ECDSA.recover`.
     *
     * NOTE: Unlike ECDSA signatures, contract signatures are revocable, and the outcome of this function can thus
     * change through time. It could return true at block N and false at block N+1 (or the opposite).
     */
    function isValidSignatureNow(
        address signer,
        bytes32 hash,
        bytes memory signature
    ) internal view returns (bool) {
        (address recovered, ECDSA.RecoverError error) = ECDSA.tryRecover(hash, signature);
        if (error == ECDSA.RecoverError.NoError && recovered == signer) {
            return true;
        }

        (bool success, bytes memory result) = signer.staticcall(
            abi.encodeWithSelector(IERC1271.isValidSignature.selector, hash, signature)
        );
        return (success &&
            result.length == 32 &&
            abi.decode(result, (bytes32)) == bytes32(IERC1271.isValidSignature.selector));
    }
}

File 13 of 24 : ECDSA.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0-rc.2) (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 // Deprecated in v4.8
    }

    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");
        }
    }

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

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

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

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

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

        // If 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 14 of 24 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0-rc.2) (utils/Strings.sol)

pragma solidity ^0.8.0;

import "./math/Math.sol";

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

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

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

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
     */
    function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
        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] = _SYMBOLS[value & 0xf];
            value >>= 4;
        }
        require(value == 0, "Strings: hex length insufficient");
        return string(buffer);
    }

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

File 15 of 24 : 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 16 of 24 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0-rc.2) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 0;
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

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

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain `call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, "Address: low-level call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionDelegateCall(target, data, "Address: low-level delegate call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

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

    /**
     * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason or using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    function _revert(bytes memory returndata, string memory errorMessage) private pure {
        // Look for revert reason and bubble it up if present
        if (returndata.length > 0) {
            // The easiest way to bubble the revert reason is using memory via assembly
            /// @solidity memory-safe-assembly
            assembly {
                let returndata_size := mload(returndata)
                revert(add(32, returndata), returndata_size)
            }
        } else {
            revert(errorMessage);
        }
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

        return (royalty.receiver, royaltyAmount);
    }

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

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

        _defaultRoyaltyInfo = RoyaltyInfo(receiver, feeNumerator);
    }

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

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

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

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

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

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

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

pragma solidity ^0.8.0;

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

File 20 of 24 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0-rc.2) (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

    /**
     * @dev Transfers `tokenId` token from `from` to `to`.
     *
     * WARNING: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC721
     * or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must
     * understand this adds an external call which potentially creates a reentrancy vulnerability.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

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

    /**
     * @dev Approve or remove `operator` as an operator for the caller.
     * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
     *
     * Requirements:
     *
     * - The `operator` cannot be the 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);
}

File 21 of 24 : Pausable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (security/Pausable.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev Contract module which allows children to implement an emergency stop
 * mechanism that can be triggered by an authorized account.
 *
 * This module is used through inheritance. It will make available the
 * modifiers `whenNotPaused` and `whenPaused`, which can be applied to
 * the functions of your contract. Note that they will not be pausable by
 * simply including this module, only once the modifiers are put in place.
 */
abstract contract Pausable is Context {
    /**
     * @dev Emitted when the pause is triggered by `account`.
     */
    event Paused(address account);

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

    bool private _paused;

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

File 23 of 24 : IERC1271.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (interfaces/IERC1271.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC1271 standard signature validation method for
 * contracts as defined in https://eips.ethereum.org/EIPS/eip-1271[ERC-1271].
 *
 * _Available since v4.1._
 */
interface IERC1271 {
    /**
     * @dev Should return whether the signature provided is valid for the provided data
     * @param hash      Hash of the data to be signed
     * @param signature Signature byte array associated with _data
     */
    function isValidSignature(bytes32 hash, bytes memory signature) external view returns (bytes4 magicValue);
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
    }

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

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

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_trustedWallet_A","type":"address"},{"internalType":"address","name":"_trustedWallet_B","type":"address"},{"internalType":"address","name":"_signer","type":"address"},{"internalType":"uint256","name":"_publicPrice","type":"uint256"},{"internalType":"uint256","name":"_maxPublicMints","type":"uint256"}],"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":false,"internalType":"address","name":"_buyer","type":"address"},{"indexed":false,"internalType":"uint256","name":"_quantity","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_tokenId","type":"uint256"},{"indexed":false,"internalType":"string","name":"_word","type":"string"},{"indexed":false,"internalType":"uint256","name":"_round","type":"uint256"}],"name":"ArtistMinted","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_buyer","type":"address"},{"indexed":false,"internalType":"uint256","name":"_paid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_tokenId","type":"uint256"},{"indexed":false,"internalType":"string","name":"_word","type":"string"},{"indexed":false,"internalType":"uint256","name":"_round","type":"uint256"}],"name":"ClaimMinted","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_wallet","type":"address"},{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"FundsTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_buyer","type":"address"},{"indexed":false,"internalType":"uint256","name":"_paid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_quantity","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_tokenId","type":"uint256"},{"indexed":false,"internalType":"string","name":"_word","type":"string"},{"indexed":false,"internalType":"uint256","name":"_round","type":"uint256"}],"name":"Minted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_buyer","type":"address"},{"indexed":false,"internalType":"uint256","name":"_paid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_tokenId","type":"uint256"},{"indexed":false,"internalType":"string","name":"_word","type":"string"},{"indexed":false,"internalType":"uint256","name":"_round","type":"uint256"}],"name":"PremiumMinted","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_buyer","type":"address"},{"indexed":false,"internalType":"uint256","name":"_quantity","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_tokenId","type":"uint256"},{"indexed":false,"internalType":"string","name":"_word","type":"string"},{"indexed":false,"internalType":"uint256","name":"_round","type":"uint256"}],"name":"PrivateMinted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[{"internalType":"string","name":"_word","type":"string"},{"internalType":"uint256","name":"_roundNumber","type":"uint256"},{"internalType":"uint256","name":"_quantityToMint","type":"uint256"},{"internalType":"uint256","name":"_quantityAllowed","type":"uint256"},{"internalType":"bytes","name":"_signature","type":"bytes"}],"name":"allowListMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"allowListMinting","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"apiBaseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"address","name":"_collectionAddress","type":"address"},{"internalType":"string","name":"_word","type":"string"},{"internalType":"uint256","name":"_roundNumber","type":"uint256"},{"internalType":"bytes","name":"_signature","type":"bytes"}],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_word","type":"string"},{"internalType":"uint256","name":"_roundNumber","type":"uint256"},{"internalType":"uint256","name":"_quantityToMint","type":"uint256"},{"internalType":"uint256","name":"_quantityAllowed","type":"uint256"},{"internalType":"bytes","name":"_signature","type":"bytes"}],"name":"claimWithSignature","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"","type":"string"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"address","name":"","type":"address"}],"name":"claimWithSignatureMintedCounts","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"claimedTokenIds","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"currentRoundNumber","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"deleteDefaultRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ipfsBaseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"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":"lastIpfsTokenId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxPublicMints","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"","type":"string"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"mintedCounts","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"","type":"string"}],"name":"mintedWords","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"operatorFilter","outputs":[{"internalType":"contract IOperatorFilter","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"_word","type":"string"},{"internalType":"uint256","name":"_premiumPublicPrice","type":"uint256"},{"internalType":"bytes","name":"_signature","type":"bytes"}],"name":"premiumMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"string","name":"_word","type":"string"},{"internalType":"uint256","name":"_premiumPublicPrice","type":"uint256"},{"internalType":"bytes","name":"_signature","type":"bytes"}],"name":"premiumRequestedMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"_receiver","type":"address"},{"internalType":"string","name":"_word","type":"string"},{"internalType":"uint256","name":"_quantity","type":"uint256"},{"internalType":"uint256","name":"_roundNumber","type":"uint256"},{"internalType":"bool","name":"_artistMint","type":"bool"}],"name":"privateMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_word","type":"string"},{"internalType":"uint256","name":"_roundNumber","type":"uint256"},{"internalType":"uint256","name":"_quantityToMint","type":"uint256"},{"internalType":"uint256","name":"_quantityAllowed","type":"uint256"},{"internalType":"bytes","name":"_signature","type":"bytes"}],"name":"publicMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"publicMinting","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"resetTokenRoyalty","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":"bool","name":"_allowListMinting","type":"bool"}],"name":"setAllowListMinting","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newApiBaseURI","type":"string"}],"name":"setApiBaseURI","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":"_receiver","type":"address"},{"internalType":"uint96","name":"_feeNumerator","type":"uint96"}],"name":"setDefaultRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newIpfsBaseURI","type":"string"}],"name":"setIpfsBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newLastIpfsTokenId","type":"uint256"}],"name":"setLastIpfsTokenId","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxPublicMints","type":"uint256"}],"name":"setMaxPublicMints","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IOperatorFilter","name":"filter","type":"address"}],"name":"setOperatorFilter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_publicMinting","type":"bool"}],"name":"setPublicMinting","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_publicPrice","type":"uint256"}],"name":"setPublicPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_signer","type":"address"}],"name":"setSigner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"address","name":"_receiver","type":"address"},{"internalType":"uint96","name":"_feeNumerator","type":"uint96"}],"name":"setTokenRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract ITokenUriDelegate","name":"delegate","type":"address"}],"name":"setTokenUriDelegate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_trustedWallet","type":"address"}],"name":"setTrustedWallet_A","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_trustedWallet","type":"address"}],"name":"setTrustedWallet_B","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"signer","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"startNextRound","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"_interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenUriDelegate","outputs":[{"internalType":"contract ITokenUriDelegate","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokenWords","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":[],"name":"trustedWallet_A","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"trustedWallet_B","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b506040516200459f3803806200459f833981016040819052620000349162000254565b6040518060400160405280601281526020017153747564696f556e6f2050616c616272617360701b8152506040518060400160405280600a815260200169533150414c414252415360b01b815250816002908162000093919062000356565b506003620000a2828262000356565b5060016000555050600a805460ff19169055620000bf3362000133565b601480546001600160a01b038088166001600160a01b031992831617909255601580548784169083161790556013805492861692909116919091179055600d829055600e81905560016011556000601255600c805461ffff60a01b19169055620001286200018d565b505050505062000422565b600a80546001600160a01b03838116610100818102610100600160a81b031985161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b62000197620001ea565b600a805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258620001cd3390565b6040516001600160a01b03909116815260200160405180910390a1565b600a5460ff1615620002355760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015260640160405180910390fd5b565b80516001600160a01b03811681146200024f57600080fd5b919050565b600080600080600060a086880312156200026d57600080fd5b620002788662000237565b9450620002886020870162000237565b9350620002986040870162000237565b6060870151608090970151959894975095949392505050565b634e487b7160e01b600052604160045260246000fd5b600181811c90821680620002dc57607f821691505b602082108103620002fd57634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200035157600081815260208120601f850160051c810160208610156200032c5750805b601f850160051c820191505b818110156200034d5782815560010162000338565b5050505b505050565b81516001600160401b03811115620003725762000372620002b1565b6200038a81620003838454620002c7565b8462000303565b602080601f831160018114620003c25760008415620003a95750858301515b600019600386901b1c1916600185901b1785556200034d565b600085815260208120601f198616915b82811015620003f357888601518255948401946001909101908401620003d2565b5085821015620004125787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b61416d80620004326000396000f3fe6080604052600436106103c35760003560e01c8063715018a6116101f2578063ac6072471161010d578063e6bb875d116100a0578063f2fde38b1161006f578063f2fde38b14610b27578063f33063e514610b47578063f831678414610b67578063fd03194514610b9757600080fd5b8063e6bb875d14610abf578063e985e9c514610adf578063eeb855b714610aff578063f0fb21b014610b1257600080fd5b8063c6275255116100dc578063c627525514610a49578063c7b0dcbc14610a69578063c87b56dd14610a7f578063d783925b14610a9f57600080fd5b8063ac607247146109d6578063b2787fc1146109e9578063b88d4fde14610a09578063c620c3fb14610a2957600080fd5b806395d89b4111610185578063a6db89f311610154578063a6db89f31461096b578063a93fef3b1461098b578063a945bf80146109ab578063aa1b103f146109c157600080fd5b806395d89b411461090b5780639c4780d814610920578063a22cb46514610936578063a550e73e1461095657600080fd5b8063884c51af116101c1578063884c51af1461085a5780638a1691c61461087a5780638a616bc0146108c85780638da5cb5b146108e857600080fd5b8063715018a6146107e257806379d1b0bb146107f75780638456cb591461080a578063845fe7f01461081f57600080fd5b80632b83a356116102e257806350174672116102755780636352211e116102445780636352211e14610764578063689843e0146107845780636c19e783146107a257806370a08231146107c257600080fd5b806350174672146106ea57806353ac010a1461070b5780635944c7531461072c5780635c975abb1461074c57600080fd5b80633c3ccc44116102b15780633c3ccc44146106825780633f4ba83a1461069757806342842e0e146106ac5780634dc2d4b4146106cc57600080fd5b80632b83a3561461060c5780632ddb26ce1461062c57806333effc351461064c578063397fb83d1461066257600080fd5b806311b61e591161035a578063238ac93311610329578063238ac9331461056d57806323b872dd1461058d578063254a4737146105ad5780632a55205a146105cd57600080fd5b806311b61e59146104ec578063164d3b3f1461050c57806317d70f7c1461052c57806318160ddd1461055057600080fd5b806306fdde031161039657806306fdde0314610452578063081812fc14610474578063091b578f146104ac578063095ea7b3146104cc57600080fd5b806301ffc9a7146103c8578063033b8e2d146103fd57806304634d8d1461041f57806304a418731461043f575b600080fd5b3480156103d457600080fd5b506103e86103e33660046134a8565b610bdf565b60405190151581526020015b60405180910390f35b34801561040957600080fd5b5061041d6104183660046134da565b610c0a565b005b34801561042b57600080fd5b5061041d61043a366004613513565b610c34565b61041d61044d3660046135ea565b610c4a565b34801561045e57600080fd5b50610467610ebf565b6040516103f491906136ba565b34801561048057600080fd5b5061049461048f3660046136cd565b610f51565b6040516001600160a01b0390911681526020016103f4565b3480156104b857600080fd5b5061041d6104c73660046136f4565b610f95565b3480156104d857600080fd5b5061041d6104e7366004613711565b610fbb565b3480156104f857600080fd5b5061041d61050736600461373d565b611041565b34801561051857600080fd5b5061041d6105273660046136cd565b6111a5565b34801561053857600080fd5b5061054260165481565b6040519081526020016103f4565b34801561055c57600080fd5b506001546000540360001901610542565b34801561057957600080fd5b50601354610494906001600160a01b031681565b34801561059957600080fd5b5061041d6105a83660046137b4565b6111b2565b3480156105b957600080fd5b5061041d6105c83660046136f4565b6111bd565b3480156105d957600080fd5b506105ed6105e83660046137f5565b6111e3565b604080516001600160a01b0390931683526020830191909152016103f4565b34801561061857600080fd5b50601454610494906001600160a01b031681565b34801561063857600080fd5b5061041d610647366004613817565b611291565b34801561065857600080fd5b5061054260125481565b34801561066e57600080fd5b50601554610494906001600160a01b031681565b34801561068e57600080fd5b5061041d6112a5565b3480156106a357600080fd5b5061041d6112c7565b3480156106b857600080fd5b5061041d6106c73660046137b4565b6112d9565b3480156106d857600080fd5b50600c546001600160a01b0316610494565b3480156106f657600080fd5b50600c546103e890600160a01b900460ff1681565b34801561071757600080fd5b50600c546103e890600160a81b900460ff1681565b34801561073857600080fd5b5061041d61074736600461384b565b6112f4565b34801561075857600080fd5b50600a5460ff166103e8565b34801561077057600080fd5b5061049461077f3660046136cd565b611307565b34801561079057600080fd5b50600b546001600160a01b0316610494565b3480156107ae57600080fd5b5061041d6107bd3660046134da565b611319565b3480156107ce57600080fd5b506105426107dd3660046134da565b611343565b3480156107ee57600080fd5b5061041d611391565b61041d610805366004613889565b6113a3565b34801561081657600080fd5b5061041d611517565b34801561082b57600080fd5b506103e861083a366004613817565b8051602081830181018051601a8252928201919093012091525460ff1681565b34801561086657600080fd5b5061041d6108753660046138f5565b611527565b34801561088657600080fd5b50610542610895366004613964565b82516020818501810180516019825292820195820195909520919094528352600091825260408083209093528152205481565b3480156108d457600080fd5b5061041d6108e33660046136cd565b611797565b3480156108f457600080fd5b50600a5461010090046001600160a01b0316610494565b34801561091757600080fd5b506104676117b3565b34801561092c57600080fd5b5061054260115481565b34801561094257600080fd5b5061041d6109513660046139be565b6117c2565b34801561096257600080fd5b50610467611857565b34801561097757600080fd5b5061041d610986366004613817565b6118e5565b34801561099757600080fd5b5061041d6109a63660046136cd565b6118f9565b3480156109b757600080fd5b50610542600d5481565b3480156109cd57600080fd5b5061041d611906565b61041d6109e4366004613889565b611918565b3480156109f557600080fd5b50610467610a043660046136cd565b61194b565b348015610a1557600080fd5b5061041d610a243660046139f7565b611964565b348015610a3557600080fd5b5061041d610a443660046134da565b6119ae565b348015610a5557600080fd5b5061041d610a643660046136cd565b6119d8565b348015610a7557600080fd5b50610542600e5481565b348015610a8b57600080fd5b50610467610a9a3660046136cd565b6119e5565b348015610aab57600080fd5b5061041d610aba3660046134da565b611b95565b348015610acb57600080fd5b5061041d610ada3660046135ea565b611bbf565b348015610aeb57600080fd5b506103e8610afa366004613a62565b611da0565b61041d610b0d3660046135ea565b611dce565b348015610b1e57600080fd5b50610467612032565b348015610b3357600080fd5b5061041d610b423660046134da565b61203f565b348015610b5357600080fd5b5061041d610b623660046134da565b6120b5565b348015610b7357600080fd5b506103e8610b823660046136cd565b60176020526000908152604090205460ff1681565b348015610ba357600080fd5b50610542610bb2366004613a90565b81516020818401810180516018825292820194820194909420919093529091526000908152604090205481565b60006307f5828d60e41b6001600160e01b031983161480610c045750610c04826120df565b92915050565b610c12612104565b601480546001600160a01b0319166001600160a01b0392909216919091179055565b610c3c612104565b610c468282612164565b5050565b610c5261221e565b600c54600160a81b900460ff161515600114610cb55760405162461bcd60e51b815260206004820181905260248201527f53313a205075626c69634d696e74696e67206973206e6f7420656e61626c656460448201526064015b60405180910390fd5b60008311610cd55760405162461bcd60e51b8152600401610cac90613ad4565b82601886604051610ce69190613b1c565b9081526020016040518091039020600086815260200190815260200160002054610d109190613b4e565b821015610d2f5760405162461bcd60e51b8152600401610cac90613b61565b610d3b85858484612264565b610d575760405162461bcd60e51b8152600401610cac90613b98565b6011548414610d785760405162461bcd60e51b8152600401610cac90613bcf565b82600d54610d869190613bff565b341015610da55760405162461bcd60e51b8152600401610cac90613c16565b82601886604051610db69190613b1c565b908152602001604051809103902060008681526020019081526020016000206000828254610de49190613b4e565b90915550600090505b83811015610e385760168054906000610e0583613c4d565b90915550506016546000908152601b60205260409020610e258782613cee565b5080610e3081613c4d565b915050610ded565b506001601a86604051610e4b9190613b1c565b908152604051908190036020019020805491151560ff19909216919091179055610e753384612312565b7fc2414d12b78578731f7e80923b81ba98d2acf1c3bf25f4791c1cb1ad952b7a0a3334856016548989604051610eb096959493929190613dad565b60405180910390a15050505050565b606060028054610ece90613c66565b80601f0160208091040260200160405190810160405280929190818152602001828054610efa90613c66565b8015610f475780601f10610f1c57610100808354040283529160200191610f47565b820191906000526020600020905b815481529060010190602001808311610f2a57829003601f168201915b5050505050905090565b6000610f5c8261232a565b610f79576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b610f9d612104565b600c8054911515600160a01b0260ff60a01b19909216919091179055565b6000610fc682611307565b9050806001600160a01b0316836001600160a01b031603610ffa5760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b03821614611031576110148133611da0565b611031576040516367d9dca160e11b815260040160405180910390fd5b61103c838383612363565b505050565b611049612104565b8260188560405161105a9190613b1c565b9081526020016040518091039020600084815260200190815260200160002060008282546110889190613b4e565b90915550600090505b838110156110dc57601680549060006110a983613c4d565b90915550506016546000908152601b602052604090206110c98682613cee565b50806110d481613c4d565b915050611091565b506001601a856040516110ef9190613b1c565b908152604051908190036020019020805491151560ff199092169190911790556111198584612312565b8015611165577f0a1d0f8f730dc1cb42eb95f5d2c2a8382cde5a72aef3f88f4579f5b2072a3caa85846016548786604051611158959493929190613df3565b60405180910390a161119e565b7f1377bb1625b496e0e83135978c8e3f472a5f0f2d92dd55e609019a829ee0da0e85846016548786604051610eb0959493929190613df3565b5050505050565b6111ad612104565b601255565b61103c8383836123bf565b6111c5612104565b600c8054911515600160a81b0260ff60a81b19909216919091179055565b60008281526009602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b03169282019290925282916112585750604080518082019091526008546001600160a01b0381168252600160a01b90046001600160601b031660208201525b602081015160009061271090611277906001600160601b031687613bff565b6112819190613e32565b91519350909150505b9250929050565b611299612104565b6010610c468282613cee565b6112ad612104565b6001601160008282546112c09190613b4e565b9091555050565b6112cf612104565b6112d76125b7565b565b61103c83838360405180602001604052806000815250611964565b6112fc612104565b61103c838383612609565b6000611312826126d4565b5192915050565b611321612104565b601380546001600160a01b0319166001600160a01b0392909216919091179055565b60006001600160a01b03821661136c576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600560205260409020546001600160401b031690565b611399612104565b6112d760006127f6565b6113ab61221e565b813410156113cb5760405162461bcd60e51b8152600401610cac90613c16565b6113d783338484612850565b6113f35760405162461bcd60e51b8152600401610cac90613b98565b601a836040516114039190613b1c565b9081526040519081900360200190205460ff16156114635760405162461bcd60e51b815260206004820152601f60248201527f53313a205072656d69756d20776f726420616c7265616479206d696e746564006044820152606401610cac565b6016805490600061147383613c4d565b91905055506001601a8460405161148a9190613b1c565b9081526040805160209281900383019020805460ff1916931515939093179092556016546000908152601b909152206114c38482613cee565b506114cf336001612312565b7f32861c52c1a2891e1afa90784b151ce269701fdfc4f74dabb30403a82bd7d03633346016548660115460405161150a959493929190613df3565b60405180910390a1505050565b61151f612104565b6112d7612868565b61152f61221e565b6040516331a9108f60e11b81526004810186905233906001600160a01b03861690636352211e90602401602060405180830381865afa158015611576573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061159a9190613e54565b6001600160a01b0316146115f05760405162461bcd60e51b815260206004820152601760248201527f53313a2073656e646572206973206e6f74206f776e65720000000000000000006044820152606401610cac565b6115fc838386846128a5565b6116185760405162461bcd60e51b8152600401610cac90613b98565b60115482146116395760405162461bcd60e51b8152600401610cac90613bcf565b6000858486856040516020016116529493929190613e71565b60408051601f1981840301815291815281516020928301206000818152601790935291205490915060ff16156116ca5760405162461bcd60e51b815260206004820152601a60248201527f53313a20546f6b656e20686173206265656e20636c61696d65640000000000006044820152606401610cac565b6000818152601760205260408120805460ff1916600117905560168054916116f183613c4d565b91905055506001601a856040516117089190613b1c565b9081526040805160209281900383019020805460ff1916931515939093179092556016546000908152601b909152206117418582613cee565b5061174d336001612312565b7f01af360bacfee77213752e92cabdd2a12f84fce4a56c089e48081034343f76753360006016548787604051611787959493929190613df3565b60405180910390a1505050505050565b61179f612104565b600090815260096020526040812055565b50565b606060038054610ece90613c66565b336001600160a01b038316036117eb5760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b600f805461186490613c66565b80601f016020809104026020016040519081016040528092919081815260200182805461189090613c66565b80156118dd5780601f106118b2576101008083540402835291602001916118dd565b820191906000526020600020905b8154815290600101906020018083116118c057829003601f168201915b505050505081565b6118ed612104565b600f610c468282613cee565b611901612104565b600e55565b61190e612104565b6112d76000600855565b61192061221e565b813410156119405760405162461bcd60e51b8152600401610cac90613c16565b6113d78383836128bd565b601b602052600090815260409020805461186490613c66565b61196f8484846123bf565b6001600160a01b0383163b156119a85761198b84848484612966565b6119a8576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b6119b6612104565b600c80546001600160a01b0319166001600160a01b0392909216919091179055565b6119e0612104565b600d55565b60606119f08261232a565b611a0d57604051630a14c4b560e41b815260040160405180910390fd5b6040805160208101909152600081526012548311611ab75760108054611a3290613c66565b80601f0160208091040260200160405190810160405280929190818152602001828054611a5e90613c66565b8015611aab5780601f10611a8057610100808354040283529160200191611aab565b820191906000526020600020905b815481529060010190602001808311611a8e57829003601f168201915b50505050509050611b45565b600f8054611ac490613c66565b80601f0160208091040260200160405190810160405280929190818152602001828054611af090613c66565b8015611b3d5780601f10611b1257610100808354040283529160200191611b3d565b820191906000526020600020905b815481529060010190602001808311611b2057829003601f168201915b505050505090505b8051600003611b635760405180602001604052806000815250611b8e565b80611b6d84612a4e565b604051602001611b7e929190613eb7565b6040516020818303038152906040525b9392505050565b611b9d612104565b600b80546001600160a01b0319166001600160a01b0392909216919091179055565b611bc761221e565b60008311611be75760405162461bcd60e51b8152600401610cac90613ad4565b82601986604051611bf89190613b1c565b90815260408051602092819003830190206000888152908352818120338252909252902054611c279190613b4e565b821015611c465760405162461bcd60e51b8152600401610cac90613b61565b611c538585843385612ae0565b611c6f5760405162461bcd60e51b8152600401610cac90613b98565b6011548414611c905760405162461bcd60e51b8152600401610cac90613bcf565b82601986604051611ca19190613b1c565b9081526040805160209281900383019020600088815290835281812033825290925281208054909190611cd5908490613b4e565b90915550600090505b83811015611d295760168054906000611cf683613c4d565b90915550506016546000908152601b60205260409020611d168782613cee565b5080611d2181613c4d565b915050611cde565b506001601a86604051611d3c9190613b1c565b908152604051908190036020019020805491151560ff19909216919091179055611d663384612312565b7f01af360bacfee77213752e92cabdd2a12f84fce4a56c089e48081034343f76753360006016548888604051610eb0959493929190613df3565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b611dd661221e565b600c54600160a01b900460ff161515600114611e405760405162461bcd60e51b815260206004820152602360248201527f53313a20416c6c6f774c6973744d696e74696e67206973206e6f7420656e61626044820152621b195960ea1b6064820152608401610cac565b60008311611e605760405162461bcd60e51b8152600401610cac90613ad4565b82600e541015611ece5760405162461bcd60e51b815260206004820152603360248201527f53313a206d696e746564207175616e7469747920697320686967686572207468604482015272616e206d6178207075626c6963206d696e747360681b6064820152608401610cac565b82601886604051611edf9190613b1c565b9081526020016040518091039020600086815260200190815260200160002054611f099190613b4e565b821015611f285760405162461bcd60e51b8152600401610cac90613b61565b611f358585843385612b8f565b611f515760405162461bcd60e51b8152600401610cac90613b98565b6011548414611f725760405162461bcd60e51b8152600401610cac90613bcf565b82600d54611f809190613bff565b341015611f9f5760405162461bcd60e51b8152600401610cac90613c16565b82601886604051611fb09190613b1c565b908152602001604051809103902060008681526020019081526020016000206000828254611fde9190613b4e565b90915550600090505b83811015610e385760168054906000611fff83613c4d565b90915550506016546000908152601b6020526040902061201f8782613cee565b508061202a81613c4d565b915050611fe7565b6010805461186490613c66565b612047612104565b6001600160a01b0381166120ac5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610cac565b6117b0816127f6565b6120bd612104565b601580546001600160a01b0319166001600160a01b0392909216919091179055565b60006001600160e01b0319821663152a902d60e11b1480610c045750610c0482612ba9565b600a546001600160a01b036101009091041633146112d75760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610cac565b6127106001600160601b038216111561218f5760405162461bcd60e51b8152600401610cac90613ee6565b6001600160a01b0382166121e55760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152606401610cac565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600855565b600a5460ff16156112d75760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610cac565b60008085858560405160200161227c93929190613f30565b6040516020818303038152906040528051906020012090506000816040516020016122d391907f19457468657265756d205369676e6564204d6573736167653a0a3332000000008152601c810191909152603c0190565b60408051601f198184030181529190528051602090910120601354909150612305906001600160a01b03168286612bf9565b925050505b949350505050565b341561232057612320612d3a565b610c468282612f2b565b60008160011115801561233e575060005482105b8015610c04575050600090815260046020526040902054600160e01b900460ff161590565b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b60006123ca826126d4565b9050836001600160a01b031681600001516001600160a01b0316146124015760405162a1148160e81b815260040160405180910390fd5b6000336001600160a01b038616148061241f575061241f8533611da0565b8061243a57503361242f84610f51565b6001600160a01b0316145b90508061245a57604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b03841661248157604051633a954ecd60e21b815260040160405180910390fd5b61248e8585856001612f45565b61249a60008487612363565b6001600160a01b038581166000908152600560209081526040808320805467ffffffffffffffff198082166001600160401b0392831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600490945282852080546001600160e01b031916909417600160a01b4290921691909102178355870180845292208054919390911661256e57600054821461256e57805460208601516001600160401b0316600160a01b026001600160e01b03199091166001600160a01b038a16171781555b50505082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461119e565b6125bf612f51565b600a805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b6127106001600160601b03821611156126345760405162461bcd60e51b8152600401610cac90613ee6565b6001600160a01b03821661268a5760405162461bcd60e51b815260206004820152601b60248201527f455243323938313a20496e76616c696420706172616d657465727300000000006044820152606401610cac565b6040805180820182526001600160a01b0393841681526001600160601b0392831660208083019182526000968752600990529190942093519051909116600160a01b029116179055565b604080516060810182526000808252602082018190529181019190915281806001116127dd576000548110156127dd57600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff161515918101829052906127db5780516001600160a01b031615612772579392505050565b5060001901600081815260046020908152604091829020825160608101845290546001600160a01b038116808352600160a01b82046001600160401b031693830193909352600160e01b900460ff16151592810192909252156127d6579392505050565b612772565b505b604051636f96cda160e11b815260040160405180910390fd5b600a80546001600160a01b03838116610100818102610100600160a81b031985161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60008085858560405160200161227c93929190613f57565b61287061221e565b600a805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586125ec3390565b60008085858560405160200161227c93929190613f91565b60008084846040516020016128d3929190613fc5565b60405160208183030381529060405280519060200120905060008160405160200161292a91907f19457468657265756d205369676e6564204d6573736167653a0a3332000000008152601c810191909152603c0190565b60408051601f19818403018152919052805160209091012060135490915061295c906001600160a01b03168286612bf9565b9695505050505050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a029061299b903390899088908890600401613fe7565b6020604051808303816000875af19250505080156129d6575060408051601f3d908101601f191682019092526129d39181019061401a565b60015b612a34573d808015612a04576040519150601f19603f3d011682016040523d82523d6000602084013e612a09565b606091505b508051600003612a2c576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061230a565b60606000612a5b83612f9a565b60010190506000816001600160401b03811115612a7a57612a7a613548565b6040519080825280601f01601f191660200182016040528015612aa4576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a8504945084612aae57509392505050565b60008086868686604051602001612afa9493929190614037565b604051602081830303815290604052805190602001209050600081604051602001612b5191907f19457468657265756d205369676e6564204d6573736167653a0a3332000000008152601c810191909152603c0190565b60408051601f198184030181529190528051602090910120601354909150612b83906001600160a01b03168286612bf9565b98975050505050505050565b60008086868686604051602001612afa9493929190614083565b60006001600160e01b031982166380ac58cd60e01b1480612bda57506001600160e01b03198216635b5e139f60e01b145b80610c0457506301ffc9a760e01b6001600160e01b0319831614610c04565b6000806000612c088585613072565b90925090506000816004811115612c2157612c216140bf565b148015612c3f5750856001600160a01b0316826001600160a01b0316145b15612c4f57600192505050611b8e565b600080876001600160a01b0316631626ba7e60e01b8888604051602401612c779291906140d5565b60408051601f198184030181529181526020820180516001600160e01b03166001600160e01b0319909416939093179092529051612cb59190613b1c565b600060405180830381855afa9150503d8060008114612cf0576040519150601f19603f3d011682016040523d82523d6000602084013e612cf5565b606091505b5091509150818015612d08575080516020145b8015612b8357508051630b135d3f60e11b90612d2d90830160209081019084016140ee565b1498975050505050505050565b60006064612d4934605f613bff565b612d539190613e32565b6014546040519192506000916001600160a01b039091169083908381818185875af1925050503d8060008114612da5576040519150601f19603f3d011682016040523d82523d6000602084013e612daa565b606091505b5050905080612df35760405162461bcd60e51b815260206004820152601560248201527414cc4e88151c985b9cd9995c88104819985a5b1959605a1b6044820152606401610cac565b601454604080516001600160a01b039092168252602082018490527f8c9a4f13b67cb64d7c6aa1ae0c9bf07694af521a28b93e7060020810ab4bc59f910160405180910390a1612e438234614107565b6015546040519193506001600160a01b0316908390600081818185875af1925050503d8060008114612e91576040519150601f19603f3d011682016040523d82523d6000602084013e612e96565b606091505b50508091505080612ee15760405162461bcd60e51b815260206004820152601560248201527414cc4e88151c985b9cd9995c88108819985a5b1959605a1b6044820152606401610cac565b601554604080516001600160a01b039092168252602082018490527f8c9a4f13b67cb64d7c6aa1ae0c9bf07694af521a28b93e7060020810ab4bc59f910160405180910390a15050565b610c468282604051806020016040528060008152506130b4565b6119a884848484613288565b600a5460ff166112d75760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610cac565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b8310612fd95772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef81000000008310613005576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc10000831061302357662386f26fc10000830492506010015b6305f5e100831061303b576305f5e100830492506008015b612710831061304f57612710830492506004015b60648310613061576064830492506002015b600a8310610c045760010192915050565b60008082516041036130a85760208301516040840151606085015160001a61309c8782858561331d565b9450945050505061128a565b5060009050600261128a565b6000546001600160a01b0384166130dd57604051622e076360e81b815260040160405180910390fd5b826000036130fe5760405163b562e8dd60e01b815260040160405180910390fd5b61310b6000858386612f45565b6001600160a01b038416600081815260056020908152604080832080546fffffffffffffffffffffffffffffffff1981166001600160401b038083168b0181169182176801000000000000000067ffffffffffffffff1990941690921783900481168b01811690920217909155858452600490925290912080546001600160e01b0319168317600160a01b42909316929092029190911790558190818501903b15613233575b60405182906001600160a01b038816906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a46131fc6000878480600101955087612966565b613219576040516368d2bf6b60e11b815260040160405180910390fd5b8082106131b157826000541461322e57600080fd5b613278565b5b6040516001830192906001600160a01b038816906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4808210613234575b5060009081556119a89085838684565b6001600160a01b038416158015906132a857506001600160a01b03831615155b80156132bb57506132b933836133e1565b155b156133185760405162461bcd60e51b815260206004820152602760248201527f455243373231414f70657261746f7246696c7465723a20696c6c6567616c206f6044820152663832b930ba37b960c91b6064820152608401610cac565b6119a8565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083111561335457506000905060036133d8565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa1580156133a8573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166133d1576000600192509250506133d8565b9150600090505b94509492505050565b600b546000906001600160a01b0316806133ff576001915050610c04565b61340883611307565b6001600160a01b0316846001600160a01b03160361342a576001915050610c04565b604051630c962cb760e11b81523360048201526001600160a01b0382169063192c596e90602401602060405180830381865afa15801561346e573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061230a919061411a565b6001600160e01b0319811681146117b057600080fd5b6000602082840312156134ba57600080fd5b8135611b8e81613492565b6001600160a01b03811681146117b057600080fd5b6000602082840312156134ec57600080fd5b8135611b8e816134c5565b80356001600160601b038116811461350e57600080fd5b919050565b6000806040838503121561352657600080fd5b8235613531816134c5565b915061353f602084016134f7565b90509250929050565b634e487b7160e01b600052604160045260246000fd5b600082601f83011261356f57600080fd5b81356001600160401b038082111561358957613589613548565b604051601f8301601f19908116603f011681019082821181831017156135b1576135b1613548565b816040528381528660208588010111156135ca57600080fd5b836020870160208301376000602085830101528094505050505092915050565b600080600080600060a0868803121561360257600080fd5b85356001600160401b038082111561361957600080fd5b61362589838a0161355e565b9650602088013595506040880135945060608801359350608088013591508082111561365057600080fd5b5061365d8882890161355e565b9150509295509295909350565b60005b8381101561368557818101518382015260200161366d565b50506000910152565b600081518084526136a681602086016020860161366a565b601f01601f19169290920160200192915050565b602081526000611b8e602083018461368e565b6000602082840312156136df57600080fd5b5035919050565b80151581146117b057600080fd5b60006020828403121561370657600080fd5b8135611b8e816136e6565b6000806040838503121561372457600080fd5b823561372f816134c5565b946020939093013593505050565b600080600080600060a0868803121561375557600080fd5b8535613760816134c5565b945060208601356001600160401b0381111561377b57600080fd5b6137878882890161355e565b945050604086013592506060860135915060808601356137a6816136e6565b809150509295509295909350565b6000806000606084860312156137c957600080fd5b83356137d4816134c5565b925060208401356137e4816134c5565b929592945050506040919091013590565b6000806040838503121561380857600080fd5b50508035926020909101359150565b60006020828403121561382957600080fd5b81356001600160401b0381111561383f57600080fd5b61230a8482850161355e565b60008060006060848603121561386057600080fd5b833592506020840135613872816134c5565b9150613880604085016134f7565b90509250925092565b60008060006060848603121561389e57600080fd5b83356001600160401b03808211156138b557600080fd5b6138c18783880161355e565b94506020860135935060408601359150808211156138de57600080fd5b506138eb8682870161355e565b9150509250925092565b600080600080600060a0868803121561390d57600080fd5b85359450602086013561391f816134c5565b935060408601356001600160401b038082111561393b57600080fd5b61394789838a0161355e565b945060608801359350608088013591508082111561365057600080fd5b60008060006060848603121561397957600080fd5b83356001600160401b0381111561398f57600080fd5b61399b8682870161355e565b9350506020840135915060408401356139b3816134c5565b809150509250925092565b600080604083850312156139d157600080fd5b82356139dc816134c5565b915060208301356139ec816136e6565b809150509250929050565b60008060008060808587031215613a0d57600080fd5b8435613a18816134c5565b93506020850135613a28816134c5565b92506040850135915060608501356001600160401b03811115613a4a57600080fd5b613a568782880161355e565b91505092959194509250565b60008060408385031215613a7557600080fd5b8235613a80816134c5565b915060208301356139ec816134c5565b60008060408385031215613aa357600080fd5b82356001600160401b03811115613ab957600080fd5b613ac58582860161355e565b95602094909401359450505050565b60208082526028908201527f53313a206d696e74207175616e74697479206d75737420626520677265617465604082015267072207468616e20360c41b606082015260800190565b60008251613b2e81846020870161366a565b9190910192915050565b634e487b7160e01b600052601160045260246000fd5b80820180821115610c0457610c04613b38565b6020808252601a908201527f53313a2077726f6e67207175616e7469747920746f206d696e74000000000000604082015260600190565b60208082526017908201527f53313a207369676e6174757265206e6f742076616c6964000000000000000000604082015260600190565b60208082526016908201527529989d103bb937b733903937bab73210373ab6b132b960511b604082015260600190565b8082028115828204841417610c0457610c04613b38565b60208082526017908201527f53313a2076616c75652073656e74206973206c6f776572000000000000000000604082015260600190565b600060018201613c5f57613c5f613b38565b5060010190565b600181811c90821680613c7a57607f821691505b602082108103613c9a57634e487b7160e01b600052602260045260246000fd5b50919050565b601f82111561103c57600081815260208120601f850160051c81016020861015613cc75750805b601f850160051c820191505b81811015613ce657828155600101613cd3565b505050505050565b81516001600160401b03811115613d0757613d07613548565b613d1b81613d158454613c66565b84613ca0565b602080601f831160018114613d505760008415613d385750858301515b600019600386901b1c1916600185901b178555613ce6565b600085815260208120601f198616915b82811015613d7f57888601518255948401946001909101908401613d60565b5085821015613d9d5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60018060a01b038716815285602082015284604082015283606082015260c060808201526000613de060c083018561368e565b90508260a0830152979650505050505050565b60018060a01b038616815284602082015283604082015260a060608201526000613e2060a083018561368e565b90508260808301529695505050505050565b600082613e4f57634e487b7160e01b600052601260045260246000fd5b500490565b600060208284031215613e6657600080fd5b8151611b8e816134c5565b84815260008451613e8981602085016020890161366a565b80830190506001600160601b03198560601b1660208201528360348201526054810191505095945050505050565b60008351613ec981846020880161366a565b835190830190613edd81836020880161366a565b01949350505050565b6020808252602a908201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646040820152692073616c65507269636560b01b606082015260800190565b60008451613f4281846020890161366a565b91909101928352506020820152604001919050565b60008451613f6981846020890161366a565b60609490941b6001600160601b03191691909301908152601481019190915260340192915050565b60008451613fa381846020890161366a565b919091019283525060601b6001600160601b0319166020820152603401919050565b60008351613fd781846020880161366a565b9190910191825250602001919050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061295c9083018461368e565b60006020828403121561402c57600080fd5b8151611b8e81613492565b60008551614049818460208a0161366a565b9190910193845250602083019190915260601b6001600160601b0319166040820152665331436c61696d60c81b6054820152605b01919050565b60008551614095818460208a0161366a565b9190910193845250602083019190915260601b6001600160601b0319166040820152605401919050565b634e487b7160e01b600052602160045260246000fd5b82815260406020820152600061230a604083018461368e565b60006020828403121561410057600080fd5b5051919050565b81810381811115610c0457610c04613b38565b60006020828403121561412c57600080fd5b8151611b8e816136e656fea264697066735822122051156574ddc8058cd72920887e55213037376aff4f654fac80f3252d8ba4608b64736f6c634300081100330000000000000000000000009c5e88334ca3d54c21464d40b88f1405b9f8dcaa0000000000000000000000007b74134152a65b94d957f67178bd91a8fd729f4000000000000000000000000045c270aa1ab991a879eda48d59c19aebc63f4da0000000000000000000000000000000000000000000000000013c3107490280000000000000000000000000000000000000000000000000000000000000000028

Deployed Bytecode

0x6080604052600436106103c35760003560e01c8063715018a6116101f2578063ac6072471161010d578063e6bb875d116100a0578063f2fde38b1161006f578063f2fde38b14610b27578063f33063e514610b47578063f831678414610b67578063fd03194514610b9757600080fd5b8063e6bb875d14610abf578063e985e9c514610adf578063eeb855b714610aff578063f0fb21b014610b1257600080fd5b8063c6275255116100dc578063c627525514610a49578063c7b0dcbc14610a69578063c87b56dd14610a7f578063d783925b14610a9f57600080fd5b8063ac607247146109d6578063b2787fc1146109e9578063b88d4fde14610a09578063c620c3fb14610a2957600080fd5b806395d89b4111610185578063a6db89f311610154578063a6db89f31461096b578063a93fef3b1461098b578063a945bf80146109ab578063aa1b103f146109c157600080fd5b806395d89b411461090b5780639c4780d814610920578063a22cb46514610936578063a550e73e1461095657600080fd5b8063884c51af116101c1578063884c51af1461085a5780638a1691c61461087a5780638a616bc0146108c85780638da5cb5b146108e857600080fd5b8063715018a6146107e257806379d1b0bb146107f75780638456cb591461080a578063845fe7f01461081f57600080fd5b80632b83a356116102e257806350174672116102755780636352211e116102445780636352211e14610764578063689843e0146107845780636c19e783146107a257806370a08231146107c257600080fd5b806350174672146106ea57806353ac010a1461070b5780635944c7531461072c5780635c975abb1461074c57600080fd5b80633c3ccc44116102b15780633c3ccc44146106825780633f4ba83a1461069757806342842e0e146106ac5780634dc2d4b4146106cc57600080fd5b80632b83a3561461060c5780632ddb26ce1461062c57806333effc351461064c578063397fb83d1461066257600080fd5b806311b61e591161035a578063238ac93311610329578063238ac9331461056d57806323b872dd1461058d578063254a4737146105ad5780632a55205a146105cd57600080fd5b806311b61e59146104ec578063164d3b3f1461050c57806317d70f7c1461052c57806318160ddd1461055057600080fd5b806306fdde031161039657806306fdde0314610452578063081812fc14610474578063091b578f146104ac578063095ea7b3146104cc57600080fd5b806301ffc9a7146103c8578063033b8e2d146103fd57806304634d8d1461041f57806304a418731461043f575b600080fd5b3480156103d457600080fd5b506103e86103e33660046134a8565b610bdf565b60405190151581526020015b60405180910390f35b34801561040957600080fd5b5061041d6104183660046134da565b610c0a565b005b34801561042b57600080fd5b5061041d61043a366004613513565b610c34565b61041d61044d3660046135ea565b610c4a565b34801561045e57600080fd5b50610467610ebf565b6040516103f491906136ba565b34801561048057600080fd5b5061049461048f3660046136cd565b610f51565b6040516001600160a01b0390911681526020016103f4565b3480156104b857600080fd5b5061041d6104c73660046136f4565b610f95565b3480156104d857600080fd5b5061041d6104e7366004613711565b610fbb565b3480156104f857600080fd5b5061041d61050736600461373d565b611041565b34801561051857600080fd5b5061041d6105273660046136cd565b6111a5565b34801561053857600080fd5b5061054260165481565b6040519081526020016103f4565b34801561055c57600080fd5b506001546000540360001901610542565b34801561057957600080fd5b50601354610494906001600160a01b031681565b34801561059957600080fd5b5061041d6105a83660046137b4565b6111b2565b3480156105b957600080fd5b5061041d6105c83660046136f4565b6111bd565b3480156105d957600080fd5b506105ed6105e83660046137f5565b6111e3565b604080516001600160a01b0390931683526020830191909152016103f4565b34801561061857600080fd5b50601454610494906001600160a01b031681565b34801561063857600080fd5b5061041d610647366004613817565b611291565b34801561065857600080fd5b5061054260125481565b34801561066e57600080fd5b50601554610494906001600160a01b031681565b34801561068e57600080fd5b5061041d6112a5565b3480156106a357600080fd5b5061041d6112c7565b3480156106b857600080fd5b5061041d6106c73660046137b4565b6112d9565b3480156106d857600080fd5b50600c546001600160a01b0316610494565b3480156106f657600080fd5b50600c546103e890600160a01b900460ff1681565b34801561071757600080fd5b50600c546103e890600160a81b900460ff1681565b34801561073857600080fd5b5061041d61074736600461384b565b6112f4565b34801561075857600080fd5b50600a5460ff166103e8565b34801561077057600080fd5b5061049461077f3660046136cd565b611307565b34801561079057600080fd5b50600b546001600160a01b0316610494565b3480156107ae57600080fd5b5061041d6107bd3660046134da565b611319565b3480156107ce57600080fd5b506105426107dd3660046134da565b611343565b3480156107ee57600080fd5b5061041d611391565b61041d610805366004613889565b6113a3565b34801561081657600080fd5b5061041d611517565b34801561082b57600080fd5b506103e861083a366004613817565b8051602081830181018051601a8252928201919093012091525460ff1681565b34801561086657600080fd5b5061041d6108753660046138f5565b611527565b34801561088657600080fd5b50610542610895366004613964565b82516020818501810180516019825292820195820195909520919094528352600091825260408083209093528152205481565b3480156108d457600080fd5b5061041d6108e33660046136cd565b611797565b3480156108f457600080fd5b50600a5461010090046001600160a01b0316610494565b34801561091757600080fd5b506104676117b3565b34801561092c57600080fd5b5061054260115481565b34801561094257600080fd5b5061041d6109513660046139be565b6117c2565b34801561096257600080fd5b50610467611857565b34801561097757600080fd5b5061041d610986366004613817565b6118e5565b34801561099757600080fd5b5061041d6109a63660046136cd565b6118f9565b3480156109b757600080fd5b50610542600d5481565b3480156109cd57600080fd5b5061041d611906565b61041d6109e4366004613889565b611918565b3480156109f557600080fd5b50610467610a043660046136cd565b61194b565b348015610a1557600080fd5b5061041d610a243660046139f7565b611964565b348015610a3557600080fd5b5061041d610a443660046134da565b6119ae565b348015610a5557600080fd5b5061041d610a643660046136cd565b6119d8565b348015610a7557600080fd5b50610542600e5481565b348015610a8b57600080fd5b50610467610a9a3660046136cd565b6119e5565b348015610aab57600080fd5b5061041d610aba3660046134da565b611b95565b348015610acb57600080fd5b5061041d610ada3660046135ea565b611bbf565b348015610aeb57600080fd5b506103e8610afa366004613a62565b611da0565b61041d610b0d3660046135ea565b611dce565b348015610b1e57600080fd5b50610467612032565b348015610b3357600080fd5b5061041d610b423660046134da565b61203f565b348015610b5357600080fd5b5061041d610b623660046134da565b6120b5565b348015610b7357600080fd5b506103e8610b823660046136cd565b60176020526000908152604090205460ff1681565b348015610ba357600080fd5b50610542610bb2366004613a90565b81516020818401810180516018825292820194820194909420919093529091526000908152604090205481565b60006307f5828d60e41b6001600160e01b031983161480610c045750610c04826120df565b92915050565b610c12612104565b601480546001600160a01b0319166001600160a01b0392909216919091179055565b610c3c612104565b610c468282612164565b5050565b610c5261221e565b600c54600160a81b900460ff161515600114610cb55760405162461bcd60e51b815260206004820181905260248201527f53313a205075626c69634d696e74696e67206973206e6f7420656e61626c656460448201526064015b60405180910390fd5b60008311610cd55760405162461bcd60e51b8152600401610cac90613ad4565b82601886604051610ce69190613b1c565b9081526020016040518091039020600086815260200190815260200160002054610d109190613b4e565b821015610d2f5760405162461bcd60e51b8152600401610cac90613b61565b610d3b85858484612264565b610d575760405162461bcd60e51b8152600401610cac90613b98565b6011548414610d785760405162461bcd60e51b8152600401610cac90613bcf565b82600d54610d869190613bff565b341015610da55760405162461bcd60e51b8152600401610cac90613c16565b82601886604051610db69190613b1c565b908152602001604051809103902060008681526020019081526020016000206000828254610de49190613b4e565b90915550600090505b83811015610e385760168054906000610e0583613c4d565b90915550506016546000908152601b60205260409020610e258782613cee565b5080610e3081613c4d565b915050610ded565b506001601a86604051610e4b9190613b1c565b908152604051908190036020019020805491151560ff19909216919091179055610e753384612312565b7fc2414d12b78578731f7e80923b81ba98d2acf1c3bf25f4791c1cb1ad952b7a0a3334856016548989604051610eb096959493929190613dad565b60405180910390a15050505050565b606060028054610ece90613c66565b80601f0160208091040260200160405190810160405280929190818152602001828054610efa90613c66565b8015610f475780601f10610f1c57610100808354040283529160200191610f47565b820191906000526020600020905b815481529060010190602001808311610f2a57829003601f168201915b5050505050905090565b6000610f5c8261232a565b610f79576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b610f9d612104565b600c8054911515600160a01b0260ff60a01b19909216919091179055565b6000610fc682611307565b9050806001600160a01b0316836001600160a01b031603610ffa5760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b03821614611031576110148133611da0565b611031576040516367d9dca160e11b815260040160405180910390fd5b61103c838383612363565b505050565b611049612104565b8260188560405161105a9190613b1c565b9081526020016040518091039020600084815260200190815260200160002060008282546110889190613b4e565b90915550600090505b838110156110dc57601680549060006110a983613c4d565b90915550506016546000908152601b602052604090206110c98682613cee565b50806110d481613c4d565b915050611091565b506001601a856040516110ef9190613b1c565b908152604051908190036020019020805491151560ff199092169190911790556111198584612312565b8015611165577f0a1d0f8f730dc1cb42eb95f5d2c2a8382cde5a72aef3f88f4579f5b2072a3caa85846016548786604051611158959493929190613df3565b60405180910390a161119e565b7f1377bb1625b496e0e83135978c8e3f472a5f0f2d92dd55e609019a829ee0da0e85846016548786604051610eb0959493929190613df3565b5050505050565b6111ad612104565b601255565b61103c8383836123bf565b6111c5612104565b600c8054911515600160a81b0260ff60a81b19909216919091179055565b60008281526009602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b03169282019290925282916112585750604080518082019091526008546001600160a01b0381168252600160a01b90046001600160601b031660208201525b602081015160009061271090611277906001600160601b031687613bff565b6112819190613e32565b91519350909150505b9250929050565b611299612104565b6010610c468282613cee565b6112ad612104565b6001601160008282546112c09190613b4e565b9091555050565b6112cf612104565b6112d76125b7565b565b61103c83838360405180602001604052806000815250611964565b6112fc612104565b61103c838383612609565b6000611312826126d4565b5192915050565b611321612104565b601380546001600160a01b0319166001600160a01b0392909216919091179055565b60006001600160a01b03821661136c576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600560205260409020546001600160401b031690565b611399612104565b6112d760006127f6565b6113ab61221e565b813410156113cb5760405162461bcd60e51b8152600401610cac90613c16565b6113d783338484612850565b6113f35760405162461bcd60e51b8152600401610cac90613b98565b601a836040516114039190613b1c565b9081526040519081900360200190205460ff16156114635760405162461bcd60e51b815260206004820152601f60248201527f53313a205072656d69756d20776f726420616c7265616479206d696e746564006044820152606401610cac565b6016805490600061147383613c4d565b91905055506001601a8460405161148a9190613b1c565b9081526040805160209281900383019020805460ff1916931515939093179092556016546000908152601b909152206114c38482613cee565b506114cf336001612312565b7f32861c52c1a2891e1afa90784b151ce269701fdfc4f74dabb30403a82bd7d03633346016548660115460405161150a959493929190613df3565b60405180910390a1505050565b61151f612104565b6112d7612868565b61152f61221e565b6040516331a9108f60e11b81526004810186905233906001600160a01b03861690636352211e90602401602060405180830381865afa158015611576573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061159a9190613e54565b6001600160a01b0316146115f05760405162461bcd60e51b815260206004820152601760248201527f53313a2073656e646572206973206e6f74206f776e65720000000000000000006044820152606401610cac565b6115fc838386846128a5565b6116185760405162461bcd60e51b8152600401610cac90613b98565b60115482146116395760405162461bcd60e51b8152600401610cac90613bcf565b6000858486856040516020016116529493929190613e71565b60408051601f1981840301815291815281516020928301206000818152601790935291205490915060ff16156116ca5760405162461bcd60e51b815260206004820152601a60248201527f53313a20546f6b656e20686173206265656e20636c61696d65640000000000006044820152606401610cac565b6000818152601760205260408120805460ff1916600117905560168054916116f183613c4d565b91905055506001601a856040516117089190613b1c565b9081526040805160209281900383019020805460ff1916931515939093179092556016546000908152601b909152206117418582613cee565b5061174d336001612312565b7f01af360bacfee77213752e92cabdd2a12f84fce4a56c089e48081034343f76753360006016548787604051611787959493929190613df3565b60405180910390a1505050505050565b61179f612104565b600090815260096020526040812055565b50565b606060038054610ece90613c66565b336001600160a01b038316036117eb5760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b600f805461186490613c66565b80601f016020809104026020016040519081016040528092919081815260200182805461189090613c66565b80156118dd5780601f106118b2576101008083540402835291602001916118dd565b820191906000526020600020905b8154815290600101906020018083116118c057829003601f168201915b505050505081565b6118ed612104565b600f610c468282613cee565b611901612104565b600e55565b61190e612104565b6112d76000600855565b61192061221e565b813410156119405760405162461bcd60e51b8152600401610cac90613c16565b6113d78383836128bd565b601b602052600090815260409020805461186490613c66565b61196f8484846123bf565b6001600160a01b0383163b156119a85761198b84848484612966565b6119a8576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b6119b6612104565b600c80546001600160a01b0319166001600160a01b0392909216919091179055565b6119e0612104565b600d55565b60606119f08261232a565b611a0d57604051630a14c4b560e41b815260040160405180910390fd5b6040805160208101909152600081526012548311611ab75760108054611a3290613c66565b80601f0160208091040260200160405190810160405280929190818152602001828054611a5e90613c66565b8015611aab5780601f10611a8057610100808354040283529160200191611aab565b820191906000526020600020905b815481529060010190602001808311611a8e57829003601f168201915b50505050509050611b45565b600f8054611ac490613c66565b80601f0160208091040260200160405190810160405280929190818152602001828054611af090613c66565b8015611b3d5780601f10611b1257610100808354040283529160200191611b3d565b820191906000526020600020905b815481529060010190602001808311611b2057829003601f168201915b505050505090505b8051600003611b635760405180602001604052806000815250611b8e565b80611b6d84612a4e565b604051602001611b7e929190613eb7565b6040516020818303038152906040525b9392505050565b611b9d612104565b600b80546001600160a01b0319166001600160a01b0392909216919091179055565b611bc761221e565b60008311611be75760405162461bcd60e51b8152600401610cac90613ad4565b82601986604051611bf89190613b1c565b90815260408051602092819003830190206000888152908352818120338252909252902054611c279190613b4e565b821015611c465760405162461bcd60e51b8152600401610cac90613b61565b611c538585843385612ae0565b611c6f5760405162461bcd60e51b8152600401610cac90613b98565b6011548414611c905760405162461bcd60e51b8152600401610cac90613bcf565b82601986604051611ca19190613b1c565b9081526040805160209281900383019020600088815290835281812033825290925281208054909190611cd5908490613b4e565b90915550600090505b83811015611d295760168054906000611cf683613c4d565b90915550506016546000908152601b60205260409020611d168782613cee565b5080611d2181613c4d565b915050611cde565b506001601a86604051611d3c9190613b1c565b908152604051908190036020019020805491151560ff19909216919091179055611d663384612312565b7f01af360bacfee77213752e92cabdd2a12f84fce4a56c089e48081034343f76753360006016548888604051610eb0959493929190613df3565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b611dd661221e565b600c54600160a01b900460ff161515600114611e405760405162461bcd60e51b815260206004820152602360248201527f53313a20416c6c6f774c6973744d696e74696e67206973206e6f7420656e61626044820152621b195960ea1b6064820152608401610cac565b60008311611e605760405162461bcd60e51b8152600401610cac90613ad4565b82600e541015611ece5760405162461bcd60e51b815260206004820152603360248201527f53313a206d696e746564207175616e7469747920697320686967686572207468604482015272616e206d6178207075626c6963206d696e747360681b6064820152608401610cac565b82601886604051611edf9190613b1c565b9081526020016040518091039020600086815260200190815260200160002054611f099190613b4e565b821015611f285760405162461bcd60e51b8152600401610cac90613b61565b611f358585843385612b8f565b611f515760405162461bcd60e51b8152600401610cac90613b98565b6011548414611f725760405162461bcd60e51b8152600401610cac90613bcf565b82600d54611f809190613bff565b341015611f9f5760405162461bcd60e51b8152600401610cac90613c16565b82601886604051611fb09190613b1c565b908152602001604051809103902060008681526020019081526020016000206000828254611fde9190613b4e565b90915550600090505b83811015610e385760168054906000611fff83613c4d565b90915550506016546000908152601b6020526040902061201f8782613cee565b508061202a81613c4d565b915050611fe7565b6010805461186490613c66565b612047612104565b6001600160a01b0381166120ac5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610cac565b6117b0816127f6565b6120bd612104565b601580546001600160a01b0319166001600160a01b0392909216919091179055565b60006001600160e01b0319821663152a902d60e11b1480610c045750610c0482612ba9565b600a546001600160a01b036101009091041633146112d75760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610cac565b6127106001600160601b038216111561218f5760405162461bcd60e51b8152600401610cac90613ee6565b6001600160a01b0382166121e55760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152606401610cac565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600855565b600a5460ff16156112d75760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610cac565b60008085858560405160200161227c93929190613f30565b6040516020818303038152906040528051906020012090506000816040516020016122d391907f19457468657265756d205369676e6564204d6573736167653a0a3332000000008152601c810191909152603c0190565b60408051601f198184030181529190528051602090910120601354909150612305906001600160a01b03168286612bf9565b925050505b949350505050565b341561232057612320612d3a565b610c468282612f2b565b60008160011115801561233e575060005482105b8015610c04575050600090815260046020526040902054600160e01b900460ff161590565b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b60006123ca826126d4565b9050836001600160a01b031681600001516001600160a01b0316146124015760405162a1148160e81b815260040160405180910390fd5b6000336001600160a01b038616148061241f575061241f8533611da0565b8061243a57503361242f84610f51565b6001600160a01b0316145b90508061245a57604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b03841661248157604051633a954ecd60e21b815260040160405180910390fd5b61248e8585856001612f45565b61249a60008487612363565b6001600160a01b038581166000908152600560209081526040808320805467ffffffffffffffff198082166001600160401b0392831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600490945282852080546001600160e01b031916909417600160a01b4290921691909102178355870180845292208054919390911661256e57600054821461256e57805460208601516001600160401b0316600160a01b026001600160e01b03199091166001600160a01b038a16171781555b50505082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461119e565b6125bf612f51565b600a805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b6127106001600160601b03821611156126345760405162461bcd60e51b8152600401610cac90613ee6565b6001600160a01b03821661268a5760405162461bcd60e51b815260206004820152601b60248201527f455243323938313a20496e76616c696420706172616d657465727300000000006044820152606401610cac565b6040805180820182526001600160a01b0393841681526001600160601b0392831660208083019182526000968752600990529190942093519051909116600160a01b029116179055565b604080516060810182526000808252602082018190529181019190915281806001116127dd576000548110156127dd57600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff161515918101829052906127db5780516001600160a01b031615612772579392505050565b5060001901600081815260046020908152604091829020825160608101845290546001600160a01b038116808352600160a01b82046001600160401b031693830193909352600160e01b900460ff16151592810192909252156127d6579392505050565b612772565b505b604051636f96cda160e11b815260040160405180910390fd5b600a80546001600160a01b03838116610100818102610100600160a81b031985161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60008085858560405160200161227c93929190613f57565b61287061221e565b600a805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586125ec3390565b60008085858560405160200161227c93929190613f91565b60008084846040516020016128d3929190613fc5565b60405160208183030381529060405280519060200120905060008160405160200161292a91907f19457468657265756d205369676e6564204d6573736167653a0a3332000000008152601c810191909152603c0190565b60408051601f19818403018152919052805160209091012060135490915061295c906001600160a01b03168286612bf9565b9695505050505050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a029061299b903390899088908890600401613fe7565b6020604051808303816000875af19250505080156129d6575060408051601f3d908101601f191682019092526129d39181019061401a565b60015b612a34573d808015612a04576040519150601f19603f3d011682016040523d82523d6000602084013e612a09565b606091505b508051600003612a2c576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061230a565b60606000612a5b83612f9a565b60010190506000816001600160401b03811115612a7a57612a7a613548565b6040519080825280601f01601f191660200182016040528015612aa4576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a8504945084612aae57509392505050565b60008086868686604051602001612afa9493929190614037565b604051602081830303815290604052805190602001209050600081604051602001612b5191907f19457468657265756d205369676e6564204d6573736167653a0a3332000000008152601c810191909152603c0190565b60408051601f198184030181529190528051602090910120601354909150612b83906001600160a01b03168286612bf9565b98975050505050505050565b60008086868686604051602001612afa9493929190614083565b60006001600160e01b031982166380ac58cd60e01b1480612bda57506001600160e01b03198216635b5e139f60e01b145b80610c0457506301ffc9a760e01b6001600160e01b0319831614610c04565b6000806000612c088585613072565b90925090506000816004811115612c2157612c216140bf565b148015612c3f5750856001600160a01b0316826001600160a01b0316145b15612c4f57600192505050611b8e565b600080876001600160a01b0316631626ba7e60e01b8888604051602401612c779291906140d5565b60408051601f198184030181529181526020820180516001600160e01b03166001600160e01b0319909416939093179092529051612cb59190613b1c565b600060405180830381855afa9150503d8060008114612cf0576040519150601f19603f3d011682016040523d82523d6000602084013e612cf5565b606091505b5091509150818015612d08575080516020145b8015612b8357508051630b135d3f60e11b90612d2d90830160209081019084016140ee565b1498975050505050505050565b60006064612d4934605f613bff565b612d539190613e32565b6014546040519192506000916001600160a01b039091169083908381818185875af1925050503d8060008114612da5576040519150601f19603f3d011682016040523d82523d6000602084013e612daa565b606091505b5050905080612df35760405162461bcd60e51b815260206004820152601560248201527414cc4e88151c985b9cd9995c88104819985a5b1959605a1b6044820152606401610cac565b601454604080516001600160a01b039092168252602082018490527f8c9a4f13b67cb64d7c6aa1ae0c9bf07694af521a28b93e7060020810ab4bc59f910160405180910390a1612e438234614107565b6015546040519193506001600160a01b0316908390600081818185875af1925050503d8060008114612e91576040519150601f19603f3d011682016040523d82523d6000602084013e612e96565b606091505b50508091505080612ee15760405162461bcd60e51b815260206004820152601560248201527414cc4e88151c985b9cd9995c88108819985a5b1959605a1b6044820152606401610cac565b601554604080516001600160a01b039092168252602082018490527f8c9a4f13b67cb64d7c6aa1ae0c9bf07694af521a28b93e7060020810ab4bc59f910160405180910390a15050565b610c468282604051806020016040528060008152506130b4565b6119a884848484613288565b600a5460ff166112d75760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610cac565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b8310612fd95772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef81000000008310613005576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc10000831061302357662386f26fc10000830492506010015b6305f5e100831061303b576305f5e100830492506008015b612710831061304f57612710830492506004015b60648310613061576064830492506002015b600a8310610c045760010192915050565b60008082516041036130a85760208301516040840151606085015160001a61309c8782858561331d565b9450945050505061128a565b5060009050600261128a565b6000546001600160a01b0384166130dd57604051622e076360e81b815260040160405180910390fd5b826000036130fe5760405163b562e8dd60e01b815260040160405180910390fd5b61310b6000858386612f45565b6001600160a01b038416600081815260056020908152604080832080546fffffffffffffffffffffffffffffffff1981166001600160401b038083168b0181169182176801000000000000000067ffffffffffffffff1990941690921783900481168b01811690920217909155858452600490925290912080546001600160e01b0319168317600160a01b42909316929092029190911790558190818501903b15613233575b60405182906001600160a01b038816906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a46131fc6000878480600101955087612966565b613219576040516368d2bf6b60e11b815260040160405180910390fd5b8082106131b157826000541461322e57600080fd5b613278565b5b6040516001830192906001600160a01b038816906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4808210613234575b5060009081556119a89085838684565b6001600160a01b038416158015906132a857506001600160a01b03831615155b80156132bb57506132b933836133e1565b155b156133185760405162461bcd60e51b815260206004820152602760248201527f455243373231414f70657261746f7246696c7465723a20696c6c6567616c206f6044820152663832b930ba37b960c91b6064820152608401610cac565b6119a8565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083111561335457506000905060036133d8565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa1580156133a8573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166133d1576000600192509250506133d8565b9150600090505b94509492505050565b600b546000906001600160a01b0316806133ff576001915050610c04565b61340883611307565b6001600160a01b0316846001600160a01b03160361342a576001915050610c04565b604051630c962cb760e11b81523360048201526001600160a01b0382169063192c596e90602401602060405180830381865afa15801561346e573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061230a919061411a565b6001600160e01b0319811681146117b057600080fd5b6000602082840312156134ba57600080fd5b8135611b8e81613492565b6001600160a01b03811681146117b057600080fd5b6000602082840312156134ec57600080fd5b8135611b8e816134c5565b80356001600160601b038116811461350e57600080fd5b919050565b6000806040838503121561352657600080fd5b8235613531816134c5565b915061353f602084016134f7565b90509250929050565b634e487b7160e01b600052604160045260246000fd5b600082601f83011261356f57600080fd5b81356001600160401b038082111561358957613589613548565b604051601f8301601f19908116603f011681019082821181831017156135b1576135b1613548565b816040528381528660208588010111156135ca57600080fd5b836020870160208301376000602085830101528094505050505092915050565b600080600080600060a0868803121561360257600080fd5b85356001600160401b038082111561361957600080fd5b61362589838a0161355e565b9650602088013595506040880135945060608801359350608088013591508082111561365057600080fd5b5061365d8882890161355e565b9150509295509295909350565b60005b8381101561368557818101518382015260200161366d565b50506000910152565b600081518084526136a681602086016020860161366a565b601f01601f19169290920160200192915050565b602081526000611b8e602083018461368e565b6000602082840312156136df57600080fd5b5035919050565b80151581146117b057600080fd5b60006020828403121561370657600080fd5b8135611b8e816136e6565b6000806040838503121561372457600080fd5b823561372f816134c5565b946020939093013593505050565b600080600080600060a0868803121561375557600080fd5b8535613760816134c5565b945060208601356001600160401b0381111561377b57600080fd5b6137878882890161355e565b945050604086013592506060860135915060808601356137a6816136e6565b809150509295509295909350565b6000806000606084860312156137c957600080fd5b83356137d4816134c5565b925060208401356137e4816134c5565b929592945050506040919091013590565b6000806040838503121561380857600080fd5b50508035926020909101359150565b60006020828403121561382957600080fd5b81356001600160401b0381111561383f57600080fd5b61230a8482850161355e565b60008060006060848603121561386057600080fd5b833592506020840135613872816134c5565b9150613880604085016134f7565b90509250925092565b60008060006060848603121561389e57600080fd5b83356001600160401b03808211156138b557600080fd5b6138c18783880161355e565b94506020860135935060408601359150808211156138de57600080fd5b506138eb8682870161355e565b9150509250925092565b600080600080600060a0868803121561390d57600080fd5b85359450602086013561391f816134c5565b935060408601356001600160401b038082111561393b57600080fd5b61394789838a0161355e565b945060608801359350608088013591508082111561365057600080fd5b60008060006060848603121561397957600080fd5b83356001600160401b0381111561398f57600080fd5b61399b8682870161355e565b9350506020840135915060408401356139b3816134c5565b809150509250925092565b600080604083850312156139d157600080fd5b82356139dc816134c5565b915060208301356139ec816136e6565b809150509250929050565b60008060008060808587031215613a0d57600080fd5b8435613a18816134c5565b93506020850135613a28816134c5565b92506040850135915060608501356001600160401b03811115613a4a57600080fd5b613a568782880161355e565b91505092959194509250565b60008060408385031215613a7557600080fd5b8235613a80816134c5565b915060208301356139ec816134c5565b60008060408385031215613aa357600080fd5b82356001600160401b03811115613ab957600080fd5b613ac58582860161355e565b95602094909401359450505050565b60208082526028908201527f53313a206d696e74207175616e74697479206d75737420626520677265617465604082015267072207468616e20360c41b606082015260800190565b60008251613b2e81846020870161366a565b9190910192915050565b634e487b7160e01b600052601160045260246000fd5b80820180821115610c0457610c04613b38565b6020808252601a908201527f53313a2077726f6e67207175616e7469747920746f206d696e74000000000000604082015260600190565b60208082526017908201527f53313a207369676e6174757265206e6f742076616c6964000000000000000000604082015260600190565b60208082526016908201527529989d103bb937b733903937bab73210373ab6b132b960511b604082015260600190565b8082028115828204841417610c0457610c04613b38565b60208082526017908201527f53313a2076616c75652073656e74206973206c6f776572000000000000000000604082015260600190565b600060018201613c5f57613c5f613b38565b5060010190565b600181811c90821680613c7a57607f821691505b602082108103613c9a57634e487b7160e01b600052602260045260246000fd5b50919050565b601f82111561103c57600081815260208120601f850160051c81016020861015613cc75750805b601f850160051c820191505b81811015613ce657828155600101613cd3565b505050505050565b81516001600160401b03811115613d0757613d07613548565b613d1b81613d158454613c66565b84613ca0565b602080601f831160018114613d505760008415613d385750858301515b600019600386901b1c1916600185901b178555613ce6565b600085815260208120601f198616915b82811015613d7f57888601518255948401946001909101908401613d60565b5085821015613d9d5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60018060a01b038716815285602082015284604082015283606082015260c060808201526000613de060c083018561368e565b90508260a0830152979650505050505050565b60018060a01b038616815284602082015283604082015260a060608201526000613e2060a083018561368e565b90508260808301529695505050505050565b600082613e4f57634e487b7160e01b600052601260045260246000fd5b500490565b600060208284031215613e6657600080fd5b8151611b8e816134c5565b84815260008451613e8981602085016020890161366a565b80830190506001600160601b03198560601b1660208201528360348201526054810191505095945050505050565b60008351613ec981846020880161366a565b835190830190613edd81836020880161366a565b01949350505050565b6020808252602a908201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646040820152692073616c65507269636560b01b606082015260800190565b60008451613f4281846020890161366a565b91909101928352506020820152604001919050565b60008451613f6981846020890161366a565b60609490941b6001600160601b03191691909301908152601481019190915260340192915050565b60008451613fa381846020890161366a565b919091019283525060601b6001600160601b0319166020820152603401919050565b60008351613fd781846020880161366a565b9190910191825250602001919050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061295c9083018461368e565b60006020828403121561402c57600080fd5b8151611b8e81613492565b60008551614049818460208a0161366a565b9190910193845250602083019190915260601b6001600160601b0319166040820152665331436c61696d60c81b6054820152605b01919050565b60008551614095818460208a0161366a565b9190910193845250602083019190915260601b6001600160601b0319166040820152605401919050565b634e487b7160e01b600052602160045260246000fd5b82815260406020820152600061230a604083018461368e565b60006020828403121561410057600080fd5b5051919050565b81810381811115610c0457610c04613b38565b60006020828403121561412c57600080fd5b8151611b8e816136e656fea264697066735822122051156574ddc8058cd72920887e55213037376aff4f654fac80f3252d8ba4608b64736f6c63430008110033

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

0000000000000000000000009c5e88334ca3d54c21464d40b88f1405b9f8dcaa0000000000000000000000007b74134152a65b94d957f67178bd91a8fd729f4000000000000000000000000045c270aa1ab991a879eda48d59c19aebc63f4da0000000000000000000000000000000000000000000000000013c3107490280000000000000000000000000000000000000000000000000000000000000000028

-----Decoded View---------------
Arg [0] : _trustedWallet_A (address): 0x9c5e88334Ca3D54c21464D40b88F1405b9F8DcAa
Arg [1] : _trustedWallet_B (address): 0x7B74134152A65B94D957F67178bd91A8Fd729f40
Arg [2] : _signer (address): 0x45C270aa1aB991A879Eda48d59C19aEbc63F4da0
Arg [3] : _publicPrice (uint256): 89000000000000000
Arg [4] : _maxPublicMints (uint256): 40

-----Encoded View---------------
5 Constructor Arguments found :
Arg [0] : 0000000000000000000000009c5e88334ca3d54c21464d40b88f1405b9f8dcaa
Arg [1] : 0000000000000000000000007b74134152a65b94d957f67178bd91a8fd729f40
Arg [2] : 00000000000000000000000045c270aa1ab991a879eda48d59c19aebc63f4da0
Arg [3] : 000000000000000000000000000000000000000000000000013c310749028000
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000028


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.