ETH Price: $2,400.06 (-4.35%)

Token

Sad as Duck (SAD)
 

Overview

Max Total Supply

1,009 SAD

Holders

363

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
pgold.eth
Balance
1 SAD
0xdb10943768bfe537628e16b241720682f23ea242
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:
SadAsDuck

Compiler Version
v0.8.11+commit.d7f03943

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 7 : SadAsDuck.sol
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.11;

//    _____           _                  _____             _
//   / ____|         | |     /\         |  __ \           | |
//  | (___   __ _  __| |    /  \   ___  | |  | |_   _  ___| | __
//   \___ \ / _` |/ _` |   / /\ \ / __| | |  | | | | |/ __| |/ /
//   ____) | (_| | (_| |  / ____ \\__ \ | |__| | |_| | (__|   <
//  |_____/ \__,_|\__,_| /_/    \_\___/ |_____/ \__,_|\___|_|\_\

import "erc721a/contracts/ERC721A.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";

contract SadAsDuck is ERC721A, Ownable {
    using Strings for uint256;

    uint256 public constant MAX_SUPPLY = 3333;
    uint256 public constant TEAM_MINT = 333;

    uint256 public constant MAX_PUBLIC_MINT = 5;
    uint256 public constant MAX_PRESALE_MINT = 3;

    uint256 public constant PUBLIC_PRICE = .05 ether;
    uint256 public constant PRESALE_PRICE = .03 ether;

    string private baseTokenUri;
    string public placeholderTokenUri;

    address public crossmintAddress =
        0xdAb1a1854214684acE522439684a145E62505233;

    /* Error Messages */
    string public constant NOT_LIVE = "Minting is not live.";
    string public constant OVER_SUPPLY = "Over max supply.";
    string public constant BELOW_PRICE = "Below sale price.";
    string public constant BEYOND_MAX = "Cannot mint beyond max.";
    string public constant MINT_PAUSED = "Minting is paused.";
    string public constant CROSSMINT_ONLY =
        "This function is for Crossmint only.";

    bool public isRevealed;
    bool public publicSale;
    bool public preSale;
    bool public paused;
    bool public teamMinted;

    bytes32 private merkleRoot;

    mapping(address => uint256) public totalPublicMint;
    mapping(address => uint256) public totalPresaleMint;

    constructor() ERC721A("Sad as Duck", "SAD") {}

    function crossmintPresale(
        address _to,
        uint256 _quantity,
        bytes32[] memory _merkleProof
    ) public payable {
        require(preSale, NOT_LIVE);
        require(!paused, MINT_PAUSED);
        require(msg.sender == crossmintAddress, CROSSMINT_ONLY);
        require(msg.value >= (PRESALE_PRICE * _quantity), BELOW_PRICE);
        require((totalSupply() + _quantity) <= MAX_SUPPLY, OVER_SUPPLY);
        require(
            (totalPresaleMint[_to] + _quantity) <= MAX_PRESALE_MINT,
            BEYOND_MAX
        );
        bytes32 sender = keccak256(abi.encodePacked(_to));
        require(
            MerkleProof.verify(_merkleProof, merkleRoot, sender),
            "Address is not on access list."
        );

        totalPresaleMint[_to] += _quantity;
        _safeMint(_to, _quantity);
    }

    function crossmint(address _to, uint256 _quantity) public payable {
        require(publicSale, NOT_LIVE);
        require(!paused, MINT_PAUSED);
        require(msg.sender == crossmintAddress, CROSSMINT_ONLY);
        require((totalSupply() + _quantity) <= MAX_SUPPLY, OVER_SUPPLY);
        require(msg.value >= (PUBLIC_PRICE * _quantity), BELOW_PRICE);
        require(
            (totalPublicMint[msg.sender] + _quantity) <= MAX_PUBLIC_MINT,
            BEYOND_MAX
        );

        totalPublicMint[_to] += _quantity;
        _safeMint(_to, _quantity);
    }

    function teamMint() external onlyOwner {
        require(!teamMinted, "Team already minted.");
        teamMinted = true;
        _safeMint(msg.sender, TEAM_MINT);
    }

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

    function tokenURI(uint256 tokenId)
        public
        view
        virtual
        override
        returns (string memory)
    {
        require(
            _exists(tokenId),
            "ERC721Metadata: URI query for nonexistent token"
        );

        uint256 trueId = tokenId + 1;

        if (!isRevealed) {
            return placeholderTokenUri;
        }
        return
            bytes(baseTokenUri).length > 0
                ? string(
                    abi.encodePacked(baseTokenUri, trueId.toString(), ".json")
                )
                : "";
    }

    function setTokenUri(string memory _baseTokenUri) external onlyOwner {
        baseTokenUri = _baseTokenUri;
    }

    function setPlaceholderUri(string memory _placeholderTokenUri)
        external
        onlyOwner
    {
        placeholderTokenUri = _placeholderTokenUri;
    }

    function setMerkleRoot(bytes32 _merkleRoot) external onlyOwner {
        merkleRoot = _merkleRoot;
    }

    function getMerkleRoot() external view returns (bytes32) {
        return merkleRoot;
    }

    function togglePreSale() external onlyOwner {
        preSale = !preSale;
    }

    function togglePublicSale() external onlyOwner {
        publicSale = !publicSale;
    }

    function toggleReveal() external onlyOwner {
        isRevealed = !isRevealed;
    }

    function togglePause() external onlyOwner {
        paused = !paused;
    }

    function withdraw() external onlyOwner {
        payable(msg.sender).transfer(address(this).balance);
    }
}

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

pragma solidity ^0.8.4;

import './IERC721A.sol';

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

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

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

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

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

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

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

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

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

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

    // The 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 tokenId of the next token to be minted.
    uint256 private _currentIndex;

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Mapping from token ID to ownership details
    // An empty struct value does not necessarily mean the token is unowned.
    // See `_packedOwnershipOf` implementation for details.
    //
    // Bits Layout:
    // - [0..159]   `addr`
    // - [160..223] `startTimestamp`
    // - [224]      `burned`
    // - [225]      `nextInitialized`
    // - [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 => address) private _tokenApprovals;

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

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

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

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

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

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

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

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

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

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

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

    /**
     * Returns the 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 {
        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;
    }

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

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

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

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

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

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

    /**
     * @dev 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 See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view override returns (address) {
        return address(uint160(_packedOwnershipOf(tokenId)));
    }

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

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

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

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

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

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

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

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

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

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

        return _tokenApprovals[tokenId];
    }

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

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

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

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

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) public virtual override {
        transferFrom(from, to, tokenId);
        if (to.code.length != 0)
            if (!_checkContractOnERC721Received(from, to, tokenId, _data)) {
                revert TransferToNonERC721ReceiverImplementer();
            }
    }

    /**
     * @dev Returns whether `tokenId` exists.
     *
     * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}.
     *
     * Tokens start existing when they are minted (`_mint`),
     */
    function _exists(uint256 tokenId) internal view returns (bool) {
        return
            _startTokenId() <= tokenId &&
            tokenId < _currentIndex && // If within bounds,
            _packedOwnerships[tokenId] & BITMASK_BURNED == 0; // and not burned.
    }

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

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

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

        // Overflows are incredibly unrealistic.
        // `balance` 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 tokenId = startTokenId;
            uint256 end = startTokenId + quantity;
            do {
                emit Transfer(address(0), to, tokenId++);
            } while (tokenId < end);

            _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 {
        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 Returns the storage slot and value for the approved address of `tokenId`.
     */
    function _getApprovedAddress(uint256 tokenId)
        private
        view
        returns (uint256 approvedAddressSlot, address approvedAddress)
    {
        mapping(uint256 => address) storage tokenApprovalsPtr = _tokenApprovals;
        // The following is equivalent to `approvedAddress = _tokenApprovals[tokenId]`.
        assembly {
            // Compute the slot.
            mstore(0x00, tokenId)
            mstore(0x20, tokenApprovalsPtr.slot)
            approvedAddressSlot := keccak256(0x00, 0x40)
            // Load the slot's value from storage.
            approvedAddress := sload(approvedAddressSlot)
        }
    }

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

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId);

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

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

        // The nested ifs save around 20+ gas over a compound boolean condition.
        if (!_isOwnerOrApproved(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 `_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) = _getApprovedAddress(tokenId);

        if (approvalCheck) {
            // The nested ifs save around 20+ gas over a compound boolean condition.
            if (!_isOwnerOrApproved(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++;
        }
    }

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

    /**
     * @dev Directly sets the extra data for the ownership data `index`.
     */
    function _setExtraDataAt(uint256 index, uint24 extraData) internal {
        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 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;
    }

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

File 4 of 7 : 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 7 : MerkleProof.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/cryptography/MerkleProof.sol)

pragma solidity ^0.8.0;

/**
 * @dev These functions deal with verification of Merkle Tree proofs.
 *
 * The proofs can be generated using the JavaScript library
 * https://github.com/miguelmota/merkletreejs[merkletreejs].
 * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled.
 *
 * See `test/utils/cryptography/MerkleProof.test.js` for some examples.
 *
 * WARNING: You should avoid using leaf values that are 64 bytes long prior to
 * hashing, or use a hash function other than keccak256 for hashing leaves.
 * This is because the concatenation of a sorted pair of internal nodes in
 * the merkle tree could be reinterpreted as a leaf value.
 */
library MerkleProof {
    /**
     * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree
     * defined by `root`. For this, a `proof` must be provided, containing
     * sibling hashes on the branch from the leaf to the root of the tree. Each
     * pair of leaves and each pair of pre-images are assumed to be sorted.
     */
    function verify(
        bytes32[] memory proof,
        bytes32 root,
        bytes32 leaf
    ) internal pure returns (bool) {
        return processProof(proof, leaf) == root;
    }

    /**
     * @dev Calldata version of {verify}
     *
     * _Available since v4.7._
     */
    function verifyCalldata(
        bytes32[] calldata proof,
        bytes32 root,
        bytes32 leaf
    ) internal pure returns (bool) {
        return processProofCalldata(proof, leaf) == root;
    }

    /**
     * @dev Returns the rebuilt hash obtained by traversing a Merkle tree up
     * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt
     * hash matches the root of the tree. When processing the proof, the pairs
     * of leafs & pre-images are assumed to be sorted.
     *
     * _Available since v4.4._
     */
    function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) {
        bytes32 computedHash = leaf;
        for (uint256 i = 0; i < proof.length; i++) {
            computedHash = _hashPair(computedHash, proof[i]);
        }
        return computedHash;
    }

    /**
     * @dev Calldata version of {processProof}
     *
     * _Available since v4.7._
     */
    function processProofCalldata(bytes32[] calldata proof, bytes32 leaf) internal pure returns (bytes32) {
        bytes32 computedHash = leaf;
        for (uint256 i = 0; i < proof.length; i++) {
            computedHash = _hashPair(computedHash, proof[i]);
        }
        return computedHash;
    }

    /**
     * @dev Returns true if the `leaves` can be proved to be a part of a Merkle tree defined by
     * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}.
     *
     * _Available since v4.7._
     */
    function multiProofVerify(
        bytes32[] memory proof,
        bool[] memory proofFlags,
        bytes32 root,
        bytes32[] memory leaves
    ) internal pure returns (bool) {
        return processMultiProof(proof, proofFlags, leaves) == root;
    }

    /**
     * @dev Calldata version of {multiProofVerify}
     *
     * _Available since v4.7._
     */
    function multiProofVerifyCalldata(
        bytes32[] calldata proof,
        bool[] calldata proofFlags,
        bytes32 root,
        bytes32[] memory leaves
    ) internal pure returns (bool) {
        return processMultiProofCalldata(proof, proofFlags, leaves) == root;
    }

    /**
     * @dev Returns the root of a tree reconstructed from `leaves` and the sibling nodes in `proof`,
     * consuming from one or the other at each step according to the instructions given by
     * `proofFlags`.
     *
     * _Available since v4.7._
     */
    function processMultiProof(
        bytes32[] memory proof,
        bool[] memory proofFlags,
        bytes32[] memory leaves
    ) internal pure returns (bytes32 merkleRoot) {
        // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by
        // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the
        // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of
        // the merkle tree.
        uint256 leavesLen = leaves.length;
        uint256 totalHashes = proofFlags.length;

        // Check proof validity.
        require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof");

        // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using
        // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop".
        bytes32[] memory hashes = new bytes32[](totalHashes);
        uint256 leafPos = 0;
        uint256 hashPos = 0;
        uint256 proofPos = 0;
        // At each step, we compute the next hash using two values:
        // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we
        //   get the next hash.
        // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the
        //   `proof` array.
        for (uint256 i = 0; i < totalHashes; i++) {
            bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++];
            bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++];
            hashes[i] = _hashPair(a, b);
        }

        if (totalHashes > 0) {
            return hashes[totalHashes - 1];
        } else if (leavesLen > 0) {
            return leaves[0];
        } else {
            return proof[0];
        }
    }

    /**
     * @dev Calldata version of {processMultiProof}
     *
     * _Available since v4.7._
     */
    function processMultiProofCalldata(
        bytes32[] calldata proof,
        bool[] calldata proofFlags,
        bytes32[] memory leaves
    ) internal pure returns (bytes32 merkleRoot) {
        // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by
        // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the
        // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of
        // the merkle tree.
        uint256 leavesLen = leaves.length;
        uint256 totalHashes = proofFlags.length;

        // Check proof validity.
        require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof");

        // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using
        // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop".
        bytes32[] memory hashes = new bytes32[](totalHashes);
        uint256 leafPos = 0;
        uint256 hashPos = 0;
        uint256 proofPos = 0;
        // At each step, we compute the next hash using two values:
        // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we
        //   get the next hash.
        // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the
        //   `proof` array.
        for (uint256 i = 0; i < totalHashes; i++) {
            bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++];
            bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++];
            hashes[i] = _hashPair(a, b);
        }

        if (totalHashes > 0) {
            return hashes[totalHashes - 1];
        } else if (leavesLen > 0) {
            return leaves[0];
        } else {
            return proof[0];
        }
    }

    function _hashPair(bytes32 a, bytes32 b) private pure returns (bytes32) {
        return a < b ? _efficientHash(a, b) : _efficientHash(b, a);
    }

    function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) {
        /// @solidity memory-safe-assembly
        assembly {
            mstore(0x00, a)
            mstore(0x20, b)
            value := keccak256(0x00, 0x40)
        }
    }
}

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

pragma solidity ^0.8.4;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    /**
     * @dev Emitted when tokens in `fromTokenId` to `toTokenId` (inclusive) is transferred from `from` to `to`,
     * as defined in the ERC2309 standard. See `_mintERC2309` for more details.
     */
    event ConsecutiveTransfer(uint256 indexed fromTokenId, uint256 toTokenId, address indexed from, address indexed to);
}

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

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

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","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":"BELOW_PRICE","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"BEYOND_MAX","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"CROSSMINT_ONLY","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_PRESALE_MINT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_PUBLIC_MINT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINT_PAUSED","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"NOT_LIVE","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"OVER_SUPPLY","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRESALE_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PUBLIC_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TEAM_MINT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_quantity","type":"uint256"}],"name":"crossmint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"crossmintAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_quantity","type":"uint256"},{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"}],"name":"crossmintPresale","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getMerkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"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":"isRevealed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"placeholderTokenUri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"preSale","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicSale","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":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"}],"name":"setMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_placeholderTokenUri","type":"string"}],"name":"setPlaceholderUri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_baseTokenUri","type":"string"}],"name":"setTokenUri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"teamMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"teamMinted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"togglePause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"togglePreSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"togglePublicSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"toggleReveal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"totalPresaleMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"totalPublicMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405273dab1a1854214684ace522439684a145e62505233600b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055503480156200006657600080fd5b506040518060400160405280600b81526020017f536164206173204475636b0000000000000000000000000000000000000000008152506040518060400160405280600381526020017f53414400000000000000000000000000000000000000000000000000000000008152508160029080519060200190620000eb92919062000216565b5080600390805190602001906200010492919062000216565b50620001156200014360201b60201c565b60008190555050506200013d620001316200014860201b60201c565b6200015060201b60201c565b6200032b565b600090565b600033905090565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8280546200022490620002f5565b90600052602060002090601f01602090048101928262000248576000855562000294565b82601f106200026357805160ff191683800117855562000294565b8280016001018555821562000294579182015b828111156200029357825182559160200191906001019062000276565b5b509050620002a39190620002a7565b5090565b5b80821115620002c2576000816000905550600101620002a8565b5090565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806200030e57607f821691505b60208210811415620003255762000324620002c6565b5b50919050565b613eac806200033b6000396000f3fe6080604052600436106102c95760003560e01c806362dc6e2111610175578063a70f1fbe116100dc578063d95bebaa11610095578063e8b5498d1161006f578063e8b5498d14610a4c578063e985e9c514610a77578063f1911b8b14610ab4578063f2fde38b14610adf576102c9565b8063d95bebaa146109cd578063def749ac146109f8578063e222c7f914610a35576102c9565b8063a70f1fbe146108f7578063b88d4fde14610922578063ba7a86b81461094b578063c4ae316814610962578063c87b56dd14610979578063ca3cb522146109b6576102c9565b80637b01920f1161012e5780637b01920f146107f95780637cb64759146108245780638da5cb5b1461084d57806395d89b41146108785780639d248630146108a3578063a22cb465146108ce576102c9565b806362dc6e21146106e95780636352211e1461071457806365f13097146107515780636afd4ba21461077c57806370a08231146107a5578063715018a6146107e2576102c9565b80633ccfd60b1161023457806354214f69116101ed5780635b2a55e4116101c75780635b2a55e4146106515780635b8ad4291461067c5780635c975abb14610693578063611f3f10146106be576102c9565b806354214f69146105df57806358891a371461060a5780635a7adf7f14610626576102c9565b80633ccfd60b1461050257806341978cd41461051957806342842e0e14610535578063460106a11461055e57806349590657146105895780634cf5f7a4146105b4576102c9565b806318160ddd1161028657806318160ddd146103f05780631c16521c1461041b57806323b872dd14610458578063271085d91461048157806332cb6b0c146104ac57806333bc1c5c146104d7576102c9565b806301ffc9a7146102ce5780630675b7c61461030b57806306fdde0314610334578063081812fc1461035f578063095ea7b31461039c578063168e97c5146103c5575b600080fd5b3480156102da57600080fd5b506102f560048036038101906102f09190612ed7565b610b08565b6040516103029190612f1f565b60405180910390f35b34801561031757600080fd5b50610332600480360381019061032d9190613080565b610b9a565b005b34801561034057600080fd5b50610349610bbc565b6040516103569190613151565b60405180910390f35b34801561036b57600080fd5b50610386600480360381019061038191906131a9565b610c4e565b6040516103939190613217565b60405180910390f35b3480156103a857600080fd5b506103c360048036038101906103be919061325e565b610cca565b005b3480156103d157600080fd5b506103da610e0b565b6040516103e79190613151565b60405180910390f35b3480156103fc57600080fd5b50610405610e44565b60405161041291906132ad565b60405180910390f35b34801561042757600080fd5b50610442600480360381019061043d91906132c8565b610e5b565b60405161044f91906132ad565b60405180910390f35b34801561046457600080fd5b5061047f600480360381019061047a91906132f5565b610e73565b005b34801561048d57600080fd5b50610496611198565b6040516104a39190613151565b60405180910390f35b3480156104b857600080fd5b506104c16111d1565b6040516104ce91906132ad565b60405180910390f35b3480156104e357600080fd5b506104ec6111d7565b6040516104f99190612f1f565b60405180910390f35b34801561050e57600080fd5b506105176111ea565b005b610533600480360381019061052e9190613446565b61123b565b005b34801561054157600080fd5b5061055c600480360381019061055791906132f5565b6116ba565b005b34801561056a57600080fd5b506105736116da565b6040516105809190613151565b60405180910390f35b34801561059557600080fd5b5061059e611713565b6040516105ab91906134c4565b60405180910390f35b3480156105c057600080fd5b506105c961171d565b6040516105d69190613151565b60405180910390f35b3480156105eb57600080fd5b506105f46117ab565b6040516106019190612f1f565b60405180910390f35b610624600480360381019061061f919061325e565b6117be565b005b34801561063257600080fd5b5061063b611bc4565b6040516106489190612f1f565b60405180910390f35b34801561065d57600080fd5b50610666611bd7565b6040516106739190613217565b60405180910390f35b34801561068857600080fd5b50610691611bfd565b005b34801561069f57600080fd5b506106a8611c31565b6040516106b59190612f1f565b60405180910390f35b3480156106ca57600080fd5b506106d3611c44565b6040516106e091906132ad565b60405180910390f35b3480156106f557600080fd5b506106fe611c4f565b60405161070b91906132ad565b60405180910390f35b34801561072057600080fd5b5061073b600480360381019061073691906131a9565b611c5a565b6040516107489190613217565b60405180910390f35b34801561075d57600080fd5b50610766611c6c565b60405161077391906132ad565b60405180910390f35b34801561078857600080fd5b506107a3600480360381019061079e9190613080565b611c71565b005b3480156107b157600080fd5b506107cc60048036038101906107c791906132c8565b611c93565b6040516107d991906132ad565b60405180910390f35b3480156107ee57600080fd5b506107f7611d4c565b005b34801561080557600080fd5b5061080e611d60565b60405161081b9190613151565b60405180910390f35b34801561083057600080fd5b5061084b600480360381019061084691906134df565b611d7c565b005b34801561085957600080fd5b50610862611d8e565b60405161086f9190613217565b60405180910390f35b34801561088457600080fd5b5061088d611db8565b60405161089a9190613151565b60405180910390f35b3480156108af57600080fd5b506108b8611e4a565b6040516108c591906132ad565b60405180910390f35b3480156108da57600080fd5b506108f560048036038101906108f09190613538565b611e50565b005b34801561090357600080fd5b5061090c611fc8565b60405161091991906132ad565b60405180910390f35b34801561092e57600080fd5b5061094960048036038101906109449190613619565b611fcd565b005b34801561095757600080fd5b50610960612040565b005b34801561096e57600080fd5b506109776120c1565b005b34801561098557600080fd5b506109a0600480360381019061099b91906131a9565b6120f5565b6040516109ad9190613151565b60405180910390f35b3480156109c257600080fd5b506109cb612257565b005b3480156109d957600080fd5b506109e261228b565b6040516109ef9190613151565b60405180910390f35b348015610a0457600080fd5b50610a1f6004803603810190610a1a91906132c8565b6122c4565b604051610a2c91906132ad565b60405180910390f35b348015610a4157600080fd5b50610a4a6122dc565b005b348015610a5857600080fd5b50610a61612310565b604051610a6e9190612f1f565b60405180910390f35b348015610a8357600080fd5b50610a9e6004803603810190610a99919061369c565b612323565b604051610aab9190612f1f565b60405180910390f35b348015610ac057600080fd5b50610ac96123b7565b604051610ad69190613151565b60405180910390f35b348015610aeb57600080fd5b50610b066004803603810190610b0191906132c8565b6123f0565b005b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610b6357506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610b935750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b610ba2612474565b8060099080519060200190610bb8929190612dc8565b5050565b606060028054610bcb9061370b565b80601f0160208091040260200160405190810160405280929190818152602001828054610bf79061370b565b8015610c445780601f10610c1957610100808354040283529160200191610c44565b820191906000526020600020905b815481529060010190602001808311610c2757829003601f168201915b5050505050905090565b6000610c59826124f2565b610c8f576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610cd582611c5a565b90508073ffffffffffffffffffffffffffffffffffffffff16610cf6612551565b73ffffffffffffffffffffffffffffffffffffffff1614610d5957610d2281610d1d612551565b612323565b610d58576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b6040518060400160405280601481526020017f4d696e74696e67206973206e6f74206c6976652e00000000000000000000000081525081565b6000610e4e612559565b6001546000540303905090565b600d6020528060005260406000206000915090505481565b6000610e7e8261255e565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610ee5576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080610ef18461262c565b91509150610f078187610f02612551565b61264e565b610f5357610f1c86610f17612551565b612323565b610f52576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161415610fba576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610fc78686866001612692565b8015610fd257600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008154600101919050819055506110a08561107c888887612698565b7c0200000000000000000000000000000000000000000000000000000000176126c0565b600460008681526020019081526020016000208190555060007c020000000000000000000000000000000000000000000000000000000084161415611128576000600185019050600060046000838152602001908152602001600020541415611126576000548114611125578360046000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461119086868660016126eb565b505050505050565b6040518060400160405280601281526020017f4d696e74696e67206973207061757365642e000000000000000000000000000081525081565b610d0581565b600b60159054906101000a900460ff1681565b6111f2612474565b3373ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f19350505050158015611238573d6000803e3d6000fd5b50565b600b60169054906101000a900460ff166040518060400160405280601481526020017f4d696e74696e67206973206e6f74206c6976652e000000000000000000000000815250906112c2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112b99190613151565b60405180910390fd5b50600b60179054906101000a900460ff16156040518060400160405280601281526020017f4d696e74696e67206973207061757365642e00000000000000000000000000008152509061134b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113429190613151565b60405180910390fd5b50600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614604051806060016040528060248152602001613e5360249139906113f7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113ee9190613151565b60405180910390fd5b5081666a94d74f43000061140b919061376c565b3410156040518060400160405280601181526020017f42656c6f772073616c652070726963652e00000000000000000000000000000081525090611485576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161147c9190613151565b60405180910390fd5b50610d0582611492610e44565b61149c91906137c6565b11156040518060400160405280601081526020017f4f766572206d617820737570706c792e0000000000000000000000000000000081525090611515576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161150c9190613151565b60405180910390fd5b50600382600e60008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461156391906137c6565b11156040518060400160405280601781526020017f43616e6e6f74206d696e74206265796f6e64206d61782e000000000000000000815250906115dc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115d39190613151565b60405180910390fd5b506000836040516020016115f09190613864565b60405160208183030381529060405280519060200120905061161582600c54836126f1565b611654576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161164b906138cb565b60405180910390fd5b82600e60008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546116a391906137c6565b925050819055506116b48484612708565b50505050565b6116d583838360405180602001604052806000815250611fcd565b505050565b6040518060400160405280601081526020017f4f766572206d617820737570706c792e0000000000000000000000000000000081525081565b6000600c54905090565b600a805461172a9061370b565b80601f01602080910402602001604051908101604052809291908181526020018280546117569061370b565b80156117a35780601f10611778576101008083540402835291602001916117a3565b820191906000526020600020905b81548152906001019060200180831161178657829003601f168201915b505050505081565b600b60149054906101000a900460ff1681565b600b60159054906101000a900460ff166040518060400160405280601481526020017f4d696e74696e67206973206e6f74206c6976652e00000000000000000000000081525090611845576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161183c9190613151565b60405180910390fd5b50600b60179054906101000a900460ff16156040518060400160405280601281526020017f4d696e74696e67206973207061757365642e0000000000000000000000000000815250906118ce576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118c59190613151565b60405180910390fd5b50600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614604051806060016040528060248152602001613e53602491399061197a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119719190613151565b60405180910390fd5b50610d0581611987610e44565b61199191906137c6565b11156040518060400160405280601081526020017f4f766572206d617820737570706c792e0000000000000000000000000000000081525090611a0a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a019190613151565b60405180910390fd5b508066b1a2bc2ec50000611a1e919061376c565b3410156040518060400160405280601181526020017f42656c6f772073616c652070726963652e00000000000000000000000000000081525090611a98576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a8f9190613151565b60405180910390fd5b50600581600d60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611ae691906137c6565b11156040518060400160405280601781526020017f43616e6e6f74206d696e74206265796f6e64206d61782e00000000000000000081525090611b5f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b569190613151565b60405180910390fd5b5080600d60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611baf91906137c6565b92505081905550611bc08282612708565b5050565b600b60169054906101000a900460ff1681565b600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b611c05612474565b600b60149054906101000a900460ff1615600b60146101000a81548160ff021916908315150217905550565b600b60179054906101000a900460ff1681565b66b1a2bc2ec5000081565b666a94d74f43000081565b6000611c658261255e565b9050919050565b600581565b611c79612474565b80600a9080519060200190611c8f929190612dc8565b5050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611cfb576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b611d54612474565b611d5e6000612726565b565b604051806060016040528060248152602001613e536024913981565b611d84612474565b80600c8190555050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b606060038054611dc79061370b565b80601f0160208091040260200160405190810160405280929190818152602001828054611df39061370b565b8015611e405780601f10611e1557610100808354040283529160200191611e40565b820191906000526020600020905b815481529060010190602001808311611e2357829003601f168201915b5050505050905090565b61014d81565b611e58612551565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611ebd576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060076000611eca612551565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611f77612551565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611fbc9190612f1f565b60405180910390a35050565b600381565b611fd8848484610e73565b60008373ffffffffffffffffffffffffffffffffffffffff163b1461203a57612003848484846127ec565b612039576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b612048612474565b600b60189054906101000a900460ff1615612098576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161208f90613937565b60405180910390fd5b6001600b60186101000a81548160ff0219169083151502179055506120bf3361014d612708565b565b6120c9612474565b600b60179054906101000a900460ff1615600b60176101000a81548160ff021916908315150217905550565b6060612100826124f2565b61213f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612136906139c9565b60405180910390fd5b600060018361214e91906137c6565b9050600b60149054906101000a900460ff166121f757600a80546121719061370b565b80601f016020809104026020016040519081016040528092919081815260200182805461219d9061370b565b80156121ea5780601f106121bf576101008083540402835291602001916121ea565b820191906000526020600020905b8154815290600101906020018083116121cd57829003601f168201915b5050505050915050612252565b6000600980546122069061370b565b905011612222576040518060200160405280600081525061224e565b600961222d8261293d565b60405160200161223e929190613b05565b6040516020818303038152906040525b9150505b919050565b61225f612474565b600b60169054906101000a900460ff1615600b60166101000a81548160ff021916908315150217905550565b6040518060400160405280601181526020017f42656c6f772073616c652070726963652e00000000000000000000000000000081525081565b600e6020528060005260406000206000915090505481565b6122e4612474565b600b60159054906101000a900460ff1615600b60156101000a81548160ff021916908315150217905550565b600b60189054906101000a900460ff1681565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6040518060400160405280601781526020017f43616e6e6f74206d696e74206265796f6e64206d61782e00000000000000000081525081565b6123f8612474565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415612468576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161245f90613ba6565b60405180910390fd5b61247181612726565b50565b61247c612a9e565b73ffffffffffffffffffffffffffffffffffffffff1661249a611d8e565b73ffffffffffffffffffffffffffffffffffffffff16146124f0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124e790613c12565b60405180910390fd5b565b6000816124fd612559565b1115801561250c575060005482105b801561254a575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b600033905090565b600090565b6000808290508061256d612559565b116125f5576000548110156125f45760006004600083815260200190815260200160002054905060007c0100000000000000000000000000000000000000000000000000000000821614156125f2575b60008114156125e85760046000836001900393508381526020019081526020016000205490506125bd565b8092505050612627565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b6000806000600690508360005280602052604060002092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e86126af868684612aa6565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b6000826126fe8584612aaf565b1490509392505050565b612722828260405180602001604052806000815250612b05565b5050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612812612551565b8786866040518563ffffffff1660e01b81526004016128349493929190613c87565b6020604051808303816000875af192505050801561287057506040513d601f19601f8201168201806040525081019061286d9190613ce8565b60015b6128ea573d80600081146128a0576040519150601f19603f3d011682016040523d82523d6000602084013e6128a5565b606091505b506000815114156128e2576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b60606000821415612985576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050612a99565b600082905060005b600082146129b75780806129a090613d15565b915050600a826129b09190613d8d565b915061298d565b60008167ffffffffffffffff8111156129d3576129d2612f55565b5b6040519080825280601f01601f191660200182016040528015612a055781602001600182028036833780820191505090505b5090505b60008514612a9257600182612a1e9190613dbe565b9150600a85612a2d9190613df2565b6030612a3991906137c6565b60f81b818381518110612a4f57612a4e613e23565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85612a8b9190613d8d565b9450612a09565b8093505050505b919050565b600033905090565b60009392505050565b60008082905060005b8451811015612afa57612ae582868381518110612ad857612ad7613e23565b5b6020026020010151612ba2565b91508080612af290613d15565b915050612ab8565b508091505092915050565b612b0f8383612bcd565b60008373ffffffffffffffffffffffffffffffffffffffff163b14612b9d57600080549050600083820390505b612b4f60008683806001019450866127ec565b612b85576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b818110612b3c578160005414612b9a57600080fd5b50505b505050565b6000818310612bba57612bb58284612da1565b612bc5565b612bc48383612da1565b5b905092915050565b600080549050600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612c3a576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000821415612c75576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b612c826000848385612692565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550612cf983612cea6000866000612698565b612cf385612db8565b176126c0565b60046000838152602001908152602001600020819055506000819050600083830190505b818060010192508573ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4808210612d1d57806000819055505050612d9c60008483856126eb565b505050565b600082600052816020526040600020905092915050565b60006001821460e11b9050919050565b828054612dd49061370b565b90600052602060002090601f016020900481019282612df65760008555612e3d565b82601f10612e0f57805160ff1916838001178555612e3d565b82800160010185558215612e3d579182015b82811115612e3c578251825591602001919060010190612e21565b5b509050612e4a9190612e4e565b5090565b5b80821115612e67576000816000905550600101612e4f565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b612eb481612e7f565b8114612ebf57600080fd5b50565b600081359050612ed181612eab565b92915050565b600060208284031215612eed57612eec612e75565b5b6000612efb84828501612ec2565b91505092915050565b60008115159050919050565b612f1981612f04565b82525050565b6000602082019050612f346000830184612f10565b92915050565b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b612f8d82612f44565b810181811067ffffffffffffffff82111715612fac57612fab612f55565b5b80604052505050565b6000612fbf612e6b565b9050612fcb8282612f84565b919050565b600067ffffffffffffffff821115612feb57612fea612f55565b5b612ff482612f44565b9050602081019050919050565b82818337600083830152505050565b600061302361301e84612fd0565b612fb5565b90508281526020810184848401111561303f5761303e612f3f565b5b61304a848285613001565b509392505050565b600082601f83011261306757613066612f3a565b5b8135613077848260208601613010565b91505092915050565b60006020828403121561309657613095612e75565b5b600082013567ffffffffffffffff8111156130b4576130b3612e7a565b5b6130c084828501613052565b91505092915050565b600081519050919050565b600082825260208201905092915050565b60005b838110156131035780820151818401526020810190506130e8565b83811115613112576000848401525b50505050565b6000613123826130c9565b61312d81856130d4565b935061313d8185602086016130e5565b61314681612f44565b840191505092915050565b6000602082019050818103600083015261316b8184613118565b905092915050565b6000819050919050565b61318681613173565b811461319157600080fd5b50565b6000813590506131a38161317d565b92915050565b6000602082840312156131bf576131be612e75565b5b60006131cd84828501613194565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000613201826131d6565b9050919050565b613211816131f6565b82525050565b600060208201905061322c6000830184613208565b92915050565b61323b816131f6565b811461324657600080fd5b50565b60008135905061325881613232565b92915050565b6000806040838503121561327557613274612e75565b5b600061328385828601613249565b925050602061329485828601613194565b9150509250929050565b6132a781613173565b82525050565b60006020820190506132c2600083018461329e565b92915050565b6000602082840312156132de576132dd612e75565b5b60006132ec84828501613249565b91505092915050565b60008060006060848603121561330e5761330d612e75565b5b600061331c86828701613249565b935050602061332d86828701613249565b925050604061333e86828701613194565b9150509250925092565b600067ffffffffffffffff82111561336357613362612f55565b5b602082029050602081019050919050565b600080fd5b6000819050919050565b61338c81613379565b811461339757600080fd5b50565b6000813590506133a981613383565b92915050565b60006133c26133bd84613348565b612fb5565b905080838252602082019050602084028301858111156133e5576133e4613374565b5b835b8181101561340e57806133fa888261339a565b8452602084019350506020810190506133e7565b5050509392505050565b600082601f83011261342d5761342c612f3a565b5b813561343d8482602086016133af565b91505092915050565b60008060006060848603121561345f5761345e612e75565b5b600061346d86828701613249565b935050602061347e86828701613194565b925050604084013567ffffffffffffffff81111561349f5761349e612e7a565b5b6134ab86828701613418565b9150509250925092565b6134be81613379565b82525050565b60006020820190506134d960008301846134b5565b92915050565b6000602082840312156134f5576134f4612e75565b5b60006135038482850161339a565b91505092915050565b61351581612f04565b811461352057600080fd5b50565b6000813590506135328161350c565b92915050565b6000806040838503121561354f5761354e612e75565b5b600061355d85828601613249565b925050602061356e85828601613523565b9150509250929050565b600067ffffffffffffffff82111561359357613592612f55565b5b61359c82612f44565b9050602081019050919050565b60006135bc6135b784613578565b612fb5565b9050828152602081018484840111156135d8576135d7612f3f565b5b6135e3848285613001565b509392505050565b600082601f830112613600576135ff612f3a565b5b81356136108482602086016135a9565b91505092915050565b6000806000806080858703121561363357613632612e75565b5b600061364187828801613249565b945050602061365287828801613249565b935050604061366387828801613194565b925050606085013567ffffffffffffffff81111561368457613683612e7a565b5b613690878288016135eb565b91505092959194509250565b600080604083850312156136b3576136b2612e75565b5b60006136c185828601613249565b92505060206136d285828601613249565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061372357607f821691505b60208210811415613737576137366136dc565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061377782613173565b915061378283613173565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156137bb576137ba61373d565b5b828202905092915050565b60006137d182613173565b91506137dc83613173565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156138115761381061373d565b5b828201905092915050565b60008160601b9050919050565b60006138348261381c565b9050919050565b600061384682613829565b9050919050565b61385e613859826131f6565b61383b565b82525050565b6000613870828461384d565b60148201915081905092915050565b7f41646472657373206973206e6f74206f6e20616363657373206c6973742e0000600082015250565b60006138b5601e836130d4565b91506138c08261387f565b602082019050919050565b600060208201905081810360008301526138e4816138a8565b9050919050565b7f5465616d20616c7265616479206d696e7465642e000000000000000000000000600082015250565b60006139216014836130d4565b915061392c826138eb565b602082019050919050565b6000602082019050818103600083015261395081613914565b9050919050565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b60006139b3602f836130d4565b91506139be82613957565b604082019050919050565b600060208201905081810360008301526139e2816139a6565b9050919050565b600081905092915050565b60008190508160005260206000209050919050565b60008154613a168161370b565b613a2081866139e9565b94506001821660008114613a3b5760018114613a4c57613a7f565b60ff19831686528186019350613a7f565b613a55856139f4565b60005b83811015613a7757815481890152600182019150602081019050613a58565b838801955050505b50505092915050565b6000613a93826130c9565b613a9d81856139e9565b9350613aad8185602086016130e5565b80840191505092915050565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000600082015250565b6000613aef6005836139e9565b9150613afa82613ab9565b600582019050919050565b6000613b118285613a09565b9150613b1d8284613a88565b9150613b2882613ae2565b91508190509392505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000613b906026836130d4565b9150613b9b82613b34565b604082019050919050565b60006020820190508181036000830152613bbf81613b83565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000613bfc6020836130d4565b9150613c0782613bc6565b602082019050919050565b60006020820190508181036000830152613c2b81613bef565b9050919050565b600081519050919050565b600082825260208201905092915050565b6000613c5982613c32565b613c638185613c3d565b9350613c738185602086016130e5565b613c7c81612f44565b840191505092915050565b6000608082019050613c9c6000830187613208565b613ca96020830186613208565b613cb6604083018561329e565b8181036060830152613cc88184613c4e565b905095945050505050565b600081519050613ce281612eab565b92915050565b600060208284031215613cfe57613cfd612e75565b5b6000613d0c84828501613cd3565b91505092915050565b6000613d2082613173565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415613d5357613d5261373d565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000613d9882613173565b9150613da383613173565b925082613db357613db2613d5e565b5b828204905092915050565b6000613dc982613173565b9150613dd483613173565b925082821015613de757613de661373d565b5b828203905092915050565b6000613dfd82613173565b9150613e0883613173565b925082613e1857613e17613d5e565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fdfe546869732066756e6374696f6e20697320666f722043726f73736d696e74206f6e6c792ea2646970667358221220dbcf09f3fe32fcf33409112eccd21ec4b85c2f7459714a95bac931bc6c44837c64736f6c634300080b0033

Deployed Bytecode

0x6080604052600436106102c95760003560e01c806362dc6e2111610175578063a70f1fbe116100dc578063d95bebaa11610095578063e8b5498d1161006f578063e8b5498d14610a4c578063e985e9c514610a77578063f1911b8b14610ab4578063f2fde38b14610adf576102c9565b8063d95bebaa146109cd578063def749ac146109f8578063e222c7f914610a35576102c9565b8063a70f1fbe146108f7578063b88d4fde14610922578063ba7a86b81461094b578063c4ae316814610962578063c87b56dd14610979578063ca3cb522146109b6576102c9565b80637b01920f1161012e5780637b01920f146107f95780637cb64759146108245780638da5cb5b1461084d57806395d89b41146108785780639d248630146108a3578063a22cb465146108ce576102c9565b806362dc6e21146106e95780636352211e1461071457806365f13097146107515780636afd4ba21461077c57806370a08231146107a5578063715018a6146107e2576102c9565b80633ccfd60b1161023457806354214f69116101ed5780635b2a55e4116101c75780635b2a55e4146106515780635b8ad4291461067c5780635c975abb14610693578063611f3f10146106be576102c9565b806354214f69146105df57806358891a371461060a5780635a7adf7f14610626576102c9565b80633ccfd60b1461050257806341978cd41461051957806342842e0e14610535578063460106a11461055e57806349590657146105895780634cf5f7a4146105b4576102c9565b806318160ddd1161028657806318160ddd146103f05780631c16521c1461041b57806323b872dd14610458578063271085d91461048157806332cb6b0c146104ac57806333bc1c5c146104d7576102c9565b806301ffc9a7146102ce5780630675b7c61461030b57806306fdde0314610334578063081812fc1461035f578063095ea7b31461039c578063168e97c5146103c5575b600080fd5b3480156102da57600080fd5b506102f560048036038101906102f09190612ed7565b610b08565b6040516103029190612f1f565b60405180910390f35b34801561031757600080fd5b50610332600480360381019061032d9190613080565b610b9a565b005b34801561034057600080fd5b50610349610bbc565b6040516103569190613151565b60405180910390f35b34801561036b57600080fd5b50610386600480360381019061038191906131a9565b610c4e565b6040516103939190613217565b60405180910390f35b3480156103a857600080fd5b506103c360048036038101906103be919061325e565b610cca565b005b3480156103d157600080fd5b506103da610e0b565b6040516103e79190613151565b60405180910390f35b3480156103fc57600080fd5b50610405610e44565b60405161041291906132ad565b60405180910390f35b34801561042757600080fd5b50610442600480360381019061043d91906132c8565b610e5b565b60405161044f91906132ad565b60405180910390f35b34801561046457600080fd5b5061047f600480360381019061047a91906132f5565b610e73565b005b34801561048d57600080fd5b50610496611198565b6040516104a39190613151565b60405180910390f35b3480156104b857600080fd5b506104c16111d1565b6040516104ce91906132ad565b60405180910390f35b3480156104e357600080fd5b506104ec6111d7565b6040516104f99190612f1f565b60405180910390f35b34801561050e57600080fd5b506105176111ea565b005b610533600480360381019061052e9190613446565b61123b565b005b34801561054157600080fd5b5061055c600480360381019061055791906132f5565b6116ba565b005b34801561056a57600080fd5b506105736116da565b6040516105809190613151565b60405180910390f35b34801561059557600080fd5b5061059e611713565b6040516105ab91906134c4565b60405180910390f35b3480156105c057600080fd5b506105c961171d565b6040516105d69190613151565b60405180910390f35b3480156105eb57600080fd5b506105f46117ab565b6040516106019190612f1f565b60405180910390f35b610624600480360381019061061f919061325e565b6117be565b005b34801561063257600080fd5b5061063b611bc4565b6040516106489190612f1f565b60405180910390f35b34801561065d57600080fd5b50610666611bd7565b6040516106739190613217565b60405180910390f35b34801561068857600080fd5b50610691611bfd565b005b34801561069f57600080fd5b506106a8611c31565b6040516106b59190612f1f565b60405180910390f35b3480156106ca57600080fd5b506106d3611c44565b6040516106e091906132ad565b60405180910390f35b3480156106f557600080fd5b506106fe611c4f565b60405161070b91906132ad565b60405180910390f35b34801561072057600080fd5b5061073b600480360381019061073691906131a9565b611c5a565b6040516107489190613217565b60405180910390f35b34801561075d57600080fd5b50610766611c6c565b60405161077391906132ad565b60405180910390f35b34801561078857600080fd5b506107a3600480360381019061079e9190613080565b611c71565b005b3480156107b157600080fd5b506107cc60048036038101906107c791906132c8565b611c93565b6040516107d991906132ad565b60405180910390f35b3480156107ee57600080fd5b506107f7611d4c565b005b34801561080557600080fd5b5061080e611d60565b60405161081b9190613151565b60405180910390f35b34801561083057600080fd5b5061084b600480360381019061084691906134df565b611d7c565b005b34801561085957600080fd5b50610862611d8e565b60405161086f9190613217565b60405180910390f35b34801561088457600080fd5b5061088d611db8565b60405161089a9190613151565b60405180910390f35b3480156108af57600080fd5b506108b8611e4a565b6040516108c591906132ad565b60405180910390f35b3480156108da57600080fd5b506108f560048036038101906108f09190613538565b611e50565b005b34801561090357600080fd5b5061090c611fc8565b60405161091991906132ad565b60405180910390f35b34801561092e57600080fd5b5061094960048036038101906109449190613619565b611fcd565b005b34801561095757600080fd5b50610960612040565b005b34801561096e57600080fd5b506109776120c1565b005b34801561098557600080fd5b506109a0600480360381019061099b91906131a9565b6120f5565b6040516109ad9190613151565b60405180910390f35b3480156109c257600080fd5b506109cb612257565b005b3480156109d957600080fd5b506109e261228b565b6040516109ef9190613151565b60405180910390f35b348015610a0457600080fd5b50610a1f6004803603810190610a1a91906132c8565b6122c4565b604051610a2c91906132ad565b60405180910390f35b348015610a4157600080fd5b50610a4a6122dc565b005b348015610a5857600080fd5b50610a61612310565b604051610a6e9190612f1f565b60405180910390f35b348015610a8357600080fd5b50610a9e6004803603810190610a99919061369c565b612323565b604051610aab9190612f1f565b60405180910390f35b348015610ac057600080fd5b50610ac96123b7565b604051610ad69190613151565b60405180910390f35b348015610aeb57600080fd5b50610b066004803603810190610b0191906132c8565b6123f0565b005b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610b6357506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610b935750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b610ba2612474565b8060099080519060200190610bb8929190612dc8565b5050565b606060028054610bcb9061370b565b80601f0160208091040260200160405190810160405280929190818152602001828054610bf79061370b565b8015610c445780601f10610c1957610100808354040283529160200191610c44565b820191906000526020600020905b815481529060010190602001808311610c2757829003601f168201915b5050505050905090565b6000610c59826124f2565b610c8f576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610cd582611c5a565b90508073ffffffffffffffffffffffffffffffffffffffff16610cf6612551565b73ffffffffffffffffffffffffffffffffffffffff1614610d5957610d2281610d1d612551565b612323565b610d58576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b6040518060400160405280601481526020017f4d696e74696e67206973206e6f74206c6976652e00000000000000000000000081525081565b6000610e4e612559565b6001546000540303905090565b600d6020528060005260406000206000915090505481565b6000610e7e8261255e565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610ee5576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080610ef18461262c565b91509150610f078187610f02612551565b61264e565b610f5357610f1c86610f17612551565b612323565b610f52576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161415610fba576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610fc78686866001612692565b8015610fd257600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008154600101919050819055506110a08561107c888887612698565b7c0200000000000000000000000000000000000000000000000000000000176126c0565b600460008681526020019081526020016000208190555060007c020000000000000000000000000000000000000000000000000000000084161415611128576000600185019050600060046000838152602001908152602001600020541415611126576000548114611125578360046000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461119086868660016126eb565b505050505050565b6040518060400160405280601281526020017f4d696e74696e67206973207061757365642e000000000000000000000000000081525081565b610d0581565b600b60159054906101000a900460ff1681565b6111f2612474565b3373ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f19350505050158015611238573d6000803e3d6000fd5b50565b600b60169054906101000a900460ff166040518060400160405280601481526020017f4d696e74696e67206973206e6f74206c6976652e000000000000000000000000815250906112c2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112b99190613151565b60405180910390fd5b50600b60179054906101000a900460ff16156040518060400160405280601281526020017f4d696e74696e67206973207061757365642e00000000000000000000000000008152509061134b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113429190613151565b60405180910390fd5b50600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614604051806060016040528060248152602001613e5360249139906113f7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113ee9190613151565b60405180910390fd5b5081666a94d74f43000061140b919061376c565b3410156040518060400160405280601181526020017f42656c6f772073616c652070726963652e00000000000000000000000000000081525090611485576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161147c9190613151565b60405180910390fd5b50610d0582611492610e44565b61149c91906137c6565b11156040518060400160405280601081526020017f4f766572206d617820737570706c792e0000000000000000000000000000000081525090611515576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161150c9190613151565b60405180910390fd5b50600382600e60008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461156391906137c6565b11156040518060400160405280601781526020017f43616e6e6f74206d696e74206265796f6e64206d61782e000000000000000000815250906115dc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115d39190613151565b60405180910390fd5b506000836040516020016115f09190613864565b60405160208183030381529060405280519060200120905061161582600c54836126f1565b611654576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161164b906138cb565b60405180910390fd5b82600e60008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546116a391906137c6565b925050819055506116b48484612708565b50505050565b6116d583838360405180602001604052806000815250611fcd565b505050565b6040518060400160405280601081526020017f4f766572206d617820737570706c792e0000000000000000000000000000000081525081565b6000600c54905090565b600a805461172a9061370b565b80601f01602080910402602001604051908101604052809291908181526020018280546117569061370b565b80156117a35780601f10611778576101008083540402835291602001916117a3565b820191906000526020600020905b81548152906001019060200180831161178657829003601f168201915b505050505081565b600b60149054906101000a900460ff1681565b600b60159054906101000a900460ff166040518060400160405280601481526020017f4d696e74696e67206973206e6f74206c6976652e00000000000000000000000081525090611845576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161183c9190613151565b60405180910390fd5b50600b60179054906101000a900460ff16156040518060400160405280601281526020017f4d696e74696e67206973207061757365642e0000000000000000000000000000815250906118ce576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118c59190613151565b60405180910390fd5b50600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614604051806060016040528060248152602001613e53602491399061197a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119719190613151565b60405180910390fd5b50610d0581611987610e44565b61199191906137c6565b11156040518060400160405280601081526020017f4f766572206d617820737570706c792e0000000000000000000000000000000081525090611a0a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a019190613151565b60405180910390fd5b508066b1a2bc2ec50000611a1e919061376c565b3410156040518060400160405280601181526020017f42656c6f772073616c652070726963652e00000000000000000000000000000081525090611a98576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a8f9190613151565b60405180910390fd5b50600581600d60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611ae691906137c6565b11156040518060400160405280601781526020017f43616e6e6f74206d696e74206265796f6e64206d61782e00000000000000000081525090611b5f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b569190613151565b60405180910390fd5b5080600d60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611baf91906137c6565b92505081905550611bc08282612708565b5050565b600b60169054906101000a900460ff1681565b600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b611c05612474565b600b60149054906101000a900460ff1615600b60146101000a81548160ff021916908315150217905550565b600b60179054906101000a900460ff1681565b66b1a2bc2ec5000081565b666a94d74f43000081565b6000611c658261255e565b9050919050565b600581565b611c79612474565b80600a9080519060200190611c8f929190612dc8565b5050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611cfb576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b611d54612474565b611d5e6000612726565b565b604051806060016040528060248152602001613e536024913981565b611d84612474565b80600c8190555050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b606060038054611dc79061370b565b80601f0160208091040260200160405190810160405280929190818152602001828054611df39061370b565b8015611e405780601f10611e1557610100808354040283529160200191611e40565b820191906000526020600020905b815481529060010190602001808311611e2357829003601f168201915b5050505050905090565b61014d81565b611e58612551565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611ebd576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060076000611eca612551565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611f77612551565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611fbc9190612f1f565b60405180910390a35050565b600381565b611fd8848484610e73565b60008373ffffffffffffffffffffffffffffffffffffffff163b1461203a57612003848484846127ec565b612039576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b612048612474565b600b60189054906101000a900460ff1615612098576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161208f90613937565b60405180910390fd5b6001600b60186101000a81548160ff0219169083151502179055506120bf3361014d612708565b565b6120c9612474565b600b60179054906101000a900460ff1615600b60176101000a81548160ff021916908315150217905550565b6060612100826124f2565b61213f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612136906139c9565b60405180910390fd5b600060018361214e91906137c6565b9050600b60149054906101000a900460ff166121f757600a80546121719061370b565b80601f016020809104026020016040519081016040528092919081815260200182805461219d9061370b565b80156121ea5780601f106121bf576101008083540402835291602001916121ea565b820191906000526020600020905b8154815290600101906020018083116121cd57829003601f168201915b5050505050915050612252565b6000600980546122069061370b565b905011612222576040518060200160405280600081525061224e565b600961222d8261293d565b60405160200161223e929190613b05565b6040516020818303038152906040525b9150505b919050565b61225f612474565b600b60169054906101000a900460ff1615600b60166101000a81548160ff021916908315150217905550565b6040518060400160405280601181526020017f42656c6f772073616c652070726963652e00000000000000000000000000000081525081565b600e6020528060005260406000206000915090505481565b6122e4612474565b600b60159054906101000a900460ff1615600b60156101000a81548160ff021916908315150217905550565b600b60189054906101000a900460ff1681565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6040518060400160405280601781526020017f43616e6e6f74206d696e74206265796f6e64206d61782e00000000000000000081525081565b6123f8612474565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415612468576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161245f90613ba6565b60405180910390fd5b61247181612726565b50565b61247c612a9e565b73ffffffffffffffffffffffffffffffffffffffff1661249a611d8e565b73ffffffffffffffffffffffffffffffffffffffff16146124f0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124e790613c12565b60405180910390fd5b565b6000816124fd612559565b1115801561250c575060005482105b801561254a575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b600033905090565b600090565b6000808290508061256d612559565b116125f5576000548110156125f45760006004600083815260200190815260200160002054905060007c0100000000000000000000000000000000000000000000000000000000821614156125f2575b60008114156125e85760046000836001900393508381526020019081526020016000205490506125bd565b8092505050612627565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b6000806000600690508360005280602052604060002092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e86126af868684612aa6565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b6000826126fe8584612aaf565b1490509392505050565b612722828260405180602001604052806000815250612b05565b5050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612812612551565b8786866040518563ffffffff1660e01b81526004016128349493929190613c87565b6020604051808303816000875af192505050801561287057506040513d601f19601f8201168201806040525081019061286d9190613ce8565b60015b6128ea573d80600081146128a0576040519150601f19603f3d011682016040523d82523d6000602084013e6128a5565b606091505b506000815114156128e2576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b60606000821415612985576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050612a99565b600082905060005b600082146129b75780806129a090613d15565b915050600a826129b09190613d8d565b915061298d565b60008167ffffffffffffffff8111156129d3576129d2612f55565b5b6040519080825280601f01601f191660200182016040528015612a055781602001600182028036833780820191505090505b5090505b60008514612a9257600182612a1e9190613dbe565b9150600a85612a2d9190613df2565b6030612a3991906137c6565b60f81b818381518110612a4f57612a4e613e23565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85612a8b9190613d8d565b9450612a09565b8093505050505b919050565b600033905090565b60009392505050565b60008082905060005b8451811015612afa57612ae582868381518110612ad857612ad7613e23565b5b6020026020010151612ba2565b91508080612af290613d15565b915050612ab8565b508091505092915050565b612b0f8383612bcd565b60008373ffffffffffffffffffffffffffffffffffffffff163b14612b9d57600080549050600083820390505b612b4f60008683806001019450866127ec565b612b85576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b818110612b3c578160005414612b9a57600080fd5b50505b505050565b6000818310612bba57612bb58284612da1565b612bc5565b612bc48383612da1565b5b905092915050565b600080549050600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612c3a576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000821415612c75576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b612c826000848385612692565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550612cf983612cea6000866000612698565b612cf385612db8565b176126c0565b60046000838152602001908152602001600020819055506000819050600083830190505b818060010192508573ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4808210612d1d57806000819055505050612d9c60008483856126eb565b505050565b600082600052816020526040600020905092915050565b60006001821460e11b9050919050565b828054612dd49061370b565b90600052602060002090601f016020900481019282612df65760008555612e3d565b82601f10612e0f57805160ff1916838001178555612e3d565b82800160010185558215612e3d579182015b82811115612e3c578251825591602001919060010190612e21565b5b509050612e4a9190612e4e565b5090565b5b80821115612e67576000816000905550600101612e4f565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b612eb481612e7f565b8114612ebf57600080fd5b50565b600081359050612ed181612eab565b92915050565b600060208284031215612eed57612eec612e75565b5b6000612efb84828501612ec2565b91505092915050565b60008115159050919050565b612f1981612f04565b82525050565b6000602082019050612f346000830184612f10565b92915050565b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b612f8d82612f44565b810181811067ffffffffffffffff82111715612fac57612fab612f55565b5b80604052505050565b6000612fbf612e6b565b9050612fcb8282612f84565b919050565b600067ffffffffffffffff821115612feb57612fea612f55565b5b612ff482612f44565b9050602081019050919050565b82818337600083830152505050565b600061302361301e84612fd0565b612fb5565b90508281526020810184848401111561303f5761303e612f3f565b5b61304a848285613001565b509392505050565b600082601f83011261306757613066612f3a565b5b8135613077848260208601613010565b91505092915050565b60006020828403121561309657613095612e75565b5b600082013567ffffffffffffffff8111156130b4576130b3612e7a565b5b6130c084828501613052565b91505092915050565b600081519050919050565b600082825260208201905092915050565b60005b838110156131035780820151818401526020810190506130e8565b83811115613112576000848401525b50505050565b6000613123826130c9565b61312d81856130d4565b935061313d8185602086016130e5565b61314681612f44565b840191505092915050565b6000602082019050818103600083015261316b8184613118565b905092915050565b6000819050919050565b61318681613173565b811461319157600080fd5b50565b6000813590506131a38161317d565b92915050565b6000602082840312156131bf576131be612e75565b5b60006131cd84828501613194565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000613201826131d6565b9050919050565b613211816131f6565b82525050565b600060208201905061322c6000830184613208565b92915050565b61323b816131f6565b811461324657600080fd5b50565b60008135905061325881613232565b92915050565b6000806040838503121561327557613274612e75565b5b600061328385828601613249565b925050602061329485828601613194565b9150509250929050565b6132a781613173565b82525050565b60006020820190506132c2600083018461329e565b92915050565b6000602082840312156132de576132dd612e75565b5b60006132ec84828501613249565b91505092915050565b60008060006060848603121561330e5761330d612e75565b5b600061331c86828701613249565b935050602061332d86828701613249565b925050604061333e86828701613194565b9150509250925092565b600067ffffffffffffffff82111561336357613362612f55565b5b602082029050602081019050919050565b600080fd5b6000819050919050565b61338c81613379565b811461339757600080fd5b50565b6000813590506133a981613383565b92915050565b60006133c26133bd84613348565b612fb5565b905080838252602082019050602084028301858111156133e5576133e4613374565b5b835b8181101561340e57806133fa888261339a565b8452602084019350506020810190506133e7565b5050509392505050565b600082601f83011261342d5761342c612f3a565b5b813561343d8482602086016133af565b91505092915050565b60008060006060848603121561345f5761345e612e75565b5b600061346d86828701613249565b935050602061347e86828701613194565b925050604084013567ffffffffffffffff81111561349f5761349e612e7a565b5b6134ab86828701613418565b9150509250925092565b6134be81613379565b82525050565b60006020820190506134d960008301846134b5565b92915050565b6000602082840312156134f5576134f4612e75565b5b60006135038482850161339a565b91505092915050565b61351581612f04565b811461352057600080fd5b50565b6000813590506135328161350c565b92915050565b6000806040838503121561354f5761354e612e75565b5b600061355d85828601613249565b925050602061356e85828601613523565b9150509250929050565b600067ffffffffffffffff82111561359357613592612f55565b5b61359c82612f44565b9050602081019050919050565b60006135bc6135b784613578565b612fb5565b9050828152602081018484840111156135d8576135d7612f3f565b5b6135e3848285613001565b509392505050565b600082601f830112613600576135ff612f3a565b5b81356136108482602086016135a9565b91505092915050565b6000806000806080858703121561363357613632612e75565b5b600061364187828801613249565b945050602061365287828801613249565b935050604061366387828801613194565b925050606085013567ffffffffffffffff81111561368457613683612e7a565b5b613690878288016135eb565b91505092959194509250565b600080604083850312156136b3576136b2612e75565b5b60006136c185828601613249565b92505060206136d285828601613249565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061372357607f821691505b60208210811415613737576137366136dc565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061377782613173565b915061378283613173565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156137bb576137ba61373d565b5b828202905092915050565b60006137d182613173565b91506137dc83613173565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156138115761381061373d565b5b828201905092915050565b60008160601b9050919050565b60006138348261381c565b9050919050565b600061384682613829565b9050919050565b61385e613859826131f6565b61383b565b82525050565b6000613870828461384d565b60148201915081905092915050565b7f41646472657373206973206e6f74206f6e20616363657373206c6973742e0000600082015250565b60006138b5601e836130d4565b91506138c08261387f565b602082019050919050565b600060208201905081810360008301526138e4816138a8565b9050919050565b7f5465616d20616c7265616479206d696e7465642e000000000000000000000000600082015250565b60006139216014836130d4565b915061392c826138eb565b602082019050919050565b6000602082019050818103600083015261395081613914565b9050919050565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b60006139b3602f836130d4565b91506139be82613957565b604082019050919050565b600060208201905081810360008301526139e2816139a6565b9050919050565b600081905092915050565b60008190508160005260206000209050919050565b60008154613a168161370b565b613a2081866139e9565b94506001821660008114613a3b5760018114613a4c57613a7f565b60ff19831686528186019350613a7f565b613a55856139f4565b60005b83811015613a7757815481890152600182019150602081019050613a58565b838801955050505b50505092915050565b6000613a93826130c9565b613a9d81856139e9565b9350613aad8185602086016130e5565b80840191505092915050565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000600082015250565b6000613aef6005836139e9565b9150613afa82613ab9565b600582019050919050565b6000613b118285613a09565b9150613b1d8284613a88565b9150613b2882613ae2565b91508190509392505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000613b906026836130d4565b9150613b9b82613b34565b604082019050919050565b60006020820190508181036000830152613bbf81613b83565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000613bfc6020836130d4565b9150613c0782613bc6565b602082019050919050565b60006020820190508181036000830152613c2b81613bef565b9050919050565b600081519050919050565b600082825260208201905092915050565b6000613c5982613c32565b613c638185613c3d565b9350613c738185602086016130e5565b613c7c81612f44565b840191505092915050565b6000608082019050613c9c6000830187613208565b613ca96020830186613208565b613cb6604083018561329e565b8181036060830152613cc88184613c4e565b905095945050505050565b600081519050613ce281612eab565b92915050565b600060208284031215613cfe57613cfd612e75565b5b6000613d0c84828501613cd3565b91505092915050565b6000613d2082613173565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415613d5357613d5261373d565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000613d9882613173565b9150613da383613173565b925082613db357613db2613d5e565b5b828204905092915050565b6000613dc982613173565b9150613dd483613173565b925082821015613de757613de661373d565b5b828203905092915050565b6000613dfd82613173565b9150613e0883613173565b925082613e1857613e17613d5e565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fdfe546869732066756e6374696f6e20697320666f722043726f73736d696e74206f6e6c792ea2646970667358221220dbcf09f3fe32fcf33409112eccd21ec4b85c2f7459714a95bac931bc6c44837c64736f6c634300080b0033

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.