ETH Price: $3,901.54 (-0.02%)

Token

Remilio64 (R64)
 

Overview

Max Total Supply

10,000 R64

Holders

961

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
27 R64
0x042012ac68060eafc91265805d48977016a1b98f
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:
Remilio64

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 6 : Remilio64.sol
// SPDX-License-Identifier: MIT
// RemWar Contracts v0.2

pragma solidity ^0.8.12;

import "@ERC721A/ERC721A.sol";
import "@ERC721A/IERC721A.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@solady/utils/Base64.sol";

// Minting Errors
error MaxSupplyExceeded();
error TooManyMinted();
error PublicMintClosed();

error NoQualifyingTokens();

contract Remilio64 is ERC721A, Ownable {
    // Contracts for free mints
    address dollady = 0x233580FE8E1985127D1DaCF2a9EE342049b0Dad8;
    address remilio = 0xD3D9ddd0CF0A5F0BFB8f7fcEAe075DF687eAEBaB;
    IERC721A dolladyContract = IERC721A(dollady);
    IERC721A remilioContract = IERC721A(remilio);

    // Supply and Price info
    uint64 public immutable _maxSupply = 10000;
    uint256 public maxPerMint = 10;
    uint256 maxPerWallet = 30;

    /// -------------------------------------
    /// 🦹 FACTIONS
    ///
    ///    TEN FACTIONS that will be randomly
    ///    assigned on mint to the remilio 64s.
    /// -------------------------------------

    uint256 public ItalianMafia = 1000;
    uint256 public RussianMafia = 1000;
    uint256 public ChineseTriads = 1000;
    uint256 public ColombianNarcos = 1000;
    uint256 public MexicanCartels = 1000;
    uint256 public Yakuza = 1000;
    uint256 public CosaNostra = 1000;
    uint256 public IrishMob = 1000;
    uint256 public AlbanianMafia = 1000;
    uint256 public HellsAngels = 1000;

    function getItalianMafia() public view returns (uint256) {
        return 1000 - ItalianMafia;
    }

    function getRussianMafia() public view returns (uint256) {
        return 1000 - RussianMafia;
    }

    function getChineseTriads() public view returns (uint256) {
        return 1000 - ChineseTriads;
    }

    function getColombianNarcos() public view returns (uint256) {
        return 1000 - ColombianNarcos;
    }

    function getMexicanCartels() public view returns (uint256) {
        return 1000 - MexicanCartels;
    }

    function getYakuza() public view returns (uint256) {
        return 1000 - Yakuza;
    }

    function getCosaNostra() public view returns (uint256) {
        return 1000 - CosaNostra;
    }

    function getIrishMob() public view returns (uint256) {
        return 1000 - IrishMob;
    }

    function getAlbanianMafia() public view returns (uint256) {
        return 1000 - AlbanianMafia;
    }

    function getHellsAngels() public view returns (uint256) {
        return 1000 - HellsAngels;
    }

    // This variable gets initialized in the constructor
    // and populated with the faction names.
    mapping(uint256 => string) public factionNames;

    function getFactionName(uint256 key) public view returns (string memory) {
        return factionNames[key];
    }

    // Int mapping of tokenID to faction ID
    mapping(uint256 => uint256) public tokenFaction;

    function getFaction(uint256 tokenId) public view returns (uint256) {
        return tokenFaction[tokenId];
    }

    function setFaction(uint256 tokenId, uint256 faction) public onlyOwner {
        tokenFaction[tokenId] = faction;
    }

    // Human readable
    function getFactionString(uint256 key) public view returns (string memory) {
        return getFactionName(getFaction(key));
    }

    // This function uses pseudorandomness to choose
    // a faction that has remaining availability
    // and remove 1 from the availability and return
    // it to the CREATE DNA function, which assigns
    // the faction to the tokenFaction map.
    // the big 🧠 play is this function will MOST LIKELY
    // give a somewhat equal distribution of factions to a
    // minter. This means FACTION MAXI's will have to go to
    // secondary to get factions they want.

    function subtractFromRandomFaction(uint256 totalminted)
        public
        returns (uint256 faction)
    {
        uint256 randomIndex = uint256(
            keccak256(
                abi.encodePacked(block.timestamp, block.difficulty, totalminted)
            )
        ) % 10;
        uint256 i = 0;
        while (true) {
            if (randomIndex == 0 && ItalianMafia != 0) {
                ItalianMafia--;
                return randomIndex;
            } else if (randomIndex == 1 && RussianMafia != 0) {
                RussianMafia--;
                return randomIndex;
            } else if (randomIndex == 2 && ChineseTriads != 0) {
                ChineseTriads--;
                return randomIndex;
            } else if (randomIndex == 3 && ColombianNarcos != 0) {
                ColombianNarcos--;
                return randomIndex;
            } else if (randomIndex == 4 && MexicanCartels != 0) {
                MexicanCartels--;
                return randomIndex;
            } else if (randomIndex == 5 && Yakuza != 0) {
                Yakuza--;
                return randomIndex;
            } else if (randomIndex == 6 && CosaNostra != 0) {
                CosaNostra--;
                return randomIndex;
            } else if (randomIndex == 7 && IrishMob != 0) {
                IrishMob--;
                return randomIndex;
            } else if (randomIndex == 8 && AlbanianMafia != 0) {
                AlbanianMafia--;
                return randomIndex;
            } else if (randomIndex == 9 && HellsAngels != 0) {
                HellsAngels--;
                return randomIndex;
            }
            ++i;
            randomIndex =
                uint256(
                    keccak256(
                        abi.encodePacked(
                            block.timestamp,
                            block.difficulty,
                            totalminted + i //we iterate
                        )
                    )
                ) %
                10;
        }
    }

    string private imgURI =
        "ipfs://bafybeig7jmw2nbbmbjhthyhscleq66gab5ivliwdlu6kwnetrxiemktll4/";
    string private baseURI = "http://45.55.124.30/json/";

    function setImageURI(string calldata uri) public onlyOwner {
        imgURI = uri;
    }

    constructor() ERC721A("Remilio64", "R64") {
        // Set Faction names for readability
        factionNames[0] = "Ndrangheta";
        factionNames[1] = "Russian Mafia";
        factionNames[2] = "Chinese Triads";
        factionNames[3] = "Colombian Narcos";
        factionNames[4] = "Mexican Cartels";
        factionNames[5] = "Yakuza";
        factionNames[6] = "Cosa Nostra";
        factionNames[7] = "Irish Mob";
        factionNames[8] = "Albanian Mafia";
        factionNames[9] = "Hells Angels";
    }

    /// -------------------------------------
    /// 🪙 MINTING
    /// -------------------------------------
    //    - 0.003Ξ~ avg mint
    //      - Dollady and Remilio are WL'd
    //
    // ℹ️ - Be aware that some minters could
    //     could get remilio64s at the prev
    //     tier price, if they are minting
    //     over the boundries. Consider
    //     this an intended gift should it
    //     occur.

    /// -------------------------------------
    /// 🪙 MINT MODIFIERS
    /// -------------------------------------

    // This is set to true for testing for convenience
    bool testMode = false;

    function setTestMode(bool tf) public onlyOwner {
        testMode = tf;
    }

    modifier quantityCheck(uint256 quantity) {
        if (!testMode) {
            require(balanceOf(msg.sender) < 30, "Wallet Max Reached");
        }
        if (quantity > maxPerMint) {
            revert TooManyMinted();
        }
        _;
    }

    modifier maxSupplyCheck(uint256 quantity) {
        if (totalSupply() + quantity > _maxSupply) {
            revert MaxSupplyExceeded();
        }
        _;
    }

    modifier publicMintCheck() {
        if (mintOpened != true) {
            revert PublicMintClosed();
        }
        _;
    }

    /// -------------------------------------
    /// 🪙 PUBLIC MINT
    /// -------------------------------------
    bool public mintOpened = false;

    function getMintOpened() public view returns (bool) {
        return mintOpened;
    }

    function setMintOpened(bool tf) public onlyOwner {
        mintOpened = tf;
    }

    uint256[] priceTiers = [0.002 ether, 0.004 ether];

    mapping(address => bool) claimedFreeToken;

    function noMoreFreeMints(address user) public view returns (bool) {
        return claimedFreeToken[user] || (freeTokens == 0);
    }

    function mint(uint256 quantity)
        external
        payable
        quantityCheck(quantity)
        maxSupplyCheck(quantity)
        publicMintCheck
    {
        // Free Mint Per Wallet
        if (msg.value == 0 ether) {
            require(
                noMoreFreeMints(msg.sender) == false,
                "Free Mint Unavailable"
            );
            require(quantity == 1, "Can only mint 1 free");
            mint_and_gen(1);
            claimedFreeToken[msg.sender] = true;
            freeTokens -= 1;
            return;
        }

        // Regular Public Mint
        if (totalSupply() <= 4999) {
            require(
                msg.value == priceTiers[0] * quantity,
                "The price is invalid"
            );
        } else if (totalSupply() > 4999) {
            require(
                msg.value == priceTiers[1] * quantity,
                "The price is invalid"
            );
        }

        mint_and_gen(quantity);
    }

    /// -------------------------------------
    /// 🪆 Friends Mint
    /// -------------------------------------

    uint256 freeTokens = 1000;

    function getFreeTokens() public view returns (uint256) {
        return freeTokens;
    }

    // Toggle for wl
    bool wlOn = false;

    function setWlStatus(bool tf) public onlyOwner {
        wlOn = tf;
    }

    // Friend collections
    bool public dolladyOn = true;

    bool public remilioOn = true;

    // Toggles for friend collections

    function setDolladyWl(bool tf) public onlyOwner {
        dolladyOn = tf;
    }

    function setRemilioWl(bool tf) public onlyOwner {
        remilioOn = tf;
    }

    // Helper function to see if on WL
    function checkFriendCollections(address sender)
        public
        view
        returns (uint256)
    {
        uint256 total = 0;
        if (dolladyOn) {
            total += dolladyContract.balanceOf(sender);
        }
        if (remilioOn) {
            total += remilioContract.balanceOf(sender);
        }
        return total;
    }

    // Mapping to keep track of wallet mints
    mapping(address => uint256) walletMints;
    uint256 maxWlWalletMints = 10;
    uint256 maxWlQuantity = 10;

    function setWlwalletLimit(uint256 x) public onlyOwner {
        maxWlWalletMints = x;
    }

    function setWlQuantity(uint256 x) public onlyOwner {
        maxWlQuantity = x;
    }

    function wl_mint(uint256 quantity) public maxSupplyCheck(quantity) {
        require(freeTokens > 0, "No Free Mints Left");

        if (!testMode) {
            require(
                walletMints[msg.sender] <= maxWlWalletMints,
                "Max Per Wallet Reached Already"
            );
            require(
                quantity <= maxWlQuantity,
                "Max Per Wallet Reached Already"
            );
            uint256 friendTokens = checkFriendCollections(address(msg.sender));
            if (friendTokens == 0) {
                revert NoQualifyingTokens();
            }
        }

        freeTokens -= quantity;
        walletMints[msg.sender] += quantity;
        mint_and_gen(quantity);
    }

    /// -------------------------------------
    /// 🪙 MINT AND GEN FACTION
    /// -------------------------------------

    function mint_and_gen(uint256 quantity) private {
        uint256 totalminted = _totalMinted();
        uint256 newSupply = totalminted + quantity;
        _mint(msg.sender, quantity);
        for (; totalminted < newSupply; ++totalminted) {
            createDNA(totalminted);
        }
    }

    /// -------------------------------------
    /// 🪙 OWNER MINT
    /// -------------------------------------

    function ownerMint(uint256 quantity)
        external
        onlyOwner
        maxSupplyCheck(quantity)
    {
        // Mint and Generate Faction
        mint_and_gen(quantity);
    }

    /// -------------------------------------
    /// 🧬 CREATE DNA
    ///    Assigns a faction to newly minted
    ///    R64. Also tokenURI function to
    ///    return the faction and image.
    /// -------------------------------------

    function createDNA(uint256 totalminted) private {
        tokenFaction[totalminted] = subtractFromRandomFaction(totalminted);
    }

    bool tokenDynamic = true;

    function setTokenDynamic(bool tf) public onlyOwner {
        tokenDynamic = tf;
    }

    function tokenURI(uint256 tokenId)
        public
        view
        override(ERC721A)
        returns (string memory)
    {
        if (tokenDynamic) {
            return tokenDynamicURI(tokenId);
        } else {
            return tokenStaticURI(tokenId);
        }
    }

    function tokenDynamicURI(uint256 tokenId)
        private
        view
        returns (string memory)
    {
        if (!_exists(tokenId)) revert URIQueryForNonexistentToken();
        string storage factionName = factionNames[tokenFaction[tokenId]];
        return
            string(
                abi.encodePacked(baseURI, factionName, "/", _toString(tokenId))
            );
    }

    function tokenStaticURI(uint256 tokenId)
        private
        view
        returns (string memory)
    {
        string storage factionName = factionNames[tokenFaction[tokenId]];
        if (!_exists(tokenId)) revert URIQueryForNonexistentToken();
        return
            string(
                abi.encodePacked(
                    "data:application/json;base64,",
                    Base64.encode(
                        abi.encodePacked(
                            '{"name": "Remilio64 # ',
                            _toString(tokenId),
                            '", "image": "',
                            imgURI,
                            _toString(tokenId),
                            ".jpg",
                            '",',
                            '"attributes": [',
                            '{"faction": "',
                            factionName,
                            '"',
                            "}]}"
                        )
                    )
                )
            );
    }

    /// -------------------------------------
    /// 🏦 Withdraw
    /// -------------------------------------

    function withdraw() external onlyOwner {
        require(address(this).balance > 0, "Nothing to release");
        (bool success, ) = payable(owner()).call{value: address(this).balance}(
            ""
        );
        require(success, "withdraw failed");
    }

    /// -------------------------------------
    /// 💰 Price
    ///
    /// Hopefully this stuff will not be
    /// needed, but may have to reduce price
    /// if players aren't minting.
    /// -------------------------------------

    function getPrice() public view returns (uint256[] memory) {
        return priceTiers;
    }

    function changePrice(uint256 index, uint256 _price) public onlyOwner {
        priceTiers[index] = _price;
    }

    /// -------------------------------------
    /// 🔗 BASE URI and TOKEN URI
    /// -------------------------------------

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

    function setBaseURI(string memory _baseUri) public onlyOwner {
        baseURI = _baseUri;
    }
}

File 2 of 6 : ERC721A.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.2.3
// Creator: Chiru Labs

pragma solidity ^0.8.4;

import './IERC721A.sol';

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

/**
 * @title ERC721A
 *
 * @dev Implementation of the [ERC721](https://eips.ethereum.org/EIPS/eip-721)
 * Non-Fungible Token Standard, including the Metadata extension.
 * Optimized for lower gas during batch mints.
 *
 * Token IDs are minted in sequential order (e.g. 0, 1, 2, 3, ...)
 * starting from `_startTokenId()`.
 *
 * Assumptions:
 *
 * - An owner cannot have more than 2**64 - 1 (max value of uint64) of supply.
 * - The maximum token ID cannot exceed 2**256 - 1 (max value of uint256).
 */
contract ERC721A is IERC721A {
    // Bypass for a `--via-ir` bug (https://github.com/chiru-labs/ERC721A/pull/364).
    struct TokenApprovalRef {
        address value;
    }

    // =============================================================
    //                           CONSTANTS
    // =============================================================

    // Mask of an entry in packed address data.
    uint256 private constant _BITMASK_ADDRESS_DATA_ENTRY = (1 << 64) - 1;

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

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

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

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

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

    // The bit mask of the `burned` bit in packed ownership.
    uint256 private constant _BITMASK_BURNED = 1 << 224;

    // The bit position of the `nextInitialized` bit in packed ownership.
    uint256 private constant _BITPOS_NEXT_INITIALIZED = 225;

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

    // The bit position of `extraData` in packed ownership.
    uint256 private constant _BITPOS_EXTRA_DATA = 232;

    // Mask of all 256 bits in a packed ownership except the 24 bits for `extraData`.
    uint256 private constant _BITMASK_EXTRA_DATA_COMPLEMENT = (1 << 232) - 1;

    // The mask of the lower 160 bits for addresses.
    uint256 private constant _BITMASK_ADDRESS = (1 << 160) - 1;

    // The maximum `quantity` that can be minted with {_mintERC2309}.
    // This limit is to prevent overflows on the address data entries.
    // For a limit of 5000, a total of 3.689e15 calls to {_mintERC2309}
    // is required to cause an overflow, which is unrealistic.
    uint256 private constant _MAX_MINT_ERC2309_QUANTITY_LIMIT = 5000;

    // The `Transfer` event signature is given by:
    // `keccak256(bytes("Transfer(address,address,uint256)"))`.
    bytes32 private constant _TRANSFER_EVENT_SIGNATURE =
        0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef;

    // =============================================================
    //                            STORAGE
    // =============================================================

    // The next token ID to be minted.
    uint256 private _currentIndex;

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

    // =============================================================
    //                          CONSTRUCTOR
    // =============================================================

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

    // =============================================================
    //                   TOKEN COUNTING OPERATIONS
    // =============================================================

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

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

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

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

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

    // =============================================================
    //                    ADDRESS DATA OPERATIONS
    // =============================================================

    /**
     * @dev Returns the number of tokens in `owner`'s account.
     */
    function balanceOf(address owner) public view virtual override returns (uint256) {
        if (owner == address(0)) revert BalanceQueryForZeroAddress();
        return _packedAddressData[owner] & _BITMASK_ADDRESS_DATA_ENTRY;
    }

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

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

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

    /**
     * Sets the auxiliary 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 virtual {
        uint256 packed = _packedAddressData[owner];
        uint256 auxCasted;
        // Cast `aux` with assembly to avoid redundant masking.
        assembly {
            auxCasted := aux
        }
        packed = (packed & _BITMASK_AUX_COMPLEMENT) | (auxCasted << _BITPOS_AUX);
        _packedAddressData[owner] = packed;
    }

    // =============================================================
    //                            IERC165
    // =============================================================

    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified)
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30000 gas.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        // The interface IDs are constants representing the first 4 bytes
        // of the XOR of all function selectors in the interface.
        // See: [ERC165](https://eips.ethereum.org/EIPS/eip-165)
        // (e.g. `bytes4(i.functionA.selector ^ i.functionB.selector ^ ...)`)
        return
            interfaceId == 0x01ffc9a7 || // ERC165 interface ID for ERC165.
            interfaceId == 0x80ac58cd || // ERC165 interface ID for ERC721.
            interfaceId == 0x5b5e139f; // ERC165 interface ID for ERC721Metadata.
    }

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

    /**
     * @dev Returns the token collection name.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev Returns the token collection symbol.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        if (!_exists(tokenId)) revert URIQueryForNonexistentToken();

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

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

    // =============================================================
    //                     OWNERSHIPS OPERATIONS
    // =============================================================

    /**
     * @dev Returns the owner of the `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function ownerOf(uint256 tokenId) public view virtual override returns (address) {
        return address(uint160(_packedOwnershipOf(tokenId)));
    }

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

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

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

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

        unchecked {
            if (_startTokenId() <= curr)
                if (curr < _currentIndex) {
                    uint256 packed = _packedOwnerships[curr];
                    // If not burned.
                    if (packed & _BITMASK_BURNED == 0) {
                        // Invariant:
                        // There will always be an initialized ownership slot
                        // (i.e. `ownership.addr != address(0) && ownership.burned == false`)
                        // before an unintialized ownership slot
                        // (i.e. `ownership.addr == address(0) && ownership.burned == false`)
                        // Hence, `curr` will not underflow.
                        //
                        // We can directly compare the packed value.
                        // If the address is zero, packed will be zero.
                        while (packed == 0) {
                            packed = _packedOwnerships[--curr];
                        }
                        return packed;
                    }
                }
        }
        revert OwnerQueryForNonexistentToken();
    }

    /**
     * @dev Returns the unpacked `TokenOwnership` struct from `packed`.
     */
    function _unpackedOwnership(uint256 packed) private pure returns (TokenOwnership memory ownership) {
        ownership.addr = address(uint160(packed));
        ownership.startTimestamp = uint64(packed >> _BITPOS_START_TIMESTAMP);
        ownership.burned = packed & _BITMASK_BURNED != 0;
        ownership.extraData = uint24(packed >> _BITPOS_EXTRA_DATA);
    }

    /**
     * @dev Packs ownership data into a single uint256.
     */
    function _packOwnershipData(address owner, uint256 flags) private view returns (uint256 result) {
        assembly {
            // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean.
            owner := and(owner, _BITMASK_ADDRESS)
            // `owner | (block.timestamp << _BITPOS_START_TIMESTAMP) | flags`.
            result := or(owner, or(shl(_BITPOS_START_TIMESTAMP, timestamp()), flags))
        }
    }

    /**
     * @dev Returns the `nextInitialized` flag set if `quantity` equals 1.
     */
    function _nextInitializedFlag(uint256 quantity) private pure returns (uint256 result) {
        // For branchless setting of the `nextInitialized` flag.
        assembly {
            // `(quantity == 1) << _BITPOS_NEXT_INITIALIZED`.
            result := shl(_BITPOS_NEXT_INITIALIZED, eq(quantity, 1))
        }
    }

    // =============================================================
    //                      APPROVAL OPERATIONS
    // =============================================================

    /**
     * @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) public payable virtual override {
        address owner = ownerOf(tokenId);

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

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

    /**
     * @dev Returns the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) public view virtual override returns (address) {
        if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken();

        return _tokenApprovals[tokenId].value;
    }

    /**
     * @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) public virtual override {
        _operatorApprovals[_msgSenderERC721A()][operator] = approved;
        emit ApprovalForAll(_msgSenderERC721A(), operator, approved);
    }

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

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

    /**
     * @dev Returns whether `msgSender` is equal to `approvedAddress` or `owner`.
     */
    function _isSenderApprovedOrOwner(
        address approvedAddress,
        address owner,
        address msgSender
    ) private pure returns (bool result) {
        assembly {
            // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean.
            owner := and(owner, _BITMASK_ADDRESS)
            // Mask `msgSender` to the lower 160 bits, in case the upper bits somehow aren't clean.
            msgSender := and(msgSender, _BITMASK_ADDRESS)
            // `msgSender == owner || msgSender == approvedAddress`.
            result := or(eq(msgSender, owner), eq(msgSender, approvedAddress))
        }
    }

    /**
     * @dev Returns the storage slot and value for the approved address of `tokenId`.
     */
    function _getApprovedSlotAndAddress(uint256 tokenId)
        private
        view
        returns (uint256 approvedAddressSlot, address approvedAddress)
    {
        TokenApprovalRef storage tokenApproval = _tokenApprovals[tokenId];
        // The following is equivalent to `approvedAddress = _tokenApprovals[tokenId].value`.
        assembly {
            approvedAddressSlot := tokenApproval.slot
            approvedAddress := sload(approvedAddressSlot)
        }
    }

    // =============================================================
    //                      TRANSFER OPERATIONS
    // =============================================================

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

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

        (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId);

        // The nested ifs save around 20+ gas over a compound boolean condition.
        if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A()))
            if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved();

        if (to == address(0)) revert TransferToZeroAddress();

        _beforeTokenTransfers(from, to, tokenId, 1);

        // Clear approvals from the previous owner.
        assembly {
            if approvedAddress {
                // This is equivalent to `delete _tokenApprovals[tokenId]`.
                sstore(approvedAddressSlot, 0)
            }
        }

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

            // Updates:
            // - `address` to the next owner.
            // - `startTimestamp` to the timestamp of transfering.
            // - `burned` to `false`.
            // - `nextInitialized` to `true`.
            _packedOwnerships[tokenId] = _packOwnershipData(
                to,
                _BITMASK_NEXT_INITIALIZED | _nextExtraData(from, to, prevOwnershipPacked)
            );

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

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

    /**
     * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public payable virtual override {
        safeTransferFrom(from, to, tokenId, '');
    }

    /**
     * @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 memory _data
    ) public payable virtual override {
        transferFrom(from, to, tokenId);
        if (to.code.length != 0)
            if (!_checkContractOnERC721Received(from, to, tokenId, _data)) {
                revert TransferToNonERC721ReceiverImplementer();
            }
    }

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

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

    /**
     * @dev Private function to invoke {IERC721Receiver-onERC721Received} on a target contract.
     *
     * `from` - Previous owner of the given token ID.
     * `to` - Target address that will receive the token.
     * `tokenId` - Token ID to be transferred.
     * `_data` - Optional data to send along with the call.
     *
     * Returns whether the call correctly returned the expected magic value.
     */
    function _checkContractOnERC721Received(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) private returns (bool) {
        try ERC721A__IERC721Receiver(to).onERC721Received(_msgSenderERC721A(), from, tokenId, _data) returns (
            bytes4 retval
        ) {
            return retval == ERC721A__IERC721Receiver(to).onERC721Received.selector;
        } catch (bytes memory reason) {
            if (reason.length == 0) {
                revert TransferToNonERC721ReceiverImplementer();
            } else {
                assembly {
                    revert(add(32, reason), mload(reason))
                }
            }
        }
    }

    // =============================================================
    //                        MINT OPERATIONS
    // =============================================================

    /**
     * @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 for each mint.
     */
    function _mint(address to, uint256 quantity) internal virtual {
        uint256 startTokenId = _currentIndex;
        if (quantity == 0) revert MintZeroQuantity();

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

        // Overflows are incredibly unrealistic.
        // `balance` and `numberMinted` have a maximum limit of 2**64.
        // `tokenId` has a maximum limit of 2**256.
        unchecked {
            // Updates:
            // - `balance += quantity`.
            // - `numberMinted += quantity`.
            //
            // We can directly add to the `balance` and `numberMinted`.
            _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1);

            // Updates:
            // - `address` to the owner.
            // - `startTimestamp` to the timestamp of minting.
            // - `burned` to `false`.
            // - `nextInitialized` to `quantity == 1`.
            _packedOwnerships[startTokenId] = _packOwnershipData(
                to,
                _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0)
            );

            uint256 toMasked;
            uint256 end = startTokenId + quantity;

            // Use assembly to loop and emit the `Transfer` event for gas savings.
            // The duplicated `log4` removes an extra check and reduces stack juggling.
            // The assembly, together with the surrounding Solidity code, have been
            // delicately arranged to nudge the compiler into producing optimized opcodes.
            assembly {
                // Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean.
                toMasked := and(to, _BITMASK_ADDRESS)
                // Emit the `Transfer` event.
                log4(
                    0, // Start of data (0, since no data).
                    0, // End of data (0, since no data).
                    _TRANSFER_EVENT_SIGNATURE, // Signature.
                    0, // `address(0)`.
                    toMasked, // `to`.
                    startTokenId // `tokenId`.
                )

                // The `iszero(eq(,))` check ensures that large values of `quantity`
                // that overflows uint256 will make the loop run out of gas.
                // The compiler will optimize the `iszero` away for performance.
                for {
                    let tokenId := add(startTokenId, 1)
                } iszero(eq(tokenId, end)) {
                    tokenId := add(tokenId, 1)
                } {
                    // Emit the `Transfer` event. Similar to above.
                    log4(0, 0, _TRANSFER_EVENT_SIGNATURE, 0, toMasked, tokenId)
                }
            }
            if (toMasked == 0) revert MintToZeroAddress();

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

    /**
     * @dev Mints `quantity` tokens and transfers them to `to`.
     *
     * This function is intended for efficient minting only during contract creation.
     *
     * It emits only one {ConsecutiveTransfer} as defined in
     * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309),
     * instead of a sequence of {Transfer} event(s).
     *
     * Calling this function outside of contract creation WILL make your contract
     * non-compliant with the ERC721 standard.
     * For full ERC721 compliance, substituting ERC721 {Transfer} event(s) with the ERC2309
     * {ConsecutiveTransfer} event is only permissible during contract creation.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `quantity` must be greater than 0.
     *
     * Emits a {ConsecutiveTransfer} event.
     */
    function _mintERC2309(address to, uint256 quantity) internal virtual {
        uint256 startTokenId = _currentIndex;
        if (to == address(0)) revert MintToZeroAddress();
        if (quantity == 0) revert MintZeroQuantity();
        if (quantity > _MAX_MINT_ERC2309_QUANTITY_LIMIT) revert MintERC2309QuantityExceedsLimit();

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

        // Overflows are unrealistic due to the above check for `quantity` to be below the limit.
        unchecked {
            // Updates:
            // - `balance += quantity`.
            // - `numberMinted += quantity`.
            //
            // We can directly add to the `balance` and `numberMinted`.
            _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1);

            // Updates:
            // - `address` to the owner.
            // - `startTimestamp` to the timestamp of minting.
            // - `burned` to `false`.
            // - `nextInitialized` to `quantity == 1`.
            _packedOwnerships[startTokenId] = _packOwnershipData(
                to,
                _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0)
            );

            emit ConsecutiveTransfer(startTokenId, startTokenId + quantity - 1, address(0), to);

            _currentIndex = startTokenId + quantity;
        }
        _afterTokenTransfers(address(0), to, startTokenId, 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.
     *
     * See {_mint}.
     *
     * Emits a {Transfer} event for each mint.
     */
    function _safeMint(
        address to,
        uint256 quantity,
        bytes memory _data
    ) internal virtual {
        _mint(to, quantity);

        unchecked {
            if (to.code.length != 0) {
                uint256 end = _currentIndex;
                uint256 index = end - quantity;
                do {
                    if (!_checkContractOnERC721Received(address(0), to, index++, _data)) {
                        revert TransferToNonERC721ReceiverImplementer();
                    }
                } while (index < end);
                // Reentrancy protection.
                if (_currentIndex != end) revert();
            }
        }
    }

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

    // =============================================================
    //                        BURN OPERATIONS
    // =============================================================

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

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

        address from = address(uint160(prevOwnershipPacked));

        (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId);

        if (approvalCheck) {
            // The nested ifs save around 20+ gas over a compound boolean condition.
            if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A()))
                if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved();
        }

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

        // Clear approvals from the previous owner.
        assembly {
            if approvedAddress {
                // This is equivalent to `delete _tokenApprovals[tokenId]`.
                sstore(approvedAddressSlot, 0)
            }
        }

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

            // Updates:
            // - `address` to the last owner.
            // - `startTimestamp` to the timestamp of burning.
            // - `burned` to `true`.
            // - `nextInitialized` to `true`.
            _packedOwnerships[tokenId] = _packOwnershipData(
                from,
                (_BITMASK_BURNED | _BITMASK_NEXT_INITIALIZED) | _nextExtraData(from, address(0), prevOwnershipPacked)
            );

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

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

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

    // =============================================================
    //                     EXTRA DATA OPERATIONS
    // =============================================================

    /**
     * @dev Directly sets the extra data for the ownership data `index`.
     */
    function _setExtraDataAt(uint256 index, uint24 extraData) internal virtual {
        uint256 packed = _packedOwnerships[index];
        if (packed == 0) revert OwnershipNotInitializedForExtraData();
        uint256 extraDataCasted;
        // Cast `extraData` with assembly to avoid redundant masking.
        assembly {
            extraDataCasted := extraData
        }
        packed = (packed & _BITMASK_EXTRA_DATA_COMPLEMENT) | (extraDataCasted << _BITPOS_EXTRA_DATA);
        _packedOwnerships[index] = packed;
    }

    /**
     * @dev Called during each token transfer to set the 24bit `extraData` field.
     * Intended to be overridden by the cosumer contract.
     *
     * `previousExtraData` - the value of `extraData` before transfer.
     *
     * 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 _extraData(
        address from,
        address to,
        uint24 previousExtraData
    ) internal view virtual returns (uint24) {}

    /**
     * @dev Returns the next extra data for the packed ownership data.
     * The returned result is shifted into position.
     */
    function _nextExtraData(
        address from,
        address to,
        uint256 prevOwnershipPacked
    ) private view returns (uint256) {
        uint24 extraData = uint24(prevOwnershipPacked >> _BITPOS_EXTRA_DATA);
        return uint256(_extraData(from, to, extraData)) << _BITPOS_EXTRA_DATA;
    }

    // =============================================================
    //                       OTHER OPERATIONS
    // =============================================================

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

    /**
     * @dev Converts a uint256 to its ASCII string decimal representation.
     */
    function _toString(uint256 value) internal pure virtual returns (string memory str) {
        assembly {
            // The maximum value of a uint256 contains 78 digits (1 byte per digit), but
            // we allocate 0xa0 bytes to keep the free memory pointer 32-byte word aligned.
            // We will need 1 word for the trailing zeros padding, 1 word for the length,
            // and 3 words for a maximum of 78 digits. Total: 5 * 0x20 = 0xa0.
            let m := add(mload(0x40), 0xa0)
            // Update the free memory pointer to allocate.
            mstore(0x40, m)
            // Assign the `str` to the end.
            str := sub(m, 0x20)
            // Zeroize the slot after the string.
            mstore(str, 0)

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

            // We write the string from rightmost digit to leftmost digit.
            // The following is essentially a do-while loop that also handles the zero case.
            // prettier-ignore
            for { let temp := value } 1 {} {
                str := sub(str, 1)
                // Write the character to the pointer.
                // The ASCII index of the '0' character is 48.
                mstore8(str, add(48, mod(temp, 10)))
                // Keep dividing `temp` until zero.
                temp := div(temp, 10)
                // prettier-ignore
                if iszero(temp) { break }
            }

            let length := sub(end, str)
            // Move the pointer 32 bytes leftwards to make room for the length.
            str := sub(str, 0x20)
            // Store the length.
            mstore(str, length)
        }
    }
}

File 3 of 6 : IERC721A.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.2.3
// Creator: Chiru Labs

pragma solidity ^0.8.4;

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

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

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

    /**
     * The `quantity` minted with ERC2309 exceeds the safety limit.
     */
    error MintERC2309QuantityExceedsLimit();

    /**
     * The `extraData` cannot be set on an unintialized ownership slot.
     */
    error OwnershipNotInitializedForExtraData();

    // =============================================================
    //                            STRUCTS
    // =============================================================

    struct TokenOwnership {
        // The address of the owner.
        address addr;
        // Stores the start time of ownership with minimal overhead for tokenomics.
        uint64 startTimestamp;
        // Whether the token has been burned.
        bool burned;
        // Arbitrary data similar to `startTimestamp` that can be set via {_extraData}.
        uint24 extraData;
    }

    // =============================================================
    //                         TOKEN COUNTERS
    // =============================================================

    /**
     * @dev Returns the total number of tokens in existence.
     * Burned tokens will reduce the count.
     * To get the total number of tokens minted, please see {_totalMinted}.
     */
    function totalSupply() external view returns (uint256);

    // =============================================================
    //                            IERC165
    // =============================================================

    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified)
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);

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

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

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

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

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

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

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

    /**
     * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external payable;

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

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

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

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

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

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

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

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

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

    // =============================================================
    //                           IERC2309
    // =============================================================

    /**
     * @dev Emitted when tokens in `fromTokenId` to `toTokenId`
     * (inclusive) is transferred from `from` to `to`, as defined in the
     * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309) standard.
     *
     * See {_mintERC2309} for more details.
     */
    event ConsecutiveTransfer(uint256 indexed fromTokenId, uint256 toTokenId, address indexed from, address indexed to);
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

File 5 of 6 : 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 6 of 6 : Base64.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;

/// @notice Library to encode strings in Base64.
/// @author Solady (https://github.com/vectorized/solady/blob/main/src/utils/Base64.sol)
/// @author Modified from Solmate (https://github.com/transmissions11/solmate/blob/main/src/utils/Base64.sol)
/// @author Modified from (https://github.com/Brechtpd/base64/blob/main/base64.sol) by Brecht Devos - <[email protected]>.
library Base64 {
    /// @dev Encodes `data` using the base64 encoding described in RFC 4648.
    /// See: https://datatracker.ietf.org/doc/html/rfc4648
    /// @param fileSafe  Whether to replace '+' with '-' and '/' with '_'.
    /// @param noPadding Whether to strip away the padding.
    function encode(bytes memory data, bool fileSafe, bool noPadding)
        internal
        pure
        returns (string memory result)
    {
        /// @solidity memory-safe-assembly
        assembly {
            let dataLength := mload(data)

            if dataLength {
                // Multiply by 4/3 rounded up.
                // The `shl(2, ...)` is equivalent to multiplying by 4.
                let encodedLength := shl(2, div(add(dataLength, 2), 3))

                // Set `result` to point to the start of the free memory.
                result := mload(0x40)

                // Store the table into the scratch space.
                // Offsetted by -1 byte so that the `mload` will load the character.
                // We will rewrite the free memory pointer at `0x40` later with
                // the allocated size.
                // The magic constant 0x0230 will translate "-_" + "+/".
                mstore(0x1f, "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdef")
                mstore(0x3f, sub("ghijklmnopqrstuvwxyz0123456789-_", mul(iszero(fileSafe), 0x0230)))

                // Skip the first slot, which stores the length.
                let ptr := add(result, 0x20)
                let end := add(ptr, encodedLength)

                // Run over the input, 3 bytes at a time.
                for {} 1 {} {
                    data := add(data, 3) // Advance 3 bytes.
                    let input := mload(data)

                    // Write 4 bytes. Optimized for fewer stack operations.
                    mstore8(0, mload(and(shr(18, input), 0x3F)))
                    mstore8(1, mload(and(shr(12, input), 0x3F)))
                    mstore8(2, mload(and(shr(6, input), 0x3F)))
                    mstore8(3, mload(and(input, 0x3F)))
                    mstore(ptr, mload(0x00))

                    ptr := add(ptr, 4) // Advance 4 bytes.

                    if iszero(lt(ptr, end)) { break }
                }

                // Allocate the memory for the string.
                // Add 31 and mask with `not(31)` to round the
                // free memory pointer up the next multiple of 32.
                mstore(0x40, and(add(end, 31), not(31)))

                // Equivalent to `o = [0, 2, 1][dataLength % 3]`.
                let o := div(2, mod(dataLength, 3))

                // Offset `ptr` and pad with '='. We can simply write over the end.
                mstore(sub(ptr, o), shl(240, 0x3d3d))
                // Set `o` to zero if there is padding.
                o := mul(iszero(iszero(noPadding)), o)
                // Zeroize the slot after the string.
                mstore(sub(ptr, o), 0)
                // Write the length of the string.
                mstore(result, sub(encodedLength, o))
            }
        }
    }

    /// @dev Encodes `data` using the base64 encoding described in RFC 4648.
    /// Equivalent to `encode(data, false, false)`.
    function encode(bytes memory data) internal pure returns (string memory result) {
        result = encode(data, false, false);
    }

    /// @dev Encodes `data` using the base64 encoding described in RFC 4648.
    /// Equivalent to `encode(data, fileSafe, false)`.
    function encode(bytes memory data, bool fileSafe)
        internal
        pure
        returns (string memory result)
    {
        result = encode(data, fileSafe, false);
    }

    /// @dev Encodes base64 encoded `data`.
    ///
    /// Supports:
    /// - RFC 4648 (both standard and file-safe mode).
    /// - RFC 3501 (63: ',').
    ///
    /// Does not support:
    /// - Line breaks.
    ///
    /// Note: For performance reasons,
    /// this function will NOT revert on invalid `data` inputs.
    /// Outputs for invalid inputs will simply be undefined behaviour.
    /// It is the user's responsibility to ensure that the `data`
    /// is a valid base64 encoded string.
    function decode(string memory data) internal pure returns (bytes memory result) {
        /// @solidity memory-safe-assembly
        assembly {
            let dataLength := mload(data)

            if dataLength {
                let decodedLength := mul(shr(2, dataLength), 3)

                for {} 1 {} {
                    // If padded.
                    if iszero(and(dataLength, 3)) {
                        let t := xor(mload(add(data, dataLength)), 0x3d3d)
                        // forgefmt: disable-next-item
                        decodedLength := sub(
                            decodedLength,
                            add(iszero(byte(30, t)), iszero(byte(31, t)))
                        )
                        break
                    }
                    // If non-padded.
                    decodedLength := add(decodedLength, sub(and(dataLength, 3), 1))
                    break
                }
                result := mload(0x40)

                // Write the length of the bytes.
                mstore(result, decodedLength)

                // Skip the first slot, which stores the length.
                let ptr := add(result, 0x20)
                let end := add(ptr, decodedLength)

                // Load the table into the scratch space.
                // Constants are optimized for smaller bytecode with zero gas overhead.
                // `m` also doubles as the mask of the upper 6 bits.
                let m := 0xfc000000fc00686c7074787c8084888c9094989ca0a4a8acb0b4b8bcc0c4c8cc
                mstore(0x5b, m)
                mstore(0x3b, 0x04080c1014181c2024282c3034383c4044484c5054585c6064)
                mstore(0x1a, 0xf8fcf800fcd0d4d8dce0e4e8ecf0f4)

                for {} 1 {} {
                    // Read 4 bytes.
                    data := add(data, 4)
                    let input := mload(data)

                    // Write 3 bytes.
                    // forgefmt: disable-next-item
                    mstore(ptr, or(
                        and(m, mload(byte(28, input))),
                        shr(6, or(
                            and(m, mload(byte(29, input))),
                            shr(6, or(
                                and(m, mload(byte(30, input))),
                                shr(6, mload(byte(31, input)))
                            ))
                        ))
                    ))

                    ptr := add(ptr, 3)

                    if iszero(lt(ptr, end)) { break }
                }

                // Allocate the memory for the string.
                // Add 31 and mask with `not(31)` to round the
                // free memory pointer up the next multiple of 32.
                mstore(0x40, and(add(end, 31), not(31)))
                // Zeroize the slot after the bytes.
                mstore(end, 0)
                // Restore the zero slot.
                mstore(0x60, 0)
            }
        }
    }
}

Settings
{
  "remappings": [
    "@ERC721A/=lib/ERC721A/contracts/",
    "@openzeppelin/=lib/openzeppelin-contracts/",
    "@solady/=lib/solady/src/",
    "ERC721A/=lib/ERC721A/contracts/",
    "ds-test/=lib/forge-std/lib/ds-test/src/",
    "forge-std/=lib/forge-std/src/",
    "openzeppelin-contracts/=lib/openzeppelin-contracts/contracts/",
    "solady/=lib/solady/src/",
    "solmate/=lib/solady/lib/solmate/src/"
  ],
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "metadata": {
    "bytecodeHash": "ipfs"
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "evmVersion": "london",
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MaxSupplyExceeded","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"NoQualifyingTokens","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"PublicMintClosed","type":"error"},{"inputs":[],"name":"TooManyMinted","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"AlbanianMafia","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ChineseTriads","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ColombianNarcos","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"CosaNostra","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"HellsAngels","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"IrishMob","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ItalianMafia","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MexicanCartels","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"RussianMafia","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"Yakuza","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_maxSupply","outputs":[{"internalType":"uint64","name":"","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"payable","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":"index","type":"uint256"},{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"changePrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"}],"name":"checkFriendCollections","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"dolladyOn","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"factionNames","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getAlbanianMafia","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getChineseTriads","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getColombianNarcos","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getCosaNostra","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getFaction","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"key","type":"uint256"}],"name":"getFactionName","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"key","type":"uint256"}],"name":"getFactionString","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getFreeTokens","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getHellsAngels","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getIrishMob","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getItalianMafia","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getMexicanCartels","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getMintOpened","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getPrice","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getRussianMafia","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getYakuza","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"maxPerMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintOpened","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"noMoreFreeMints","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"ownerMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"remilioOn","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","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":"payable","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":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_baseUri","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"tf","type":"bool"}],"name":"setDolladyWl","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"faction","type":"uint256"}],"name":"setFaction","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"uri","type":"string"}],"name":"setImageURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"tf","type":"bool"}],"name":"setMintOpened","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"tf","type":"bool"}],"name":"setRemilioWl","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"tf","type":"bool"}],"name":"setTestMode","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"tf","type":"bool"}],"name":"setTokenDynamic","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"x","type":"uint256"}],"name":"setWlQuantity","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"tf","type":"bool"}],"name":"setWlStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"x","type":"uint256"}],"name":"setWlwalletLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"totalminted","type":"uint256"}],"name":"subtractFromRandomFaction","outputs":[{"internalType":"uint256","name":"faction","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokenFaction","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":"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":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"wl_mint","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6009805473233580fe8e1985127d1dacf2a9ee342049b0dad86001600160a01b03199182168117909255600a805473d3d9ddd0cf0a5f0bfb8f7fceae075df687eaebab90831681178255600b80548416909417909355600c80549092169092179055612710608052600d55601e600e556103e8600f81905560108190556011819055601281905560138190556014819055601581905560168190556017819055601855610120604052604360a081815290620035b860c039601b90620000c6908262000718565b5060408051808201909152601981527f687474703a2f2f34352e35352e3132342e33302f6a736f6e2f000000000000006020820152601c906200010a908262000718565b50601d805461ffff191690556040805180820190915266071afd498d00008152660e35fa931a000060208201526200014790601e90600262000601565b506103e86020556021805462ffffff191662010100179055600a60238190556024556025805460ff191660011790553480156200018357600080fd5b506040518060400160405280600981526020016814995b5a5b1a5bcd8d60ba1b81525060405180604001604052806003815260200162148d8d60ea1b8152508160029081620001d3919062000718565b506003620001e2828262000718565b50506000805550620001f433620005af565b60408051808201909152600a8152694e6472616e676865746160b01b60208083019190915260008052601990527fd2ac945fcc0096878c763e37d6929b78378c1a2defabde8ba7ee5ed1d6e7a5b2906200024f908262000718565b5060408051808201909152600d81526c5275737369616e204d6166696160981b6020808301919091526001600052601990527ffc941c3961fb6541da34150022cddf959da0fb2353866a6bfbd249c2da09291490620002af908262000718565b5060408051808201909152600e81526d4368696e6573652054726961647360901b6020808301919091526002600052601990527f6f678ad17c55bce407239525f4bf7f1fe99197d3eb69bfdd9a0db84a9a11b5819062000310908262000718565b5060408051808201909152601081526f436f6c6f6d6269616e204e6172636f7360801b6020808301919091526003600052601990527f3e323a6e0522b016fa22111dfed945f89456f9f44f69eac00209d92607a5b9409062000373908262000718565b5060408051808201909152600f81526e4d65786963616e2043617274656c7360881b6020808301919091526004600052601990527f77e53f5d8115e854915e54bd6f2fd46db8b881fe7106ff61c7d2a90a39a8983b90620003d5908262000718565b5060408051808201909152600681526559616b757a6160d01b6020808301919091526005600052601990527fef6a8f673ca5476c495d0ab5aa04e3cd3d07628b2ff5d0e5202b94c5c6f13bdc906200042e908262000718565b5060408051808201909152600b81526a436f7361204e6f7374726160a81b6020808301919091526006600052601990527f4ca1d5f267eb2abf27b670f18ee76f6c205873a2168eb2e690c8c4babcc357dd906200048c908262000718565b5060408051808201909152600981526824b934b9b41026b7b160b91b6020808301919091526007600052601990527f6c74329095f8e135df6d1792dfacc88ecaf0e5f08f42858511b9677eb190629690620004e8908262000718565b5060408051808201909152600e81526d416c62616e69616e204d6166696160901b6020808301919091526008600052601990527ffe8806ce96b92243e99134713c876855e855a43b2c2331cd83595a61c3ae44cc9062000549908262000718565b5060408051808201909152600c81526b48656c6c7320416e67656c7360a01b6020808301919091526009600052601990527f65faccfad02dea2387b2aa1c46e59825c27e99d230e9517c682c6dc4f2be8ca590620005a8908262000718565b50620007e4565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8280548282559060005260206000209081019282156200064a579160200282015b828111156200064a578251829066ffffffffffffff1690559160200191906001019062000622565b50620006589291506200065c565b5090565b5b808211156200065857600081556001016200065d565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200069e57607f821691505b602082108103620006bf57634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200071357600081815260208120601f850160051c81016020861015620006ee5750805b601f850160051c820191505b818110156200070f57828155600101620006fa565b5050505b505050565b81516001600160401b0381111562000734576200073462000673565b6200074c8162000745845462000689565b84620006c5565b602080601f8311600181146200078457600084156200076b5750858301515b600019600386901b1c1916600185901b1785556200070f565b600085815260208120601f198616915b82811015620007b55788860151825594840194600190910190840162000794565b5085821015620007d45787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b608051612da362000815600039600081816105bc01528181611243015281816116340152611cac0152612da36000f3fe6080604052600436106103fa5760003560e01c8063710d625a11610213578063b3de019c11610123578063e985e9c5116100ab578063f2fde38b1161007a578063f2fde38b14610b44578063f513ba3814610b64578063f5c841d714610b84578063fb329b2114610ba4578063fb9224b814610bba57600080fd5b8063e985e9c514610ace578063ea41270914610aee578063ee555d4c14610b0e578063f19e75d414610b2457600080fd5b8063cb2c9051116100f2578063cb2c905114610a3c578063cf6010f914610a52578063d6f3905114610a72578063ded0b7aa14610a91578063e46a0d5a14610ab157600080fd5b8063b3de019c146109c9578063b88d4fde146109e9578063c87b56dd146109fc578063c9ef50b214610a1c57600080fd5b80639676530c116101a6578063a0712d6811610175578063a0712d6814610929578063a22cb4651461093c578063a774225e1461095c578063a8a150b81461097c578063b3128daf146109a957600080fd5b80639676530c146108bd5780639790421c146108d357806398d5fdca146108e85780639b70a3401461090a57600080fd5b806386e34a3b116101e257806386e34a3b1461083d5780638da5cb5b1461086a5780638ee547e11461088857806395d89b41146108a857600080fd5b8063710d625a146107e8578063715018a6146107fd57806379bd98e51461081257806379d37e951461082757600080fd5b80632db13c731161030e5780634e3d8f32116102a15780636352211e116102705780636352211e1461075c57806367e484461461077c5780636c41c3d814610792578063707a6e1c146107b257806370a08231146107c857600080fd5b80634e3d8f32146106e6578063507e094f1461070657806355f804b31461071c5780635762fccb1461073c57600080fd5b80634045c7f6116102dd5780634045c7f61461068957806342842e0e1461069e57806345baff65146106b157806349c83de9146106d157600080fd5b80632db13c73146106345780632f963b951461064957806333d73e4f1461065f5780633ccfd60b1461067457600080fd5b80631b4e58e2116103915780631ff1292f116103605780631ff1292f1461058a57806322f4596f146105aa57806323b872dd146105f757806326c53ed51461060a5780632b190f181461061f57600080fd5b80631b4e58e21461051f5780631c7583e61461053f5780631ce1b9c9146105555780631d7e01451461056a57600080fd5b8063081812fc116103cd578063081812fc1461049b578063095ea7b3146104d35780630e6153e6146104e657806318160ddd1461050657600080fd5b806301ffc9a7146103ff578063041b1aa31461043457806304787ca21461045757806306fdde0314610479575b600080fd5b34801561040b57600080fd5b5061041f61041a366004612489565b610bd0565b60405190151581526020015b60405180910390f35b34801561044057600080fd5b50610449610c22565b60405190815260200161042b565b34801561046357600080fd5b506104776104723660046124a6565b610c39565b005b34801561048557600080fd5b5061048e610c53565b60405161042b9190612568565b3480156104a757600080fd5b506104bb6104b636600461257b565b610ce5565b6040516001600160a01b03909116815260200161042b565b6104776104e13660046125ab565b610d29565b3480156104f257600080fd5b5061048e61050136600461257b565b610dc9565b34801561051257600080fd5b5060015460005403610449565b34801561052b57600080fd5b5060215461041f9062010000900460ff1681565b34801561054b57600080fd5b5061044960185481565b34801561056157600080fd5b50610449610de4565b34801561057657600080fd5b506104776105853660046125e5565b610df6565b34801561059657600080fd5b506104776105a53660046125e5565b610e1a565b3480156105b657600080fd5b506105de7f000000000000000000000000000000000000000000000000000000000000000081565b60405167ffffffffffffffff909116815260200161042b565b610477610605366004612600565b610e35565b34801561061657600080fd5b50610449610fce565b34801561062b57600080fd5b50602054610449565b34801561064057600080fd5b50610449610fe0565b34801561065557600080fd5b5061044960125481565b34801561066b57600080fd5b50610449610ff2565b34801561068057600080fd5b50610477611004565b34801561069557600080fd5b506104496110ff565b6104776106ac366004612600565b611111565b3480156106bd57600080fd5b5061048e6106cc36600461257b565b61112c565b3480156106dd57600080fd5b506104496111ce565b3480156106f257600080fd5b506104776107013660046125e5565b6111e0565b34801561071257600080fd5b50610449600d5481565b34801561072857600080fd5b506104776107373660046126c8565b611202565b34801561074857600080fd5b506104776107573660046125e5565b61121a565b34801561076857600080fd5b506104bb61077736600461257b565b611235565b34801561078857600080fd5b5061044960145481565b34801561079e57600080fd5b506104776107ad36600461257b565b611240565b3480156107be57600080fd5b5061044960135481565b3480156107d457600080fd5b506104496107e3366004612711565b61141c565b3480156107f457600080fd5b5061044961146b565b34801561080957600080fd5b5061047761147d565b34801561081e57600080fd5b50610449611491565b34801561083357600080fd5b50610449600f5481565b34801561084957600080fd5b5061044961085836600461257b565b601a6020526000908152604090205481565b34801561087657600080fd5b506008546001600160a01b03166104bb565b34801561089457600080fd5b5061048e6108a336600461257b565b6114a3565b3480156108b457600080fd5b5061048e61153d565b3480156108c957600080fd5b5061044960175481565b3480156108df57600080fd5b5061044961154c565b3480156108f457600080fd5b506108fd61155e565b60405161042b919061272c565b34801561091657600080fd5b50601d5461041f90610100900460ff1681565b61047761093736600461257b565b6115b5565b34801561094857600080fd5b50610477610957366004612770565b6118ba565b34801561096857600080fd5b506104776109773660046125e5565b611926565b34801561098857600080fd5b5061044961099736600461257b565b6000908152601a602052604090205490565b3480156109b557600080fd5b506104776109c436600461257b565b611948565b3480156109d557600080fd5b506104776109e43660046127a3565b611955565b6104776109f73660046127c5565b611981565b348015610a0857600080fd5b5061048e610a1736600461257b565b6119cb565b348015610a2857600080fd5b50610477610a3736600461257b565b6119f0565b348015610a4857600080fd5b5061044960105481565b348015610a5e57600080fd5b50610449610a6d36600461257b565b6119fd565b348015610a7e57600080fd5b5060215461041f90610100900460ff1681565b348015610a9d57600080fd5b50610477610aac3660046127a3565b611c2d565b348015610abd57600080fd5b50601d54610100900460ff1661041f565b348015610ada57600080fd5b5061041f610ae9366004612841565b611c47565b348015610afa57600080fd5b5061041f610b09366004612711565b611c75565b348015610b1a57600080fd5b5061044960115481565b348015610b3057600080fd5b50610477610b3f36600461257b565b611ca1565b348015610b5057600080fd5b50610477610b5f366004612711565b611d15565b348015610b7057600080fd5b50610449610b7f366004612711565b611d8b565b348015610b9057600080fd5b50610477610b9f3660046125e5565b611eab565b348015610bb057600080fd5b5061044960165481565b348015610bc657600080fd5b5061044960155481565b60006301ffc9a760e01b6001600160e01b031983161480610c0157506380ac58cd60e01b6001600160e01b03198316145b80610c1c5750635b5e139f60e01b6001600160e01b03198316145b92915050565b60006010546103e8610c349190612881565b905090565b610c41611ec6565b601b610c4e828483612914565b505050565b606060028054610c6290612894565b80601f0160208091040260200160405190810160405280929190818152602001828054610c8e90612894565b8015610cdb5780601f10610cb057610100808354040283529160200191610cdb565b820191906000526020600020905b815481529060010190602001808311610cbe57829003601f168201915b5050505050905090565b6000610cf082611f20565b610d0d576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b6000610d3482611235565b9050336001600160a01b03821614610d6d57610d508133611c47565b610d6d576040516367d9dca160e11b815260040160405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6060610c1c6106cc836000908152601a602052604090205490565b60006016546103e8610c349190612881565b610dfe611ec6565b60218054911515620100000262ff000019909216919091179055565b610e22611ec6565b601d805460ff1916911515919091179055565b6000610e4082611f47565b9050836001600160a01b0316816001600160a01b031614610e735760405162a1148160e81b815260040160405180910390fd5b60008281526006602052604090208054338082146001600160a01b03881690911417610ec057610ea38633611c47565b610ec057604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b038516610ee757604051633a954ecd60e21b815260040160405180910390fd5b8015610ef257600082555b6001600160a01b038681166000908152600560205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260046020526040812091909155600160e11b84169003610f8457600184016000818152600460205260408120549003610f82576000548114610f825760008181526004602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b505050505050565b60006015546103e8610c349190612881565b60006011546103e8610c349190612881565b60006018546103e8610c349190612881565b61100c611ec6565b600047116110565760405162461bcd60e51b81526020600482015260126024820152714e6f7468696e6720746f2072656c6561736560701b60448201526064015b60405180910390fd5b600061106a6008546001600160a01b031690565b6001600160a01b03164760405160006040518083038185875af1925050503d80600081146110b4576040519150601f19603f3d011682016040523d82523d6000602084013e6110b9565b606091505b50509050806110fc5760405162461bcd60e51b815260206004820152600f60248201526e1dda5d1a191c985dc819985a5b1959608a1b604482015260640161104d565b50565b6000600f546103e8610c349190612881565b610c4e83838360405180602001604052806000815250611981565b600081815260196020526040902080546060919061114990612894565b80601f016020809104026020016040519081016040528092919081815260200182805461117590612894565b80156111c25780601f10611197576101008083540402835291602001916111c2565b820191906000526020600020905b8154815290600101906020018083116111a557829003601f168201915b50505050509050919050565b60006014546103e8610c349190612881565b6111e8611ec6565b602180549115156101000261ff0019909216919091179055565b61120a611ec6565b601c61121682826129d5565b5050565b611222611ec6565b6021805460ff1916911515919091179055565b6000610c1c82611f47565b807f000000000000000000000000000000000000000000000000000000000000000067ffffffffffffffff168161127a6001546000540390565b6112849190612a95565b11156112a357604051638a164f6360e01b815260040160405180910390fd5b6000602054116112ea5760405162461bcd60e51b8152602060048201526012602482015271139bc8119c995948135a5b9d1cc81319599d60721b604482015260640161104d565b601d5460ff166113d7576023543360009081526022602052604090205411156113555760405162461bcd60e51b815260206004820152601e60248201527f4d6178205065722057616c6c6574205265616368656420416c72656164790000604482015260640161104d565b6024548211156113a75760405162461bcd60e51b815260206004820152601e60248201527f4d6178205065722057616c6c6574205265616368656420416c72656164790000604482015260640161104d565b60006113b233611d8b565b9050806000036113d557604051635f41217960e11b815260040160405180910390fd5b505b81602060008282546113e99190612881565b9091555050336000908152602260205260408120805484929061140d908490612a95565b90915550611216905082611fae565b60006001600160a01b038216611445576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b60006012546103e8610c349190612881565b611485611ec6565b61148f6000611fea565b565b60006013546103e8610c349190612881565b601960205260009081526040902080546114bc90612894565b80601f01602080910402602001604051908101604052809291908181526020018280546114e890612894565b80156115355780601f1061150a57610100808354040283529160200191611535565b820191906000526020600020905b81548152906001019060200180831161151857829003601f168201915b505050505081565b606060038054610c6290612894565b60006017546103e8610c349190612881565b6060601e805480602002602001604051908101604052809291908181526020018280548015610cdb57602002820191906000526020600020905b815481526020019060010190808311611598575050505050905090565b601d54819060ff1661160e57601e6115cc3361141c565b1061160e5760405162461bcd60e51b815260206004820152601260248201527115d85b1b195d0813585e0814995858da195960721b604482015260640161104d565b600d548111156116315760405163db815ecd60e01b815260040160405180910390fd5b817f000000000000000000000000000000000000000000000000000000000000000067ffffffffffffffff168161166b6001546000540390565b6116759190612a95565b111561169457604051638a164f6360e01b815260040160405180910390fd5b601d5460ff6101009091041615156001146116c2576040516316851fc760e11b815260040160405180910390fd5b346000036117a3576116d333611c75565b156117185760405162461bcd60e51b815260206004820152601560248201527446726565204d696e7420556e617661696c61626c6560581b604482015260640161104d565b8260011461175f5760405162461bcd60e51b815260206004820152601460248201527343616e206f6e6c79206d696e742031206672656560601b604482015260640161104d565b6117696001611fae565b336000908152601f602090815260408220805460ff191660019081179091558154909290611798908490612881565b90915550610c4e9050565b6113876117b36001546000540390565b1161182c5782601e6000815481106117cd576117cd612aa8565b90600052602060002001546117e29190612abe565b34146118275760405162461bcd60e51b8152602060048201526014602482015273151a19481c1c9a58d9481a5cc81a5b9d985b1a5960621b604482015260640161104d565b6118b1565b61138761183c6001546000540390565b11156118b15782601e60018154811061185757611857612aa8565b906000526020600020015461186c9190612abe565b34146118b15760405162461bcd60e51b8152602060048201526014602482015273151a19481c1c9a58d9481a5cc81a5b9d985b1a5960621b604482015260640161104d565b610c4e83611fae565b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b61192e611ec6565b601d80549115156101000261ff0019909216919091179055565b611950611ec6565b602355565b61195d611ec6565b80601e838154811061197157611971612aa8565b6000918252602090912001555050565b61198c848484610e35565b6001600160a01b0383163b156119c5576119a88484848461203c565b6119c5576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b60255460609060ff16156119e257610c1c82612128565b610c1c826121a0565b919050565b6119f8611ec6565b602455565b604080514260208201524491810191909152606081018290526000908190600a906080016040516020818303038152906040528051906020012060001c611a449190612ad5565b905060005b81158015611a585750600f5415155b15611a7a57600f8054906000611a6d83612af7565b9091555091949350505050565b816001148015611a8b575060105415155b15611aa05760108054906000611a6d83612af7565b816002148015611ab1575060115415155b15611ac65760118054906000611a6d83612af7565b816003148015611ad7575060125415155b15611aec5760128054906000611a6d83612af7565b816004148015611afd575060135415155b15611b125760138054906000611a6d83612af7565b816005148015611b23575060145415155b15611b385760148054906000611a6d83612af7565b816006148015611b49575060155415155b15611b5e5760158054906000611a6d83612af7565b816007148015611b6f575060165415155b15611b845760168054906000611a6d83612af7565b816008148015611b95575060175415155b15611baa5760178054906000611a6d83612af7565b816009148015611bbb575060185415155b15611bd05760188054906000611a6d83612af7565b611bd981612b0e565b9050600a4244611be98488612a95565b60408051602081019490945283019190915260608201526080016040516020818303038152906040528051906020012060001c611c269190612ad5565b9150611a49565b611c35611ec6565b6000918252601a602052604090912055565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b6001600160a01b0381166000908152601f602052604081205460ff1680610c1c57506020541592915050565b611ca9611ec6565b807f000000000000000000000000000000000000000000000000000000000000000067ffffffffffffffff1681611ce36001546000540390565b611ced9190612a95565b1115611d0c57604051638a164f6360e01b815260040160405180910390fd5b61121682611fae565b611d1d611ec6565b6001600160a01b038116611d825760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161104d565b6110fc81611fea565b6021546000908190610100900460ff1615611e1b57600b546040516370a0823160e01b81526001600160a01b038581166004830152909116906370a0823190602401602060405180830381865afa158015611dea573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e0e9190612b27565b611e189082612a95565b90505b60215462010000900460ff1615610c1c57600c546040516370a0823160e01b81526001600160a01b038581166004830152909116906370a0823190602401602060405180830381865afa158015611e76573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e9a9190612b27565b611ea49082612a95565b9392505050565b611eb3611ec6565b6025805460ff1916911515919091179055565b6008546001600160a01b0316331461148f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161104d565b6000805482108015610c1c575050600090815260046020526040902054600160e01b161590565b600081600054811015611f955760008181526004602052604081205490600160e01b82169003611f93575b80600003611ea4575060001901600081815260046020526040902054611f72565b505b604051636f96cda160e11b815260040160405180910390fd5b6000805490611fbd8383612a95565b9050611fc93384612233565b80821015610c4e57611fda82612331565b611fe382612b0e565b9150611fc9565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290612071903390899088908890600401612b40565b6020604051808303816000875af19250505080156120ac575060408051601f3d908101601f191682019092526120a991810190612b7d565b60015b61210a573d8080156120da576040519150601f19603f3d011682016040523d82523d6000602084013e6120df565b606091505b508051600003612102576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b606061213382611f20565b61215057604051630a14c4b560e41b815260040160405180910390fd5b6000828152601a6020908152604080832054835260199091529020601c816121778561233a565b60405160200161218993929190612c0d565b604051602081830303815290604052915050919050565b6000818152601a60209081526040808320548352601990915290206060906121c783611f20565b6121e457604051630a14c4b560e41b815260040160405180910390fd5b6122236121f08461233a565b601b6121fb8661233a565b8460405160200161220f9493929190612c49565b60405160208183030381529060405261237e565b6040516020016121899190612d28565b60008054908290036122585760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03831660008181526005602090815260408083208054680100000000000000018802019055848352600490915281206001851460e11b4260a01b178317905582840190839083907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4600183015b81811461230757808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a46001016122cf565b508160000361232857604051622e076360e81b815260040160405180910390fd5b60005550505050565b611c35816119fd565b606060a06040510180604052602081039150506000815280825b600183039250600a81066030018353600a9004806123545750819003601f19909101908152919050565b6060610c1c8260008060608351801561246b576003600282010460021b60405192507f4142434445464748494a4b4c4d4e4f505152535455565758595a616263646566601f526102308515027f6768696a6b6c6d6e6f707172737475767778797a303132333435363738392d5f03603f52602083018181015b6003880197508751603f8160121c1651600053603f81600c1c1651600153603f8160061c1651600253603f8116516003535060005182526004820191508082106123f757601f01601f1916604052613d3d60f01b600384066002048083039190915260008615159091029182900352900382525b509392505050565b6001600160e01b0319811681146110fc57600080fd5b60006020828403121561249b57600080fd5b8135611ea481612473565b600080602083850312156124b957600080fd5b823567ffffffffffffffff808211156124d157600080fd5b818501915085601f8301126124e557600080fd5b8135818111156124f457600080fd5b86602082850101111561250657600080fd5b60209290920196919550909350505050565b60005b8381101561253357818101518382015260200161251b565b50506000910152565b60008151808452612554816020860160208601612518565b601f01601f19169290920160200192915050565b602081526000611ea4602083018461253c565b60006020828403121561258d57600080fd5b5035919050565b80356001600160a01b03811681146119eb57600080fd5b600080604083850312156125be57600080fd5b6125c783612594565b946020939093013593505050565b803580151581146119eb57600080fd5b6000602082840312156125f757600080fd5b611ea4826125d5565b60008060006060848603121561261557600080fd5b61261e84612594565b925061262c60208501612594565b9150604084013590509250925092565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff8084111561266d5761266d61263c565b604051601f8501601f19908116603f011681019082821181831017156126955761269561263c565b816040528093508581528686860111156126ae57600080fd5b858560208301376000602087830101525050509392505050565b6000602082840312156126da57600080fd5b813567ffffffffffffffff8111156126f157600080fd5b8201601f8101841361270257600080fd5b61212084823560208401612652565b60006020828403121561272357600080fd5b611ea482612594565b6020808252825182820181905260009190848201906040850190845b8181101561276457835183529284019291840191600101612748565b50909695505050505050565b6000806040838503121561278357600080fd5b61278c83612594565b915061279a602084016125d5565b90509250929050565b600080604083850312156127b657600080fd5b50508035926020909101359150565b600080600080608085870312156127db57600080fd5b6127e485612594565b93506127f260208601612594565b925060408501359150606085013567ffffffffffffffff81111561281557600080fd5b8501601f8101871361282657600080fd5b61283587823560208401612652565b91505092959194509250565b6000806040838503121561285457600080fd5b61285d83612594565b915061279a60208401612594565b634e487b7160e01b600052601160045260246000fd5b81810381811115610c1c57610c1c61286b565b600181811c908216806128a857607f821691505b6020821081036128c857634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115610c4e57600081815260208120601f850160051c810160208610156128f55750805b601f850160051c820191505b81811015610fc657828155600101612901565b67ffffffffffffffff83111561292c5761292c61263c565b6129408361293a8354612894565b836128ce565b6000601f841160018114612974576000851561295c5750838201355b600019600387901b1c1916600186901b1783556129ce565b600083815260209020601f19861690835b828110156129a55786850135825560209485019460019092019101612985565b50868210156129c25760001960f88860031b161c19848701351681555b505060018560011b0183555b5050505050565b815167ffffffffffffffff8111156129ef576129ef61263c565b612a03816129fd8454612894565b846128ce565b602080601f831160018114612a385760008415612a205750858301515b600019600386901b1c1916600185901b178555610fc6565b600085815260208120601f198616915b82811015612a6757888601518255948401946001909101908401612a48565b5085821015612a855787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b80820180821115610c1c57610c1c61286b565b634e487b7160e01b600052603260045260246000fd5b8082028115828204841417610c1c57610c1c61286b565b600082612af257634e487b7160e01b600052601260045260246000fd5b500690565b600081612b0657612b0661286b565b506000190190565b600060018201612b2057612b2061286b565b5060010190565b600060208284031215612b3957600080fd5b5051919050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612b739083018461253c565b9695505050505050565b600060208284031215612b8f57600080fd5b8151611ea481612473565b60008154612ba781612894565b60018281168015612bbf5760018114612bd457612c03565b60ff1984168752821515830287019450612c03565b8560005260208060002060005b85811015612bfa5781548a820152908401908201612be1565b50505082870194505b5050505092915050565b6000612c22612c1c8387612b9a565b85612b9a565b602f60f81b81528351612c3c816001840160208801612518565b0160010195945050505050565b7503d913730b6b2911d10112932b6b4b634b79b1a1011960551b81528451600090612c7b816016850160208a01612518565b6c1116101134b6b0b3b2911d101160991b601691840191820152612ca26023820187612b9a565b90508451612cb4818360208901612518565b632e6a706760e01b910190815261088b60f21b60048201526e2261747472696275746573223a205b60881b60068201526c3d913330b1ba34b7b7111d101160991b6015820152612d076022820185612b9a565b601160f91b8152627d5d7d60e81b6001820152600401979650505050505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c000000815260008251612d6081601d850160208701612518565b91909101601d019291505056fea26469706673582212209d6b8fecdfdf5d9893620cd7428a9c7b06e88d6758f4664de6600e08584a490464736f6c63430008110033697066733a2f2f6261667962656967376a6d77326e62626d626a687468796873636c657136366761623569766c6977646c75366b776e6574727869656d6b746c6c342f

Deployed Bytecode

0x6080604052600436106103fa5760003560e01c8063710d625a11610213578063b3de019c11610123578063e985e9c5116100ab578063f2fde38b1161007a578063f2fde38b14610b44578063f513ba3814610b64578063f5c841d714610b84578063fb329b2114610ba4578063fb9224b814610bba57600080fd5b8063e985e9c514610ace578063ea41270914610aee578063ee555d4c14610b0e578063f19e75d414610b2457600080fd5b8063cb2c9051116100f2578063cb2c905114610a3c578063cf6010f914610a52578063d6f3905114610a72578063ded0b7aa14610a91578063e46a0d5a14610ab157600080fd5b8063b3de019c146109c9578063b88d4fde146109e9578063c87b56dd146109fc578063c9ef50b214610a1c57600080fd5b80639676530c116101a6578063a0712d6811610175578063a0712d6814610929578063a22cb4651461093c578063a774225e1461095c578063a8a150b81461097c578063b3128daf146109a957600080fd5b80639676530c146108bd5780639790421c146108d357806398d5fdca146108e85780639b70a3401461090a57600080fd5b806386e34a3b116101e257806386e34a3b1461083d5780638da5cb5b1461086a5780638ee547e11461088857806395d89b41146108a857600080fd5b8063710d625a146107e8578063715018a6146107fd57806379bd98e51461081257806379d37e951461082757600080fd5b80632db13c731161030e5780634e3d8f32116102a15780636352211e116102705780636352211e1461075c57806367e484461461077c5780636c41c3d814610792578063707a6e1c146107b257806370a08231146107c857600080fd5b80634e3d8f32146106e6578063507e094f1461070657806355f804b31461071c5780635762fccb1461073c57600080fd5b80634045c7f6116102dd5780634045c7f61461068957806342842e0e1461069e57806345baff65146106b157806349c83de9146106d157600080fd5b80632db13c73146106345780632f963b951461064957806333d73e4f1461065f5780633ccfd60b1461067457600080fd5b80631b4e58e2116103915780631ff1292f116103605780631ff1292f1461058a57806322f4596f146105aa57806323b872dd146105f757806326c53ed51461060a5780632b190f181461061f57600080fd5b80631b4e58e21461051f5780631c7583e61461053f5780631ce1b9c9146105555780631d7e01451461056a57600080fd5b8063081812fc116103cd578063081812fc1461049b578063095ea7b3146104d35780630e6153e6146104e657806318160ddd1461050657600080fd5b806301ffc9a7146103ff578063041b1aa31461043457806304787ca21461045757806306fdde0314610479575b600080fd5b34801561040b57600080fd5b5061041f61041a366004612489565b610bd0565b60405190151581526020015b60405180910390f35b34801561044057600080fd5b50610449610c22565b60405190815260200161042b565b34801561046357600080fd5b506104776104723660046124a6565b610c39565b005b34801561048557600080fd5b5061048e610c53565b60405161042b9190612568565b3480156104a757600080fd5b506104bb6104b636600461257b565b610ce5565b6040516001600160a01b03909116815260200161042b565b6104776104e13660046125ab565b610d29565b3480156104f257600080fd5b5061048e61050136600461257b565b610dc9565b34801561051257600080fd5b5060015460005403610449565b34801561052b57600080fd5b5060215461041f9062010000900460ff1681565b34801561054b57600080fd5b5061044960185481565b34801561056157600080fd5b50610449610de4565b34801561057657600080fd5b506104776105853660046125e5565b610df6565b34801561059657600080fd5b506104776105a53660046125e5565b610e1a565b3480156105b657600080fd5b506105de7f000000000000000000000000000000000000000000000000000000000000271081565b60405167ffffffffffffffff909116815260200161042b565b610477610605366004612600565b610e35565b34801561061657600080fd5b50610449610fce565b34801561062b57600080fd5b50602054610449565b34801561064057600080fd5b50610449610fe0565b34801561065557600080fd5b5061044960125481565b34801561066b57600080fd5b50610449610ff2565b34801561068057600080fd5b50610477611004565b34801561069557600080fd5b506104496110ff565b6104776106ac366004612600565b611111565b3480156106bd57600080fd5b5061048e6106cc36600461257b565b61112c565b3480156106dd57600080fd5b506104496111ce565b3480156106f257600080fd5b506104776107013660046125e5565b6111e0565b34801561071257600080fd5b50610449600d5481565b34801561072857600080fd5b506104776107373660046126c8565b611202565b34801561074857600080fd5b506104776107573660046125e5565b61121a565b34801561076857600080fd5b506104bb61077736600461257b565b611235565b34801561078857600080fd5b5061044960145481565b34801561079e57600080fd5b506104776107ad36600461257b565b611240565b3480156107be57600080fd5b5061044960135481565b3480156107d457600080fd5b506104496107e3366004612711565b61141c565b3480156107f457600080fd5b5061044961146b565b34801561080957600080fd5b5061047761147d565b34801561081e57600080fd5b50610449611491565b34801561083357600080fd5b50610449600f5481565b34801561084957600080fd5b5061044961085836600461257b565b601a6020526000908152604090205481565b34801561087657600080fd5b506008546001600160a01b03166104bb565b34801561089457600080fd5b5061048e6108a336600461257b565b6114a3565b3480156108b457600080fd5b5061048e61153d565b3480156108c957600080fd5b5061044960175481565b3480156108df57600080fd5b5061044961154c565b3480156108f457600080fd5b506108fd61155e565b60405161042b919061272c565b34801561091657600080fd5b50601d5461041f90610100900460ff1681565b61047761093736600461257b565b6115b5565b34801561094857600080fd5b50610477610957366004612770565b6118ba565b34801561096857600080fd5b506104776109773660046125e5565b611926565b34801561098857600080fd5b5061044961099736600461257b565b6000908152601a602052604090205490565b3480156109b557600080fd5b506104776109c436600461257b565b611948565b3480156109d557600080fd5b506104776109e43660046127a3565b611955565b6104776109f73660046127c5565b611981565b348015610a0857600080fd5b5061048e610a1736600461257b565b6119cb565b348015610a2857600080fd5b50610477610a3736600461257b565b6119f0565b348015610a4857600080fd5b5061044960105481565b348015610a5e57600080fd5b50610449610a6d36600461257b565b6119fd565b348015610a7e57600080fd5b5060215461041f90610100900460ff1681565b348015610a9d57600080fd5b50610477610aac3660046127a3565b611c2d565b348015610abd57600080fd5b50601d54610100900460ff1661041f565b348015610ada57600080fd5b5061041f610ae9366004612841565b611c47565b348015610afa57600080fd5b5061041f610b09366004612711565b611c75565b348015610b1a57600080fd5b5061044960115481565b348015610b3057600080fd5b50610477610b3f36600461257b565b611ca1565b348015610b5057600080fd5b50610477610b5f366004612711565b611d15565b348015610b7057600080fd5b50610449610b7f366004612711565b611d8b565b348015610b9057600080fd5b50610477610b9f3660046125e5565b611eab565b348015610bb057600080fd5b5061044960165481565b348015610bc657600080fd5b5061044960155481565b60006301ffc9a760e01b6001600160e01b031983161480610c0157506380ac58cd60e01b6001600160e01b03198316145b80610c1c5750635b5e139f60e01b6001600160e01b03198316145b92915050565b60006010546103e8610c349190612881565b905090565b610c41611ec6565b601b610c4e828483612914565b505050565b606060028054610c6290612894565b80601f0160208091040260200160405190810160405280929190818152602001828054610c8e90612894565b8015610cdb5780601f10610cb057610100808354040283529160200191610cdb565b820191906000526020600020905b815481529060010190602001808311610cbe57829003601f168201915b5050505050905090565b6000610cf082611f20565b610d0d576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b6000610d3482611235565b9050336001600160a01b03821614610d6d57610d508133611c47565b610d6d576040516367d9dca160e11b815260040160405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6060610c1c6106cc836000908152601a602052604090205490565b60006016546103e8610c349190612881565b610dfe611ec6565b60218054911515620100000262ff000019909216919091179055565b610e22611ec6565b601d805460ff1916911515919091179055565b6000610e4082611f47565b9050836001600160a01b0316816001600160a01b031614610e735760405162a1148160e81b815260040160405180910390fd5b60008281526006602052604090208054338082146001600160a01b03881690911417610ec057610ea38633611c47565b610ec057604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b038516610ee757604051633a954ecd60e21b815260040160405180910390fd5b8015610ef257600082555b6001600160a01b038681166000908152600560205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260046020526040812091909155600160e11b84169003610f8457600184016000818152600460205260408120549003610f82576000548114610f825760008181526004602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b505050505050565b60006015546103e8610c349190612881565b60006011546103e8610c349190612881565b60006018546103e8610c349190612881565b61100c611ec6565b600047116110565760405162461bcd60e51b81526020600482015260126024820152714e6f7468696e6720746f2072656c6561736560701b60448201526064015b60405180910390fd5b600061106a6008546001600160a01b031690565b6001600160a01b03164760405160006040518083038185875af1925050503d80600081146110b4576040519150601f19603f3d011682016040523d82523d6000602084013e6110b9565b606091505b50509050806110fc5760405162461bcd60e51b815260206004820152600f60248201526e1dda5d1a191c985dc819985a5b1959608a1b604482015260640161104d565b50565b6000600f546103e8610c349190612881565b610c4e83838360405180602001604052806000815250611981565b600081815260196020526040902080546060919061114990612894565b80601f016020809104026020016040519081016040528092919081815260200182805461117590612894565b80156111c25780601f10611197576101008083540402835291602001916111c2565b820191906000526020600020905b8154815290600101906020018083116111a557829003601f168201915b50505050509050919050565b60006014546103e8610c349190612881565b6111e8611ec6565b602180549115156101000261ff0019909216919091179055565b61120a611ec6565b601c61121682826129d5565b5050565b611222611ec6565b6021805460ff1916911515919091179055565b6000610c1c82611f47565b807f000000000000000000000000000000000000000000000000000000000000271067ffffffffffffffff168161127a6001546000540390565b6112849190612a95565b11156112a357604051638a164f6360e01b815260040160405180910390fd5b6000602054116112ea5760405162461bcd60e51b8152602060048201526012602482015271139bc8119c995948135a5b9d1cc81319599d60721b604482015260640161104d565b601d5460ff166113d7576023543360009081526022602052604090205411156113555760405162461bcd60e51b815260206004820152601e60248201527f4d6178205065722057616c6c6574205265616368656420416c72656164790000604482015260640161104d565b6024548211156113a75760405162461bcd60e51b815260206004820152601e60248201527f4d6178205065722057616c6c6574205265616368656420416c72656164790000604482015260640161104d565b60006113b233611d8b565b9050806000036113d557604051635f41217960e11b815260040160405180910390fd5b505b81602060008282546113e99190612881565b9091555050336000908152602260205260408120805484929061140d908490612a95565b90915550611216905082611fae565b60006001600160a01b038216611445576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b60006012546103e8610c349190612881565b611485611ec6565b61148f6000611fea565b565b60006013546103e8610c349190612881565b601960205260009081526040902080546114bc90612894565b80601f01602080910402602001604051908101604052809291908181526020018280546114e890612894565b80156115355780601f1061150a57610100808354040283529160200191611535565b820191906000526020600020905b81548152906001019060200180831161151857829003601f168201915b505050505081565b606060038054610c6290612894565b60006017546103e8610c349190612881565b6060601e805480602002602001604051908101604052809291908181526020018280548015610cdb57602002820191906000526020600020905b815481526020019060010190808311611598575050505050905090565b601d54819060ff1661160e57601e6115cc3361141c565b1061160e5760405162461bcd60e51b815260206004820152601260248201527115d85b1b195d0813585e0814995858da195960721b604482015260640161104d565b600d548111156116315760405163db815ecd60e01b815260040160405180910390fd5b817f000000000000000000000000000000000000000000000000000000000000271067ffffffffffffffff168161166b6001546000540390565b6116759190612a95565b111561169457604051638a164f6360e01b815260040160405180910390fd5b601d5460ff6101009091041615156001146116c2576040516316851fc760e11b815260040160405180910390fd5b346000036117a3576116d333611c75565b156117185760405162461bcd60e51b815260206004820152601560248201527446726565204d696e7420556e617661696c61626c6560581b604482015260640161104d565b8260011461175f5760405162461bcd60e51b815260206004820152601460248201527343616e206f6e6c79206d696e742031206672656560601b604482015260640161104d565b6117696001611fae565b336000908152601f602090815260408220805460ff191660019081179091558154909290611798908490612881565b90915550610c4e9050565b6113876117b36001546000540390565b1161182c5782601e6000815481106117cd576117cd612aa8565b90600052602060002001546117e29190612abe565b34146118275760405162461bcd60e51b8152602060048201526014602482015273151a19481c1c9a58d9481a5cc81a5b9d985b1a5960621b604482015260640161104d565b6118b1565b61138761183c6001546000540390565b11156118b15782601e60018154811061185757611857612aa8565b906000526020600020015461186c9190612abe565b34146118b15760405162461bcd60e51b8152602060048201526014602482015273151a19481c1c9a58d9481a5cc81a5b9d985b1a5960621b604482015260640161104d565b610c4e83611fae565b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b61192e611ec6565b601d80549115156101000261ff0019909216919091179055565b611950611ec6565b602355565b61195d611ec6565b80601e838154811061197157611971612aa8565b6000918252602090912001555050565b61198c848484610e35565b6001600160a01b0383163b156119c5576119a88484848461203c565b6119c5576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b60255460609060ff16156119e257610c1c82612128565b610c1c826121a0565b919050565b6119f8611ec6565b602455565b604080514260208201524491810191909152606081018290526000908190600a906080016040516020818303038152906040528051906020012060001c611a449190612ad5565b905060005b81158015611a585750600f5415155b15611a7a57600f8054906000611a6d83612af7565b9091555091949350505050565b816001148015611a8b575060105415155b15611aa05760108054906000611a6d83612af7565b816002148015611ab1575060115415155b15611ac65760118054906000611a6d83612af7565b816003148015611ad7575060125415155b15611aec5760128054906000611a6d83612af7565b816004148015611afd575060135415155b15611b125760138054906000611a6d83612af7565b816005148015611b23575060145415155b15611b385760148054906000611a6d83612af7565b816006148015611b49575060155415155b15611b5e5760158054906000611a6d83612af7565b816007148015611b6f575060165415155b15611b845760168054906000611a6d83612af7565b816008148015611b95575060175415155b15611baa5760178054906000611a6d83612af7565b816009148015611bbb575060185415155b15611bd05760188054906000611a6d83612af7565b611bd981612b0e565b9050600a4244611be98488612a95565b60408051602081019490945283019190915260608201526080016040516020818303038152906040528051906020012060001c611c269190612ad5565b9150611a49565b611c35611ec6565b6000918252601a602052604090912055565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b6001600160a01b0381166000908152601f602052604081205460ff1680610c1c57506020541592915050565b611ca9611ec6565b807f000000000000000000000000000000000000000000000000000000000000271067ffffffffffffffff1681611ce36001546000540390565b611ced9190612a95565b1115611d0c57604051638a164f6360e01b815260040160405180910390fd5b61121682611fae565b611d1d611ec6565b6001600160a01b038116611d825760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161104d565b6110fc81611fea565b6021546000908190610100900460ff1615611e1b57600b546040516370a0823160e01b81526001600160a01b038581166004830152909116906370a0823190602401602060405180830381865afa158015611dea573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e0e9190612b27565b611e189082612a95565b90505b60215462010000900460ff1615610c1c57600c546040516370a0823160e01b81526001600160a01b038581166004830152909116906370a0823190602401602060405180830381865afa158015611e76573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e9a9190612b27565b611ea49082612a95565b9392505050565b611eb3611ec6565b6025805460ff1916911515919091179055565b6008546001600160a01b0316331461148f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161104d565b6000805482108015610c1c575050600090815260046020526040902054600160e01b161590565b600081600054811015611f955760008181526004602052604081205490600160e01b82169003611f93575b80600003611ea4575060001901600081815260046020526040902054611f72565b505b604051636f96cda160e11b815260040160405180910390fd5b6000805490611fbd8383612a95565b9050611fc93384612233565b80821015610c4e57611fda82612331565b611fe382612b0e565b9150611fc9565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290612071903390899088908890600401612b40565b6020604051808303816000875af19250505080156120ac575060408051601f3d908101601f191682019092526120a991810190612b7d565b60015b61210a573d8080156120da576040519150601f19603f3d011682016040523d82523d6000602084013e6120df565b606091505b508051600003612102576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b606061213382611f20565b61215057604051630a14c4b560e41b815260040160405180910390fd5b6000828152601a6020908152604080832054835260199091529020601c816121778561233a565b60405160200161218993929190612c0d565b604051602081830303815290604052915050919050565b6000818152601a60209081526040808320548352601990915290206060906121c783611f20565b6121e457604051630a14c4b560e41b815260040160405180910390fd5b6122236121f08461233a565b601b6121fb8661233a565b8460405160200161220f9493929190612c49565b60405160208183030381529060405261237e565b6040516020016121899190612d28565b60008054908290036122585760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03831660008181526005602090815260408083208054680100000000000000018802019055848352600490915281206001851460e11b4260a01b178317905582840190839083907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4600183015b81811461230757808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a46001016122cf565b508160000361232857604051622e076360e81b815260040160405180910390fd5b60005550505050565b611c35816119fd565b606060a06040510180604052602081039150506000815280825b600183039250600a81066030018353600a9004806123545750819003601f19909101908152919050565b6060610c1c8260008060608351801561246b576003600282010460021b60405192507f4142434445464748494a4b4c4d4e4f505152535455565758595a616263646566601f526102308515027f6768696a6b6c6d6e6f707172737475767778797a303132333435363738392d5f03603f52602083018181015b6003880197508751603f8160121c1651600053603f81600c1c1651600153603f8160061c1651600253603f8116516003535060005182526004820191508082106123f757601f01601f1916604052613d3d60f01b600384066002048083039190915260008615159091029182900352900382525b509392505050565b6001600160e01b0319811681146110fc57600080fd5b60006020828403121561249b57600080fd5b8135611ea481612473565b600080602083850312156124b957600080fd5b823567ffffffffffffffff808211156124d157600080fd5b818501915085601f8301126124e557600080fd5b8135818111156124f457600080fd5b86602082850101111561250657600080fd5b60209290920196919550909350505050565b60005b8381101561253357818101518382015260200161251b565b50506000910152565b60008151808452612554816020860160208601612518565b601f01601f19169290920160200192915050565b602081526000611ea4602083018461253c565b60006020828403121561258d57600080fd5b5035919050565b80356001600160a01b03811681146119eb57600080fd5b600080604083850312156125be57600080fd5b6125c783612594565b946020939093013593505050565b803580151581146119eb57600080fd5b6000602082840312156125f757600080fd5b611ea4826125d5565b60008060006060848603121561261557600080fd5b61261e84612594565b925061262c60208501612594565b9150604084013590509250925092565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff8084111561266d5761266d61263c565b604051601f8501601f19908116603f011681019082821181831017156126955761269561263c565b816040528093508581528686860111156126ae57600080fd5b858560208301376000602087830101525050509392505050565b6000602082840312156126da57600080fd5b813567ffffffffffffffff8111156126f157600080fd5b8201601f8101841361270257600080fd5b61212084823560208401612652565b60006020828403121561272357600080fd5b611ea482612594565b6020808252825182820181905260009190848201906040850190845b8181101561276457835183529284019291840191600101612748565b50909695505050505050565b6000806040838503121561278357600080fd5b61278c83612594565b915061279a602084016125d5565b90509250929050565b600080604083850312156127b657600080fd5b50508035926020909101359150565b600080600080608085870312156127db57600080fd5b6127e485612594565b93506127f260208601612594565b925060408501359150606085013567ffffffffffffffff81111561281557600080fd5b8501601f8101871361282657600080fd5b61283587823560208401612652565b91505092959194509250565b6000806040838503121561285457600080fd5b61285d83612594565b915061279a60208401612594565b634e487b7160e01b600052601160045260246000fd5b81810381811115610c1c57610c1c61286b565b600181811c908216806128a857607f821691505b6020821081036128c857634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115610c4e57600081815260208120601f850160051c810160208610156128f55750805b601f850160051c820191505b81811015610fc657828155600101612901565b67ffffffffffffffff83111561292c5761292c61263c565b6129408361293a8354612894565b836128ce565b6000601f841160018114612974576000851561295c5750838201355b600019600387901b1c1916600186901b1783556129ce565b600083815260209020601f19861690835b828110156129a55786850135825560209485019460019092019101612985565b50868210156129c25760001960f88860031b161c19848701351681555b505060018560011b0183555b5050505050565b815167ffffffffffffffff8111156129ef576129ef61263c565b612a03816129fd8454612894565b846128ce565b602080601f831160018114612a385760008415612a205750858301515b600019600386901b1c1916600185901b178555610fc6565b600085815260208120601f198616915b82811015612a6757888601518255948401946001909101908401612a48565b5085821015612a855787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b80820180821115610c1c57610c1c61286b565b634e487b7160e01b600052603260045260246000fd5b8082028115828204841417610c1c57610c1c61286b565b600082612af257634e487b7160e01b600052601260045260246000fd5b500690565b600081612b0657612b0661286b565b506000190190565b600060018201612b2057612b2061286b565b5060010190565b600060208284031215612b3957600080fd5b5051919050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612b739083018461253c565b9695505050505050565b600060208284031215612b8f57600080fd5b8151611ea481612473565b60008154612ba781612894565b60018281168015612bbf5760018114612bd457612c03565b60ff1984168752821515830287019450612c03565b8560005260208060002060005b85811015612bfa5781548a820152908401908201612be1565b50505082870194505b5050505092915050565b6000612c22612c1c8387612b9a565b85612b9a565b602f60f81b81528351612c3c816001840160208801612518565b0160010195945050505050565b7503d913730b6b2911d10112932b6b4b634b79b1a1011960551b81528451600090612c7b816016850160208a01612518565b6c1116101134b6b0b3b2911d101160991b601691840191820152612ca26023820187612b9a565b90508451612cb4818360208901612518565b632e6a706760e01b910190815261088b60f21b60048201526e2261747472696275746573223a205b60881b60068201526c3d913330b1ba34b7b7111d101160991b6015820152612d076022820185612b9a565b601160f91b8152627d5d7d60e81b6001820152600401979650505050505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c000000815260008251612d6081601d850160208701612518565b91909101601d019291505056fea26469706673582212209d6b8fecdfdf5d9893620cd7428a9c7b06e88d6758f4664de6600e08584a490464736f6c63430008110033

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.