ETH Price: $3,327.24 (-4.78%)

Token

FidoDido (FDP)
 

Overview

Max Total Supply

1,188 FDP

Holders

405

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
2 FDP
0xb48d2d9f0c5a6a877889009c4dd7a24b74a427df
Loading...
Loading
Loading...
Loading
Loading...
Loading

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

Contract Source Code Verified (Exact Match)

Contract Name:
FidoDido

Compiler Version
v0.8.20+commit.a1b79de6

Optimization Enabled:
No with 200 runs

Other Settings:
paris EvmVersion
File 1 of 7 : FidoDido.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;

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



/// @title FidoDido - A smart contract for managing FidoDido NFTs
/// @notice This contract allows for the creation, management, and sale of FidoDido NFTs
contract FidoDido is ERC721A, Ownable, ReentrancyGuard {
    /// @dev The root hash of the Merkle tree used for verifying whitelisted addresses
    bytes32 public merkleRoot;

    /// @dev The price per token during the private phase of sales
    uint256 public constant PRIVATE_PHASE_PRICE =  0.03  ether;

    /// @dev The price per token during the public phase of sales
    uint256 public constant PUBLIC_PHASE_PRICE =  0.04  ether;

    /// @dev Tracks the number of tokens minted by an address during the private phase
    mapping(address => uint256) private _walletMintCount;

    /// @dev Tracks the number of tokens minted by an address during the public phase
    mapping(address => uint256) private _walletMintCountPublic;

    /// @dev Determines whether the contract is currently in the private phase of sales
    bool public _isPrivatePhase = true;

    /// @dev Controls whether the contract is paused or operational
    bool public _pause = false;

    /// @dev Controls whether the NFTs have been revealed to the public
    bool public revealed = false;

    /// @dev The maximum supply of NFTs that can be created
    uint256 MAX_SUPPLY =  7777;

    /// @dev The base URI for the metadata of the NFTs
    string private _baseTokenURI;


    ///  SafeMintEvent
    /// @param to The address receiving the minted tokens
    /// @param quantity The number of tokens minted
    event SafeMintEvent(address indexed to, uint256 quantity);

    ///  RevealNFTEvent
    /// @param baseURI The new base URI after the NFTs have been revealed
    event RevealNFTEvent(string baseURI);

    ///  SwitchPhaseEvent
    /// @param isPrivatePhase Whether the contract is now in the private phase
    event SwitchPhaseEvent(bool isPrivatePhase);

    ///  BatchAirdropSuccess
    /// @param count The number of NFTs successfully airdropped
    event BatchAirdropSuccess(uint256 count);


    ///  SingleAirdropSuccess
    /// @param owner The address that owned the NFT
    /// @param recipient The address receiving the airdropped NFT
    /// @param tokenId The ID of the airdropped NFT
    event SingleAirdropSuccess(
        address owner,
        address recipient,
        uint256 tokenId
    );

    /// @notice Initializes the contract with the initial owner, name, symbol, base URI, and Merkle root
    /// @param initialOwner The address of the initial owner of the contract
    /// @param name The name of the NFT collection
    /// @param symbol The symbol of the NFT collection
    /// @param baseUri The base URI for the metadata of the NFTs
    /// @param _merkleRoot The root hash of the Merkle tree used for verifying whitelisted addresses
    constructor(
        address initialOwner,
        string memory name,
        string memory symbol,
        string memory baseUri,
        bytes32 _merkleRoot
    ) ERC721A(name, symbol) Ownable(initialOwner) {
        setBaseURI(baseUri);
        merkleRoot = _merkleRoot;
    }

    /// @notice Sets the Merkle root for verifying whitelisted addresses
    /// @param _merkleRoot The new Merkle root
    function setMerkleRoot(bytes32 _merkleRoot) public onlyOwner {
        merkleRoot = _merkleRoot;
    }

    /// @notice Sets the base URI for the metadata of the NFTs
    /// @param _URI The new base URI
    function setBaseURI(string memory _URI) public onlyOwner {
        _baseTokenURI = _URI;
    }

    /// @notice Returns the base URI for the metadata of the NFTs
    /// @return The current base URI
    function _baseURI() internal view override returns (string memory) {
        return _baseTokenURI;
    }

    /// @notice Checks whether the contract is currently in the private phase of sales
    /// @return True if the contract is in the private phase, false otherwise
    function getIsPrivatePhase() public view returns (bool) {
        return _isPrivatePhase;
    }

    /// @notice Overrides the start token ID to be  1
    /// @return The starting token ID
    function _startTokenId() internal pure override returns (uint256) {
        return  1;
    }

    /// @notice Switches the contract between the private and public phases of sales
    function switchPhase() public onlyOwner {
        _isPrivatePhase = !_isPrivatePhase;
        emit SwitchPhaseEvent(_isPrivatePhase);
    }

    /// @notice Returns the URI for a specific token ID
    /// @param tokenId The ID of the token to get the URI for
    /// @return The URI for the specified token ID

    function tokenURI(
        uint256 tokenId
    ) public view override returns (string memory) {
        require(
            ownerOf(tokenId) != address(0),
            "Token does not exist of given address"
        );

        string memory baseURI = _baseURI();
        string memory _tokenURI = revealed
            ? string(abi.encodePacked(baseURI, _toString(tokenId),".json"))
            : string(abi.encodePacked(baseURI,"hidden.json"));

        return bytes(baseURI).length != 0 ? _tokenURI : "";
    }

    /// @notice Pauses the contract, preventing further minting
    function pause() public onlyOwner {
        _pause = true;
    }

    /// @notice Unpauses the contract, allowing minting again
    function unpause() public onlyOwner {
        _pause = false;
    }

    /// @notice Reveals the NFTs by setting the base URI and enabling the reveal flag
    /// @param baseURI The new base URI for the revealed NFTs
    function revealNFT(string memory baseURI) public onlyOwner {
        revealed = true;
        setBaseURI(baseURI);
        emit RevealNFTEvent(baseURI);
    }

    /// @notice Withdraws the contract's balance to the owner's account
    function withdraw() external onlyOwner {
        payable(owner()).transfer(address(this).balance);
    }

    /// @notice Airdrops a specified quantity of tokens to an address
    /// @param to The address to receive the airdrop
    /// @param quantity The number of tokens to airdrop
    function airdrop(address to, uint256 quantity) external onlyOwner {
        require(
            totalSupply() + quantity <= MAX_SUPPLY,
            "Not enough tokens left"
        );

        _safeMint(to, quantity);
    }

    /// @notice Safely mints new tokens, with Merkle proof for private .
    /// @param quantity The number of tokens to mint
    /// @param to The address to receive the minted tokens
    /// @param merkleProof The Merkle proof to verify eligibility in the private phase
    function safeMint(
        uint256 quantity,
        address to,
        bytes32[] calldata merkleProof) public payable nonReentrant {
        
        require(
            _pause == false,
            "Mint has been paused"
        );
        require(
            _isPrivatePhase
                ? _walletMintCount[to] + quantity < 3
                : _walletMintCountPublic[to] + quantity < 2,
            "Mint limit reached"
        );
        require(
            _isPrivatePhase
                ? msg.value * quantity >= PRIVATE_PHASE_PRICE * quantity 
                : msg.value * quantity >= PUBLIC_PHASE_PRICE * quantity,
            "Wrong Ether value"
        );
        require(totalSupply() + quantity <= MAX_SUPPLY, "Max supply reached");
        require(
            !(_isPrivatePhase && totalSupply() + quantity > 5000),
            "Total supply limit reached during private phase"
        );
        if (_isPrivatePhase) {
            require(
                MerkleProof.verify(
                    merkleProof,
                    merkleRoot,
                    keccak256(abi.encodePacked(to))
                ),
                "Invalid merkle proof"
            );
            _walletMintCount[to] = quantity + _walletMintCount[to];
        } else {
            _walletMintCountPublic[to] = quantity + _walletMintCountPublic[to];
        }

        _safeMint(to, quantity);


        // Emit the SafeMintEvent with the recipient and quantity
        emit SafeMintEvent(to, quantity);
    }

    /// @notice Performs a batch airdrop of tokens to multiple addresses
    /// @param recipients An array of addresses to receive the airdropped tokens
    function batchAirdrop(address[] memory recipients) public onlyOwner {
         require(
            _nextTokenId() + recipients.length <= MAX_SUPPLY,
            "Not enough supply left for batch minting"
        );

        for (uint256 i; i < recipients.length; i++) {
            _safeMint(recipients[i], 1);
        }

        // Emit the BatchAirdropSuccess event with the number of recipients
        emit BatchAirdropSuccess(recipients.length);
    }
}

File 2 of 7 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)

pragma solidity ^0.8.20;

import {Context} from "../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.
 *
 * The initial owner is set to the address provided by the deployer. 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;

    /**
     * @dev The caller account is not authorized to perform an operation.
     */
    error OwnableUnauthorizedAccount(address account);

    /**
     * @dev The owner is not a valid owner account. (eg. `address(0)`)
     */
    error OwnableInvalidOwner(address owner);

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

    /**
     * @dev Initializes the contract setting the address provided by the deployer as the initial owner.
     */
    constructor(address initialOwner) {
        if (initialOwner == address(0)) {
            revert OwnableInvalidOwner(address(0));
        }
        _transferOwnership(initialOwner);
    }

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

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

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        if (owner() != _msgSender()) {
            revert OwnableUnauthorizedAccount(_msgSender());
        }
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby disabling 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 {
        if (newOwner == address(0)) {
            revert OwnableInvalidOwner(address(0));
        }
        _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 7 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)

pragma solidity ^0.8.20;

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

    function _contextSuffixLength() internal view virtual returns (uint256) {
        return 0;
    }
}

File 4 of 7 : MerkleProof.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/cryptography/MerkleProof.sol)

pragma solidity ^0.8.20;

/**
 * @dev These functions deal with verification of Merkle Tree proofs.
 *
 * The tree and the proofs can be generated using our
 * https://github.com/OpenZeppelin/merkle-tree[JavaScript library].
 * You will find a quickstart guide in the readme.
 *
 * 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.
 * OpenZeppelin's JavaScript library generates Merkle trees that are safe
 * against this attack out of the box.
 */
library MerkleProof {
    /**
     *@dev The multiproof provided is not valid.
     */
    error MerkleProofInvalidMultiproof();

    /**
     * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree
     * defined by `root`. For this, a `proof` must be provided, containing
     * sibling hashes on the branch from the leaf to the root of the tree. Each
     * pair of leaves and each pair of pre-images are assumed to be sorted.
     */
    function verify(bytes32[] memory proof, bytes32 root, bytes32 leaf) internal pure returns (bool) {
        return processProof(proof, leaf) == root;
    }

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

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

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

    /**
     * @dev Returns true if the `leaves` can be simultaneously proven to be a part of a Merkle tree defined by
     * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}.
     *
     * CAUTION: Not all Merkle trees admit multiproofs. See {processMultiProof} for details.
     */
    function multiProofVerify(
        bytes32[] memory proof,
        bool[] memory proofFlags,
        bytes32 root,
        bytes32[] memory leaves
    ) internal pure returns (bool) {
        return processMultiProof(proof, proofFlags, leaves) == root;
    }

    /**
     * @dev Calldata version of {multiProofVerify}
     *
     * CAUTION: Not all Merkle trees admit multiproofs. See {processMultiProof} for details.
     */
    function multiProofVerifyCalldata(
        bytes32[] calldata proof,
        bool[] calldata proofFlags,
        bytes32 root,
        bytes32[] memory leaves
    ) internal pure returns (bool) {
        return processMultiProofCalldata(proof, proofFlags, leaves) == root;
    }

    /**
     * @dev Returns the root of a tree reconstructed from `leaves` and sibling nodes in `proof`. The reconstruction
     * proceeds by incrementally reconstructing all inner nodes by combining a leaf/inner node with either another
     * leaf/inner node or a proof sibling node, depending on whether each `proofFlags` item is true or false
     * respectively.
     *
     * CAUTION: Not all Merkle trees admit multiproofs. To use multiproofs, it is sufficient to ensure that: 1) the tree
     * is complete (but not necessarily perfect), 2) the leaves to be proven are in the opposite order they are in the
     * tree (i.e., as seen from right to left starting at the deepest layer and continuing at the next layer).
     */
    function processMultiProof(
        bytes32[] memory proof,
        bool[] memory proofFlags,
        bytes32[] memory leaves
    ) internal pure returns (bytes32 merkleRoot) {
        // This function rebuilds the root hash by traversing the tree up from the leaves. The root is rebuilt by
        // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the
        // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of
        // the Merkle tree.
        uint256 leavesLen = leaves.length;
        uint256 proofLen = proof.length;
        uint256 totalHashes = proofFlags.length;

        // Check proof validity.
        if (leavesLen + proofLen != totalHashes + 1) {
            revert MerkleProofInvalidMultiproof();
        }

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

        if (totalHashes > 0) {
            if (proofPos != proofLen) {
                revert MerkleProofInvalidMultiproof();
            }
            unchecked {
                return hashes[totalHashes - 1];
            }
        } else if (leavesLen > 0) {
            return leaves[0];
        } else {
            return proof[0];
        }
    }

    /**
     * @dev Calldata version of {processMultiProof}.
     *
     * CAUTION: Not all Merkle trees admit multiproofs. See {processMultiProof} for details.
     */
    function processMultiProofCalldata(
        bytes32[] calldata proof,
        bool[] calldata proofFlags,
        bytes32[] memory leaves
    ) internal pure returns (bytes32 merkleRoot) {
        // This function rebuilds the root hash by traversing the tree up from the leaves. The root is rebuilt by
        // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the
        // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of
        // the Merkle tree.
        uint256 leavesLen = leaves.length;
        uint256 proofLen = proof.length;
        uint256 totalHashes = proofFlags.length;

        // Check proof validity.
        if (leavesLen + proofLen != totalHashes + 1) {
            revert MerkleProofInvalidMultiproof();
        }

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

        if (totalHashes > 0) {
            if (proofPos != proofLen) {
                revert MerkleProofInvalidMultiproof();
            }
            unchecked {
                return hashes[totalHashes - 1];
            }
        } else if (leavesLen > 0) {
            return leaves[0];
        } else {
            return proof[0];
        }
    }

    /**
     * @dev Sorts the pair (a, b) and hashes the result.
     */
    function _hashPair(bytes32 a, bytes32 b) private pure returns (bytes32) {
        return a < b ? _efficientHash(a, b) : _efficientHash(b, a);
    }

    /**
     * @dev Implementation of keccak256(abi.encode(a, b)) that doesn't allocate or expand memory.
     */
    function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) {
        /// @solidity memory-safe-assembly
        assembly {
            mstore(0x00, a)
            mstore(0x20, b)
            value := keccak256(0x00, 0x40)
        }
    }
}

File 5 of 7 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/ReentrancyGuard.sol)

pragma solidity ^0.8.20;

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

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

    uint256 private _status;

    /**
     * @dev Unauthorized reentrant call.
     */
    error ReentrancyGuardReentrantCall();

    constructor() {
        _status = NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        _nonReentrantBefore();
        _;
        _nonReentrantAfter();
    }

    function _nonReentrantBefore() private {
        // On the first call to nonReentrant, _status will be NOT_ENTERED
        if (_status == ENTERED) {
            revert ReentrancyGuardReentrantCall();
        }

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

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

    /**
     * @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a
     * `nonReentrant` function in the call stack.
     */
    function _reentrancyGuardEntered() internal view returns (bool) {
        return _status == ENTERED;
    }
}

File 6 of 7 : 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.selector);
        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.selector);

        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 Returns whether the ownership slot at `index` is initialized.
     * An uninitialized slot does not necessarily mean that the slot has no owner.
     */
    function _ownershipIsInitialized(uint256 index) internal view virtual returns (bool) {
        return _packedOwnerships[index] != 0;
    }

    /**
     * @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 packed) {
        if (_startTokenId() <= tokenId) {
            packed = _packedOwnerships[tokenId];
            // If the data at the starting slot does not exist, start the scan.
            if (packed == 0) {
                if (tokenId >= _currentIndex) _revert(OwnerQueryForNonexistentToken.selector);
                // 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, `tokenId` will not underflow.
                //
                // We can directly compare the packed value.
                // If the address is zero, packed will be zero.
                for (;;) {
                    unchecked {
                        packed = _packedOwnerships[--tokenId];
                    }
                    if (packed == 0) continue;
                    if (packed & _BITMASK_BURNED == 0) return packed;
                    // Otherwise, the token is burned, and we must revert.
                    // This handles the case of batch burned tokens, where only the burned bit
                    // of the starting slot is set, and remaining slots are left uninitialized.
                    _revert(OwnerQueryForNonexistentToken.selector);
                }
            }
            // Otherwise, the data exists and we can skip the scan.
            // This is possible because we have already achieved the target condition.
            // This saves 2143 gas on transfers of initialized tokens.
            // If the token is not burned, return `packed`. Otherwise, revert.
            if (packed & _BITMASK_BURNED == 0) return packed;
        }
        _revert(OwnerQueryForNonexistentToken.selector);
    }

    /**
     * @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. See {ERC721A-_approve}.
     *
     * Requirements:
     *
     * - The caller must own the token or be an approved operator.
     */
    function approve(address to, uint256 tokenId) public payable virtual override {
        _approve(to, tokenId, true);
    }

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

        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 result) {
        if (_startTokenId() <= tokenId) {
            if (tokenId < _currentIndex) {
                uint256 packed;
                while ((packed = _packedOwnerships[tokenId]) == 0) --tokenId;
                result = packed & _BITMASK_BURNED == 0;
            }
        }
    }

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

        // Mask `from` to the lower 160 bits, in case the upper bits somehow aren't clean.
        from = address(uint160(uint256(uint160(from)) & _BITMASK_ADDRESS));

        if (address(uint160(prevOwnershipPacked)) != from) _revert(TransferFromIncorrectOwner.selector);

        (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.selector);

        _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;
                    }
                }
            }
        }

        // Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean.
        uint256 toMasked = uint256(uint160(to)) & _BITMASK_ADDRESS;
        assembly {
            // 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.
                from, // `from`.
                toMasked, // `to`.
                tokenId // `tokenId`.
            )
        }
        if (toMasked == 0) _revert(TransferToZeroAddress.selector);

        _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.selector);
            }
    }

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

        _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:
            // - `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)
            );

            // Updates:
            // - `balance += quantity`.
            // - `numberMinted += quantity`.
            //
            // We can directly add to the `balance` and `numberMinted`.
            _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1);

            // Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean.
            uint256 toMasked = uint256(uint160(to)) & _BITMASK_ADDRESS;

            if (toMasked == 0) _revert(MintToZeroAddress.selector);

            uint256 end = startTokenId + quantity;
            uint256 tokenId = startTokenId;

            do {
                assembly {
                    // 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`.
                        tokenId // `tokenId`.
                    )
                }
                // The `!=` check ensures that large values of `quantity`
                // that overflows uint256 will make the loop run out of gas.
            } while (++tokenId != end);

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

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

        _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.selector);
                    }
                } while (index < end);
                // Reentrancy protection.
                if (_currentIndex != end) _revert(bytes4(0));
            }
        }
    }

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

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

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

    /**
     * @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:
     *
     * - `tokenId` must exist.
     *
     * Emits an {Approval} event.
     */
    function _approve(
        address to,
        uint256 tokenId,
        bool approvalCheck
    ) internal virtual {
        address owner = ownerOf(tokenId);

        if (approvalCheck && _msgSenderERC721A() != owner)
            if (!isApprovedForAll(owner, _msgSenderERC721A())) {
                _revert(ApprovalCallerNotOwnerNorApproved.selector);
            }

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

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

        _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.selector);
        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)
        }
    }

    /**
     * @dev For more efficient reverts.
     */
    function _revert(bytes4 errorSelector) internal pure {
        assembly {
            mstore(0x00, errorSelector)
            revert(0x00, 0x04)
        }
    }
}

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"initialOwner","type":"address"},{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"string","name":"baseUri","type":"string"},{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"ReentrancyGuardReentrantCall","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"count","type":"uint256"}],"name":"BatchAirdropSuccess","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":false,"internalType":"string","name":"baseURI","type":"string"}],"name":"RevealNFTEvent","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"SafeMintEvent","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"owner","type":"address"},{"indexed":false,"internalType":"address","name":"recipient","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"SingleAirdropSuccess","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"isPrivatePhase","type":"bool"}],"name":"SwitchPhaseEvent","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"PRIVATE_PHASE_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PUBLIC_PHASE_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_isPrivatePhase","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_pause","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"airdrop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"recipients","type":"address[]"}],"name":"batchAirdrop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getIsPrivatePhase","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":[],"name":"merkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI","type":"string"}],"name":"revealNFT","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"revealed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"},{"internalType":"address","name":"to","type":"address"},{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"}],"name":"safeMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_URI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"}],"name":"setMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"switchPhase","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040526001600d60006101000a81548160ff0219169083151502179055506000600d60016101000a81548160ff0219169083151502179055506000600d60026101000a81548160ff021916908315150217905550611e61600e553480156200006857600080fd5b50604051620041473803806200414783398181016040528101906200008e91906200057a565b8484848160029081620000a29190620008aa565b508060039081620000b49190620008aa565b50620000c56200017f60201b60201c565b6000819055505050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603620001425760006040517f1e4fbdf7000000000000000000000000000000000000000000000000000000008152600401620001399190620009a2565b60405180910390fd5b62000153816200018860201b60201c565b5060016009819055506200016d826200024e60201b60201c565b80600a819055505050505050620009bf565b60006001905090565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6200025e6200027360201b60201c565b80600f90816200026f9190620008aa565b5050565b620002836200031560201b60201c565b73ffffffffffffffffffffffffffffffffffffffff16620002a96200031d60201b60201c565b73ffffffffffffffffffffffffffffffffffffffff16146200031357620002d56200031560201b60201c565b6040517f118cdaa70000000000000000000000000000000000000000000000000000000081526004016200030a9190620009a2565b60405180910390fd5b565b600033905090565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600062000388826200035b565b9050919050565b6200039a816200037b565b8114620003a657600080fd5b50565b600081519050620003ba816200038f565b92915050565b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6200041582620003ca565b810181811067ffffffffffffffff82111715620004375762000436620003db565b5b80604052505050565b60006200044c62000347565b90506200045a82826200040a565b919050565b600067ffffffffffffffff8211156200047d576200047c620003db565b5b6200048882620003ca565b9050602081019050919050565b60005b83811015620004b557808201518184015260208101905062000498565b60008484015250505050565b6000620004d8620004d2846200045f565b62000440565b905082815260208101848484011115620004f757620004f6620003c5565b5b6200050484828562000495565b509392505050565b600082601f830112620005245762000523620003c0565b5b815162000536848260208601620004c1565b91505092915050565b6000819050919050565b62000554816200053f565b81146200056057600080fd5b50565b600081519050620005748162000549565b92915050565b600080600080600060a0868803121562000599576200059862000351565b5b6000620005a988828901620003a9565b955050602086015167ffffffffffffffff811115620005cd57620005cc62000356565b5b620005db888289016200050c565b945050604086015167ffffffffffffffff811115620005ff57620005fe62000356565b5b6200060d888289016200050c565b935050606086015167ffffffffffffffff81111562000631576200063062000356565b5b6200063f888289016200050c565b9250506080620006528882890162000563565b9150509295509295909350565b600081519050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680620006b257607f821691505b602082108103620006c857620006c76200066a565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302620007327fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82620006f3565b6200073e8683620006f3565b95508019841693508086168417925050509392505050565b6000819050919050565b6000819050919050565b60006200078b620007856200077f8462000756565b62000760565b62000756565b9050919050565b6000819050919050565b620007a7836200076a565b620007bf620007b68262000792565b84845462000700565b825550505050565b600090565b620007d6620007c7565b620007e38184846200079c565b505050565b5b818110156200080b57620007ff600082620007cc565b600181019050620007e9565b5050565b601f8211156200085a576200082481620006ce565b6200082f84620006e3565b810160208510156200083f578190505b620008576200084e85620006e3565b830182620007e8565b50505b505050565b600082821c905092915050565b60006200087f600019846008026200085f565b1980831691505092915050565b60006200089a83836200086c565b9150826002028217905092915050565b620008b5826200065f565b67ffffffffffffffff811115620008d157620008d0620003db565b5b620008dd825462000699565b620008ea8282856200080f565b600060209050601f8311600181146200092257600084156200090d578287015190505b6200091985826200088c565b86555062000989565b601f1984166200093286620006ce565b60005b828110156200095c5784890151825560018201915060208501945060208101905062000935565b868310156200097c578489015162000978601f8916826200086c565b8355505b6001600288020188555050505b505050505050565b6200099c816200037b565b82525050565b6000602082019050620009b9600083018462000991565b92915050565b61377880620009cf6000396000f3fe6080604052600436106101f95760003560e01c806355f804b31161010d5780638da5cb5b116100a0578063ab0eb62d1161006f578063ab0eb62d1461068d578063b88d4fde146106a4578063c87b56dd146106c0578063e985e9c5146106fd578063f2fde38b1461073a576101f9565b80638da5cb5b146105e557806395d89b41146106105780639edfbec91461063b578063a22cb46514610664576101f9565b80637c70d96f116100dc5780637c70d96f146105515780637cb647591461057c5780638456cb59146105a55780638ba4cc3c146105bc576101f9565b806355f804b3146104975780636352211e146104c057806370a08231146104fd578063715018a61461053a576101f9565b806323b872dd116101905780633ccfd60b1161015f5780633ccfd60b146103f75780633f4ba83a1461040e57806342842e0e1461042557806345dc960d14610441578063518302271461046c576101f9565b806323b872dd1461035a5780632eb4a7ab14610376578063320b2ad9146103a1578063356c82e0146103cc576101f9565b806309e002c7116101cc57806309e002c7146102bf5780630ac10c75146102db5780630ddff05b1461030657806318160ddd1461032f576101f9565b806301ffc9a7146101fe57806306fdde031461023b578063081812fc14610266578063095ea7b3146102a3575b600080fd5b34801561020a57600080fd5b50610225600480360381019061022091906123d1565b610763565b6040516102329190612419565b60405180910390f35b34801561024757600080fd5b506102506107f5565b60405161025d91906124c4565b60405180910390f35b34801561027257600080fd5b5061028d6004803603810190610288919061251c565b610887565b60405161029a919061258a565b60405180910390f35b6102bd60048036038101906102b891906125d1565b6108e5565b005b6102d960048036038101906102d49190612676565b6108f5565b005b3480156102e757600080fd5b506102f0610df9565b6040516102fd91906126f9565b60405180910390f35b34801561031257600080fd5b5061032d60048036038101906103289190612844565b610e04565b005b34801561033b57600080fd5b50610344610e6a565b60405161035191906126f9565b60405180910390f35b610374600480360381019061036f919061288d565b610e81565b005b34801561038257600080fd5b5061038b611142565b60405161039891906128f9565b60405180910390f35b3480156103ad57600080fd5b506103b6611148565b6040516103c39190612419565b60405180910390f35b3480156103d857600080fd5b506103e161115b565b6040516103ee9190612419565b60405180910390f35b34801561040357600080fd5b5061040c611172565b005b34801561041a57600080fd5b506104236111ca565b005b61043f600480360381019061043a919061288d565b6111ef565b005b34801561044d57600080fd5b5061045661120f565b6040516104639190612419565b60405180910390f35b34801561047857600080fd5b50610481611222565b60405161048e9190612419565b60405180910390f35b3480156104a357600080fd5b506104be60048036038101906104b99190612844565b611235565b005b3480156104cc57600080fd5b506104e760048036038101906104e2919061251c565b611250565b6040516104f4919061258a565b60405180910390f35b34801561050957600080fd5b50610524600480360381019061051f9190612914565b611262565b60405161053191906126f9565b60405180910390f35b34801561054657600080fd5b5061054f6112f9565b005b34801561055d57600080fd5b5061056661130d565b60405161057391906126f9565b60405180910390f35b34801561058857600080fd5b506105a3600480360381019061059e919061296d565b611318565b005b3480156105b157600080fd5b506105ba61132a565b005b3480156105c857600080fd5b506105e360048036038101906105de91906125d1565b61134f565b005b3480156105f157600080fd5b506105fa6113bc565b604051610607919061258a565b60405180910390f35b34801561061c57600080fd5b506106256113e6565b60405161063291906124c4565b60405180910390f35b34801561064757600080fd5b50610662600480360381019061065d9190612a5d565b611478565b005b34801561067057600080fd5b5061068b60048036038101906106869190612ad2565b611558565b005b34801561069957600080fd5b506106a2611663565b005b6106be60048036038101906106b99190612bb3565b6116dd565b005b3480156106cc57600080fd5b506106e760048036038101906106e2919061251c565b61172f565b6040516106f491906124c4565b60405180910390f35b34801561070957600080fd5b50610724600480360381019061071f9190612c36565b611845565b6040516107319190612419565b60405180910390f35b34801561074657600080fd5b50610761600480360381019061075c9190612914565b6118d9565b005b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806107be57506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806107ee5750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b60606002805461080490612ca5565b80601f016020809104026020016040519081016040528092919081815260200182805461083090612ca5565b801561087d5780601f106108525761010080835404028352916020019161087d565b820191906000526020600020905b81548152906001019060200180831161086057829003601f168201915b5050505050905090565b60006108928261195f565b6108a7576108a663cf4700e460e01b6119d8565b5b6006600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6108f1828260016119e2565b5050565b6108fd611b11565b60001515600d60019054906101000a900460ff16151514610953576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161094a90612d22565b60405180910390fd5b600d60009054906101000a900460ff166109ba57600284600c60008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546109b49190612d71565b10610a09565b600384600b60008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054610a079190612d71565b105b610a48576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a3f90612df1565b60405180910390fd5b600d60009054906101000a900460ff16610a825783668e1bc9bf040000610a6f9190612e11565b8434610a7b9190612e11565b1015610aa4565b83666a94d74f430000610a959190612e11565b8434610aa19190612e11565b10155b610ae3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ada90612e9f565b60405180910390fd5b600e5484610aef610e6a565b610af99190612d71565b1115610b3a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b3190612f0b565b60405180910390fd5b600d60009054906101000a900460ff168015610b69575061138884610b5d610e6a565b610b679190612d71565b115b15610ba9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ba090612f9d565b60405180910390fd5b600d60009054906101000a900460ff1615610d0457610c32828280806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050600a5485604051602001610c179190613005565b60405160208183030381529060405280519060200120611b57565b610c71576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c689061306c565b60405180910390fd5b600b60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205484610cbc9190612d71565b600b60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550610d93565b600c60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205484610d4f9190612d71565b600c60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505b610d9d8385611b6e565b8273ffffffffffffffffffffffffffffffffffffffff167fa6b4cadd4de0ae4b261845d5b5306776da20e40b6d140f098537bbaa3627930085604051610de391906126f9565b60405180910390a2610df3611b8c565b50505050565b668e1bc9bf04000081565b610e0c611b96565b6001600d60026101000a81548160ff021916908315150217905550610e3081611235565b7f75ef0be4863ba0fdd493f8138db777240dfdbc050a42dbe81d220de9f5165cd981604051610e5f91906124c4565b60405180910390a150565b6000610e74611c1d565b6001546000540303905090565b6000610e8c82611c26565b905073ffffffffffffffffffffffffffffffffffffffff8473ffffffffffffffffffffffffffffffffffffffff161693508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610f0157610f0063a114810060e01b6119d8565b5b600080610f0d84611d12565b91509150610f238187610f1e611d39565b611d41565b610f4e57610f3886610f33611d39565b611845565b610f4d57610f4c6359c896be60e01b6119d8565b5b5b610f5b8686866001611d85565b8015610f6657600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001019190508190555061103485611010888887611d8b565b7c020000000000000000000000000000000000000000000000000000000017611db3565b600460008681526020019081526020016000208190555060007c02000000000000000000000000000000000000000000000000000000008416036110ba57600060018501905060006004600083815260200190815260200160002054036110b85760005481146110b7578360046000838152602001908152602001600020819055505b5b505b600073ffffffffffffffffffffffffffffffffffffffff8673ffffffffffffffffffffffffffffffffffffffff161690508481887fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a46000810361112c5761112b63ea553b3460e01b6119d8565b5b6111398787876001611dde565b50505050505050565b600a5481565b600d60019054906101000a900460ff1681565b6000600d60009054906101000a900460ff16905090565b61117a611b96565b6111826113bc565b73ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f193505050501580156111c7573d6000803e3d6000fd5b50565b6111d2611b96565b6000600d60016101000a81548160ff021916908315150217905550565b61120a838383604051806020016040528060008152506116dd565b505050565b600d60009054906101000a900460ff1681565b600d60029054906101000a900460ff1681565b61123d611b96565b80600f908161124c9190613238565b5050565b600061125b82611c26565b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036112a8576112a7638f4eb60460e01b6119d8565b5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b611301611b96565b61130b6000611de4565b565b666a94d74f43000081565b611320611b96565b80600a8190555050565b611332611b96565b6001600d60016101000a81548160ff021916908315150217905550565b611357611b96565b600e5481611363610e6a565b61136d9190612d71565b11156113ae576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113a590613356565b60405180910390fd5b6113b88282611b6e565b5050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6060600380546113f590612ca5565b80601f016020809104026020016040519081016040528092919081815260200182805461142190612ca5565b801561146e5780601f106114435761010080835404028352916020019161146e565b820191906000526020600020905b81548152906001019060200180831161145157829003601f168201915b5050505050905090565b611480611b96565b600e54815161148d611eaa565b6114979190612d71565b11156114d8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114cf906133e8565b60405180910390fd5b60005b815181101561151c576115098282815181106114fa576114f9613408565b5b60200260200101516001611b6e565b808061151490613437565b9150506114db565b507f67a57b07d48fee35e7bb349ac2af30da30944086610aabd37107ad754a635598815160405161154d91906126f9565b60405180910390a150565b8060076000611565611d39565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611612611d39565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516116579190612419565b60405180910390a35050565b61166b611b96565b600d60009054906101000a900460ff1615600d60006101000a81548160ff0219169083151502179055507f9629cab75760fb89952d257fd24e6baa6350e9c54a773626cccbe95d5e853617600d60009054906101000a900460ff166040516116d39190612419565b60405180910390a1565b6116e8848484610e81565b60008373ffffffffffffffffffffffffffffffffffffffff163b146117295761171384848484611eb3565b6117285761172763d1a57ed660e01b6119d8565b5b5b50505050565b6060600073ffffffffffffffffffffffffffffffffffffffff1661175283611250565b73ffffffffffffffffffffffffffffffffffffffff16036117a8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161179f906134f1565b60405180910390fd5b60006117b2611fe2565b90506000600d60029054906101000a900460ff166117ef57816040516020016117db9190613599565b60405160208183030381529060405261181a565b816117f985612074565b60405160200161180a929190613607565b6040516020818303038152906040525b9050600082510361183a576040518060200160405280600081525061183c565b805b92505050919050565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6118e1611b96565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036119535760006040517f1e4fbdf700000000000000000000000000000000000000000000000000000000815260040161194a919061258a565b60405180910390fd5b61195c81611de4565b50565b60008161196a611c1d565b116119d3576000548210156119d25760005b60006004600085815260200190815260200160002054915081036119ab57826119a490613636565b925061197c565b60007c01000000000000000000000000000000000000000000000000000000008216149150505b5b919050565b8060005260046000fd5b60006119ed83611250565b9050818015611a2f57508073ffffffffffffffffffffffffffffffffffffffff16611a16611d39565b73ffffffffffffffffffffffffffffffffffffffff1614155b15611a5b57611a4581611a40611d39565b611845565b611a5a57611a5963cfb3b94260e01b6119d8565b5b5b836006600085815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550828473ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a450505050565b600260095403611b4d576040517f3ee5aeb500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6002600981905550565b600082611b6485846120c4565b1490509392505050565b611b8882826040518060200160405280600081525061211a565b5050565b6001600981905550565b611b9e61219f565b73ffffffffffffffffffffffffffffffffffffffff16611bbc6113bc565b73ffffffffffffffffffffffffffffffffffffffff1614611c1b57611bdf61219f565b6040517f118cdaa7000000000000000000000000000000000000000000000000000000008152600401611c12919061258a565b60405180910390fd5b565b60006001905090565b600081611c31611c1d565b11611cfc576004600083815260200190815260200160002054905060008103611cd3576000548210611c6e57611c6d63df2d9b4260e01b6119d8565b5b5b60046000836001900393508381526020019081526020016000205490506000810315611cce5760007c010000000000000000000000000000000000000000000000000000000082160315611d0d57611ccd63df2d9b4260e01b6119d8565b5b611c6f565b60007c010000000000000000000000000000000000000000000000000000000082160315611d0d575b611d0c63df2d9b4260e01b6119d8565b5b919050565b60008060006006600085815260200190815260200160002090508092508254915050915091565b600033905090565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e8611da28686846121a7565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60008054905090565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a02611ed9611d39565b8786866040518563ffffffff1660e01b8152600401611efb94939291906136b4565b6020604051808303816000875af1925050508015611f3757506040513d601f19601f82011682018060405250810190611f349190613715565b60015b611f8f573d8060008114611f67576040519150601f19603f3d011682016040523d82523d6000602084013e611f6c565b606091505b506000815103611f8757611f8663d1a57ed660e01b6119d8565b5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b6060600f8054611ff190612ca5565b80601f016020809104026020016040519081016040528092919081815260200182805461201d90612ca5565b801561206a5780601f1061203f5761010080835404028352916020019161206a565b820191906000526020600020905b81548152906001019060200180831161204d57829003601f168201915b5050505050905090565b606060a060405101806040526020810391506000825281835b6001156120af57600184039350600a81066030018453600a810490508061208d575b50828103602084039350808452505050919050565b60008082905060005b845181101561210f576120fa828683815181106120ed576120ec613408565b5b60200260200101516121b0565b9150808061210790613437565b9150506120cd565b508091505092915050565b61212483836121db565b60008373ffffffffffffffffffffffffffffffffffffffff163b1461219a57600080549050600083820390505b6121646000868380600101945086611eb3565b6121795761217863d1a57ed660e01b6119d8565b5b81811061215157816000541461219757612196600060e01b6119d8565b5b50505b505050565b600033905090565b60009392505050565b60008183106121c8576121c3828461233e565b6121d3565b6121d2838361233e565b5b905092915050565b600080549050600082036121fa576121f963b562e8dd60e01b6119d8565b5b6122076000848385611d85565b612227836122186000866000611d8b565b61222185612355565b17611db3565b6004600083815260200190815260200160002081905550600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550600073ffffffffffffffffffffffffffffffffffffffff8473ffffffffffffffffffffffffffffffffffffffff16169050600081036122df576122de632e07630060e01b6119d8565b5b6000838301905060008390505b808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a48181600101915081036122ec57816000819055505050506123396000848385611dde565b505050565b600082600052816020526040600020905092915050565b60006001821460e11b9050919050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6123ae81612379565b81146123b957600080fd5b50565b6000813590506123cb816123a5565b92915050565b6000602082840312156123e7576123e661236f565b5b60006123f5848285016123bc565b91505092915050565b60008115159050919050565b612413816123fe565b82525050565b600060208201905061242e600083018461240a565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b8381101561246e578082015181840152602081019050612453565b60008484015250505050565b6000601f19601f8301169050919050565b600061249682612434565b6124a0818561243f565b93506124b0818560208601612450565b6124b98161247a565b840191505092915050565b600060208201905081810360008301526124de818461248b565b905092915050565b6000819050919050565b6124f9816124e6565b811461250457600080fd5b50565b600081359050612516816124f0565b92915050565b6000602082840312156125325761253161236f565b5b600061254084828501612507565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061257482612549565b9050919050565b61258481612569565b82525050565b600060208201905061259f600083018461257b565b92915050565b6125ae81612569565b81146125b957600080fd5b50565b6000813590506125cb816125a5565b92915050565b600080604083850312156125e8576125e761236f565b5b60006125f6858286016125bc565b925050602061260785828601612507565b9150509250929050565b600080fd5b600080fd5b600080fd5b60008083601f84011261263657612635612611565b5b8235905067ffffffffffffffff81111561265357612652612616565b5b60208301915083602082028301111561266f5761266e61261b565b5b9250929050565b600080600080606085870312156126905761268f61236f565b5b600061269e87828801612507565b94505060206126af878288016125bc565b935050604085013567ffffffffffffffff8111156126d0576126cf612374565b5b6126dc87828801612620565b925092505092959194509250565b6126f3816124e6565b82525050565b600060208201905061270e60008301846126ea565b92915050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6127518261247a565b810181811067ffffffffffffffff821117156127705761276f612719565b5b80604052505050565b6000612783612365565b905061278f8282612748565b919050565b600067ffffffffffffffff8211156127af576127ae612719565b5b6127b88261247a565b9050602081019050919050565b82818337600083830152505050565b60006127e76127e284612794565b612779565b90508281526020810184848401111561280357612802612714565b5b61280e8482856127c5565b509392505050565b600082601f83011261282b5761282a612611565b5b813561283b8482602086016127d4565b91505092915050565b60006020828403121561285a5761285961236f565b5b600082013567ffffffffffffffff81111561287857612877612374565b5b61288484828501612816565b91505092915050565b6000806000606084860312156128a6576128a561236f565b5b60006128b4868287016125bc565b93505060206128c5868287016125bc565b92505060406128d686828701612507565b9150509250925092565b6000819050919050565b6128f3816128e0565b82525050565b600060208201905061290e60008301846128ea565b92915050565b60006020828403121561292a5761292961236f565b5b6000612938848285016125bc565b91505092915050565b61294a816128e0565b811461295557600080fd5b50565b60008135905061296781612941565b92915050565b6000602082840312156129835761298261236f565b5b600061299184828501612958565b91505092915050565b600067ffffffffffffffff8211156129b5576129b4612719565b5b602082029050602081019050919050565b60006129d96129d48461299a565b612779565b905080838252602082019050602084028301858111156129fc576129fb61261b565b5b835b81811015612a255780612a1188826125bc565b8452602084019350506020810190506129fe565b5050509392505050565b600082601f830112612a4457612a43612611565b5b8135612a548482602086016129c6565b91505092915050565b600060208284031215612a7357612a7261236f565b5b600082013567ffffffffffffffff811115612a9157612a90612374565b5b612a9d84828501612a2f565b91505092915050565b612aaf816123fe565b8114612aba57600080fd5b50565b600081359050612acc81612aa6565b92915050565b60008060408385031215612ae957612ae861236f565b5b6000612af7858286016125bc565b9250506020612b0885828601612abd565b9150509250929050565b600067ffffffffffffffff821115612b2d57612b2c612719565b5b612b368261247a565b9050602081019050919050565b6000612b56612b5184612b12565b612779565b905082815260208101848484011115612b7257612b71612714565b5b612b7d8482856127c5565b509392505050565b600082601f830112612b9a57612b99612611565b5b8135612baa848260208601612b43565b91505092915050565b60008060008060808587031215612bcd57612bcc61236f565b5b6000612bdb878288016125bc565b9450506020612bec878288016125bc565b9350506040612bfd87828801612507565b925050606085013567ffffffffffffffff811115612c1e57612c1d612374565b5b612c2a87828801612b85565b91505092959194509250565b60008060408385031215612c4d57612c4c61236f565b5b6000612c5b858286016125bc565b9250506020612c6c858286016125bc565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680612cbd57607f821691505b602082108103612cd057612ccf612c76565b5b50919050565b7f4d696e7420686173206265656e20706175736564000000000000000000000000600082015250565b6000612d0c60148361243f565b9150612d1782612cd6565b602082019050919050565b60006020820190508181036000830152612d3b81612cff565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000612d7c826124e6565b9150612d87836124e6565b9250828201905080821115612d9f57612d9e612d42565b5b92915050565b7f4d696e74206c696d697420726561636865640000000000000000000000000000600082015250565b6000612ddb60128361243f565b9150612de682612da5565b602082019050919050565b60006020820190508181036000830152612e0a81612dce565b9050919050565b6000612e1c826124e6565b9150612e27836124e6565b9250828202612e35816124e6565b91508282048414831517612e4c57612e4b612d42565b5b5092915050565b7f57726f6e672045746865722076616c7565000000000000000000000000000000600082015250565b6000612e8960118361243f565b9150612e9482612e53565b602082019050919050565b60006020820190508181036000830152612eb881612e7c565b9050919050565b7f4d617820737570706c7920726561636865640000000000000000000000000000600082015250565b6000612ef560128361243f565b9150612f0082612ebf565b602082019050919050565b60006020820190508181036000830152612f2481612ee8565b9050919050565b7f546f74616c20737570706c79206c696d6974207265616368656420647572696e60008201527f6720707269766174652070686173650000000000000000000000000000000000602082015250565b6000612f87602f8361243f565b9150612f9282612f2b565b604082019050919050565b60006020820190508181036000830152612fb681612f7a565b9050919050565b60008160601b9050919050565b6000612fd582612fbd565b9050919050565b6000612fe782612fca565b9050919050565b612fff612ffa82612569565b612fdc565b82525050565b60006130118284612fee565b60148201915081905092915050565b7f496e76616c6964206d65726b6c652070726f6f66000000000000000000000000600082015250565b600061305660148361243f565b915061306182613020565b602082019050919050565b6000602082019050818103600083015261308581613049565b9050919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b6000600883026130ee7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff826130b1565b6130f886836130b1565b95508019841693508086168417925050509392505050565b6000819050919050565b600061313561313061312b846124e6565b613110565b6124e6565b9050919050565b6000819050919050565b61314f8361311a565b61316361315b8261313c565b8484546130be565b825550505050565b600090565b61317861316b565b613183818484613146565b505050565b5b818110156131a75761319c600082613170565b600181019050613189565b5050565b601f8211156131ec576131bd8161308c565b6131c6846130a1565b810160208510156131d5578190505b6131e96131e1856130a1565b830182613188565b50505b505050565b600082821c905092915050565b600061320f600019846008026131f1565b1980831691505092915050565b600061322883836131fe565b9150826002028217905092915050565b61324182612434565b67ffffffffffffffff81111561325a57613259612719565b5b6132648254612ca5565b61326f8282856131ab565b600060209050601f8311600181146132a25760008415613290578287015190505b61329a858261321c565b865550613302565b601f1984166132b08661308c565b60005b828110156132d8578489015182556001820191506020850194506020810190506132b3565b868310156132f557848901516132f1601f8916826131fe565b8355505b6001600288020188555050505b505050505050565b7f4e6f7420656e6f75676820746f6b656e73206c65667400000000000000000000600082015250565b600061334060168361243f565b915061334b8261330a565b602082019050919050565b6000602082019050818103600083015261336f81613333565b9050919050565b7f4e6f7420656e6f75676820737570706c79206c65667420666f7220626174636860008201527f206d696e74696e67000000000000000000000000000000000000000000000000602082015250565b60006133d260288361243f565b91506133dd82613376565b604082019050919050565b60006020820190508181036000830152613401816133c5565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6000613442826124e6565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820361347457613473612d42565b5b600182019050919050565b7f546f6b656e20646f6573206e6f74206578697374206f6620676976656e20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b60006134db60258361243f565b91506134e68261347f565b604082019050919050565b6000602082019050818103600083015261350a816134ce565b9050919050565b600081905092915050565b600061352782612434565b6135318185613511565b9350613541818560208601612450565b80840191505092915050565b7f68696464656e2e6a736f6e000000000000000000000000000000000000000000600082015250565b6000613583600b83613511565b915061358e8261354d565b600b82019050919050565b60006135a5828461351c565b91506135b082613576565b915081905092915050565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000600082015250565b60006135f1600583613511565b91506135fc826135bb565b600582019050919050565b6000613613828561351c565b915061361f828461351c565b915061362a826135e4565b91508190509392505050565b6000613641826124e6565b91506000820361365457613653612d42565b5b600182039050919050565b600081519050919050565b600082825260208201905092915050565b60006136868261365f565b613690818561366a565b93506136a0818560208601612450565b6136a98161247a565b840191505092915050565b60006080820190506136c9600083018761257b565b6136d6602083018661257b565b6136e360408301856126ea565b81810360608301526136f5818461367b565b905095945050505050565b60008151905061370f816123a5565b92915050565b60006020828403121561372b5761372a61236f565b5b600061373984828501613700565b9150509291505056fea26469706673582212200d8aeee30d0075661877156250c5de6ce6769ea03214cb7fde644907cb61455e64736f6c63430008140033000000000000000000000000ef2a7352e1afcc2c97f2a2bb885f58469a92198800000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000120fb226b744187c389d141ce4e695ca699ff9a1131d37546488acc8b570627f96800000000000000000000000000000000000000000000000000000000000000084669646f4469646f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000034644500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004068747470733a2f2f6669646f6469646f2d68696464656e373737372e73332e65752d776573742d312e616d617a6f6e6177732e636f6d2f6d657461646174612f

Deployed Bytecode

0x6080604052600436106101f95760003560e01c806355f804b31161010d5780638da5cb5b116100a0578063ab0eb62d1161006f578063ab0eb62d1461068d578063b88d4fde146106a4578063c87b56dd146106c0578063e985e9c5146106fd578063f2fde38b1461073a576101f9565b80638da5cb5b146105e557806395d89b41146106105780639edfbec91461063b578063a22cb46514610664576101f9565b80637c70d96f116100dc5780637c70d96f146105515780637cb647591461057c5780638456cb59146105a55780638ba4cc3c146105bc576101f9565b806355f804b3146104975780636352211e146104c057806370a08231146104fd578063715018a61461053a576101f9565b806323b872dd116101905780633ccfd60b1161015f5780633ccfd60b146103f75780633f4ba83a1461040e57806342842e0e1461042557806345dc960d14610441578063518302271461046c576101f9565b806323b872dd1461035a5780632eb4a7ab14610376578063320b2ad9146103a1578063356c82e0146103cc576101f9565b806309e002c7116101cc57806309e002c7146102bf5780630ac10c75146102db5780630ddff05b1461030657806318160ddd1461032f576101f9565b806301ffc9a7146101fe57806306fdde031461023b578063081812fc14610266578063095ea7b3146102a3575b600080fd5b34801561020a57600080fd5b50610225600480360381019061022091906123d1565b610763565b6040516102329190612419565b60405180910390f35b34801561024757600080fd5b506102506107f5565b60405161025d91906124c4565b60405180910390f35b34801561027257600080fd5b5061028d6004803603810190610288919061251c565b610887565b60405161029a919061258a565b60405180910390f35b6102bd60048036038101906102b891906125d1565b6108e5565b005b6102d960048036038101906102d49190612676565b6108f5565b005b3480156102e757600080fd5b506102f0610df9565b6040516102fd91906126f9565b60405180910390f35b34801561031257600080fd5b5061032d60048036038101906103289190612844565b610e04565b005b34801561033b57600080fd5b50610344610e6a565b60405161035191906126f9565b60405180910390f35b610374600480360381019061036f919061288d565b610e81565b005b34801561038257600080fd5b5061038b611142565b60405161039891906128f9565b60405180910390f35b3480156103ad57600080fd5b506103b6611148565b6040516103c39190612419565b60405180910390f35b3480156103d857600080fd5b506103e161115b565b6040516103ee9190612419565b60405180910390f35b34801561040357600080fd5b5061040c611172565b005b34801561041a57600080fd5b506104236111ca565b005b61043f600480360381019061043a919061288d565b6111ef565b005b34801561044d57600080fd5b5061045661120f565b6040516104639190612419565b60405180910390f35b34801561047857600080fd5b50610481611222565b60405161048e9190612419565b60405180910390f35b3480156104a357600080fd5b506104be60048036038101906104b99190612844565b611235565b005b3480156104cc57600080fd5b506104e760048036038101906104e2919061251c565b611250565b6040516104f4919061258a565b60405180910390f35b34801561050957600080fd5b50610524600480360381019061051f9190612914565b611262565b60405161053191906126f9565b60405180910390f35b34801561054657600080fd5b5061054f6112f9565b005b34801561055d57600080fd5b5061056661130d565b60405161057391906126f9565b60405180910390f35b34801561058857600080fd5b506105a3600480360381019061059e919061296d565b611318565b005b3480156105b157600080fd5b506105ba61132a565b005b3480156105c857600080fd5b506105e360048036038101906105de91906125d1565b61134f565b005b3480156105f157600080fd5b506105fa6113bc565b604051610607919061258a565b60405180910390f35b34801561061c57600080fd5b506106256113e6565b60405161063291906124c4565b60405180910390f35b34801561064757600080fd5b50610662600480360381019061065d9190612a5d565b611478565b005b34801561067057600080fd5b5061068b60048036038101906106869190612ad2565b611558565b005b34801561069957600080fd5b506106a2611663565b005b6106be60048036038101906106b99190612bb3565b6116dd565b005b3480156106cc57600080fd5b506106e760048036038101906106e2919061251c565b61172f565b6040516106f491906124c4565b60405180910390f35b34801561070957600080fd5b50610724600480360381019061071f9190612c36565b611845565b6040516107319190612419565b60405180910390f35b34801561074657600080fd5b50610761600480360381019061075c9190612914565b6118d9565b005b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806107be57506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806107ee5750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b60606002805461080490612ca5565b80601f016020809104026020016040519081016040528092919081815260200182805461083090612ca5565b801561087d5780601f106108525761010080835404028352916020019161087d565b820191906000526020600020905b81548152906001019060200180831161086057829003601f168201915b5050505050905090565b60006108928261195f565b6108a7576108a663cf4700e460e01b6119d8565b5b6006600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6108f1828260016119e2565b5050565b6108fd611b11565b60001515600d60019054906101000a900460ff16151514610953576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161094a90612d22565b60405180910390fd5b600d60009054906101000a900460ff166109ba57600284600c60008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546109b49190612d71565b10610a09565b600384600b60008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054610a079190612d71565b105b610a48576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a3f90612df1565b60405180910390fd5b600d60009054906101000a900460ff16610a825783668e1bc9bf040000610a6f9190612e11565b8434610a7b9190612e11565b1015610aa4565b83666a94d74f430000610a959190612e11565b8434610aa19190612e11565b10155b610ae3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ada90612e9f565b60405180910390fd5b600e5484610aef610e6a565b610af99190612d71565b1115610b3a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b3190612f0b565b60405180910390fd5b600d60009054906101000a900460ff168015610b69575061138884610b5d610e6a565b610b679190612d71565b115b15610ba9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ba090612f9d565b60405180910390fd5b600d60009054906101000a900460ff1615610d0457610c32828280806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050600a5485604051602001610c179190613005565b60405160208183030381529060405280519060200120611b57565b610c71576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c689061306c565b60405180910390fd5b600b60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205484610cbc9190612d71565b600b60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550610d93565b600c60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205484610d4f9190612d71565b600c60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505b610d9d8385611b6e565b8273ffffffffffffffffffffffffffffffffffffffff167fa6b4cadd4de0ae4b261845d5b5306776da20e40b6d140f098537bbaa3627930085604051610de391906126f9565b60405180910390a2610df3611b8c565b50505050565b668e1bc9bf04000081565b610e0c611b96565b6001600d60026101000a81548160ff021916908315150217905550610e3081611235565b7f75ef0be4863ba0fdd493f8138db777240dfdbc050a42dbe81d220de9f5165cd981604051610e5f91906124c4565b60405180910390a150565b6000610e74611c1d565b6001546000540303905090565b6000610e8c82611c26565b905073ffffffffffffffffffffffffffffffffffffffff8473ffffffffffffffffffffffffffffffffffffffff161693508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610f0157610f0063a114810060e01b6119d8565b5b600080610f0d84611d12565b91509150610f238187610f1e611d39565b611d41565b610f4e57610f3886610f33611d39565b611845565b610f4d57610f4c6359c896be60e01b6119d8565b5b5b610f5b8686866001611d85565b8015610f6657600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001019190508190555061103485611010888887611d8b565b7c020000000000000000000000000000000000000000000000000000000017611db3565b600460008681526020019081526020016000208190555060007c02000000000000000000000000000000000000000000000000000000008416036110ba57600060018501905060006004600083815260200190815260200160002054036110b85760005481146110b7578360046000838152602001908152602001600020819055505b5b505b600073ffffffffffffffffffffffffffffffffffffffff8673ffffffffffffffffffffffffffffffffffffffff161690508481887fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a46000810361112c5761112b63ea553b3460e01b6119d8565b5b6111398787876001611dde565b50505050505050565b600a5481565b600d60019054906101000a900460ff1681565b6000600d60009054906101000a900460ff16905090565b61117a611b96565b6111826113bc565b73ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f193505050501580156111c7573d6000803e3d6000fd5b50565b6111d2611b96565b6000600d60016101000a81548160ff021916908315150217905550565b61120a838383604051806020016040528060008152506116dd565b505050565b600d60009054906101000a900460ff1681565b600d60029054906101000a900460ff1681565b61123d611b96565b80600f908161124c9190613238565b5050565b600061125b82611c26565b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036112a8576112a7638f4eb60460e01b6119d8565b5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b611301611b96565b61130b6000611de4565b565b666a94d74f43000081565b611320611b96565b80600a8190555050565b611332611b96565b6001600d60016101000a81548160ff021916908315150217905550565b611357611b96565b600e5481611363610e6a565b61136d9190612d71565b11156113ae576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113a590613356565b60405180910390fd5b6113b88282611b6e565b5050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6060600380546113f590612ca5565b80601f016020809104026020016040519081016040528092919081815260200182805461142190612ca5565b801561146e5780601f106114435761010080835404028352916020019161146e565b820191906000526020600020905b81548152906001019060200180831161145157829003601f168201915b5050505050905090565b611480611b96565b600e54815161148d611eaa565b6114979190612d71565b11156114d8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114cf906133e8565b60405180910390fd5b60005b815181101561151c576115098282815181106114fa576114f9613408565b5b60200260200101516001611b6e565b808061151490613437565b9150506114db565b507f67a57b07d48fee35e7bb349ac2af30da30944086610aabd37107ad754a635598815160405161154d91906126f9565b60405180910390a150565b8060076000611565611d39565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611612611d39565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516116579190612419565b60405180910390a35050565b61166b611b96565b600d60009054906101000a900460ff1615600d60006101000a81548160ff0219169083151502179055507f9629cab75760fb89952d257fd24e6baa6350e9c54a773626cccbe95d5e853617600d60009054906101000a900460ff166040516116d39190612419565b60405180910390a1565b6116e8848484610e81565b60008373ffffffffffffffffffffffffffffffffffffffff163b146117295761171384848484611eb3565b6117285761172763d1a57ed660e01b6119d8565b5b5b50505050565b6060600073ffffffffffffffffffffffffffffffffffffffff1661175283611250565b73ffffffffffffffffffffffffffffffffffffffff16036117a8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161179f906134f1565b60405180910390fd5b60006117b2611fe2565b90506000600d60029054906101000a900460ff166117ef57816040516020016117db9190613599565b60405160208183030381529060405261181a565b816117f985612074565b60405160200161180a929190613607565b6040516020818303038152906040525b9050600082510361183a576040518060200160405280600081525061183c565b805b92505050919050565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6118e1611b96565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036119535760006040517f1e4fbdf700000000000000000000000000000000000000000000000000000000815260040161194a919061258a565b60405180910390fd5b61195c81611de4565b50565b60008161196a611c1d565b116119d3576000548210156119d25760005b60006004600085815260200190815260200160002054915081036119ab57826119a490613636565b925061197c565b60007c01000000000000000000000000000000000000000000000000000000008216149150505b5b919050565b8060005260046000fd5b60006119ed83611250565b9050818015611a2f57508073ffffffffffffffffffffffffffffffffffffffff16611a16611d39565b73ffffffffffffffffffffffffffffffffffffffff1614155b15611a5b57611a4581611a40611d39565b611845565b611a5a57611a5963cfb3b94260e01b6119d8565b5b5b836006600085815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550828473ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a450505050565b600260095403611b4d576040517f3ee5aeb500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6002600981905550565b600082611b6485846120c4565b1490509392505050565b611b8882826040518060200160405280600081525061211a565b5050565b6001600981905550565b611b9e61219f565b73ffffffffffffffffffffffffffffffffffffffff16611bbc6113bc565b73ffffffffffffffffffffffffffffffffffffffff1614611c1b57611bdf61219f565b6040517f118cdaa7000000000000000000000000000000000000000000000000000000008152600401611c12919061258a565b60405180910390fd5b565b60006001905090565b600081611c31611c1d565b11611cfc576004600083815260200190815260200160002054905060008103611cd3576000548210611c6e57611c6d63df2d9b4260e01b6119d8565b5b5b60046000836001900393508381526020019081526020016000205490506000810315611cce5760007c010000000000000000000000000000000000000000000000000000000082160315611d0d57611ccd63df2d9b4260e01b6119d8565b5b611c6f565b60007c010000000000000000000000000000000000000000000000000000000082160315611d0d575b611d0c63df2d9b4260e01b6119d8565b5b919050565b60008060006006600085815260200190815260200160002090508092508254915050915091565b600033905090565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e8611da28686846121a7565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60008054905090565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a02611ed9611d39565b8786866040518563ffffffff1660e01b8152600401611efb94939291906136b4565b6020604051808303816000875af1925050508015611f3757506040513d601f19601f82011682018060405250810190611f349190613715565b60015b611f8f573d8060008114611f67576040519150601f19603f3d011682016040523d82523d6000602084013e611f6c565b606091505b506000815103611f8757611f8663d1a57ed660e01b6119d8565b5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b6060600f8054611ff190612ca5565b80601f016020809104026020016040519081016040528092919081815260200182805461201d90612ca5565b801561206a5780601f1061203f5761010080835404028352916020019161206a565b820191906000526020600020905b81548152906001019060200180831161204d57829003601f168201915b5050505050905090565b606060a060405101806040526020810391506000825281835b6001156120af57600184039350600a81066030018453600a810490508061208d575b50828103602084039350808452505050919050565b60008082905060005b845181101561210f576120fa828683815181106120ed576120ec613408565b5b60200260200101516121b0565b9150808061210790613437565b9150506120cd565b508091505092915050565b61212483836121db565b60008373ffffffffffffffffffffffffffffffffffffffff163b1461219a57600080549050600083820390505b6121646000868380600101945086611eb3565b6121795761217863d1a57ed660e01b6119d8565b5b81811061215157816000541461219757612196600060e01b6119d8565b5b50505b505050565b600033905090565b60009392505050565b60008183106121c8576121c3828461233e565b6121d3565b6121d2838361233e565b5b905092915050565b600080549050600082036121fa576121f963b562e8dd60e01b6119d8565b5b6122076000848385611d85565b612227836122186000866000611d8b565b61222185612355565b17611db3565b6004600083815260200190815260200160002081905550600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550600073ffffffffffffffffffffffffffffffffffffffff8473ffffffffffffffffffffffffffffffffffffffff16169050600081036122df576122de632e07630060e01b6119d8565b5b6000838301905060008390505b808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a48181600101915081036122ec57816000819055505050506123396000848385611dde565b505050565b600082600052816020526040600020905092915050565b60006001821460e11b9050919050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6123ae81612379565b81146123b957600080fd5b50565b6000813590506123cb816123a5565b92915050565b6000602082840312156123e7576123e661236f565b5b60006123f5848285016123bc565b91505092915050565b60008115159050919050565b612413816123fe565b82525050565b600060208201905061242e600083018461240a565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b8381101561246e578082015181840152602081019050612453565b60008484015250505050565b6000601f19601f8301169050919050565b600061249682612434565b6124a0818561243f565b93506124b0818560208601612450565b6124b98161247a565b840191505092915050565b600060208201905081810360008301526124de818461248b565b905092915050565b6000819050919050565b6124f9816124e6565b811461250457600080fd5b50565b600081359050612516816124f0565b92915050565b6000602082840312156125325761253161236f565b5b600061254084828501612507565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061257482612549565b9050919050565b61258481612569565b82525050565b600060208201905061259f600083018461257b565b92915050565b6125ae81612569565b81146125b957600080fd5b50565b6000813590506125cb816125a5565b92915050565b600080604083850312156125e8576125e761236f565b5b60006125f6858286016125bc565b925050602061260785828601612507565b9150509250929050565b600080fd5b600080fd5b600080fd5b60008083601f84011261263657612635612611565b5b8235905067ffffffffffffffff81111561265357612652612616565b5b60208301915083602082028301111561266f5761266e61261b565b5b9250929050565b600080600080606085870312156126905761268f61236f565b5b600061269e87828801612507565b94505060206126af878288016125bc565b935050604085013567ffffffffffffffff8111156126d0576126cf612374565b5b6126dc87828801612620565b925092505092959194509250565b6126f3816124e6565b82525050565b600060208201905061270e60008301846126ea565b92915050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6127518261247a565b810181811067ffffffffffffffff821117156127705761276f612719565b5b80604052505050565b6000612783612365565b905061278f8282612748565b919050565b600067ffffffffffffffff8211156127af576127ae612719565b5b6127b88261247a565b9050602081019050919050565b82818337600083830152505050565b60006127e76127e284612794565b612779565b90508281526020810184848401111561280357612802612714565b5b61280e8482856127c5565b509392505050565b600082601f83011261282b5761282a612611565b5b813561283b8482602086016127d4565b91505092915050565b60006020828403121561285a5761285961236f565b5b600082013567ffffffffffffffff81111561287857612877612374565b5b61288484828501612816565b91505092915050565b6000806000606084860312156128a6576128a561236f565b5b60006128b4868287016125bc565b93505060206128c5868287016125bc565b92505060406128d686828701612507565b9150509250925092565b6000819050919050565b6128f3816128e0565b82525050565b600060208201905061290e60008301846128ea565b92915050565b60006020828403121561292a5761292961236f565b5b6000612938848285016125bc565b91505092915050565b61294a816128e0565b811461295557600080fd5b50565b60008135905061296781612941565b92915050565b6000602082840312156129835761298261236f565b5b600061299184828501612958565b91505092915050565b600067ffffffffffffffff8211156129b5576129b4612719565b5b602082029050602081019050919050565b60006129d96129d48461299a565b612779565b905080838252602082019050602084028301858111156129fc576129fb61261b565b5b835b81811015612a255780612a1188826125bc565b8452602084019350506020810190506129fe565b5050509392505050565b600082601f830112612a4457612a43612611565b5b8135612a548482602086016129c6565b91505092915050565b600060208284031215612a7357612a7261236f565b5b600082013567ffffffffffffffff811115612a9157612a90612374565b5b612a9d84828501612a2f565b91505092915050565b612aaf816123fe565b8114612aba57600080fd5b50565b600081359050612acc81612aa6565b92915050565b60008060408385031215612ae957612ae861236f565b5b6000612af7858286016125bc565b9250506020612b0885828601612abd565b9150509250929050565b600067ffffffffffffffff821115612b2d57612b2c612719565b5b612b368261247a565b9050602081019050919050565b6000612b56612b5184612b12565b612779565b905082815260208101848484011115612b7257612b71612714565b5b612b7d8482856127c5565b509392505050565b600082601f830112612b9a57612b99612611565b5b8135612baa848260208601612b43565b91505092915050565b60008060008060808587031215612bcd57612bcc61236f565b5b6000612bdb878288016125bc565b9450506020612bec878288016125bc565b9350506040612bfd87828801612507565b925050606085013567ffffffffffffffff811115612c1e57612c1d612374565b5b612c2a87828801612b85565b91505092959194509250565b60008060408385031215612c4d57612c4c61236f565b5b6000612c5b858286016125bc565b9250506020612c6c858286016125bc565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680612cbd57607f821691505b602082108103612cd057612ccf612c76565b5b50919050565b7f4d696e7420686173206265656e20706175736564000000000000000000000000600082015250565b6000612d0c60148361243f565b9150612d1782612cd6565b602082019050919050565b60006020820190508181036000830152612d3b81612cff565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000612d7c826124e6565b9150612d87836124e6565b9250828201905080821115612d9f57612d9e612d42565b5b92915050565b7f4d696e74206c696d697420726561636865640000000000000000000000000000600082015250565b6000612ddb60128361243f565b9150612de682612da5565b602082019050919050565b60006020820190508181036000830152612e0a81612dce565b9050919050565b6000612e1c826124e6565b9150612e27836124e6565b9250828202612e35816124e6565b91508282048414831517612e4c57612e4b612d42565b5b5092915050565b7f57726f6e672045746865722076616c7565000000000000000000000000000000600082015250565b6000612e8960118361243f565b9150612e9482612e53565b602082019050919050565b60006020820190508181036000830152612eb881612e7c565b9050919050565b7f4d617820737570706c7920726561636865640000000000000000000000000000600082015250565b6000612ef560128361243f565b9150612f0082612ebf565b602082019050919050565b60006020820190508181036000830152612f2481612ee8565b9050919050565b7f546f74616c20737570706c79206c696d6974207265616368656420647572696e60008201527f6720707269766174652070686173650000000000000000000000000000000000602082015250565b6000612f87602f8361243f565b9150612f9282612f2b565b604082019050919050565b60006020820190508181036000830152612fb681612f7a565b9050919050565b60008160601b9050919050565b6000612fd582612fbd565b9050919050565b6000612fe782612fca565b9050919050565b612fff612ffa82612569565b612fdc565b82525050565b60006130118284612fee565b60148201915081905092915050565b7f496e76616c6964206d65726b6c652070726f6f66000000000000000000000000600082015250565b600061305660148361243f565b915061306182613020565b602082019050919050565b6000602082019050818103600083015261308581613049565b9050919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b6000600883026130ee7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff826130b1565b6130f886836130b1565b95508019841693508086168417925050509392505050565b6000819050919050565b600061313561313061312b846124e6565b613110565b6124e6565b9050919050565b6000819050919050565b61314f8361311a565b61316361315b8261313c565b8484546130be565b825550505050565b600090565b61317861316b565b613183818484613146565b505050565b5b818110156131a75761319c600082613170565b600181019050613189565b5050565b601f8211156131ec576131bd8161308c565b6131c6846130a1565b810160208510156131d5578190505b6131e96131e1856130a1565b830182613188565b50505b505050565b600082821c905092915050565b600061320f600019846008026131f1565b1980831691505092915050565b600061322883836131fe565b9150826002028217905092915050565b61324182612434565b67ffffffffffffffff81111561325a57613259612719565b5b6132648254612ca5565b61326f8282856131ab565b600060209050601f8311600181146132a25760008415613290578287015190505b61329a858261321c565b865550613302565b601f1984166132b08661308c565b60005b828110156132d8578489015182556001820191506020850194506020810190506132b3565b868310156132f557848901516132f1601f8916826131fe565b8355505b6001600288020188555050505b505050505050565b7f4e6f7420656e6f75676820746f6b656e73206c65667400000000000000000000600082015250565b600061334060168361243f565b915061334b8261330a565b602082019050919050565b6000602082019050818103600083015261336f81613333565b9050919050565b7f4e6f7420656e6f75676820737570706c79206c65667420666f7220626174636860008201527f206d696e74696e67000000000000000000000000000000000000000000000000602082015250565b60006133d260288361243f565b91506133dd82613376565b604082019050919050565b60006020820190508181036000830152613401816133c5565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6000613442826124e6565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820361347457613473612d42565b5b600182019050919050565b7f546f6b656e20646f6573206e6f74206578697374206f6620676976656e20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b60006134db60258361243f565b91506134e68261347f565b604082019050919050565b6000602082019050818103600083015261350a816134ce565b9050919050565b600081905092915050565b600061352782612434565b6135318185613511565b9350613541818560208601612450565b80840191505092915050565b7f68696464656e2e6a736f6e000000000000000000000000000000000000000000600082015250565b6000613583600b83613511565b915061358e8261354d565b600b82019050919050565b60006135a5828461351c565b91506135b082613576565b915081905092915050565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000600082015250565b60006135f1600583613511565b91506135fc826135bb565b600582019050919050565b6000613613828561351c565b915061361f828461351c565b915061362a826135e4565b91508190509392505050565b6000613641826124e6565b91506000820361365457613653612d42565b5b600182039050919050565b600081519050919050565b600082825260208201905092915050565b60006136868261365f565b613690818561366a565b93506136a0818560208601612450565b6136a98161247a565b840191505092915050565b60006080820190506136c9600083018761257b565b6136d6602083018661257b565b6136e360408301856126ea565b81810360608301526136f5818461367b565b905095945050505050565b60008151905061370f816123a5565b92915050565b60006020828403121561372b5761372a61236f565b5b600061373984828501613700565b9150509291505056fea26469706673582212200d8aeee30d0075661877156250c5de6ce6769ea03214cb7fde644907cb61455e64736f6c63430008140033

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

000000000000000000000000ef2a7352e1afcc2c97f2a2bb885f58469a92198800000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000120fb226b744187c389d141ce4e695ca699ff9a1131d37546488acc8b570627f96800000000000000000000000000000000000000000000000000000000000000084669646f4469646f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000034644500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004068747470733a2f2f6669646f6469646f2d68696464656e373737372e73332e65752d776573742d312e616d617a6f6e6177732e636f6d2f6d657461646174612f

-----Decoded View---------------
Arg [0] : initialOwner (address): 0xeF2A7352E1aFcc2c97f2a2bb885f58469A921988
Arg [1] : name (string): FidoDido
Arg [2] : symbol (string): FDP
Arg [3] : baseUri (string): https://fidodido-hidden7777.s3.eu-west-1.amazonaws.com/metadata/
Arg [4] : _merkleRoot (bytes32): 0xfb226b744187c389d141ce4e695ca699ff9a1131d37546488acc8b570627f968

-----Encoded View---------------
12 Constructor Arguments found :
Arg [0] : 000000000000000000000000ef2a7352e1afcc2c97f2a2bb885f58469a921988
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [2] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000120
Arg [4] : fb226b744187c389d141ce4e695ca699ff9a1131d37546488acc8b570627f968
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000008
Arg [6] : 4669646f4469646f000000000000000000000000000000000000000000000000
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [8] : 4644500000000000000000000000000000000000000000000000000000000000
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [10] : 68747470733a2f2f6669646f6469646f2d68696464656e373737372e73332e65
Arg [11] : 752d776573742d312e616d617a6f6e6177732e636f6d2f6d657461646174612f


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.