ETH Price: $3,682.76 (+2.28%)

Token

Keepers (KPR)
 

Overview

Max Total Supply

10,000 KPR

Holders

3,319

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
0 KPR
0x887cda3f6b662f57eaba26d67725760611d80a93
Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

10000 unique digital collectibles. Every Keeper is born, endowed with attributes from a collection of over 400 meticulously hand-painted assets. They are personable, iconic possessions that represent KPR's foundational pillars of evolution, inclusion, and imagination.

# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
KeepersOptimized

Compiler Version
v0.8.14+commit.80d49f37

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 11 : KeepersOptimized.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.14;

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";

import "./ERC721A.sol";

import {ASingleAllowlistMerkle} from "../whitelist/ASingleAllowlistMerkle.sol";
import {AMultiFounderslistMerkle} from "../whitelist/AMultiFounderslistMerkle.sol";

//  ____  __.
// |    |/ _|____   ____ ______   ___________  ______
// |      <_/ __ \_/ __ \\____ \_/ __ \_  __ \/  ___/
// |    |  \  ___/\  ___/|  |_> >  ___/|  | \/\___ \
// |____|__ \___  >\___  >   __/ \___  >__|  /____  >
//         \/   \/     \/|__|        \/           \/

// Supply Errors
error ExceedingMaxSupply();

// Allow-list Errors
error ExceedingFoundersListEntitlements();
error ExceedingAllowListMaxMint();

// Withdrawal Errors
error ETHTransferFailed();
error RefundOverpayFailed();

// Minting Errors
error MaxMintPerAddressExceeded();

// Signature Errors
error HashMismatch();
error SignatureMismatch();
error NonceAlreadyUsed();

// Commit-Reveal errors
error AlreadyCommitted();
error NotCommitted();
error AlreadyRevealed();
error TooEarlyForReveal();

// Generic Errors
error ContractPaused();
error IncorrectPrice();
error ContractsNotAllowed();

/// @title Keepers NFT Contract
/// @author Karmabadger
/// @notice This is the main NFT contract for Keepers.
/// @dev This contract is used to mint NFTs for Keepers.
contract KeepersOptimized is ERC721A, ASingleAllowlistMerkle, AMultiFounderslistMerkle {
    using Strings for uint256;
    using ECDSA for bytes32;

    uint256 public constant MAX_SUPPLY = 10000;
    
    uint256 public mintedReservedSupply;
    uint256 public mintedAllowlistSupply;
    uint256 public mintedFounderslistSupply;
    uint256 public mintedPublicSupply;

    uint256 public publicPrice = 0.2 ether;
    
    uint256 public constant MAX_MINT_PER_ADDRESS = 3;
    uint256 public constant MAX_ALLOW_LIST_MINTS = 2;

    uint256 public futureBlockToUse;
    uint256 public tokenIdShift;

    string public baseURI;
    string public hiddenURI;

    string public provenanceHash;

    address public signerAddress;

    bool public paused = true;
    bool public revealed;

    mapping(bytes32 => bool) public nonceUsed;

    // Aux Storage (64 bits) Layout:
    // - [0..1]     `allowListMints`      (how many allow-list mints a wallet performed, up to 3)
    // - [2..17]    `foundersListMints`   (how many founders-list mints a wallet performs; this probably doesn't NEED 16 bits but we have space)
    // - [18..20]   `publicMints`         (how many public mints by a wallet, up to 5 - allowListMints)
    // - [20..63]   (unused)

    /// @notice This is the constructor for the Keepers NFT contract.
    /// @dev sets the default admin role of the contract.
    /// @param _owner the default admin to be set to the contract
    constructor(address _owner, bytes32 _allowlistMerkleRoot, bytes32 _foundersListMerkleRoot, address _signer)
        ERC721A("Keepers", "KPR")
        ASingleAllowlistMerkle(_allowlistMerkleRoot)
        AMultiFounderslistMerkle(_foundersListMerkleRoot)
    {
        transferOwnership(_owner);
        signerAddress = _signer;
    }

    /* Utility Methods */

    function getBits(uint256 _input, uint256 _startBit, uint256 _length) private pure returns (uint256) {
        uint256 bitMask = ((1 << _length) - 1) << _startBit;

        uint256 outBits = _input & bitMask;

        return outBits >> _startBit;
    }

    function getFoundersListMints(address _minter) public view returns (uint256) {
        return getBits(_getAux(_minter), 2, 16);
    }

    function getAllowListMints(address _minter) public view returns (uint256) {
        return getBits(_getAux(_minter), 0, 2);
    }

    function getPublicMints(address _minter) public view returns (uint256) {
        return getBits(_getAux(_minter), 18, 3);
    }

    /* Pausable */

    function setPaused(bool _state) external payable onlyOwner {
        paused = _state;
    }

    /* Signatures */

    function setSignerAddress(address _signer) external onlyOwner {
        signerAddress = _signer;
    }

    /* Pricing */

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

    /* ETH Withdrawals */

    function ownerPullETH() external onlyOwner {        
        (bool success, ) = payable(msg.sender).call{
            value: address(this).balance
        }("");
        if (!success) revert ETHTransferFailed();
    }

    /* Minting */

    /// @notice Safely mints NFTs in the reserved supply. Note: These will likely end up hidden on OpenSea
    /// @dev Only the Owner can mint reserved NFTs.
    /// @param _receiver The address of the receiver
    /// @param _amount The quantity to aidrop
    function mintReserved(address _receiver, uint256 _amount) external payable mintCompliance(_amount) onlyOwner {
        mintedReservedSupply += _amount;

        _mint(_receiver, _amount);
    }

    /// @notice Safely mints NFTs from founders list.
    /// @dev free
    function mintFounderslist(bytes32[] calldata _merkleProof, uint16 _entitlementAmount, uint256 _amount) external mintCompliance(_amount) onlyFounderslisted(_merkleProof, _entitlementAmount) whenNotPaused {        
        uint256 foundersListMints = getBits(_getAux(msg.sender), 2, 16);
        if (foundersListMints + _amount > _entitlementAmount) revert ExceedingFoundersListEntitlements();

        mintedFounderslistSupply += _amount;
        _setAux(msg.sender, _getAux(msg.sender) + uint64(_amount << 2));

        _mint(msg.sender, _amount);
    }

    /// @notice Safely mints NFTs from allowlist.
    /// @dev pays the lowest auction price
    function mintAllowlist(bytes32[] calldata _merkleProof, uint256 _amount) external payable mintCompliance(_amount) onlyAllowlisted(_merkleProof) whenNotPaused {
        uint256 totalPrice = publicPrice * _amount;
        if (msg.value != totalPrice) revert IncorrectPrice();

        uint256 allowListMints = getBits(_getAux(msg.sender), 0, 2);
        if (allowListMints + _amount > MAX_ALLOW_LIST_MINTS) revert ExceedingAllowListMaxMint();

        mintedAllowlistSupply += _amount;
        _setAux(msg.sender, _getAux(msg.sender) + uint64(_amount));

        _mint(msg.sender, _amount);
    }

    /// @notice mint function
    /// @param _amount The amount of NFTs to be minted
    /**
     ** @dev the user has to send at least the current price in ETH to buy the NFTs (extras are refunded).
     ** we removed nonReentrant since all external calls are moved to the end.
     ** transfer() only forwards 2300 gas units which garantees no reentrancy.
     ** the optimized mint() function uses _mint() which does not check ERC721Receiver since we do not allow contracts minting.
     ** @dev removed all auction logic, this is now just a flat-rate public mint
     */
    function mintPublic(uint256 _amount, bytes32 _nonce, bytes32 _hash, uint8 v, bytes32 r, bytes32 s) external payable mintCompliance(_amount) whenNotPaused {
        if (tx.origin != msg.sender) revert ContractsNotAllowed();
        
        // https://docs.openzeppelin.com/contracts/2.x/utilities
        if (nonceUsed[_nonce]) revert NonceAlreadyUsed();

        if (_hash != keccak256(
            abi.encodePacked(msg.sender, _nonce, address(this))
        )) revert HashMismatch();

        bytes32 messageDigest = keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", _hash));

        if (signerAddress != ecrecover(messageDigest, v, r, s)) revert SignatureMismatch();

        nonceUsed[_nonce] = true;

        uint256 totalPrice = publicPrice * _amount;
        if (msg.value != totalPrice) revert IncorrectPrice();

        uint256 allowListMints = getBits(_getAux(msg.sender), 0, 2);
        uint256 publicMints = getBits(_getAux(msg.sender), 18, 3);
        if (allowListMints + publicMints + _amount > MAX_MINT_PER_ADDRESS) revert MaxMintPerAddressExceeded();

        mintedPublicSupply += _amount;
        _setAux(msg.sender, _getAux(msg.sender) + uint64(_amount << 18));

        _mint(msg.sender, _amount);
    }

    /* Commit-reveal and metadata */

    // Including all of the Metadata logic here now, as ABaseNFTCommitment and OptimizedERC721 were having some collision issues
    // https://medium.com/@cryptosecgroup/provably-fair-nft-launches-nftgoblins-commit-reveal-scheme-9aaf240bd4ad

    function commit(string calldata _provenanceHash) external payable onlyOwner {
        // Can only commit once
        // Note: A reveal has to happen within 256 blocks or this will break
        if (futureBlockToUse != 0) revert AlreadyCommitted();

        provenanceHash = _provenanceHash;
        futureBlockToUse = block.number + 5;
    }

    function reveal() external payable onlyOwner {
        if (futureBlockToUse == 0) revert NotCommitted();

        if (block.number < futureBlockToUse) revert TooEarlyForReveal();

        if (revealed) revert AlreadyRevealed();

        tokenIdShift = (uint256(blockhash(futureBlockToUse)) % MAX_SUPPLY) + 1;

        revealed = true;
    }

    function setHiddenURI(string memory _hiddenURI) external onlyOwner {
        hiddenURI = _hiddenURI;
    }

    function setBaseURI(string memory _baseURI) external onlyOwner {
        baseURI = _baseURI;
    }

    function getBaseURI() external view returns (string memory) {
        return baseURI;
    }

    function tokenURI(uint256 _tokenId) public view override returns (string memory) {
        if (revealed) {
            uint256 shiftedTokenId = (_tokenId + tokenIdShift) % MAX_SUPPLY;

            return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, shiftedTokenId.toString(), ".json")) : "";
        }
        else {
            return hiddenURI;
        }
    }

    /* Modifiers */

    modifier whenNotPaused() {
        if (paused) revert ContractPaused();
        _;
    }

    modifier mintCompliance(uint256 _amount) {
        if ((totalSupply() + _amount) > MAX_SUPPLY) revert ExceedingMaxSupply();
        _;
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

File 4 of 11 : ECDSA.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/cryptography/ECDSA.sol)

pragma solidity ^0.8.0;

import "../Strings.sol";

/**
 * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.
 *
 * These functions can be used to verify that a message was signed by the holder
 * of the private keys of a given address.
 */
library ECDSA {
    enum RecoverError {
        NoError,
        InvalidSignature,
        InvalidSignatureLength,
        InvalidSignatureS,
        InvalidSignatureV
    }

    function _throwError(RecoverError error) private pure {
        if (error == RecoverError.NoError) {
            return; // no error: do nothing
        } else if (error == RecoverError.InvalidSignature) {
            revert("ECDSA: invalid signature");
        } else if (error == RecoverError.InvalidSignatureLength) {
            revert("ECDSA: invalid signature length");
        } else if (error == RecoverError.InvalidSignatureS) {
            revert("ECDSA: invalid signature 's' value");
        } else if (error == RecoverError.InvalidSignatureV) {
            revert("ECDSA: invalid signature 'v' value");
        }
    }

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

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

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

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

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

        // If the signature is valid (and not malleable), return the signer address
        address signer = ecrecover(hash, v, r, s);
        if (signer == address(0)) {
            return (address(0), RecoverError.InvalidSignature);
        }

        return (signer, RecoverError.NoError);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `v`,
     * `r` and `s` signature fields separately.
     */
    function recover(
        bytes32 hash,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, v, r, s);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from a `hash`. This
     * produces hash corresponding to the one signed with the
     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
     * JSON-RPC method as part of EIP-191.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) {
        // 32 is the length in bytes of hash,
        // enforced by the type signature above
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash));
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from `s`. This
     * produces hash corresponding to the one signed with the
     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
     * JSON-RPC method as part of EIP-191.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s));
    }

    /**
     * @dev Returns an Ethereum Signed Typed Data, created from a
     * `domainSeparator` and a `structHash`. This produces hash corresponding
     * to the one signed with the
     * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`]
     * JSON-RPC method as part of EIP-712.
     *
     * See {recover}.
     */
    function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash));
    }
}

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

pragma solidity ^0.8.4;

import './IERC721A.sol';

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        return _tokenApprovals[tokenId].value;
    }

    /**
     * @dev Approve or remove `operator` as an operator for the caller.
     * Operators can call {transferFrom} or {safeTransferFrom}
     * for any token owned by the caller.
     *
     * Requirements:
     *
     * - The `operator` cannot be the caller.
     *
     * Emits an {ApprovalForAll} event.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        _operatorApprovals[_msgSenderERC721A()][operator] = approved;
        emit ApprovalForAll(_msgSenderERC721A(), operator, approved);
    }

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

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

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

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

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

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token
     * by either {approve} or {setApprovalForAll}.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public payable virtual override {
        uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId);

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

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

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

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

        _beforeTokenTransfers(from, to, tokenId, 1);

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

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

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

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

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

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

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token
     * by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement
     * {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) public payable virtual override {
        transferFrom(from, to, tokenId);
        if (to.code.length != 0)
            if (!_checkContractOnERC721Received(from, to, tokenId, _data)) {
                revert TransferToNonERC721ReceiverImplementer();
            }
    }

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

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

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

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

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

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

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

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

            uint256 toMasked;
            uint256 end = startTokenId + quantity;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        address from = address(uint160(prevOwnershipPacked));

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

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

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

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

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

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

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

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

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

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

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

    /**
     * @dev Called during each token transfer to set the 24bit `extraData` field.
     * Intended to be overridden by the cosumer contract.
     *
     * `previousExtraData` - the value of `extraData` before transfer.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be
     * transferred to `to`.
     * - When `from` is zero, `tokenId` will be minted for `to`.
     * - When `to` is zero, `tokenId` will be burned by `from`.
     * - `from` and `to` are never both zero.
     */
    function _extraData(
        address from,
        address to,
        uint24 previousExtraData
    ) internal view virtual returns (uint24) {}

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

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

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

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

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

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

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

File 6 of 11 : ASingleAllowlistMerkle.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.14;

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

import "./WhitelistErrors.sol";

/// @title Merkle Proof based whitelist Base Abstract Contract
/// @author karmabadger
/// @notice Uses an address and an amount
/// @dev inherit this contract to use the whitelist functionality
abstract contract ASingleAllowlistMerkle is Ownable {
    bytes32 public allowlistMerkleRoot; // root of the merkle tree

    /// @notice constructor
    /// @param _merkleRoot the root of the merkle tree
    constructor(bytes32 _merkleRoot) {
        allowlistMerkleRoot = _merkleRoot;
    }

    /// @notice only for whitelisted accounts
    /// @dev need a proof to prove that the account is whitelisted with an amount whitelisted. also needs enough allowed amount left to mint
    modifier onlyAllowlisted(bytes32[] calldata _merkleProof) {
        if (!_isAllowlisted(msg.sender, _merkleProof)) revert InvalidMerkleProof();
        _;
    }

    /* whitelist admin functions */
    /// @notice set the merkle root
    /// @dev If the merkle root is changed, the whitelist is reset
    /// @param _merkleRoot the root of the merkle tree
    function setAllowlistMerkleRoot(bytes32 _merkleRoot) external onlyOwner {
        allowlistMerkleRoot = _merkleRoot;
    }

    /* whitelist user functions */
    /// @notice Check if an account is whitelisted using a merkle proof
    /// @dev verifies the merkle proof
    /// @param _account the account to check if it is whitelisted
    /// @param _merkleProof the merkle proof of for the whitelist
    /// @return true if the account is whitelisted
    function _isAllowlisted(address _account, bytes32[] calldata _merkleProof)
        internal
        view
        returns (bool)
    {
        return
            MerkleProof.verify(
                _merkleProof,
                allowlistMerkleRoot,
                keccak256(abi.encodePacked(_account))
            );
    }

    /// @notice Check if an account is whitelisted using a merkle proof
    /// @dev verifies the merkle proof
    /// @param _account the account to check if it is whitelisted
    /// @param _merkleProof the merkle proof of for the whitelist
    /// @return true if the account is whitelisted
    function isAllowlisted(address _account, bytes32[] calldata _merkleProof)
        external
        view
        returns (bool)
    {
        return _isAllowlisted(_account, _merkleProof);
    }
}

File 7 of 11 : AMultiFounderslistMerkle.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.14;

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

import "./WhitelistErrors.sol";

/// @title Merkle Proof based whitelist Base Abstract Contract
/// @author karmabadger
/// @notice Uses an address and an amount
/// @dev inherit this contract to use the whitelist functionality
abstract contract AMultiFounderslistMerkle is Ownable {
    bytes32 public founderslistMerkleRoot; // root of the merkle tree

    // mapping(address => uint32) public whitelistMintMintedAmounts; // Whitelist minted amounts for each account.

    /// @notice constructor
    /// @param _merkleRoot the root of the merkle tree
    constructor(bytes32 _merkleRoot) {
        founderslistMerkleRoot = _merkleRoot;
    }

    /// @notice only for whitelisted accounts
    /// @dev need a proof to prove that the account is whitelisted with an amount whitelisted. also needs enough allowed amount left to mint
    modifier onlyFounderslisted(bytes32[] calldata _merkleProof, uint16 _entitlementAmount) {
        bytes32 leaf = keccak256(abi.encodePacked(msg.sender, _entitlementAmount));
        if (!MerkleProof.verify(_merkleProof, founderslistMerkleRoot, leaf))
            revert InvalidMerkleProof();
        _;
    }

    /* whitelist admin functions */
    /// @notice set the merkle root
    /// @dev If the merkle root is changed, the whitelist is reset
    /// @param _merkleRoot the root of the merkle tree
    function setFounderslistMerkleRoot(bytes32 _merkleRoot) external onlyOwner {
        founderslistMerkleRoot = _merkleRoot;
    }

    /* whitelist user functions */

    /// @notice Check if an account is whitelisted using a merkle proof
    /// @dev verifies the merkle proof
    /// @param _account the account to check if it is whitelisted
    /// @param _entitlementAmount the amount of the account to check if it is whitelisted
    /// @param _merkleProof the merkle proof of for the whitelist
    /// @return true if the account is whitelisted
    function isFounderslisted(
        address _account,
        uint16 _entitlementAmount,
        bytes32[] calldata _merkleProof
    ) external view returns (bool) {
        bytes32 leaf = keccak256(abi.encodePacked(_account, _entitlementAmount));
        return MerkleProof.verify(_merkleProof, founderslistMerkleRoot, leaf);
    }
}

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

pragma solidity ^0.8.0;

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

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

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

pragma solidity ^0.8.4;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 10 of 11 : MerkleProof.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/cryptography/MerkleProof.sol)

pragma solidity ^0.8.0;

/**
 * @dev These functions deal with verification of Merkle Trees 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 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++) {
            bytes32 proofElement = proof[i];
            if (computedHash <= proofElement) {
                // Hash(current computed hash + current element of the proof)
                computedHash = _efficientHash(computedHash, proofElement);
            } else {
                // Hash(current element of the proof + current computed hash)
                computedHash = _efficientHash(proofElement, computedHash);
            }
        }
        return computedHash;
    }

    function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) {
        assembly {
            mstore(0x00, a)
            mstore(0x20, b)
            value := keccak256(0x00, 0x40)
        }
    }
}

File 11 of 11 : WhitelistErrors.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.14;

error InvalidMerkleProof();
error WhitelistAlreadyMinted();

Settings
{
  "remappings": [
    "@cheatcodes/=src/cheatcodes/",
    "@contracts/=src/contracts/",
    "@openzeppelin/=lib/openzeppelin-contracts/",
    "@test/=src/tests/",
    "ds-note/=lib/ds-warp/lib/ds-note/src/",
    "ds-test/=lib/ds-test/src/",
    "ds-warp/=lib/ds-warp/src/",
    "openzeppelin-contracts/=lib/openzeppelin-contracts/"
  ],
  "optimizer": {
    "enabled": false,
    "runs": 200
  },
  "metadata": {
    "bytecodeHash": "ipfs"
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "evmVersion": "london",
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_owner","type":"address"},{"internalType":"bytes32","name":"_allowlistMerkleRoot","type":"bytes32"},{"internalType":"bytes32","name":"_foundersListMerkleRoot","type":"bytes32"},{"internalType":"address","name":"_signer","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"AlreadyCommitted","type":"error"},{"inputs":[],"name":"AlreadyRevealed","type":"error"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"ContractPaused","type":"error"},{"inputs":[],"name":"ContractsNotAllowed","type":"error"},{"inputs":[],"name":"ETHTransferFailed","type":"error"},{"inputs":[],"name":"ExceedingAllowListMaxMint","type":"error"},{"inputs":[],"name":"ExceedingFoundersListEntitlements","type":"error"},{"inputs":[],"name":"ExceedingMaxSupply","type":"error"},{"inputs":[],"name":"HashMismatch","type":"error"},{"inputs":[],"name":"IncorrectPrice","type":"error"},{"inputs":[],"name":"InvalidMerkleProof","type":"error"},{"inputs":[],"name":"MaxMintPerAddressExceeded","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"NonceAlreadyUsed","type":"error"},{"inputs":[],"name":"NotCommitted","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"SignatureMismatch","type":"error"},{"inputs":[],"name":"TooEarlyForReveal","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":"MAX_ALLOW_LIST_MINTS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_MINT_PER_ADDRESS","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":"allowlistMerkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"_provenanceHash","type":"string"}],"name":"commit","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"founderslistMerkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"futureBlockToUse","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_minter","type":"address"}],"name":"getAllowListMints","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getBaseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_minter","type":"address"}],"name":"getFoundersListMints","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_minter","type":"address"}],"name":"getPublicMints","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"hiddenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"},{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"}],"name":"isAllowlisted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"},{"internalType":"uint16","name":"_entitlementAmount","type":"uint16"},{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"}],"name":"isFounderslisted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"mintAllowlist","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"},{"internalType":"uint16","name":"_entitlementAmount","type":"uint16"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"mintFounderslist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"bytes32","name":"_nonce","type":"bytes32"},{"internalType":"bytes32","name":"_hash","type":"bytes32"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"mintPublic","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"_receiver","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"mintReserved","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintedAllowlistSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintedFounderslistSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintedPublicSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintedReservedSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"nonceUsed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ownerPullETH","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"provenanceHash","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"reveal","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"revealed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"}],"name":"setAllowlistMerkleRoot","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":"string","name":"_baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"}],"name":"setFounderslistMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_hiddenURI","type":"string"}],"name":"setHiddenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"setPaused","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pubPrice","type":"uint256"}],"name":"setPublicPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_signer","type":"address"}],"name":"setSignerAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"signerAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenIdShift","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040526702c68af0bb140000600f556001601560146101000a81548160ff0219169083151502179055503480156200003857600080fd5b50604051620053103803806200531083398181016040528101906200005e919062000509565b81836040518060400160405280600781526020017f4b656570657273000000000000000000000000000000000000000000000000008152506040518060400160405280600381526020017f4b505200000000000000000000000000000000000000000000000000000000008152508160029080519060200190620000e4929190620003b4565b508060039080519060200190620000fd929190620003b4565b506200010e620001a260201b60201c565b6000819055505050620001366200012a620001a760201b60201c565b620001af60201b60201c565b806009819055505080600a819055505062000157846200027560201b60201c565b80601560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050505050620006fa565b600090565b600033905090565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b62000285620001a760201b60201c565b73ffffffffffffffffffffffffffffffffffffffff16620002ab6200038a60201b60201c565b73ffffffffffffffffffffffffffffffffffffffff161462000304576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620002fb90620005dc565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160362000376576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200036d9062000674565b60405180910390fd5b6200038781620001af60201b60201c565b50565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b828054620003c290620006c5565b90600052602060002090601f016020900481019282620003e6576000855562000432565b82601f106200040157805160ff191683800117855562000432565b8280016001018555821562000432579182015b828111156200043157825182559160200191906001019062000414565b5b50905062000441919062000445565b5090565b5b808211156200046057600081600090555060010162000446565b5090565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000620004968262000469565b9050919050565b620004a88162000489565b8114620004b457600080fd5b50565b600081519050620004c8816200049d565b92915050565b6000819050919050565b620004e381620004ce565b8114620004ef57600080fd5b50565b6000815190506200050381620004d8565b92915050565b6000806000806080858703121562000526576200052562000464565b5b60006200053687828801620004b7565b94505060206200054987828801620004f2565b93505060406200055c87828801620004f2565b92505060606200056f87828801620004b7565b91505092959194509250565b600082825260208201905092915050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000620005c46020836200057b565b9150620005d1826200058c565b602082019050919050565b60006020820190508181036000830152620005f781620005b5565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006200065c6026836200057b565b91506200066982620005fe565b604082019050919050565b600060208201905081810360008301526200068f816200064d565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680620006de57607f821691505b602082108103620006f457620006f362000696565b5b50919050565b614c06806200070a6000396000f3fe60806040526004361061036b5760003560e01c8063715018a6116101c6578063b88d4fde116100f7578063e985e9c511610095578063f2fde38b1161006f578063f2fde38b14610c37578063f6d8259914610c60578063f95df41414610c7c578063ff41e64014610ca55761036b565b8063e985e9c514610b92578063e9893cde14610bcf578063ef3f73f814610c0c5761036b565b8063c6275255116100d1578063c627525514610ac4578063c6ab67a314610aed578063c87b56dd14610b18578063cfde454914610b555761036b565b8063b88d4fde14610a54578063bbaac02f14610a70578063c0bef6ce14610a995761036b565b80639d078e0911610164578063a22cb4651161013e578063a22cb465146109cb578063a475b5dd146109f4578063a945bf80146109fe578063a96e12c614610a295761036b565b80639d078e09146109385780639d4c17b5146109635780639f2737cd1461098e5761036b565b80638da5cb5b116101a05780638da5cb5b1461089b578063959e742c146108c657806395d89b41146108f15780639867db741461091c5761036b565b8063715018a61461083d5780637de55fe1146108545780638cc54e7f146108705761036b565b80633a4fda8f116102a05780635c975abb1161023e5780636aec02c7116102185780636aec02c71461077f5780636c0360eb146107aa57806370a08231146107d5578063714c5398146108125761036b565b80635c975abb146106da57806361a4422b146107055780636352211e146107425761036b565b806344b019f01161027a57806344b019f01461061e578063518302271461065b57806355f804b3146106865780635b7633d0146106af5761036b565b80633a4fda8f146105c05780633acd6cb2146105d757806342842e0e146106025761036b565b806323b872dd1161030d5780632a8db6bd116102e75780632a8db6bd1461051357806332cb6b0c1461053c578063330067861461056757806336f1fb1b146105a45761036b565b806323b872dd146104a15780632598f072146104bd578063293108e0146104e85761036b565b8063081812fc11610349578063081812fc14610401578063095ea7b31461043e57806316c38b3c1461045a57806318160ddd146104765761036b565b806301ffc9a714610370578063046dc166146103ad57806306fdde03146103d6575b600080fd5b34801561037c57600080fd5b5061039760048036038101906103929190613902565b610cce565b6040516103a4919061394a565b60405180910390f35b3480156103b957600080fd5b506103d460048036038101906103cf91906139c3565b610d60565b005b3480156103e257600080fd5b506103eb610e20565b6040516103f89190613a89565b60405180910390f35b34801561040d57600080fd5b5061042860048036038101906104239190613ae1565b610eb2565b6040516104359190613b1d565b60405180910390f35b61045860048036038101906104539190613b38565b610f31565b005b610474600480360381019061046f9190613ba4565b611075565b005b34801561048257600080fd5b5061048b61110e565b6040516104989190613be0565b60405180910390f35b6104bb60048036038101906104b69190613bfb565b611125565b005b3480156104c957600080fd5b506104d2611447565b6040516104df9190613be0565b60405180910390f35b3480156104f457600080fd5b506104fd61144d565b60405161050a9190613c67565b60405180910390f35b34801561051f57600080fd5b5061053a60048036038101906105359190613cae565b611453565b005b34801561054857600080fd5b506105516114d9565b60405161055e9190613be0565b60405180910390f35b34801561057357600080fd5b5061058e60048036038101906105899190613d40565b6114df565b60405161059b919061394a565b60405180910390f35b6105be60048036038101906105b99190613dd9565b6114f5565b005b3480156105cc57600080fd5b506105d5611909565b005b3480156105e357600080fd5b506105ec611a2b565b6040516105f99190613be0565b60405180910390f35b61061c60048036038101906106179190613bfb565b611a30565b005b34801561062a57600080fd5b50610645600480360381019061064091906139c3565b611a50565b6040516106529190613be0565b60405180910390f35b34801561066757600080fd5b50610670611a78565b60405161067d919061394a565b60405180910390f35b34801561069257600080fd5b506106ad60048036038101906106a89190613f96565b611a89565b005b3480156106bb57600080fd5b506106c4611b1f565b6040516106d19190613b1d565b60405180910390f35b3480156106e657600080fd5b506106ef611b45565b6040516106fc919061394a565b60405180910390f35b34801561071157600080fd5b5061072c60048036038101906107279190613cae565b611b58565b604051610739919061394a565b60405180910390f35b34801561074e57600080fd5b5061076960048036038101906107649190613ae1565b611b78565b6040516107769190613b1d565b60405180910390f35b34801561078b57600080fd5b50610794611b8a565b6040516107a19190613c67565b60405180910390f35b3480156107b657600080fd5b506107bf611b90565b6040516107cc9190613a89565b60405180910390f35b3480156107e157600080fd5b506107fc60048036038101906107f791906139c3565b611c1e565b6040516108099190613be0565b60405180910390f35b34801561081e57600080fd5b50610827611cd6565b6040516108349190613a89565b60405180910390f35b34801561084957600080fd5b50610852611d68565b005b61086e60048036038101906108699190613b38565b611df0565b005b34801561087c57600080fd5b50610885611ee3565b6040516108929190613a89565b60405180910390f35b3480156108a757600080fd5b506108b0611f71565b6040516108bd9190613b1d565b60405180910390f35b3480156108d257600080fd5b506108db611f9b565b6040516108e89190613be0565b60405180910390f35b3480156108fd57600080fd5b50610906611fa1565b6040516109139190613a89565b60405180910390f35b61093660048036038101906109319190614035565b612033565b005b34801561094457600080fd5b5061094d612114565b60405161095a9190613be0565b60405180910390f35b34801561096f57600080fd5b5061097861211a565b6040516109859190613be0565b60405180910390f35b34801561099a57600080fd5b506109b560048036038101906109b091906139c3565b612120565b6040516109c29190613be0565b60405180910390f35b3480156109d757600080fd5b506109f260048036038101906109ed9190614082565b612148565b005b6109fc612253565b005b348015610a0a57600080fd5b50610a136123ce565b604051610a209190613be0565b60405180910390f35b348015610a3557600080fd5b50610a3e6123d4565b604051610a4b9190613be0565b60405180910390f35b610a6e6004803603810190610a699190614163565b6123da565b005b348015610a7c57600080fd5b50610a976004803603810190610a929190613f96565b61244d565b005b348015610aa557600080fd5b50610aae6124e3565b604051610abb9190613be0565b60405180910390f35b348015610ad057600080fd5b50610aeb6004803603810190610ae69190613ae1565b6124e9565b005b348015610af957600080fd5b50610b0261256f565b604051610b0f9190613a89565b60405180910390f35b348015610b2457600080fd5b50610b3f6004803603810190610b3a9190613ae1565b6125fd565b604051610b4c9190613a89565b60405180910390f35b348015610b6157600080fd5b50610b7c6004803603810190610b779190614220565b612723565b604051610b89919061394a565b60405180910390f35b348015610b9e57600080fd5b50610bb96004803603810190610bb49190614294565b6127aa565b604051610bc6919061394a565b60405180910390f35b348015610bdb57600080fd5b50610bf66004803603810190610bf191906139c3565b61283e565b604051610c039190613be0565b60405180910390f35b348015610c1857600080fd5b50610c21612866565b604051610c2e9190613be0565b60405180910390f35b348015610c4357600080fd5b50610c5e6004803603810190610c5991906139c3565b61286b565b005b610c7a6004803603810190610c7591906142d4565b612962565b005b348015610c8857600080fd5b50610ca36004803603810190610c9e9190613cae565b612b39565b005b348015610cb157600080fd5b50610ccc6004803603810190610cc79190614334565b612bbf565b005b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610d2957506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610d595750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b610d68612dc5565b73ffffffffffffffffffffffffffffffffffffffff16610d86611f71565b73ffffffffffffffffffffffffffffffffffffffff1614610ddc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dd3906143f4565b60405180910390fd5b80601560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b606060028054610e2f90614443565b80601f0160208091040260200160405190810160405280929190818152602001828054610e5b90614443565b8015610ea85780601f10610e7d57610100808354040283529160200191610ea8565b820191906000526020600020905b815481529060010190602001808311610e8b57829003601f168201915b5050505050905090565b6000610ebd82612dcd565b610ef3576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610f3c82611b78565b90508073ffffffffffffffffffffffffffffffffffffffff16610f5d612e2c565b73ffffffffffffffffffffffffffffffffffffffff1614610fc057610f8981610f84612e2c565b6127aa565b610fbf576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b61107d612dc5565b73ffffffffffffffffffffffffffffffffffffffff1661109b611f71565b73ffffffffffffffffffffffffffffffffffffffff16146110f1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110e8906143f4565b60405180910390fd5b80601560146101000a81548160ff02191690831515021790555050565b6000611118612e34565b6001546000540303905090565b600061113082612e39565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614611197576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000806111a384612f05565b915091506111b981876111b4612e2c565b612f2c565b611205576111ce866111c9612e2c565b6127aa565b611204576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff160361126b576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6112788686866001612f70565b801561128357600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008154600101919050819055506113518561132d888887612f76565b7c020000000000000000000000000000000000000000000000000000000017612f9e565b600460008681526020019081526020016000208190555060007c02000000000000000000000000000000000000000000000000000000008416036113d757600060018501905060006004600083815260200190815260200160002054036113d55760005481146113d4578360046000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461143f8686866001612fc9565b505050505050565b600b5481565b60095481565b61145b612dc5565b73ffffffffffffffffffffffffffffffffffffffff16611479611f71565b73ffffffffffffffffffffffffffffffffffffffff16146114cf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114c6906143f4565b60405180910390fd5b80600a8190555050565b61271081565b60006114ec848484612fcf565b90509392505050565b856127108161150261110e565b61150c91906144a3565b1115611544576040517f98022d9200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b601560149054906101000a900460ff161561158b576040517fab35696f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff16146115ef576040517e8b531500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6016600087815260200190815260200160002060009054906101000a900460ff1615611647576040517f1fb09b8000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b33863060405160200161165c93929190614562565b6040516020818303038152906040528051906020012085146116aa576040517f3f4d605300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000856040516020016116bd91906145f6565b604051602081830303815290604052805190602001209050600181868686604051600081526020016040526040516116f8949392919061462b565b6020604051602081039080840390855afa15801561171a573d6000803e3d6000fd5b5050506020604051035173ffffffffffffffffffffffffffffffffffffffff16601560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146117aa576040517f73a8ee1800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60016016600089815260200190815260200160002060006101000a81548160ff021916908315150217905550600088600f546117e69190614670565b9050803414611821576040517f99b5cb1d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600061184261182f3361304e565b67ffffffffffffffff166000600261309b565b905060006118656118523361304e565b67ffffffffffffffff166012600361309b565b905060038b828461187691906144a3565b61188091906144a3565b11156118b8576040517feebf3e5800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8a600e60008282546118ca91906144a3565b925050819055506118f23360128d901b6118e33361304e565b6118ed91906146de565b6130ca565b6118fc338c613180565b5050505050505050505050565b611911612dc5565b73ffffffffffffffffffffffffffffffffffffffff1661192f611f71565b73ffffffffffffffffffffffffffffffffffffffff1614611985576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161197c906143f4565b60405180910390fd5b60003373ffffffffffffffffffffffffffffffffffffffff16476040516119ab9061474d565b60006040518083038185875af1925050503d80600081146119e8576040519150601f19603f3d011682016040523d82523d6000602084013e6119ed565b606091505b5050905080611a28576040517fb12d13eb00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50565b600381565b611a4b838383604051806020016040528060008152506123da565b505050565b6000611a71611a5e8361304e565b67ffffffffffffffff166000600261309b565b9050919050565b60158054906101000a900460ff1681565b611a91612dc5565b73ffffffffffffffffffffffffffffffffffffffff16611aaf611f71565b73ffffffffffffffffffffffffffffffffffffffff1614611b05576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611afc906143f4565b60405180910390fd5b8060129080519060200190611b1b92919061376d565b5050565b601560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b601560149054906101000a900460ff1681565b60166020528060005260406000206000915054906101000a900460ff1681565b6000611b8382612e39565b9050919050565b600a5481565b60128054611b9d90614443565b80601f0160208091040260200160405190810160405280929190818152602001828054611bc990614443565b8015611c165780601f10611beb57610100808354040283529160200191611c16565b820191906000526020600020905b815481529060010190602001808311611bf957829003601f168201915b505050505081565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611c85576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b606060128054611ce590614443565b80601f0160208091040260200160405190810160405280929190818152602001828054611d1190614443565b8015611d5e5780601f10611d3357610100808354040283529160200191611d5e565b820191906000526020600020905b815481529060010190602001808311611d4157829003601f168201915b5050505050905090565b611d70612dc5565b73ffffffffffffffffffffffffffffffffffffffff16611d8e611f71565b73ffffffffffffffffffffffffffffffffffffffff1614611de4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ddb906143f4565b60405180910390fd5b611dee600061333b565b565b8061271081611dfd61110e565b611e0791906144a3565b1115611e3f576040517f98022d9200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611e47612dc5565b73ffffffffffffffffffffffffffffffffffffffff16611e65611f71565b73ffffffffffffffffffffffffffffffffffffffff1614611ebb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611eb2906143f4565b60405180910390fd5b81600b6000828254611ecd91906144a3565b92505081905550611ede8383613180565b505050565b60138054611ef090614443565b80601f0160208091040260200160405190810160405280929190818152602001828054611f1c90614443565b8015611f695780601f10611f3e57610100808354040283529160200191611f69565b820191906000526020600020905b815481529060010190602001808311611f4c57829003601f168201915b505050505081565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60115481565b606060038054611fb090614443565b80601f0160208091040260200160405190810160405280929190818152602001828054611fdc90614443565b80156120295780601f10611ffe57610100808354040283529160200191612029565b820191906000526020600020905b81548152906001019060200180831161200c57829003601f168201915b5050505050905090565b61203b612dc5565b73ffffffffffffffffffffffffffffffffffffffff16612059611f71565b73ffffffffffffffffffffffffffffffffffffffff16146120af576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120a6906143f4565b60405180910390fd5b6000601054146120eb576040517fbfec555800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8181601491906120fc9291906137f3565b5060054361210a91906144a3565b6010819055505050565b600d5481565b60105481565b600061214161212e8361304e565b67ffffffffffffffff166002601061309b565b9050919050565b8060076000612155612e2c565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16612202612e2c565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051612247919061394a565b60405180910390a35050565b61225b612dc5565b73ffffffffffffffffffffffffffffffffffffffff16612279611f71565b73ffffffffffffffffffffffffffffffffffffffff16146122cf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122c6906143f4565b60405180910390fd5b60006010540361230b576040517f81791cb400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b601054431015612347576040517f9033eb2700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60158054906101000a900460ff161561238c576040517fa89ac15100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60016127106010544060001c6123a29190614791565b6123ac91906144a3565b60118190555060016015806101000a81548160ff021916908315150217905550565b600f5481565b600e5481565b6123e5848484611125565b60008373ffffffffffffffffffffffffffffffffffffffff163b146124475761241084848484613401565b612446576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b612455612dc5565b73ffffffffffffffffffffffffffffffffffffffff16612473611f71565b73ffffffffffffffffffffffffffffffffffffffff16146124c9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124c0906143f4565b60405180910390fd5b80601390805190602001906124df92919061376d565b5050565b600c5481565b6124f1612dc5565b73ffffffffffffffffffffffffffffffffffffffff1661250f611f71565b73ffffffffffffffffffffffffffffffffffffffff1614612565576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161255c906143f4565b60405180910390fd5b80600f8190555050565b6014805461257c90614443565b80601f01602080910402602001604051908101604052809291908181526020018280546125a890614443565b80156125f55780601f106125ca576101008083540402835291602001916125f5565b820191906000526020600020905b8154815290600101906020018083116125d857829003601f168201915b505050505081565b606060158054906101000a900460ff16156126905760006127106011548461262591906144a3565b61262f9190614791565b905060006012805461264090614443565b90501161265c5760405180602001604052806000815250612688565b601261266782613551565b6040516020016126789291906148d3565b6040516020818303038152906040525b91505061271e565b6013805461269d90614443565b80601f01602080910402602001604051908101604052809291908181526020018280546126c990614443565b80156127165780601f106126eb57610100808354040283529160200191612716565b820191906000526020600020905b8154815290600101906020018083116126f957829003601f168201915b505050505090505b919050565b6000808585604051602001612739929190614938565b60405160208183030381529060405280519060200120905061279f848480806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050600a54836136b1565b915050949350505050565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600061285f61284c8361304e565b67ffffffffffffffff166012600361309b565b9050919050565b600281565b612873612dc5565b73ffffffffffffffffffffffffffffffffffffffff16612891611f71565b73ffffffffffffffffffffffffffffffffffffffff16146128e7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128de906143f4565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603612956576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161294d906149d6565b60405180910390fd5b61295f8161333b565b50565b806127108161296f61110e565b61297991906144a3565b11156129b1576040517f98022d9200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b83836129be338383612fcf565b6129f4576040517fb05e92fa00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b601560149054906101000a900460ff1615612a3b576040517fab35696f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600084600f54612a4b9190614670565b9050803414612a86576040517f99b5cb1d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000612aa7612a943361304e565b67ffffffffffffffff166000600261309b565b905060028682612ab791906144a3565b1115612aef576040517feefd8c8400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b85600c6000828254612b0191906144a3565b92505081905550612b253387612b163361304e565b612b2091906146de565b6130ca565b612b2f3387613180565b5050505050505050565b612b41612dc5565b73ffffffffffffffffffffffffffffffffffffffff16612b5f611f71565b73ffffffffffffffffffffffffffffffffffffffff1614612bb5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612bac906143f4565b60405180910390fd5b8060098190555050565b8061271081612bcc61110e565b612bd691906144a3565b1115612c0e576040517f98022d9200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b84848460003382604051602001612c26929190614938565b604051602081830303815290604052805190602001209050612c8c848480806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050600a54836136b1565b612cc2576040517fb05e92fa00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b601560149054906101000a900460ff1615612d09576040517fab35696f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000612d2a612d173361304e565b67ffffffffffffffff166002601061309b565b90508761ffff168782612d3d91906144a3565b1115612d75576040517f42e8f8f900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b86600d6000828254612d8791906144a3565b92505081905550612daf33600289901b612da03361304e565b612daa91906146de565b6130ca565b612db93388613180565b50505050505050505050565b600033905090565b600081612dd8612e34565b11158015612de7575060005482105b8015612e25575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b600033905090565b600090565b60008082905080612e48612e34565b11612ece57600054811015612ecd5760006004600083815260200190815260200160002054905060007c0100000000000000000000000000000000000000000000000000000000821603612ecb575b60008103612ec1576004600083600190039350838152602001908152602001600020549050612e97565b8092505050612f00565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b60008060006006600085815260200190815260200160002090508092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e8612f8d8686846136c8565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b6000613045838380806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f820116905080830192505050505050506009548660405160200161302a91906149f6565b604051602081830303815290604052805190602001206136b1565b90509392505050565b600060c0600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054901c9050919050565b600080836001846001901b6130b09190614a11565b901b9050600081861690508481901c925050509392505050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050600082905060c081901b77ffffffffffffffffffffffffffffffffffffffffffffffff831617915081600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555050505050565b600080549050600082036131c0576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6131cd6000848385612f70565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550613244836132356000866000612f76565b61323e856136d1565b17612f9e565b6004600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b8181146132e557808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a46001810190506132aa565b5060008203613320576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060008190555050506133366000848385612fc9565b505050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a02613427612e2c565b8786866040518563ffffffff1660e01b81526004016134499493929190614a9a565b6020604051808303816000875af192505050801561348557506040513d601f19601f820116820180604052508101906134829190614afb565b60015b6134fe573d80600081146134b5576040519150601f19603f3d011682016040523d82523d6000602084013e6134ba565b606091505b5060008151036134f6576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b606060008203613598576040518060400160405280600181526020017f300000000000000000000000000000000000000000000000000000000000000081525090506136ac565b600082905060005b600082146135ca5780806135b390614b28565b915050600a826135c39190614b70565b91506135a0565b60008167ffffffffffffffff8111156135e6576135e5613e6b565b5b6040519080825280601f01601f1916602001820160405280156136185781602001600182028036833780820191505090505b5090505b600085146136a5576001826136319190614a11565b9150600a856136409190614791565b603061364c91906144a3565b60f81b81838151811061366257613661614ba1565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a8561369e9190614b70565b945061361c565b8093505050505b919050565b6000826136be85846136e1565b1490509392505050565b60009392505050565b60006001821460e11b9050919050565b60008082905060005b845181101561374b57600085828151811061370857613707614ba1565b5b6020026020010151905080831161372a576137238382613756565b9250613737565b6137348184613756565b92505b50808061374390614b28565b9150506136ea565b508091505092915050565b600082600052816020526040600020905092915050565b82805461377990614443565b90600052602060002090601f01602090048101928261379b57600085556137e2565b82601f106137b457805160ff19168380011785556137e2565b828001600101855582156137e2579182015b828111156137e15782518255916020019190600101906137c6565b5b5090506137ef9190613879565b5090565b8280546137ff90614443565b90600052602060002090601f0160209004810192826138215760008555613868565b82601f1061383a57803560ff1916838001178555613868565b82800160010185558215613868579182015b8281111561386757823582559160200191906001019061384c565b5b5090506138759190613879565b5090565b5b8082111561389257600081600090555060010161387a565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6138df816138aa565b81146138ea57600080fd5b50565b6000813590506138fc816138d6565b92915050565b600060208284031215613918576139176138a0565b5b6000613926848285016138ed565b91505092915050565b60008115159050919050565b6139448161392f565b82525050565b600060208201905061395f600083018461393b565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061399082613965565b9050919050565b6139a081613985565b81146139ab57600080fd5b50565b6000813590506139bd81613997565b92915050565b6000602082840312156139d9576139d86138a0565b5b60006139e7848285016139ae565b91505092915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015613a2a578082015181840152602081019050613a0f565b83811115613a39576000848401525b50505050565b6000601f19601f8301169050919050565b6000613a5b826139f0565b613a6581856139fb565b9350613a75818560208601613a0c565b613a7e81613a3f565b840191505092915050565b60006020820190508181036000830152613aa38184613a50565b905092915050565b6000819050919050565b613abe81613aab565b8114613ac957600080fd5b50565b600081359050613adb81613ab5565b92915050565b600060208284031215613af757613af66138a0565b5b6000613b0584828501613acc565b91505092915050565b613b1781613985565b82525050565b6000602082019050613b326000830184613b0e565b92915050565b60008060408385031215613b4f57613b4e6138a0565b5b6000613b5d858286016139ae565b9250506020613b6e85828601613acc565b9150509250929050565b613b818161392f565b8114613b8c57600080fd5b50565b600081359050613b9e81613b78565b92915050565b600060208284031215613bba57613bb96138a0565b5b6000613bc884828501613b8f565b91505092915050565b613bda81613aab565b82525050565b6000602082019050613bf56000830184613bd1565b92915050565b600080600060608486031215613c1457613c136138a0565b5b6000613c22868287016139ae565b9350506020613c33868287016139ae565b9250506040613c4486828701613acc565b9150509250925092565b6000819050919050565b613c6181613c4e565b82525050565b6000602082019050613c7c6000830184613c58565b92915050565b613c8b81613c4e565b8114613c9657600080fd5b50565b600081359050613ca881613c82565b92915050565b600060208284031215613cc457613cc36138a0565b5b6000613cd284828501613c99565b91505092915050565b600080fd5b600080fd5b600080fd5b60008083601f840112613d0057613cff613cdb565b5b8235905067ffffffffffffffff811115613d1d57613d1c613ce0565b5b602083019150836020820283011115613d3957613d38613ce5565b5b9250929050565b600080600060408486031215613d5957613d586138a0565b5b6000613d67868287016139ae565b935050602084013567ffffffffffffffff811115613d8857613d876138a5565b5b613d9486828701613cea565b92509250509250925092565b600060ff82169050919050565b613db681613da0565b8114613dc157600080fd5b50565b600081359050613dd381613dad565b92915050565b60008060008060008060c08789031215613df657613df56138a0565b5b6000613e0489828a01613acc565b9650506020613e1589828a01613c99565b9550506040613e2689828a01613c99565b9450506060613e3789828a01613dc4565b9350506080613e4889828a01613c99565b92505060a0613e5989828a01613c99565b9150509295509295509295565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b613ea382613a3f565b810181811067ffffffffffffffff82111715613ec257613ec1613e6b565b5b80604052505050565b6000613ed5613896565b9050613ee18282613e9a565b919050565b600067ffffffffffffffff821115613f0157613f00613e6b565b5b613f0a82613a3f565b9050602081019050919050565b82818337600083830152505050565b6000613f39613f3484613ee6565b613ecb565b905082815260208101848484011115613f5557613f54613e66565b5b613f60848285613f17565b509392505050565b600082601f830112613f7d57613f7c613cdb565b5b8135613f8d848260208601613f26565b91505092915050565b600060208284031215613fac57613fab6138a0565b5b600082013567ffffffffffffffff811115613fca57613fc96138a5565b5b613fd684828501613f68565b91505092915050565b60008083601f840112613ff557613ff4613cdb565b5b8235905067ffffffffffffffff81111561401257614011613ce0565b5b60208301915083600182028301111561402e5761402d613ce5565b5b9250929050565b6000806020838503121561404c5761404b6138a0565b5b600083013567ffffffffffffffff81111561406a576140696138a5565b5b61407685828601613fdf565b92509250509250929050565b60008060408385031215614099576140986138a0565b5b60006140a7858286016139ae565b92505060206140b885828601613b8f565b9150509250929050565b600067ffffffffffffffff8211156140dd576140dc613e6b565b5b6140e682613a3f565b9050602081019050919050565b6000614106614101846140c2565b613ecb565b90508281526020810184848401111561412257614121613e66565b5b61412d848285613f17565b509392505050565b600082601f83011261414a57614149613cdb565b5b813561415a8482602086016140f3565b91505092915050565b6000806000806080858703121561417d5761417c6138a0565b5b600061418b878288016139ae565b945050602061419c878288016139ae565b93505060406141ad87828801613acc565b925050606085013567ffffffffffffffff8111156141ce576141cd6138a5565b5b6141da87828801614135565b91505092959194509250565b600061ffff82169050919050565b6141fd816141e6565b811461420857600080fd5b50565b60008135905061421a816141f4565b92915050565b6000806000806060858703121561423a576142396138a0565b5b6000614248878288016139ae565b94505060206142598782880161420b565b935050604085013567ffffffffffffffff81111561427a576142796138a5565b5b61428687828801613cea565b925092505092959194509250565b600080604083850312156142ab576142aa6138a0565b5b60006142b9858286016139ae565b92505060206142ca858286016139ae565b9150509250929050565b6000806000604084860312156142ed576142ec6138a0565b5b600084013567ffffffffffffffff81111561430b5761430a6138a5565b5b61431786828701613cea565b9350935050602061432a86828701613acc565b9150509250925092565b6000806000806060858703121561434e5761434d6138a0565b5b600085013567ffffffffffffffff81111561436c5761436b6138a5565b5b61437887828801613cea565b9450945050602061438b8782880161420b565b925050604061439c87828801613acc565b91505092959194509250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006143de6020836139fb565b91506143e9826143a8565b602082019050919050565b6000602082019050818103600083015261440d816143d1565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061445b57607f821691505b60208210810361446e5761446d614414565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006144ae82613aab565b91506144b983613aab565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156144ee576144ed614474565b5b828201905092915050565b60008160601b9050919050565b6000614511826144f9565b9050919050565b600061452382614506565b9050919050565b61453b61453682613985565b614518565b82525050565b6000819050919050565b61455c61455782613c4e565b614541565b82525050565b600061456e828661452a565b60148201915061457e828561454b565b60208201915061458e828461452a565b601482019150819050949350505050565b600081905092915050565b7f19457468657265756d205369676e6564204d6573736167653a0a333200000000600082015250565b60006145e0601c8361459f565b91506145eb826145aa565b601c82019050919050565b6000614601826145d3565b915061460d828461454b565b60208201915081905092915050565b61462581613da0565b82525050565b60006080820190506146406000830187613c58565b61464d602083018661461c565b61465a6040830185613c58565b6146676060830184613c58565b95945050505050565b600061467b82613aab565b915061468683613aab565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156146bf576146be614474565b5b828202905092915050565b600067ffffffffffffffff82169050919050565b60006146e9826146ca565b91506146f4836146ca565b92508267ffffffffffffffff0382111561471157614710614474565b5b828201905092915050565b600081905092915050565b50565b600061473760008361471c565b915061474282614727565b600082019050919050565b60006147588261472a565b9150819050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061479c82613aab565b91506147a783613aab565b9250826147b7576147b6614762565b5b828206905092915050565b60008190508160005260206000209050919050565b600081546147e481614443565b6147ee818661459f565b94506001821660008114614809576001811461481a5761484d565b60ff1983168652818601935061484d565b614823856147c2565b60005b8381101561484557815481890152600182019150602081019050614826565b838801955050505b50505092915050565b6000614861826139f0565b61486b818561459f565b935061487b818560208601613a0c565b80840191505092915050565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000600082015250565b60006148bd60058361459f565b91506148c882614887565b600582019050919050565b60006148df82856147d7565b91506148eb8284614856565b91506148f6826148b0565b91508190509392505050565b60008160f01b9050919050565b600061491a82614902565b9050919050565b61493261492d826141e6565b61490f565b82525050565b6000614944828561452a565b6014820191506149548284614921565b6002820191508190509392505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006149c06026836139fb565b91506149cb82614964565b604082019050919050565b600060208201905081810360008301526149ef816149b3565b9050919050565b6000614a02828461452a565b60148201915081905092915050565b6000614a1c82613aab565b9150614a2783613aab565b925082821015614a3a57614a39614474565b5b828203905092915050565b600081519050919050565b600082825260208201905092915050565b6000614a6c82614a45565b614a768185614a50565b9350614a86818560208601613a0c565b614a8f81613a3f565b840191505092915050565b6000608082019050614aaf6000830187613b0e565b614abc6020830186613b0e565b614ac96040830185613bd1565b8181036060830152614adb8184614a61565b905095945050505050565b600081519050614af5816138d6565b92915050565b600060208284031215614b1157614b106138a0565b5b6000614b1f84828501614ae6565b91505092915050565b6000614b3382613aab565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203614b6557614b64614474565b5b600182019050919050565b6000614b7b82613aab565b9150614b8683613aab565b925082614b9657614b95614762565b5b828204905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fdfea2646970667358221220b94f8027090a75276e20336448aa42eef0de073ceedc0353fb70f942c06432e464736f6c634300080e00330000000000000000000000002cdfd68b997a0b28502f3a2049e4aece58605f2a443ee3654fb2b2d254bdfd5664036837a8be734b85948b70a7c74df7556571e818dcb8a7e1bc80bdfe72cc80b9bbf65b44393df6428337f6356e1c1c1426446700000000000000000000000076813a60f3c54bcd4b73b04abce2d943e0c5c7af

Deployed Bytecode

0x60806040526004361061036b5760003560e01c8063715018a6116101c6578063b88d4fde116100f7578063e985e9c511610095578063f2fde38b1161006f578063f2fde38b14610c37578063f6d8259914610c60578063f95df41414610c7c578063ff41e64014610ca55761036b565b8063e985e9c514610b92578063e9893cde14610bcf578063ef3f73f814610c0c5761036b565b8063c6275255116100d1578063c627525514610ac4578063c6ab67a314610aed578063c87b56dd14610b18578063cfde454914610b555761036b565b8063b88d4fde14610a54578063bbaac02f14610a70578063c0bef6ce14610a995761036b565b80639d078e0911610164578063a22cb4651161013e578063a22cb465146109cb578063a475b5dd146109f4578063a945bf80146109fe578063a96e12c614610a295761036b565b80639d078e09146109385780639d4c17b5146109635780639f2737cd1461098e5761036b565b80638da5cb5b116101a05780638da5cb5b1461089b578063959e742c146108c657806395d89b41146108f15780639867db741461091c5761036b565b8063715018a61461083d5780637de55fe1146108545780638cc54e7f146108705761036b565b80633a4fda8f116102a05780635c975abb1161023e5780636aec02c7116102185780636aec02c71461077f5780636c0360eb146107aa57806370a08231146107d5578063714c5398146108125761036b565b80635c975abb146106da57806361a4422b146107055780636352211e146107425761036b565b806344b019f01161027a57806344b019f01461061e578063518302271461065b57806355f804b3146106865780635b7633d0146106af5761036b565b80633a4fda8f146105c05780633acd6cb2146105d757806342842e0e146106025761036b565b806323b872dd1161030d5780632a8db6bd116102e75780632a8db6bd1461051357806332cb6b0c1461053c578063330067861461056757806336f1fb1b146105a45761036b565b806323b872dd146104a15780632598f072146104bd578063293108e0146104e85761036b565b8063081812fc11610349578063081812fc14610401578063095ea7b31461043e57806316c38b3c1461045a57806318160ddd146104765761036b565b806301ffc9a714610370578063046dc166146103ad57806306fdde03146103d6575b600080fd5b34801561037c57600080fd5b5061039760048036038101906103929190613902565b610cce565b6040516103a4919061394a565b60405180910390f35b3480156103b957600080fd5b506103d460048036038101906103cf91906139c3565b610d60565b005b3480156103e257600080fd5b506103eb610e20565b6040516103f89190613a89565b60405180910390f35b34801561040d57600080fd5b5061042860048036038101906104239190613ae1565b610eb2565b6040516104359190613b1d565b60405180910390f35b61045860048036038101906104539190613b38565b610f31565b005b610474600480360381019061046f9190613ba4565b611075565b005b34801561048257600080fd5b5061048b61110e565b6040516104989190613be0565b60405180910390f35b6104bb60048036038101906104b69190613bfb565b611125565b005b3480156104c957600080fd5b506104d2611447565b6040516104df9190613be0565b60405180910390f35b3480156104f457600080fd5b506104fd61144d565b60405161050a9190613c67565b60405180910390f35b34801561051f57600080fd5b5061053a60048036038101906105359190613cae565b611453565b005b34801561054857600080fd5b506105516114d9565b60405161055e9190613be0565b60405180910390f35b34801561057357600080fd5b5061058e60048036038101906105899190613d40565b6114df565b60405161059b919061394a565b60405180910390f35b6105be60048036038101906105b99190613dd9565b6114f5565b005b3480156105cc57600080fd5b506105d5611909565b005b3480156105e357600080fd5b506105ec611a2b565b6040516105f99190613be0565b60405180910390f35b61061c60048036038101906106179190613bfb565b611a30565b005b34801561062a57600080fd5b50610645600480360381019061064091906139c3565b611a50565b6040516106529190613be0565b60405180910390f35b34801561066757600080fd5b50610670611a78565b60405161067d919061394a565b60405180910390f35b34801561069257600080fd5b506106ad60048036038101906106a89190613f96565b611a89565b005b3480156106bb57600080fd5b506106c4611b1f565b6040516106d19190613b1d565b60405180910390f35b3480156106e657600080fd5b506106ef611b45565b6040516106fc919061394a565b60405180910390f35b34801561071157600080fd5b5061072c60048036038101906107279190613cae565b611b58565b604051610739919061394a565b60405180910390f35b34801561074e57600080fd5b5061076960048036038101906107649190613ae1565b611b78565b6040516107769190613b1d565b60405180910390f35b34801561078b57600080fd5b50610794611b8a565b6040516107a19190613c67565b60405180910390f35b3480156107b657600080fd5b506107bf611b90565b6040516107cc9190613a89565b60405180910390f35b3480156107e157600080fd5b506107fc60048036038101906107f791906139c3565b611c1e565b6040516108099190613be0565b60405180910390f35b34801561081e57600080fd5b50610827611cd6565b6040516108349190613a89565b60405180910390f35b34801561084957600080fd5b50610852611d68565b005b61086e60048036038101906108699190613b38565b611df0565b005b34801561087c57600080fd5b50610885611ee3565b6040516108929190613a89565b60405180910390f35b3480156108a757600080fd5b506108b0611f71565b6040516108bd9190613b1d565b60405180910390f35b3480156108d257600080fd5b506108db611f9b565b6040516108e89190613be0565b60405180910390f35b3480156108fd57600080fd5b50610906611fa1565b6040516109139190613a89565b60405180910390f35b61093660048036038101906109319190614035565b612033565b005b34801561094457600080fd5b5061094d612114565b60405161095a9190613be0565b60405180910390f35b34801561096f57600080fd5b5061097861211a565b6040516109859190613be0565b60405180910390f35b34801561099a57600080fd5b506109b560048036038101906109b091906139c3565b612120565b6040516109c29190613be0565b60405180910390f35b3480156109d757600080fd5b506109f260048036038101906109ed9190614082565b612148565b005b6109fc612253565b005b348015610a0a57600080fd5b50610a136123ce565b604051610a209190613be0565b60405180910390f35b348015610a3557600080fd5b50610a3e6123d4565b604051610a4b9190613be0565b60405180910390f35b610a6e6004803603810190610a699190614163565b6123da565b005b348015610a7c57600080fd5b50610a976004803603810190610a929190613f96565b61244d565b005b348015610aa557600080fd5b50610aae6124e3565b604051610abb9190613be0565b60405180910390f35b348015610ad057600080fd5b50610aeb6004803603810190610ae69190613ae1565b6124e9565b005b348015610af957600080fd5b50610b0261256f565b604051610b0f9190613a89565b60405180910390f35b348015610b2457600080fd5b50610b3f6004803603810190610b3a9190613ae1565b6125fd565b604051610b4c9190613a89565b60405180910390f35b348015610b6157600080fd5b50610b7c6004803603810190610b779190614220565b612723565b604051610b89919061394a565b60405180910390f35b348015610b9e57600080fd5b50610bb96004803603810190610bb49190614294565b6127aa565b604051610bc6919061394a565b60405180910390f35b348015610bdb57600080fd5b50610bf66004803603810190610bf191906139c3565b61283e565b604051610c039190613be0565b60405180910390f35b348015610c1857600080fd5b50610c21612866565b604051610c2e9190613be0565b60405180910390f35b348015610c4357600080fd5b50610c5e6004803603810190610c5991906139c3565b61286b565b005b610c7a6004803603810190610c7591906142d4565b612962565b005b348015610c8857600080fd5b50610ca36004803603810190610c9e9190613cae565b612b39565b005b348015610cb157600080fd5b50610ccc6004803603810190610cc79190614334565b612bbf565b005b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610d2957506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610d595750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b610d68612dc5565b73ffffffffffffffffffffffffffffffffffffffff16610d86611f71565b73ffffffffffffffffffffffffffffffffffffffff1614610ddc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dd3906143f4565b60405180910390fd5b80601560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b606060028054610e2f90614443565b80601f0160208091040260200160405190810160405280929190818152602001828054610e5b90614443565b8015610ea85780601f10610e7d57610100808354040283529160200191610ea8565b820191906000526020600020905b815481529060010190602001808311610e8b57829003601f168201915b5050505050905090565b6000610ebd82612dcd565b610ef3576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610f3c82611b78565b90508073ffffffffffffffffffffffffffffffffffffffff16610f5d612e2c565b73ffffffffffffffffffffffffffffffffffffffff1614610fc057610f8981610f84612e2c565b6127aa565b610fbf576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b61107d612dc5565b73ffffffffffffffffffffffffffffffffffffffff1661109b611f71565b73ffffffffffffffffffffffffffffffffffffffff16146110f1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110e8906143f4565b60405180910390fd5b80601560146101000a81548160ff02191690831515021790555050565b6000611118612e34565b6001546000540303905090565b600061113082612e39565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614611197576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000806111a384612f05565b915091506111b981876111b4612e2c565b612f2c565b611205576111ce866111c9612e2c565b6127aa565b611204576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff160361126b576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6112788686866001612f70565b801561128357600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008154600101919050819055506113518561132d888887612f76565b7c020000000000000000000000000000000000000000000000000000000017612f9e565b600460008681526020019081526020016000208190555060007c02000000000000000000000000000000000000000000000000000000008416036113d757600060018501905060006004600083815260200190815260200160002054036113d55760005481146113d4578360046000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461143f8686866001612fc9565b505050505050565b600b5481565b60095481565b61145b612dc5565b73ffffffffffffffffffffffffffffffffffffffff16611479611f71565b73ffffffffffffffffffffffffffffffffffffffff16146114cf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114c6906143f4565b60405180910390fd5b80600a8190555050565b61271081565b60006114ec848484612fcf565b90509392505050565b856127108161150261110e565b61150c91906144a3565b1115611544576040517f98022d9200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b601560149054906101000a900460ff161561158b576040517fab35696f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff16146115ef576040517e8b531500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6016600087815260200190815260200160002060009054906101000a900460ff1615611647576040517f1fb09b8000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b33863060405160200161165c93929190614562565b6040516020818303038152906040528051906020012085146116aa576040517f3f4d605300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000856040516020016116bd91906145f6565b604051602081830303815290604052805190602001209050600181868686604051600081526020016040526040516116f8949392919061462b565b6020604051602081039080840390855afa15801561171a573d6000803e3d6000fd5b5050506020604051035173ffffffffffffffffffffffffffffffffffffffff16601560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146117aa576040517f73a8ee1800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60016016600089815260200190815260200160002060006101000a81548160ff021916908315150217905550600088600f546117e69190614670565b9050803414611821576040517f99b5cb1d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600061184261182f3361304e565b67ffffffffffffffff166000600261309b565b905060006118656118523361304e565b67ffffffffffffffff166012600361309b565b905060038b828461187691906144a3565b61188091906144a3565b11156118b8576040517feebf3e5800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8a600e60008282546118ca91906144a3565b925050819055506118f23360128d901b6118e33361304e565b6118ed91906146de565b6130ca565b6118fc338c613180565b5050505050505050505050565b611911612dc5565b73ffffffffffffffffffffffffffffffffffffffff1661192f611f71565b73ffffffffffffffffffffffffffffffffffffffff1614611985576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161197c906143f4565b60405180910390fd5b60003373ffffffffffffffffffffffffffffffffffffffff16476040516119ab9061474d565b60006040518083038185875af1925050503d80600081146119e8576040519150601f19603f3d011682016040523d82523d6000602084013e6119ed565b606091505b5050905080611a28576040517fb12d13eb00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50565b600381565b611a4b838383604051806020016040528060008152506123da565b505050565b6000611a71611a5e8361304e565b67ffffffffffffffff166000600261309b565b9050919050565b60158054906101000a900460ff1681565b611a91612dc5565b73ffffffffffffffffffffffffffffffffffffffff16611aaf611f71565b73ffffffffffffffffffffffffffffffffffffffff1614611b05576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611afc906143f4565b60405180910390fd5b8060129080519060200190611b1b92919061376d565b5050565b601560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b601560149054906101000a900460ff1681565b60166020528060005260406000206000915054906101000a900460ff1681565b6000611b8382612e39565b9050919050565b600a5481565b60128054611b9d90614443565b80601f0160208091040260200160405190810160405280929190818152602001828054611bc990614443565b8015611c165780601f10611beb57610100808354040283529160200191611c16565b820191906000526020600020905b815481529060010190602001808311611bf957829003601f168201915b505050505081565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611c85576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b606060128054611ce590614443565b80601f0160208091040260200160405190810160405280929190818152602001828054611d1190614443565b8015611d5e5780601f10611d3357610100808354040283529160200191611d5e565b820191906000526020600020905b815481529060010190602001808311611d4157829003601f168201915b5050505050905090565b611d70612dc5565b73ffffffffffffffffffffffffffffffffffffffff16611d8e611f71565b73ffffffffffffffffffffffffffffffffffffffff1614611de4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ddb906143f4565b60405180910390fd5b611dee600061333b565b565b8061271081611dfd61110e565b611e0791906144a3565b1115611e3f576040517f98022d9200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611e47612dc5565b73ffffffffffffffffffffffffffffffffffffffff16611e65611f71565b73ffffffffffffffffffffffffffffffffffffffff1614611ebb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611eb2906143f4565b60405180910390fd5b81600b6000828254611ecd91906144a3565b92505081905550611ede8383613180565b505050565b60138054611ef090614443565b80601f0160208091040260200160405190810160405280929190818152602001828054611f1c90614443565b8015611f695780601f10611f3e57610100808354040283529160200191611f69565b820191906000526020600020905b815481529060010190602001808311611f4c57829003601f168201915b505050505081565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60115481565b606060038054611fb090614443565b80601f0160208091040260200160405190810160405280929190818152602001828054611fdc90614443565b80156120295780601f10611ffe57610100808354040283529160200191612029565b820191906000526020600020905b81548152906001019060200180831161200c57829003601f168201915b5050505050905090565b61203b612dc5565b73ffffffffffffffffffffffffffffffffffffffff16612059611f71565b73ffffffffffffffffffffffffffffffffffffffff16146120af576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120a6906143f4565b60405180910390fd5b6000601054146120eb576040517fbfec555800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8181601491906120fc9291906137f3565b5060054361210a91906144a3565b6010819055505050565b600d5481565b60105481565b600061214161212e8361304e565b67ffffffffffffffff166002601061309b565b9050919050565b8060076000612155612e2c565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16612202612e2c565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051612247919061394a565b60405180910390a35050565b61225b612dc5565b73ffffffffffffffffffffffffffffffffffffffff16612279611f71565b73ffffffffffffffffffffffffffffffffffffffff16146122cf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122c6906143f4565b60405180910390fd5b60006010540361230b576040517f81791cb400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b601054431015612347576040517f9033eb2700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60158054906101000a900460ff161561238c576040517fa89ac15100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60016127106010544060001c6123a29190614791565b6123ac91906144a3565b60118190555060016015806101000a81548160ff021916908315150217905550565b600f5481565b600e5481565b6123e5848484611125565b60008373ffffffffffffffffffffffffffffffffffffffff163b146124475761241084848484613401565b612446576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b612455612dc5565b73ffffffffffffffffffffffffffffffffffffffff16612473611f71565b73ffffffffffffffffffffffffffffffffffffffff16146124c9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124c0906143f4565b60405180910390fd5b80601390805190602001906124df92919061376d565b5050565b600c5481565b6124f1612dc5565b73ffffffffffffffffffffffffffffffffffffffff1661250f611f71565b73ffffffffffffffffffffffffffffffffffffffff1614612565576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161255c906143f4565b60405180910390fd5b80600f8190555050565b6014805461257c90614443565b80601f01602080910402602001604051908101604052809291908181526020018280546125a890614443565b80156125f55780601f106125ca576101008083540402835291602001916125f5565b820191906000526020600020905b8154815290600101906020018083116125d857829003601f168201915b505050505081565b606060158054906101000a900460ff16156126905760006127106011548461262591906144a3565b61262f9190614791565b905060006012805461264090614443565b90501161265c5760405180602001604052806000815250612688565b601261266782613551565b6040516020016126789291906148d3565b6040516020818303038152906040525b91505061271e565b6013805461269d90614443565b80601f01602080910402602001604051908101604052809291908181526020018280546126c990614443565b80156127165780601f106126eb57610100808354040283529160200191612716565b820191906000526020600020905b8154815290600101906020018083116126f957829003601f168201915b505050505090505b919050565b6000808585604051602001612739929190614938565b60405160208183030381529060405280519060200120905061279f848480806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050600a54836136b1565b915050949350505050565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600061285f61284c8361304e565b67ffffffffffffffff166012600361309b565b9050919050565b600281565b612873612dc5565b73ffffffffffffffffffffffffffffffffffffffff16612891611f71565b73ffffffffffffffffffffffffffffffffffffffff16146128e7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128de906143f4565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603612956576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161294d906149d6565b60405180910390fd5b61295f8161333b565b50565b806127108161296f61110e565b61297991906144a3565b11156129b1576040517f98022d9200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b83836129be338383612fcf565b6129f4576040517fb05e92fa00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b601560149054906101000a900460ff1615612a3b576040517fab35696f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600084600f54612a4b9190614670565b9050803414612a86576040517f99b5cb1d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000612aa7612a943361304e565b67ffffffffffffffff166000600261309b565b905060028682612ab791906144a3565b1115612aef576040517feefd8c8400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b85600c6000828254612b0191906144a3565b92505081905550612b253387612b163361304e565b612b2091906146de565b6130ca565b612b2f3387613180565b5050505050505050565b612b41612dc5565b73ffffffffffffffffffffffffffffffffffffffff16612b5f611f71565b73ffffffffffffffffffffffffffffffffffffffff1614612bb5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612bac906143f4565b60405180910390fd5b8060098190555050565b8061271081612bcc61110e565b612bd691906144a3565b1115612c0e576040517f98022d9200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b84848460003382604051602001612c26929190614938565b604051602081830303815290604052805190602001209050612c8c848480806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050600a54836136b1565b612cc2576040517fb05e92fa00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b601560149054906101000a900460ff1615612d09576040517fab35696f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000612d2a612d173361304e565b67ffffffffffffffff166002601061309b565b90508761ffff168782612d3d91906144a3565b1115612d75576040517f42e8f8f900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b86600d6000828254612d8791906144a3565b92505081905550612daf33600289901b612da03361304e565b612daa91906146de565b6130ca565b612db93388613180565b50505050505050505050565b600033905090565b600081612dd8612e34565b11158015612de7575060005482105b8015612e25575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b600033905090565b600090565b60008082905080612e48612e34565b11612ece57600054811015612ecd5760006004600083815260200190815260200160002054905060007c0100000000000000000000000000000000000000000000000000000000821603612ecb575b60008103612ec1576004600083600190039350838152602001908152602001600020549050612e97565b8092505050612f00565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b60008060006006600085815260200190815260200160002090508092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e8612f8d8686846136c8565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b6000613045838380806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f820116905080830192505050505050506009548660405160200161302a91906149f6565b604051602081830303815290604052805190602001206136b1565b90509392505050565b600060c0600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054901c9050919050565b600080836001846001901b6130b09190614a11565b901b9050600081861690508481901c925050509392505050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050600082905060c081901b77ffffffffffffffffffffffffffffffffffffffffffffffff831617915081600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555050505050565b600080549050600082036131c0576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6131cd6000848385612f70565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550613244836132356000866000612f76565b61323e856136d1565b17612f9e565b6004600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b8181146132e557808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a46001810190506132aa565b5060008203613320576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060008190555050506133366000848385612fc9565b505050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a02613427612e2c565b8786866040518563ffffffff1660e01b81526004016134499493929190614a9a565b6020604051808303816000875af192505050801561348557506040513d601f19601f820116820180604052508101906134829190614afb565b60015b6134fe573d80600081146134b5576040519150601f19603f3d011682016040523d82523d6000602084013e6134ba565b606091505b5060008151036134f6576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b606060008203613598576040518060400160405280600181526020017f300000000000000000000000000000000000000000000000000000000000000081525090506136ac565b600082905060005b600082146135ca5780806135b390614b28565b915050600a826135c39190614b70565b91506135a0565b60008167ffffffffffffffff8111156135e6576135e5613e6b565b5b6040519080825280601f01601f1916602001820160405280156136185781602001600182028036833780820191505090505b5090505b600085146136a5576001826136319190614a11565b9150600a856136409190614791565b603061364c91906144a3565b60f81b81838151811061366257613661614ba1565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a8561369e9190614b70565b945061361c565b8093505050505b919050565b6000826136be85846136e1565b1490509392505050565b60009392505050565b60006001821460e11b9050919050565b60008082905060005b845181101561374b57600085828151811061370857613707614ba1565b5b6020026020010151905080831161372a576137238382613756565b9250613737565b6137348184613756565b92505b50808061374390614b28565b9150506136ea565b508091505092915050565b600082600052816020526040600020905092915050565b82805461377990614443565b90600052602060002090601f01602090048101928261379b57600085556137e2565b82601f106137b457805160ff19168380011785556137e2565b828001600101855582156137e2579182015b828111156137e15782518255916020019190600101906137c6565b5b5090506137ef9190613879565b5090565b8280546137ff90614443565b90600052602060002090601f0160209004810192826138215760008555613868565b82601f1061383a57803560ff1916838001178555613868565b82800160010185558215613868579182015b8281111561386757823582559160200191906001019061384c565b5b5090506138759190613879565b5090565b5b8082111561389257600081600090555060010161387a565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6138df816138aa565b81146138ea57600080fd5b50565b6000813590506138fc816138d6565b92915050565b600060208284031215613918576139176138a0565b5b6000613926848285016138ed565b91505092915050565b60008115159050919050565b6139448161392f565b82525050565b600060208201905061395f600083018461393b565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061399082613965565b9050919050565b6139a081613985565b81146139ab57600080fd5b50565b6000813590506139bd81613997565b92915050565b6000602082840312156139d9576139d86138a0565b5b60006139e7848285016139ae565b91505092915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015613a2a578082015181840152602081019050613a0f565b83811115613a39576000848401525b50505050565b6000601f19601f8301169050919050565b6000613a5b826139f0565b613a6581856139fb565b9350613a75818560208601613a0c565b613a7e81613a3f565b840191505092915050565b60006020820190508181036000830152613aa38184613a50565b905092915050565b6000819050919050565b613abe81613aab565b8114613ac957600080fd5b50565b600081359050613adb81613ab5565b92915050565b600060208284031215613af757613af66138a0565b5b6000613b0584828501613acc565b91505092915050565b613b1781613985565b82525050565b6000602082019050613b326000830184613b0e565b92915050565b60008060408385031215613b4f57613b4e6138a0565b5b6000613b5d858286016139ae565b9250506020613b6e85828601613acc565b9150509250929050565b613b818161392f565b8114613b8c57600080fd5b50565b600081359050613b9e81613b78565b92915050565b600060208284031215613bba57613bb96138a0565b5b6000613bc884828501613b8f565b91505092915050565b613bda81613aab565b82525050565b6000602082019050613bf56000830184613bd1565b92915050565b600080600060608486031215613c1457613c136138a0565b5b6000613c22868287016139ae565b9350506020613c33868287016139ae565b9250506040613c4486828701613acc565b9150509250925092565b6000819050919050565b613c6181613c4e565b82525050565b6000602082019050613c7c6000830184613c58565b92915050565b613c8b81613c4e565b8114613c9657600080fd5b50565b600081359050613ca881613c82565b92915050565b600060208284031215613cc457613cc36138a0565b5b6000613cd284828501613c99565b91505092915050565b600080fd5b600080fd5b600080fd5b60008083601f840112613d0057613cff613cdb565b5b8235905067ffffffffffffffff811115613d1d57613d1c613ce0565b5b602083019150836020820283011115613d3957613d38613ce5565b5b9250929050565b600080600060408486031215613d5957613d586138a0565b5b6000613d67868287016139ae565b935050602084013567ffffffffffffffff811115613d8857613d876138a5565b5b613d9486828701613cea565b92509250509250925092565b600060ff82169050919050565b613db681613da0565b8114613dc157600080fd5b50565b600081359050613dd381613dad565b92915050565b60008060008060008060c08789031215613df657613df56138a0565b5b6000613e0489828a01613acc565b9650506020613e1589828a01613c99565b9550506040613e2689828a01613c99565b9450506060613e3789828a01613dc4565b9350506080613e4889828a01613c99565b92505060a0613e5989828a01613c99565b9150509295509295509295565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b613ea382613a3f565b810181811067ffffffffffffffff82111715613ec257613ec1613e6b565b5b80604052505050565b6000613ed5613896565b9050613ee18282613e9a565b919050565b600067ffffffffffffffff821115613f0157613f00613e6b565b5b613f0a82613a3f565b9050602081019050919050565b82818337600083830152505050565b6000613f39613f3484613ee6565b613ecb565b905082815260208101848484011115613f5557613f54613e66565b5b613f60848285613f17565b509392505050565b600082601f830112613f7d57613f7c613cdb565b5b8135613f8d848260208601613f26565b91505092915050565b600060208284031215613fac57613fab6138a0565b5b600082013567ffffffffffffffff811115613fca57613fc96138a5565b5b613fd684828501613f68565b91505092915050565b60008083601f840112613ff557613ff4613cdb565b5b8235905067ffffffffffffffff81111561401257614011613ce0565b5b60208301915083600182028301111561402e5761402d613ce5565b5b9250929050565b6000806020838503121561404c5761404b6138a0565b5b600083013567ffffffffffffffff81111561406a576140696138a5565b5b61407685828601613fdf565b92509250509250929050565b60008060408385031215614099576140986138a0565b5b60006140a7858286016139ae565b92505060206140b885828601613b8f565b9150509250929050565b600067ffffffffffffffff8211156140dd576140dc613e6b565b5b6140e682613a3f565b9050602081019050919050565b6000614106614101846140c2565b613ecb565b90508281526020810184848401111561412257614121613e66565b5b61412d848285613f17565b509392505050565b600082601f83011261414a57614149613cdb565b5b813561415a8482602086016140f3565b91505092915050565b6000806000806080858703121561417d5761417c6138a0565b5b600061418b878288016139ae565b945050602061419c878288016139ae565b93505060406141ad87828801613acc565b925050606085013567ffffffffffffffff8111156141ce576141cd6138a5565b5b6141da87828801614135565b91505092959194509250565b600061ffff82169050919050565b6141fd816141e6565b811461420857600080fd5b50565b60008135905061421a816141f4565b92915050565b6000806000806060858703121561423a576142396138a0565b5b6000614248878288016139ae565b94505060206142598782880161420b565b935050604085013567ffffffffffffffff81111561427a576142796138a5565b5b61428687828801613cea565b925092505092959194509250565b600080604083850312156142ab576142aa6138a0565b5b60006142b9858286016139ae565b92505060206142ca858286016139ae565b9150509250929050565b6000806000604084860312156142ed576142ec6138a0565b5b600084013567ffffffffffffffff81111561430b5761430a6138a5565b5b61431786828701613cea565b9350935050602061432a86828701613acc565b9150509250925092565b6000806000806060858703121561434e5761434d6138a0565b5b600085013567ffffffffffffffff81111561436c5761436b6138a5565b5b61437887828801613cea565b9450945050602061438b8782880161420b565b925050604061439c87828801613acc565b91505092959194509250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006143de6020836139fb565b91506143e9826143a8565b602082019050919050565b6000602082019050818103600083015261440d816143d1565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061445b57607f821691505b60208210810361446e5761446d614414565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006144ae82613aab565b91506144b983613aab565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156144ee576144ed614474565b5b828201905092915050565b60008160601b9050919050565b6000614511826144f9565b9050919050565b600061452382614506565b9050919050565b61453b61453682613985565b614518565b82525050565b6000819050919050565b61455c61455782613c4e565b614541565b82525050565b600061456e828661452a565b60148201915061457e828561454b565b60208201915061458e828461452a565b601482019150819050949350505050565b600081905092915050565b7f19457468657265756d205369676e6564204d6573736167653a0a333200000000600082015250565b60006145e0601c8361459f565b91506145eb826145aa565b601c82019050919050565b6000614601826145d3565b915061460d828461454b565b60208201915081905092915050565b61462581613da0565b82525050565b60006080820190506146406000830187613c58565b61464d602083018661461c565b61465a6040830185613c58565b6146676060830184613c58565b95945050505050565b600061467b82613aab565b915061468683613aab565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156146bf576146be614474565b5b828202905092915050565b600067ffffffffffffffff82169050919050565b60006146e9826146ca565b91506146f4836146ca565b92508267ffffffffffffffff0382111561471157614710614474565b5b828201905092915050565b600081905092915050565b50565b600061473760008361471c565b915061474282614727565b600082019050919050565b60006147588261472a565b9150819050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061479c82613aab565b91506147a783613aab565b9250826147b7576147b6614762565b5b828206905092915050565b60008190508160005260206000209050919050565b600081546147e481614443565b6147ee818661459f565b94506001821660008114614809576001811461481a5761484d565b60ff1983168652818601935061484d565b614823856147c2565b60005b8381101561484557815481890152600182019150602081019050614826565b838801955050505b50505092915050565b6000614861826139f0565b61486b818561459f565b935061487b818560208601613a0c565b80840191505092915050565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000600082015250565b60006148bd60058361459f565b91506148c882614887565b600582019050919050565b60006148df82856147d7565b91506148eb8284614856565b91506148f6826148b0565b91508190509392505050565b60008160f01b9050919050565b600061491a82614902565b9050919050565b61493261492d826141e6565b61490f565b82525050565b6000614944828561452a565b6014820191506149548284614921565b6002820191508190509392505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006149c06026836139fb565b91506149cb82614964565b604082019050919050565b600060208201905081810360008301526149ef816149b3565b9050919050565b6000614a02828461452a565b60148201915081905092915050565b6000614a1c82613aab565b9150614a2783613aab565b925082821015614a3a57614a39614474565b5b828203905092915050565b600081519050919050565b600082825260208201905092915050565b6000614a6c82614a45565b614a768185614a50565b9350614a86818560208601613a0c565b614a8f81613a3f565b840191505092915050565b6000608082019050614aaf6000830187613b0e565b614abc6020830186613b0e565b614ac96040830185613bd1565b8181036060830152614adb8184614a61565b905095945050505050565b600081519050614af5816138d6565b92915050565b600060208284031215614b1157614b106138a0565b5b6000614b1f84828501614ae6565b91505092915050565b6000614b3382613aab565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203614b6557614b64614474565b5b600182019050919050565b6000614b7b82613aab565b9150614b8683613aab565b925082614b9657614b95614762565b5b828204905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fdfea2646970667358221220b94f8027090a75276e20336448aa42eef0de073ceedc0353fb70f942c06432e464736f6c634300080e0033

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

0000000000000000000000002cdfd68b997a0b28502f3a2049e4aece58605f2a443ee3654fb2b2d254bdfd5664036837a8be734b85948b70a7c74df7556571e818dcb8a7e1bc80bdfe72cc80b9bbf65b44393df6428337f6356e1c1c1426446700000000000000000000000076813a60f3c54bcd4b73b04abce2d943e0c5c7af

-----Decoded View---------------
Arg [0] : _owner (address): 0x2cdfD68B997a0b28502F3A2049e4AECE58605f2A
Arg [1] : _allowlistMerkleRoot (bytes32): 0x443ee3654fb2b2d254bdfd5664036837a8be734b85948b70a7c74df7556571e8
Arg [2] : _foundersListMerkleRoot (bytes32): 0x18dcb8a7e1bc80bdfe72cc80b9bbf65b44393df6428337f6356e1c1c14264467
Arg [3] : _signer (address): 0x76813a60F3c54bcD4b73B04aBCE2D943E0C5C7AF

-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 0000000000000000000000002cdfd68b997a0b28502f3a2049e4aece58605f2a
Arg [1] : 443ee3654fb2b2d254bdfd5664036837a8be734b85948b70a7c74df7556571e8
Arg [2] : 18dcb8a7e1bc80bdfe72cc80b9bbf65b44393df6428337f6356e1c1c14264467
Arg [3] : 00000000000000000000000076813a60f3c54bcd4b73b04abce2d943e0c5c7af


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.