ETH Price: $1,642.94 (+1.17%)
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Enter Premint159570572022-11-12 22:55:23884 days ago1668293723IN
0x55A44e7E...066993BDd
0 ETH0.0003812710.08300895
Enter Premint159564012022-11-12 20:43:47884 days ago1668285827IN
0x55A44e7E...066993BDd
0 ETH0.000374599.9
Enter Premint159555802022-11-12 17:58:59884 days ago1668275939IN
0x55A44e7E...066993BDd
0 ETH0.00645519170.76340351
Enter Premint159528012022-11-12 8:40:47884 days ago1668242447IN
0x55A44e7E...066993BDd
0 ETH0.00650504172.13657454
Enter Premint159447912022-11-11 5:49:11885 days ago1668145751IN
0x55A44e7E...066993BDd
0 ETH0.00662047175.08004724
Enter Premint159416862022-11-10 19:24:23886 days ago1668108263IN
0x55A44e7E...066993BDd
0 ETH0.00845344223.5532646
Enter Premint159416862022-11-10 19:24:23886 days ago1668108263IN
0x55A44e7E...066993BDd
0 ETH0.00845344223.5532646
Enter Premint159414582022-11-10 18:38:11886 days ago1668105491IN
0x55A44e7E...066993BDd
0 ETH0.00702522185.78363763
Enter Premint159414212022-11-10 18:30:47886 days ago1668105047IN
0x55A44e7E...066993BDd
0 ETH0.00725131191.76263072
Enter Premint159414212022-11-10 18:30:47886 days ago1668105047IN
0x55A44e7E...066993BDd
0 ETH0.0072421191.76263072
Enter Premint159414212022-11-10 18:30:47886 days ago1668105047IN
0x55A44e7E...066993BDd
0 ETH0.00725131191.76263072
Enter Premint159411992022-11-10 17:46:11886 days ago1668102371IN
0x55A44e7E...066993BDd
0 ETH0.00824345218
Enter Premint159411542022-11-10 17:37:11886 days ago1668101831IN
0x55A44e7E...066993BDd
0 ETH0.00767953203.21607709
Enter Premint159411542022-11-10 17:37:11886 days ago1668101831IN
0x55A44e7E...066993BDd
0 ETH0.00768197203.21607709
Enter Premint159411542022-11-10 17:37:11886 days ago1668101831IN
0x55A44e7E...066993BDd
0 ETH0.00767709203.21607709
Enter Premint159411542022-11-10 17:37:11886 days ago1668101831IN
0x55A44e7E...066993BDd
0 ETH0.00768441203.21607709
Enter Premint159411542022-11-10 17:37:11886 days ago1668101831IN
0x55A44e7E...066993BDd
0 ETH0.00768441203.21607709
Enter Premint159407922022-11-10 16:24:35886 days ago1668097475IN
0x55A44e7E...066993BDd
0 ETH0.00756357200.0841068
Enter Premint159407922022-11-10 16:24:35886 days ago1668097475IN
0x55A44e7E...066993BDd
0 ETH0.00756598200.0841068
Enter Premint159407922022-11-10 16:24:35886 days ago1668097475IN
0x55A44e7E...066993BDd
0 ETH0.00756598200.0841068
Enter Premint159407922022-11-10 16:24:35886 days ago1668097475IN
0x55A44e7E...066993BDd
0 ETH0.00756357200.0841068
Enter Premint159404672022-11-10 15:19:23886 days ago1668093563IN
0x55A44e7E...066993BDd
0 ETH0.00824345218
Enter Premint159399942022-11-10 13:43:47886 days ago1668087827IN
0x55A44e7E...066993BDd
0 ETH0.00824345218
Enter Premint159389512022-11-10 10:13:59886 days ago1668075239IN
0x55A44e7E...066993BDd
0 ETH0.01257067332.53991302
Enter Premint159381292022-11-10 7:28:35886 days ago1668065315IN
0x55A44e7E...066993BDd
0 ETH0.0018360548.60125403
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
StagedMintV1

Compiler Version
v0.8.13+commit.abaa5c0e

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 11 : StagedMintV1.sol
// SPDX-License-Identifier: MIT LICENSE
pragma solidity ^0.8.9;

import "@openzeppelin/contracts/security/Pausable.sol"; // OZ: Pausable
import "@openzeppelin/contracts/access/Ownable.sol"; // OZ: Ownership
import "@openzeppelin/contracts/utils/introspection/IERC165.sol"; // OZ: ERC165 interface
import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; // OZ: Reentrancy Guard
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; // OZ: MerkleRoot
import "@openzeppelin/contracts/utils/Counters.sol"; // OZ: Counter

import "./interfaces/IERC721BridgableParent.sol"; // token contract for minting

/// @title StagedMintV1 - lets users mint in stages, currently only 2 stages (premint and public stage)
contract StagedMintV1 is Ownable, ReentrancyGuard, Pausable {
    // For counter
    using Counters for Counters.Counter;

    // Stages
    enum MintStage {
        DISABLED,
        PREMINT,
        ALLOWLIST,
        PUBLIC_SALE
    }

    /** IMMUTABLE STORAGE **/

    /// @notice Number of mints in PREMINT phase
    uint256 constant PREMINT_COUNT = 2;

    /// @notice Number of mints in ALLOWLIST phase
    uint256 constant ALLOWLIST_COUNT = 3;

    /// @notice Cost to mint each NFT (in wei)
    uint256 public immutable MINT_COST;
    /// @notice Cost to premint each NFT (in wei)
    uint256 public immutable PREMINT_COST;
    /// @notice Available NFT supply
    uint256 public immutable AVAILABLE_SUPPLY;
    /// @notice Maximum mints per address
    uint256 public immutable MAX_PER_ADDRESS;
    /// @notice Address of NFT Contract to mint to
    IERC721BridgableParent public immutable NFT_CONTRACT;

    /** MUTABLE STORAGE **/
    /// @notice Variable to keep track of which stage we are in
    MintStage public mintStage = MintStage.DISABLED;
    /// @notice Merkle root hash for the premint list
    bytes32 public merkleRootHash;
    /// @notice Address mapping to track number of completed premints
    mapping(address => uint256) public premintCounts;
    /// @notice Address mapping to track number of completed allowlist mints
    mapping(address => uint256) public allowlistCounts;
    /// @notice Address mapping to track number of completed public sale mints
    mapping(address => uint256) public mintCounts;
    /// @notice Counter for number of NFTs that have been claimed
    Counters.Counter public currentTokenId;

    /** EVENTS **/

    /**
     * @notice Emitted when the owner changes the current mint stage
     *
     * @param owner Address of owner enabling the premint
     * @param stage Stage that the contract is currently in
     */
    event StageChanged(address indexed owner, MintStage stage);

    /**
     * @notice Emitted when the owner withdraws proceeeds
     *
     * @param owner Address of owner withdrawing
     * @param amount  Amount that was withdrew
     */
    event WithdrewProceeds(address indexed owner, uint256 amount);

    /** SETUP **/

    /**
     * @notice Creates a new NFT distribution contract
     *
     * @param _PREMINT_COST in wei per NFT
     * @param _MINT_COST in wei per NFT
     * @param _AVAILABLE_SUPPLY total NFTs to sell
     * @param _MAX_PER_ADDRESS maximum mints allowed per address
     * @param _NFT_CONTRACT_ADDRESS contract address of NFT that will be minted
     */
    constructor(
        uint256 _PREMINT_COST,
        uint256 _MINT_COST,
        uint256 _AVAILABLE_SUPPLY,
        uint256 _MAX_PER_ADDRESS,
        address _NFT_CONTRACT_ADDRESS
    ) {
        PREMINT_COST = _PREMINT_COST;
        MINT_COST = _MINT_COST;
        AVAILABLE_SUPPLY = _AVAILABLE_SUPPLY;
        MAX_PER_ADDRESS = _MAX_PER_ADDRESS;
        NFT_CONTRACT = IERC721BridgableParent(_NFT_CONTRACT_ADDRESS);

        // Check that NFT contract address is correctly set
        require(
            address(NFT_CONTRACT) != address(0),
            "NFT_CONTRACT_ERROR: NFT Address has not been set"
        );

        // Check that NFT contract address supports ERC165 Interface
        require(
            NFT_CONTRACT.supportsInterface(type(IERC165).interfaceId) == true,
            "NFT_CONTRACT_ERROR: NFT Contract doesn't support ERC165 Interface"
        );

        // Check that the contract has the functions we expect
        require(
            NFT_CONTRACT.supportsInterface(
                type(IERC721BridgableParent).interfaceId
            ) == true,
            "NFT_CONTRACT_NOT_BRIDGABLE: NFT Contract is not a IERC721BridgableParent"
        );

        _pause();
    }

    /** EXTERNAL - ENTER RAFFLE OR MINT **/

    /**
     * @notice Allows users on the premint list to premint
     *
     * @param amount        Number of premints
     * @param merkleProof   Proof that the user is on the list
     */
    function enterPremint(uint256 amount, bytes32[] calldata merkleProof)
        external
        payable
        whenNotPaused
        nonReentrant
    {
        require(
            amount != 0,
            "INCORRECT_AMOUNT: Amount must be greater than zero"
        );

        // Ensure premint is enabled
        require(
            mintStage == MintStage.PREMINT || mintStage == MintStage.ALLOWLIST,
            "PREMINT_NOT_ACTIVE: Premint has not begun"
        );

        // Ensure sufficient payment
        if (mintStage == MintStage.ALLOWLIST) {
            require(
                msg.value == (amount * MINT_COST),
                "INCORRECT_PAYMENT: Incorrect payment amount for mint"
            );

            // Track user allowlist count
            uint256 userPremintedCount = allowlistCounts[_msgSender()];

            // Ensure address is not attempting to premint more than allowed
            require(
                (userPremintedCount + amount) <= ALLOWLIST_COUNT,
                "PREMINT_MAX_REACHED: Attempting to premint more than allotment"
            );

            // Increase count of user premints redeemed
            allowlistCounts[_msgSender()] = (userPremintedCount + amount);
        } else {
            require(
                msg.value == (amount * PREMINT_COST),
                "INCORRECT_PAYMENT: Incorrect payment amount for mint"
            );

            // Track user premint count
            uint256 userPremintedCount = premintCounts[_msgSender()];

            // Ensure address is not attempting to premint more than allowed
            require(
                (userPremintedCount + amount) <= PREMINT_COUNT,
                "PREMINT_MAX_REACHED: Attempting to premint more than allotment"
            );

            // Increase count of user premints redeemed
            premintCounts[_msgSender()] = (userPremintedCount + amount);
        }

        // Ensure address is on premint/allowlist list by checking merkle root
        bytes32 merkleLeaf = keccak256(abi.encodePacked(_msgSender()));
        require(
            MerkleProof.verifyCalldata(merkleProof, merkleRootHash, merkleLeaf),
            "PREMINT_ADDRESS_MISSING: Address not on premint list"
        );

        _directMintAndIncrementCurrentTokenId(amount);
    }

    /**
     * @notice Whether or not user is on premint list using merkle proof
     *
     * @param account Account to check is on premint list
     * @return TRUE if account is on list, FALSE otherwise
     */
    function isOnPremintList(address account, bytes32[] calldata merkleProof)
        external
        view
        returns (bool)
    {
        bytes32 merkleLeaf = keccak256(abi.encodePacked(account));
        return
            MerkleProof.verifyCalldata(merkleProof, merkleRootHash, merkleLeaf);
    }

    /**
     * @notice Mint during public sale
     *
     * @param amount Number of tokens to mint
     */
    function mint(uint256 amount) external payable whenNotPaused nonReentrant {
        // Ensure public sale has begun
        require(
            mintStage == MintStage.PUBLIC_SALE,
            "PUBLIC_SALE_NOT_STARTED: Public sale has not begun"
        );

        require(
            amount != 0,
            "INCORRECT_AMOUNT: Amount must be greater than zero"
        );

        // Ensure sufficient mint payment
        require(
            msg.value == (amount * MINT_COST),
            "INCORRECT_PAYMENT: Incorrect payment amount for mint"
        );

        uint256 addressMintedCount = mintCounts[_msgSender()];
        // Ensure number of tokens to acquire <= max for this address
        require(
            (addressMintedCount + amount) <= MAX_PER_ADDRESS,
            "MINT_MAX_REACHED: This transaction exceeds your addresses limit of tokens"
        );

        // Increase count of user mints redeemed
        mintCounts[_msgSender()] = (addressMintedCount + amount);

        _directMintAndIncrementCurrentTokenId(amount);
    }

    /** EXTERNAL - ADMIN */

    /** @notice Allows contract owner to withdraw proceeds of mints */
    function withdrawProceeds() external onlyOwner nonReentrant {
        uint256 balance = address(this).balance;

        // Ensure there are proceeds to claim
        require(balance > 0, "PAYOUT_EMPTY: No proceeds available to claim");

        // Pay owner proceeds
        (bool sent, ) = payable(_msgSender()).call{value: balance}("");
        require(
            sent == true,
            "WITHDRAW_UNSUCCESFUL: Was unable to withdraw proceeds"
        );

        emit WithdrewProceeds(_msgSender(), balance);
    }

    /**
     * @notice Update the merkleproof root hash for the premint list
     *
     * @param rootHash for the merkle tree root
     */
    function updateMerkleRoot(bytes32 rootHash) external onlyOwner {
        // Ensure premint is enabled
        require(
            mintStage == MintStage.DISABLED,
            "NOT_DISABLED: Can not add to premint list unless disabled"
        );

        merkleRootHash = rootHash;
    }

    /**
     * @notice Pause/Unpause this contract
     *
     * @param _paused Whether to pause or unpause the contract
     */
    function setPaused(bool _paused) external onlyOwner {
        if (_paused == true) _pause();
        else _unpause();
    }

    /**
     * @notice Sets the mint stage
     *
     * @param _stage Stage to change to
     */
    function setMintStage(MintStage _stage) external onlyOwner {
        mintStage = _stage;

        emit StageChanged(_msgSender(), _stage);
    }

    /** INTERNAL **/

    /**
     * @notice Private function used by premint and mint to mint
     *
     * @param amount number of tokens to mint
     */
    function _directMintAndIncrementCurrentTokenId(uint256 amount) internal {
        // Ensure NFTs are still available
        require(
            (currentTokenId.current() + amount) <= AVAILABLE_SUPPLY,
            "NFT_MAX_REACHED: Not enough NFTs left to fulfill transaction"
        );

        // Mint NFTs for number requested
        for (uint256 i = 0; i < amount; ++i) {
            // Increment current token id to next id
            currentTokenId.increment();
            // Mint current token id as NFT
            _mintNFT(_msgSender(), currentTokenId.current());
        }
    }

    /**
     * @notice Function to mint from the NFT contract
     *
     * @param to address to mint NFT to
     * @param tokenId tokenId to mint
     */
    function _mintNFT(address to, uint256 tokenId) internal {
        // Call mint function on external NFT contract
        NFT_CONTRACT.mint(to, tokenId);
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

    bool private _paused;

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

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

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

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

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

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

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

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

File 4 of 11 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

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

    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() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

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

        _;

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

File 5 of 11 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol)

pragma solidity ^0.8.0;

import "../IERC721.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Enumerable is IERC721 {
    /**
     * @dev Returns the total amount of tokens stored by the contract.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns a token ID owned by `owner` at a given `index` of its token list.
     * Use along with {balanceOf} to enumerate all of ``owner``'s tokens.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256);

    /**
     * @dev Returns a token ID at a given `index` of all the tokens stored by the contract.
     * Use along with {totalSupply} to enumerate all tokens.
     */
    function tokenByIndex(uint256 index) external view returns (uint256);
}

File 6 of 11 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

pragma solidity ^0.8.0;

/**
 * @title Counters
 * @author Matt Condon (@shrugs)
 * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number
 * of elements in a mapping, issuing ERC721 ids, or counting request ids.
 *
 * Include with `using Counters for Counters.Counter;`
 */
library Counters {
    struct Counter {
        // This variable should never be directly accessed by users of the library: interactions must be restricted to
        // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add
        // this feature: see https://github.com/ethereum/solidity/issues/4637
        uint256 _value; // default: 0
    }

    function current(Counter storage counter) internal view returns (uint256) {
        return counter._value;
    }

    function increment(Counter storage counter) internal {
        unchecked {
            counter._value += 1;
        }
    }

    function decrement(Counter storage counter) internal {
        uint256 value = counter._value;
        require(value > 0, "Counter: decrement overflow");
        unchecked {
            counter._value = value - 1;
        }
    }

    function reset(Counter storage counter) internal {
        counter._value = 0;
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 10 of 11 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC165 standard, as defined in the
 * https://eips.ethereum.org/EIPS/eip-165[EIP].
 *
 * Implementers can declare support of contract interfaces, which can then be
 * queried by others ({ERC165Checker}).
 *
 * For an implementation, see {ERC165}.
 */
interface IERC165 {
    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30 000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);
}

File 11 of 11 : IERC721BridgableParent.sol
// SPDX-License-Identifier: MIT LICENSE

pragma solidity ^0.8.9;

import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol";

// @notice Interface for Polygon bridgable NFTs on L1-chain
interface IERC721BridgableParent is IERC721Enumerable {
    /**
     * Mints a token. Can be called by minting contract or by bridge
     *
     * @param to         Account to mint to
     * @param tokenId    Id of token to mint
     */
    function mint(address to, uint256 tokenId) external;

    /**
     * Mints a token and also sets metadata from L2
     *
     * @param to        Address to mint to
     * @param tokenId   Id of the token to mint
     * @param metadata  ABI encoded tokenURI for the token
     */
    function mint(
        address to,
        uint256 tokenId,
        bytes calldata metadata
    ) external;

    /**
     * @param tokenId token id to check
     * @return Whether or not the given tokenId has been minted
     */
    function exists(uint256 tokenId) external view returns (bool);

    /**
     * Sets the metadata for a given token, only callable by bridge
     *
     * @param tokenId  Id of the token to set metadata for
     * @param data     Metadata for the token
     */
    function setTokenMetadata(uint256 tokenId, bytes calldata data) external;
}

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

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"uint256","name":"_PREMINT_COST","type":"uint256"},{"internalType":"uint256","name":"_MINT_COST","type":"uint256"},{"internalType":"uint256","name":"_AVAILABLE_SUPPLY","type":"uint256"},{"internalType":"uint256","name":"_MAX_PER_ADDRESS","type":"uint256"},{"internalType":"address","name":"_NFT_CONTRACT_ADDRESS","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":false,"internalType":"enum StagedMintV1.MintStage","name":"stage","type":"uint8"}],"name":"StageChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"WithdrewProceeds","type":"event"},{"inputs":[],"name":"AVAILABLE_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_PER_ADDRESS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINT_COST","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"NFT_CONTRACT","outputs":[{"internalType":"contract IERC721BridgableParent","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PREMINT_COST","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"allowlistCounts","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"currentTokenId","outputs":[{"internalType":"uint256","name":"_value","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"}],"name":"enterPremint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"}],"name":"isOnPremintList","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"merkleRootHash","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"mintCounts","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintStage","outputs":[{"internalType":"enum StagedMintV1.MintStage","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"premintCounts","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"enum StagedMintV1.MintStage","name":"_stage","type":"uint8"}],"name":"setMintStage","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_paused","type":"bool"}],"name":"setPaused","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"rootHash","type":"bytes32"}],"name":"updateMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawProceeds","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6101206040526002805461ff00191690553480156200001d57600080fd5b506040516200197e3803806200197e8339810160408190526200004091620003e8565b6200004b33620002f1565b600180556002805460ff1916905560a0859052608084905260c083905260e08290526001600160a01b038116610100819052620000e85760405162461bcd60e51b815260206004820152603060248201527f4e46545f434f4e54524143545f4552524f523a204e465420416464726573732060448201526f1a185cc81b9bdd081899595b881cd95d60821b60648201526084015b60405180910390fd5b610100516040516301ffc9a760e01b80825260048201526001600160a01b03909116906301ffc9a790602401602060405180830381865afa15801562000132573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000158919062000445565b1515600114620001db5760405162461bcd60e51b815260206004820152604160248201527f4e46545f434f4e54524143545f4552524f523a204e465420436f6e747261637460448201527f20646f65736e277420737570706f72742045524331363520496e7465726661636064820152606560f81b608482015260a401620000df565b610100516040516301ffc9a760e01b81526334bf76a160e21b60048201526001600160a01b03909116906301ffc9a790602401602060405180830381865afa1580156200022c573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000252919062000445565b1515600114620002dc5760405162461bcd60e51b815260206004820152604860248201527f4e46545f434f4e54524143545f4e4f545f425249444741424c453a204e46542060448201527f436f6e7472616374206973206e6f7420612049455243373231427269646761626064820152671b1954185c995b9d60c21b608482015260a401620000df565b620002e662000341565b505050505062000470565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6200034b6200039e565b6002805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258620003813390565b6040516001600160a01b03909116815260200160405180910390a1565b60025460ff1615620003e65760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401620000df565b565b600080600080600060a086880312156200040157600080fd5b855160208701516040880151606089015160808a0151939850919650945092506001600160a01b03811681146200043757600080fd5b809150509295509295909350565b6000602082840312156200045857600080fd5b815180151581146200046957600080fd5b9392505050565b60805160a05160c05160e0516101005161149f620004df60003960008181610212015261103501526000818161018a0152610b840152600081816103a80152610da60152600081816101de01526106440152600081816103fc015281816105a20152610b2f015261149f6000f3fe6080604052600436106101345760003560e01c8063715018a6116100ab578063b438e12e1161006f578063b438e12e14610396578063bb0ba35d146103ca578063c662e481146103ea578063ddb6dfc41461041e578063f150a04914610434578063f2fde38b1461046057600080fd5b8063715018a61461030e5780638da5cb5b146103235780639038e69314610341578063a0712d6814610356578063b342a7991461036957600080fd5b80631fda9a02116100fd5780631fda9a021461020057806323f2ebf21461024c5780634783f0ef146102795780635327787914610299578063544c4f70146102c65780635c975abb146102f657600080fd5b80629a9b7b14610139578063045a6a0f146101635780630aaef2851461017857806316c38b3c146101ac5780631b18396a146101cc575b600080fd5b34801561014557600080fd5b506007546101509081565b6040519081526020015b60405180910390f35b61017661017136600461115c565b610480565b005b34801561018457600080fd5b506101507f000000000000000000000000000000000000000000000000000000000000000081565b3480156101b857600080fd5b506101766101c73660046111a8565b6107a0565b3480156101d857600080fd5b506101507f000000000000000000000000000000000000000000000000000000000000000081565b34801561020c57600080fd5b506102347f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b03909116815260200161015a565b34801561025857600080fd5b506101506102673660046111e6565b60046020526000908152604090205481565b34801561028557600080fd5b50610176610294366004611201565b6107c5565b3480156102a557600080fd5b506101506102b43660046111e6565b60066020526000908152604090205481565b3480156102d257600080fd5b506102e66102e136600461121a565b610863565b604051901515815260200161015a565b34801561030257600080fd5b5060025460ff166102e6565b34801561031a57600080fd5b506101766108b6565b34801561032f57600080fd5b506000546001600160a01b0316610234565b34801561034d57600080fd5b506101766108ca565b610176610364366004611201565b610a55565b34801561037557600080fd5b506101506103843660046111e6565b60056020526000908152604090205481565b3480156103a257600080fd5b506101507f000000000000000000000000000000000000000000000000000000000000000081565b3480156103d657600080fd5b506101766103e5366004611254565b610c5e565b3480156103f657600080fd5b506101507f000000000000000000000000000000000000000000000000000000000000000081565b34801561042a57600080fd5b5061015060035481565b34801561044057600080fd5b5060025461045390610100900460ff1681565b60405161015a919061128b565b34801561046c57600080fd5b5061017661047b3660046111e6565b610cd0565b610488610d46565b6002600154036104b35760405162461bcd60e51b81526004016104aa906112b3565b60405180910390fd5b600260015560008390036104d95760405162461bcd60e51b81526004016104aa906112ea565b6001600254610100900460ff1660038111156104f7576104f7611275565b148061051d575060028054610100900460ff16600381111561051b5761051b611275565b145b61057b5760405162461bcd60e51b815260206004820152602960248201527f5052454d494e545f4e4f545f4143544956453a205072656d696e7420686173206044820152683737ba103132b3bab760b91b60648201526084016104aa565b60028054610100900460ff16600381111561059857610598611275565b0361063f576105c77f000000000000000000000000000000000000000000000000000000000000000084611352565b34146105e55760405162461bcd60e51b81526004016104aa90611371565b33600090815260056020526040902054600361060185836113c5565b111561061f5760405162461bcd60e51b81526004016104aa906113dd565b61062984826113c5565b33600090815260056020526040902055506106dd565b6106697f000000000000000000000000000000000000000000000000000000000000000084611352565b34146106875760405162461bcd60e51b81526004016104aa90611371565b3360009081526004602052604090205460026106a385836113c5565b11156106c15760405162461bcd60e51b81526004016104aa906113dd565b6106cb84826113c5565b33600090815260046020526040902055505b6040516bffffffffffffffffffffffff193360601b166020820152600090603401604051602081830303815290604052805190602001209050610724838360035484610d8c565b61078d5760405162461bcd60e51b815260206004820152603460248201527f5052454d494e545f414444524553535f4d495353494e473a2041646472657373604482015273081b9bdd081bdb881c1c995b5a5b9d081b1a5cdd60621b60648201526084016104aa565b61079684610da4565b5050600180555050565b6107a8610e86565b8015156001036107bd576107ba610ee0565b50565b6107ba610f3a565b6107cd610e86565b6000600254610100900460ff1660038111156107eb576107eb611275565b1461085e5760405162461bcd60e51b815260206004820152603960248201527f4e4f545f44495341424c45443a2043616e206e6f742061646420746f2070726560448201527f6d696e74206c69737420756e6c6573732064697361626c65640000000000000060648201526084016104aa565b600355565b6040516bffffffffffffffffffffffff19606085901b16602082015260009081906034016040516020818303038152906040528051906020012090506108ad848460035484610d8c565b95945050505050565b6108be610e86565b6108c86000610f73565b565b6108d2610e86565b6002600154036108f45760405162461bcd60e51b81526004016104aa906112b3565b6002600155478061095c5760405162461bcd60e51b815260206004820152602c60248201527f5041594f55545f454d5054593a204e6f2070726f636565647320617661696c6160448201526b626c6520746f20636c61696d60a01b60648201526084016104aa565b604051600090339083908381818185875af1925050503d806000811461099e576040519150601f19603f3d011682016040523d82523d6000602084013e6109a3565b606091505b5090915050600181151514610a185760405162461bcd60e51b815260206004820152603560248201527f57495448445241575f554e53554343455346554c3a2057617320756e61626c6560448201527420746f2077697468647261772070726f636565647360581b60648201526084016104aa565b60405182815233907f1c317cd2f4738a3e30c79b820b9f0ac756d089e9e297a5faf6b35fd6de23326a9060200160405180910390a2505060018055565b610a5d610d46565b600260015403610a7f5760405162461bcd60e51b81526004016104aa906112b3565b60026001556003600254610100900460ff166003811115610aa257610aa2611275565b14610b0a5760405162461bcd60e51b815260206004820152603260248201527f5055424c49435f53414c455f4e4f545f535441525445443a205075626c69632060448201527139b0b632903430b9903737ba103132b3bab760711b60648201526084016104aa565b80600003610b2a5760405162461bcd60e51b81526004016104aa906112ea565b610b547f000000000000000000000000000000000000000000000000000000000000000082611352565b3414610b725760405162461bcd60e51b81526004016104aa90611371565b336000908152600660205260409020547f0000000000000000000000000000000000000000000000000000000000000000610bad83836113c5565b1115610c335760405162461bcd60e51b815260206004820152604960248201527f4d494e545f4d41585f524541434845443a2054686973207472616e736163746960448201527f6f6e206578636565647320796f757220616464726573736573206c696d6974206064820152686f6620746f6b656e7360b81b608482015260a4016104aa565b610c3d82826113c5565b33600090815260066020526040902055610c5682610da4565b505060018055565b610c66610e86565b6002805482919061ff001916610100836003811115610c8757610c87611275565b0217905550336001600160a01b03167f2ac10ce19c110986e7824de50d9855079ddcc0ceaae6c51f182e458cf81319ca82604051610cc5919061128b565b60405180910390a250565b610cd8610e86565b6001600160a01b038116610d3d5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016104aa565b6107ba81610f73565b60025460ff16156108c85760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b60448201526064016104aa565b600082610d9a868685610fc3565b1495945050505050565b7f000000000000000000000000000000000000000000000000000000000000000081610dcf60075490565b610dd991906113c5565b1115610e4d5760405162461bcd60e51b815260206004820152603c60248201527f4e46545f4d41585f524541434845443a204e6f7420656e6f756768204e46547360448201527f206c65667420746f2066756c66696c6c207472616e73616374696f6e0000000060648201526084016104aa565b60005b81811015610e8257610e66600780546001019055565b610e723360075461100f565b610e7b8161143a565b9050610e50565b5050565b6000546001600160a01b031633146108c85760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016104aa565b610ee8610d46565b6002805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258610f1d3390565b6040516001600160a01b03909116815260200160405180910390a1565b610f42611095565b6002805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa33610f1d565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600081815b8481101561100657610ff282878784818110610fe657610fe6611453565b905060200201356110de565b915080610ffe8161143a565b915050610fc8565b50949350505050565b6040516340c10f1960e01b81526001600160a01b038381166004830152602482018390527f000000000000000000000000000000000000000000000000000000000000000016906340c10f1990604401600060405180830381600087803b15801561107957600080fd5b505af115801561108d573d6000803e3d6000fd5b505050505050565b60025460ff166108c85760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b60448201526064016104aa565b60008183106110fa576000828152602084905260409020611109565b60008381526020839052604090205b9392505050565b60008083601f84011261112257600080fd5b50813567ffffffffffffffff81111561113a57600080fd5b6020830191508360208260051b850101111561115557600080fd5b9250929050565b60008060006040848603121561117157600080fd5b83359250602084013567ffffffffffffffff81111561118f57600080fd5b61119b86828701611110565b9497909650939450505050565b6000602082840312156111ba57600080fd5b8135801515811461110957600080fd5b80356001600160a01b03811681146111e157600080fd5b919050565b6000602082840312156111f857600080fd5b611109826111ca565b60006020828403121561121357600080fd5b5035919050565b60008060006040848603121561122f57600080fd5b611238846111ca565b9250602084013567ffffffffffffffff81111561118f57600080fd5b60006020828403121561126657600080fd5b81356004811061110957600080fd5b634e487b7160e01b600052602160045260246000fd5b60208101600483106112ad57634e487b7160e01b600052602160045260246000fd5b91905290565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b60208082526032908201527f494e434f52524543545f414d4f554e543a20416d6f756e74206d7573742062656040820152712067726561746572207468616e207a65726f60701b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b600081600019048311821515161561136c5761136c61133c565b500290565b60208082526034908201527f494e434f52524543545f5041594d454e543a20496e636f7272656374207061796040820152731b595b9d08185b5bdd5b9d08199bdc881b5a5b9d60621b606082015260800190565b600082198211156113d8576113d861133c565b500190565b6020808252603e908201527f5052454d494e545f4d41585f524541434845443a20417474656d7074696e672060408201527f746f207072656d696e74206d6f7265207468616e20616c6c6f746d656e740000606082015260800190565b60006001820161144c5761144c61133c565b5060010190565b634e487b7160e01b600052603260045260246000fdfea2646970667358221220acf40d6e8be65d2327bca1d8437633b6bb6dfa8c074065b5afd8fd870207e5ed64736f6c634300080d0033000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002328000000000000000000000000000000000000000000000000000000000000000500000000000000000000000031fe9d95dde43cf9893b76160f63521a9e3d26b0

Deployed Bytecode

0x6080604052600436106101345760003560e01c8063715018a6116100ab578063b438e12e1161006f578063b438e12e14610396578063bb0ba35d146103ca578063c662e481146103ea578063ddb6dfc41461041e578063f150a04914610434578063f2fde38b1461046057600080fd5b8063715018a61461030e5780638da5cb5b146103235780639038e69314610341578063a0712d6814610356578063b342a7991461036957600080fd5b80631fda9a02116100fd5780631fda9a021461020057806323f2ebf21461024c5780634783f0ef146102795780635327787914610299578063544c4f70146102c65780635c975abb146102f657600080fd5b80629a9b7b14610139578063045a6a0f146101635780630aaef2851461017857806316c38b3c146101ac5780631b18396a146101cc575b600080fd5b34801561014557600080fd5b506007546101509081565b6040519081526020015b60405180910390f35b61017661017136600461115c565b610480565b005b34801561018457600080fd5b506101507f000000000000000000000000000000000000000000000000000000000000000581565b3480156101b857600080fd5b506101766101c73660046111a8565b6107a0565b3480156101d857600080fd5b506101507f000000000000000000000000000000000000000000000000000000000000000081565b34801561020c57600080fd5b506102347f00000000000000000000000031fe9d95dde43cf9893b76160f63521a9e3d26b081565b6040516001600160a01b03909116815260200161015a565b34801561025857600080fd5b506101506102673660046111e6565b60046020526000908152604090205481565b34801561028557600080fd5b50610176610294366004611201565b6107c5565b3480156102a557600080fd5b506101506102b43660046111e6565b60066020526000908152604090205481565b3480156102d257600080fd5b506102e66102e136600461121a565b610863565b604051901515815260200161015a565b34801561030257600080fd5b5060025460ff166102e6565b34801561031a57600080fd5b506101766108b6565b34801561032f57600080fd5b506000546001600160a01b0316610234565b34801561034d57600080fd5b506101766108ca565b610176610364366004611201565b610a55565b34801561037557600080fd5b506101506103843660046111e6565b60056020526000908152604090205481565b3480156103a257600080fd5b506101507f000000000000000000000000000000000000000000000000000000000000232881565b3480156103d657600080fd5b506101766103e5366004611254565b610c5e565b3480156103f657600080fd5b506101507f000000000000000000000000000000000000000000000000000000000000000081565b34801561042a57600080fd5b5061015060035481565b34801561044057600080fd5b5060025461045390610100900460ff1681565b60405161015a919061128b565b34801561046c57600080fd5b5061017661047b3660046111e6565b610cd0565b610488610d46565b6002600154036104b35760405162461bcd60e51b81526004016104aa906112b3565b60405180910390fd5b600260015560008390036104d95760405162461bcd60e51b81526004016104aa906112ea565b6001600254610100900460ff1660038111156104f7576104f7611275565b148061051d575060028054610100900460ff16600381111561051b5761051b611275565b145b61057b5760405162461bcd60e51b815260206004820152602960248201527f5052454d494e545f4e4f545f4143544956453a205072656d696e7420686173206044820152683737ba103132b3bab760b91b60648201526084016104aa565b60028054610100900460ff16600381111561059857610598611275565b0361063f576105c77f000000000000000000000000000000000000000000000000000000000000000084611352565b34146105e55760405162461bcd60e51b81526004016104aa90611371565b33600090815260056020526040902054600361060185836113c5565b111561061f5760405162461bcd60e51b81526004016104aa906113dd565b61062984826113c5565b33600090815260056020526040902055506106dd565b6106697f000000000000000000000000000000000000000000000000000000000000000084611352565b34146106875760405162461bcd60e51b81526004016104aa90611371565b3360009081526004602052604090205460026106a385836113c5565b11156106c15760405162461bcd60e51b81526004016104aa906113dd565b6106cb84826113c5565b33600090815260046020526040902055505b6040516bffffffffffffffffffffffff193360601b166020820152600090603401604051602081830303815290604052805190602001209050610724838360035484610d8c565b61078d5760405162461bcd60e51b815260206004820152603460248201527f5052454d494e545f414444524553535f4d495353494e473a2041646472657373604482015273081b9bdd081bdb881c1c995b5a5b9d081b1a5cdd60621b60648201526084016104aa565b61079684610da4565b5050600180555050565b6107a8610e86565b8015156001036107bd576107ba610ee0565b50565b6107ba610f3a565b6107cd610e86565b6000600254610100900460ff1660038111156107eb576107eb611275565b1461085e5760405162461bcd60e51b815260206004820152603960248201527f4e4f545f44495341424c45443a2043616e206e6f742061646420746f2070726560448201527f6d696e74206c69737420756e6c6573732064697361626c65640000000000000060648201526084016104aa565b600355565b6040516bffffffffffffffffffffffff19606085901b16602082015260009081906034016040516020818303038152906040528051906020012090506108ad848460035484610d8c565b95945050505050565b6108be610e86565b6108c86000610f73565b565b6108d2610e86565b6002600154036108f45760405162461bcd60e51b81526004016104aa906112b3565b6002600155478061095c5760405162461bcd60e51b815260206004820152602c60248201527f5041594f55545f454d5054593a204e6f2070726f636565647320617661696c6160448201526b626c6520746f20636c61696d60a01b60648201526084016104aa565b604051600090339083908381818185875af1925050503d806000811461099e576040519150601f19603f3d011682016040523d82523d6000602084013e6109a3565b606091505b5090915050600181151514610a185760405162461bcd60e51b815260206004820152603560248201527f57495448445241575f554e53554343455346554c3a2057617320756e61626c6560448201527420746f2077697468647261772070726f636565647360581b60648201526084016104aa565b60405182815233907f1c317cd2f4738a3e30c79b820b9f0ac756d089e9e297a5faf6b35fd6de23326a9060200160405180910390a2505060018055565b610a5d610d46565b600260015403610a7f5760405162461bcd60e51b81526004016104aa906112b3565b60026001556003600254610100900460ff166003811115610aa257610aa2611275565b14610b0a5760405162461bcd60e51b815260206004820152603260248201527f5055424c49435f53414c455f4e4f545f535441525445443a205075626c69632060448201527139b0b632903430b9903737ba103132b3bab760711b60648201526084016104aa565b80600003610b2a5760405162461bcd60e51b81526004016104aa906112ea565b610b547f000000000000000000000000000000000000000000000000000000000000000082611352565b3414610b725760405162461bcd60e51b81526004016104aa90611371565b336000908152600660205260409020547f0000000000000000000000000000000000000000000000000000000000000005610bad83836113c5565b1115610c335760405162461bcd60e51b815260206004820152604960248201527f4d494e545f4d41585f524541434845443a2054686973207472616e736163746960448201527f6f6e206578636565647320796f757220616464726573736573206c696d6974206064820152686f6620746f6b656e7360b81b608482015260a4016104aa565b610c3d82826113c5565b33600090815260066020526040902055610c5682610da4565b505060018055565b610c66610e86565b6002805482919061ff001916610100836003811115610c8757610c87611275565b0217905550336001600160a01b03167f2ac10ce19c110986e7824de50d9855079ddcc0ceaae6c51f182e458cf81319ca82604051610cc5919061128b565b60405180910390a250565b610cd8610e86565b6001600160a01b038116610d3d5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016104aa565b6107ba81610f73565b60025460ff16156108c85760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b60448201526064016104aa565b600082610d9a868685610fc3565b1495945050505050565b7f000000000000000000000000000000000000000000000000000000000000232881610dcf60075490565b610dd991906113c5565b1115610e4d5760405162461bcd60e51b815260206004820152603c60248201527f4e46545f4d41585f524541434845443a204e6f7420656e6f756768204e46547360448201527f206c65667420746f2066756c66696c6c207472616e73616374696f6e0000000060648201526084016104aa565b60005b81811015610e8257610e66600780546001019055565b610e723360075461100f565b610e7b8161143a565b9050610e50565b5050565b6000546001600160a01b031633146108c85760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016104aa565b610ee8610d46565b6002805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258610f1d3390565b6040516001600160a01b03909116815260200160405180910390a1565b610f42611095565b6002805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa33610f1d565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600081815b8481101561100657610ff282878784818110610fe657610fe6611453565b905060200201356110de565b915080610ffe8161143a565b915050610fc8565b50949350505050565b6040516340c10f1960e01b81526001600160a01b038381166004830152602482018390527f00000000000000000000000031fe9d95dde43cf9893b76160f63521a9e3d26b016906340c10f1990604401600060405180830381600087803b15801561107957600080fd5b505af115801561108d573d6000803e3d6000fd5b505050505050565b60025460ff166108c85760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b60448201526064016104aa565b60008183106110fa576000828152602084905260409020611109565b60008381526020839052604090205b9392505050565b60008083601f84011261112257600080fd5b50813567ffffffffffffffff81111561113a57600080fd5b6020830191508360208260051b850101111561115557600080fd5b9250929050565b60008060006040848603121561117157600080fd5b83359250602084013567ffffffffffffffff81111561118f57600080fd5b61119b86828701611110565b9497909650939450505050565b6000602082840312156111ba57600080fd5b8135801515811461110957600080fd5b80356001600160a01b03811681146111e157600080fd5b919050565b6000602082840312156111f857600080fd5b611109826111ca565b60006020828403121561121357600080fd5b5035919050565b60008060006040848603121561122f57600080fd5b611238846111ca565b9250602084013567ffffffffffffffff81111561118f57600080fd5b60006020828403121561126657600080fd5b81356004811061110957600080fd5b634e487b7160e01b600052602160045260246000fd5b60208101600483106112ad57634e487b7160e01b600052602160045260246000fd5b91905290565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b60208082526032908201527f494e434f52524543545f414d4f554e543a20416d6f756e74206d7573742062656040820152712067726561746572207468616e207a65726f60701b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b600081600019048311821515161561136c5761136c61133c565b500290565b60208082526034908201527f494e434f52524543545f5041594d454e543a20496e636f7272656374207061796040820152731b595b9d08185b5bdd5b9d08199bdc881b5a5b9d60621b606082015260800190565b600082198211156113d8576113d861133c565b500190565b6020808252603e908201527f5052454d494e545f4d41585f524541434845443a20417474656d7074696e672060408201527f746f207072656d696e74206d6f7265207468616e20616c6c6f746d656e740000606082015260800190565b60006001820161144c5761144c61133c565b5060010190565b634e487b7160e01b600052603260045260246000fdfea2646970667358221220acf40d6e8be65d2327bca1d8437633b6bb6dfa8c074065b5afd8fd870207e5ed64736f6c634300080d0033

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

000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002328000000000000000000000000000000000000000000000000000000000000000500000000000000000000000031fe9d95dde43cf9893b76160f63521a9e3d26b0

-----Decoded View---------------
Arg [0] : _PREMINT_COST (uint256): 0
Arg [1] : _MINT_COST (uint256): 0
Arg [2] : _AVAILABLE_SUPPLY (uint256): 9000
Arg [3] : _MAX_PER_ADDRESS (uint256): 5
Arg [4] : _NFT_CONTRACT_ADDRESS (address): 0x31fe9d95ddE43cf9893b76160F63521a9e3D26B0

-----Encoded View---------------
5 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [2] : 0000000000000000000000000000000000000000000000000000000000002328
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [4] : 00000000000000000000000031fe9d95dde43cf9893b76160f63521a9e3d26b0


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.