ETH Price: $3,665.01 (+0.67%)
Gas: 7.08 Gwei
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Set Pause182271182023-09-27 12:32:59466 days ago1695817979IN
0xC21917F8...0B9Ef7af6
0 ETH0.0006441714.04929154
Mint182249852023-09-27 5:22:11466 days ago1695792131IN
0xC21917F8...0B9Ef7af6
0 ETH0.001126929.5849845
Mint182241112023-09-27 2:26:35467 days ago1695781595IN
0xC21917F8...0B9Ef7af6
0 ETH0.0013509511.40110917
Mint182205662023-09-26 14:32:23467 days ago1695738743IN
0xC21917F8...0B9Ef7af6
0 ETH0.0019912916.93677773
Mint182204702023-09-26 14:13:11467 days ago1695737591IN
0xC21917F8...0B9Ef7af6
0 ETH0.0022606419.07699455
Mint182196532023-09-26 11:27:59467 days ago1695727679IN
0xC21917F8...0B9Ef7af6
0 ETH0.0017229914.53833828
Mint182179972023-09-26 5:53:35467 days ago1695707615IN
0xC21917F8...0B9Ef7af6
0 ETH0.001093419.22382019
Mint182175342023-09-26 4:20:23467 days ago1695702023IN
0xC21917F8...0B9Ef7af6
0 ETH0.001160089.7896181
Mint182167642023-09-26 1:46:11468 days ago1695692771IN
0xC21917F8...0B9Ef7af6
0 ETH0.001134049.56562005
Mint182162602023-09-26 0:04:23468 days ago1695686663IN
0xC21917F8...0B9Ef7af6
0 ETH0.0012271510.35580668
Mint182160932023-09-25 23:30:47468 days ago1695684647IN
0xC21917F8...0B9Ef7af6
0 ETH0.001157489.84929387
Mint182143722023-09-25 17:45:35468 days ago1695663935IN
0xC21917F8...0B9Ef7af6
0 ETH0.0020513517.3123089
Mint182139332023-09-25 16:17:11468 days ago1695658631IN
0xC21917F8...0B9Ef7af6
0 ETH0.0027778123.63252483
Mint182128882023-09-25 12:45:59468 days ago1695645959IN
0xC21917F8...0B9Ef7af6
0 ETH0.001128529.52480093
Mint182127702023-09-25 12:22:11468 days ago1695644531IN
0xC21917F8...0B9Ef7af6
0 ETH0.0018837616.02961901
Mint182126882023-09-25 12:05:35468 days ago1695643535IN
0xC21917F8...0B9Ef7af6
0 ETH0.0021158217.85638385
Mint182122952023-09-25 10:46:23468 days ago1695638783IN
0xC21917F8...0B9Ef7af6
0 ETH0.0012862810.85537519
Mint182120322023-09-25 9:53:35468 days ago1695635615IN
0xC21917F8...0B9Ef7af6
0 ETH0.0011978710.11044794
Mint182117822023-09-25 9:03:35468 days ago1695632615IN
0xC21917F8...0B9Ef7af6
0 ETH0.0012186710.28395517
Mint182108352023-09-25 5:52:23468 days ago1695621143IN
0xC21917F8...0B9Ef7af6
0 ETH0.001121229.46511928
Mint182103842023-09-25 4:21:11468 days ago1695615671IN
0xC21917F8...0B9Ef7af6
0 ETH0.001074879.07045796
Mint182103602023-09-25 4:16:11468 days ago1695615371IN
0xC21917F8...0B9Ef7af6
0 ETH0.001098379.26874071
Mint182102352023-09-25 3:51:11468 days ago1695613871IN
0xC21917F8...0B9Ef7af6
0 ETH0.000766036.463446
Mint182099132023-09-25 2:45:35468 days ago1695609935IN
0xC21917F8...0B9Ef7af6
0 ETH0.001035828.81179665
Mint182098412023-09-25 2:31:11468 days ago1695609071IN
0xC21917F8...0B9Ef7af6
0 ETH0.00108019.11399011
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:
RandomMinter

Compiler Version
v0.8.18+commit.87f61d96

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 4 : random_minter.sol
// SPDX-License-Identifier: MIT
// Copyright (c) 2023 Keisuke OHNO (kei31.eth)

/*

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

*/






pragma solidity >=0.7.0 <0.9.0;

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


interface iNFTCollection {
    function externalMintWithPhaseId(address _address , uint256 _amount , uint256 _phaseId ) external payable;
}

contract RandomMinter is Ownable {

    constructor(){
        setNFTCollection(0x2895509D9FB161577b58cEB76D71EF9fb85E0cd6);
        setMerkleRoot(0xf9c5c95af0e9994a16a694d94351f56d292ca815d4e55a3063fe7b3e7748f38c);
    }


    //////////////////////////////////////////////////
    //      withdraw section
    //////////////////////////////////////////////////

    address public withdrawAddress = 0xdEcf4B112d4120B6998e5020a6B4819E490F7db6;

    function setWithdrawAddress(address _withdrawAddress) public onlyOwner {
        withdrawAddress = _withdrawAddress;
    }

    function withdraw() public payable onlyOwner {
        (bool os, ) = payable(withdrawAddress).call{value: address(this).balance}('');
        require(os);
    }


    //////////////////////////////////////////////////
    //      mint section section
    //////////////////////////////////////////////////


    uint256 public cost = 0; 
    uint256 public maxAmount0 = 240;
    uint256 public maxAmount1 = 240;
    uint256 public maxAmount2 = 240;
    uint256 public mintedAmount0 = 0;
    uint256 public mintedAmount1 = 0;
    uint256 public mintedAmount2 = 0;

    bool public paused = true;
    bytes32 public merkleRoot;

    mapping(address => uint256) public userMintedAmount;
    mapping(address => uint256) public allowlistUserAmount;

    modifier callerIsUser() {
        require(tx.origin == msg.sender, "The caller is another contract.");
        _;
    }

    function mint( uint256 _maxMintAmount , bytes32[] calldata _merkleProof ) public payable callerIsUser{

        require(!paused, "the contract is paused");
        require( totalMinted() + 1 <= maxSupply() , "max NFT limit exceeded");
        require( cost <= msg.value, "insufficient funds");

        uint256 maxMintAmountPerAddress;

        bytes32 leaf = keccak256( abi.encodePacked(msg.sender, _maxMintAmount) );
        require(MerkleProof.verify(_merkleProof, merkleRoot, leaf), "user is not allowlisted");
        maxMintAmountPerAddress = _maxMintAmount;
 
        require(1 <= maxMintAmountPerAddress - userMintedAmount[msg.sender] , "max NFT per address exceeded");
        userMintedAmount[msg.sender] += 1;

        uint256 remaining = maxSupply() - totalMinted();
        uint256 random = uint256(keccak256(abi.encodePacked(block.timestamp, msg.sender))) % remaining;

        if ( 0 <= random && random < (maxAmount0 - mintedAmount0) ) {
            mintedAmount0 += 1;
            NFTCollection.externalMintWithPhaseId( msg.sender , 1 ,3);
        } else if ( (maxAmount0 - mintedAmount0) <= random && random < ((maxAmount0 - mintedAmount0) + (maxAmount1 - mintedAmount1)) ) {
            mintedAmount1 += 1;
            NFTCollection.externalMintWithPhaseId( msg.sender , 1 ,4);
        } else {
            mintedAmount2 += 1;
            NFTCollection.externalMintWithPhaseId( msg.sender , 1 ,5);
        }

    }

    function totalMinted()public view returns(uint256){
        return mintedAmount0 + mintedAmount1 + mintedAmount2;
    }
    function maxSupply()public view returns(uint256){
        return maxAmount0 + maxAmount1 + maxAmount2;
    }

    function setMerkleRoot(bytes32 _merkleRoot) public onlyOwner {
        merkleRoot = _merkleRoot;
    }    
    function setPause(bool _state) public onlyOwner {
        paused = _state;
    }

    function setCost(uint256 _newCost) public onlyOwner {
        cost = _newCost;
    }    

    function setMaxMintAmount(uint256 _maxAmount0 , uint256 _maxAmount1 , uint256 _maxAmount2) public onlyOwner {
        maxAmount0 = _maxAmount0;
        maxAmount1 = _maxAmount1;
        maxAmount2 = _maxAmount2;
    }    

    //////////////////////////////////////////////////
    //      interface section
    //////////////////////////////////////////////////

    iNFTCollection public NFTCollection;

    //onlyowner
    function setNFTCollection(address _address) public onlyOwner() {
        NFTCollection = iNFTCollection(_address);
    }

}

File 2 of 4 : MerkleProof.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/cryptography/MerkleProof.sol)

pragma solidity ^0.8.0;

/**
 * @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 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 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.
     *
     * _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}
     *
     * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details.
     *
     * _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 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).
     *
     * _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}.
     *
     * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details.
     *
     * _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 3 of 4 : 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 4 of 4 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

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

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

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

Contract Security Audit

Contract ABI

[{"inputs":[],"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"},{"inputs":[],"name":"NFTCollection","outputs":[{"internalType":"contract iNFTCollection","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"allowlistUserAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxAmount0","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxAmount1","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxAmount2","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"merkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxMintAmount","type":"uint256"},{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintedAmount0","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintedAmount1","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintedAmount2","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newCost","type":"uint256"}],"name":"setCost","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxAmount0","type":"uint256"},{"internalType":"uint256","name":"_maxAmount1","type":"uint256"},{"internalType":"uint256","name":"_maxAmount2","type":"uint256"}],"name":"setMaxMintAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"}],"name":"setMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"setNFTCollection","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"setPause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_withdrawAddress","type":"address"}],"name":"setWithdrawAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"totalMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"userMintedAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"withdrawAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]

6080604052600180546001600160a01b03191673decf4b112d4120b6998e5020a6b4819e490f7db61781556000600281905560f060038190556004819055600555600681905560078190556008556009805460ff1916909117905534801561006657600080fd5b50610070336100bb565b61008d732895509d9fb161577b58ceb76d71ef9fb85e0cd661010b565b6100b67ff9c5c95af0e9994a16a694d94351f56d292ca815d4e55a3063fe7b3e7748f38c610135565b6101a2565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610113610142565b600d80546001600160a01b0319166001600160a01b0392909216919091179055565b61013d610142565b600a55565b6000546001600160a01b031633146101a05760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640160405180910390fd5b565b610e4f806101b16000396000f3fe6080604052600436106101815760003560e01c80636f42ebcf116100d1578063a2309ff81161008a578063d0abd1ad11610064578063d0abd1ad1461041e578063d5abeb0114610434578063f2fde38b14610449578063f6d228011461046957600080fd5b8063a2309ff8146103d6578063ba41b0c6146103eb578063bedb86fb146103fe57600080fd5b80636f42ebcf14610337578063715018a61461034d57806372193c5b1461036257806378b2e3a9146103785780637cb64759146103985780638da5cb5b146103b857600080fd5b80633ab1a4941161013e5780634c15b268116101185780634c15b268146102c157806350a8c639146102e15780635c975abb146102f757806363ff47231461032157600080fd5b80633ab1a494146102795780633ccfd60b1461029957806344a0d68a146102a157600080fd5b8063101e2be11461018657806313faede6146101c65780631581b600146101dc57806325656307146102145780632b4fd779146102415780632eb4a7ab14610263575b600080fd5b34801561019257600080fd5b506101b36101a1366004610c7d565b600c6020526000908152604090205481565b6040519081526020015b60405180910390f35b3480156101d257600080fd5b506101b360025481565b3480156101e857600080fd5b506001546101fc906001600160a01b031681565b6040516001600160a01b0390911681526020016101bd565b34801561022057600080fd5b506101b361022f366004610c7d565b600b6020526000908152604090205481565b34801561024d57600080fd5b5061026161025c366004610c7d565b61047f565b005b34801561026f57600080fd5b506101b3600a5481565b34801561028557600080fd5b50610261610294366004610c7d565b6104a9565b6102616104d3565b3480156102ad57600080fd5b506102616102bc366004610ca6565b61053e565b3480156102cd57600080fd5b506102616102dc366004610cbf565b61054b565b3480156102ed57600080fd5b506101b360045481565b34801561030357600080fd5b506009546103119060ff1681565b60405190151581526020016101bd565b34801561032d57600080fd5b506101b360075481565b34801561034357600080fd5b506101b360065481565b34801561035957600080fd5b50610261610561565b34801561036e57600080fd5b506101b360055481565b34801561038457600080fd5b50600d546101fc906001600160a01b031681565b3480156103a457600080fd5b506102616103b3366004610ca6565b610575565b3480156103c457600080fd5b506000546001600160a01b03166101fc565b3480156103e257600080fd5b506101b3610582565b6102616103f9366004610ceb565b6105a6565b34801561040a57600080fd5b50610261610419366004610d6a565b610a96565b34801561042a57600080fd5b506101b360035481565b34801561044057600080fd5b506101b3610ab1565b34801561045557600080fd5b50610261610464366004610c7d565b610ac6565b34801561047557600080fd5b506101b360085481565b610487610b3c565b600d80546001600160a01b0319166001600160a01b0392909216919091179055565b6104b1610b3c565b600180546001600160a01b0319166001600160a01b0392909216919091179055565b6104db610b3c565b6001546040516000916001600160a01b03169047908381818185875af1925050503d8060008114610528576040519150601f19603f3d011682016040523d82523d6000602084013e61052d565b606091505b505090508061053b57600080fd5b50565b610546610b3c565b600255565b610553610b3c565b600392909255600455600555565b610569610b3c565b6105736000610b96565b565b61057d610b3c565b600a55565b60006008546007546006546105979190610da2565b6105a19190610da2565b905090565b3233146105fa5760405162461bcd60e51b815260206004820152601f60248201527f5468652063616c6c657220697320616e6f7468657220636f6e74726163742e0060448201526064015b60405180910390fd5b60095460ff16156106465760405162461bcd60e51b81526020600482015260166024820152751d1a194818dbdb9d1c9858dd081a5cc81c185d5cd95960521b60448201526064016105f1565b61064e610ab1565b610656610582565b610661906001610da2565b11156106a85760405162461bcd60e51b81526020600482015260166024820152751b585e08139195081b1a5b5a5d08195e18d95959195960521b60448201526064016105f1565b3460025411156106ef5760405162461bcd60e51b8152602060048201526012602482015271696e73756666696369656e742066756e647360701b60448201526064016105f1565b6040516bffffffffffffffffffffffff193360601b16602082015260348101849052600090819060540160405160208183030381529060405280519060200120905061077284848080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050600a549150849050610be6565b6107be5760405162461bcd60e51b815260206004820152601760248201527f75736572206973206e6f7420616c6c6f776c697374656400000000000000000060448201526064016105f1565b336000908152600b60205260409020548592506107db9083610db5565b6001111561082b5760405162461bcd60e51b815260206004820152601c60248201527f6d6178204e46542070657220616464726573732065786365656465640000000060448201526064016105f1565b336000908152600b6020526040812080546001929061084b908490610da2565b909155506000905061085b610582565b610863610ab1565b61086d9190610db5565b905060008142336040516020016108a092919091825260601b6bffffffffffffffffffffffff1916602082015260340190565b6040516020818303038152906040528051906020012060001c6108c39190610dc8565b90506006546003546108d59190610db5565b811015610965576001600660008282546108ef9190610da2565b9091555050600d54604051636f4d5e8d60e01b815233600482015260016024820152600360448201526001600160a01b0390911690636f4d5e8d906064015b600060405180830381600087803b15801561094857600080fd5b505af115801561095c573d6000803e3d6000fd5b50505050610a8d565b806006546003546109769190610db5565b111580156109ac575060075460045461098f9190610db5565b60065460035461099f9190610db5565b6109a99190610da2565b81105b15610a09576001600760008282546109c49190610da2565b9091555050600d54604051636f4d5e8d60e01b8152336004808301919091526001602483015260448201526001600160a01b0390911690636f4d5e8d9060640161092e565b600160086000828254610a1c9190610da2565b9091555050600d54604051636f4d5e8d60e01b815233600482015260016024820152600560448201526001600160a01b0390911690636f4d5e8d90606401600060405180830381600087803b158015610a7457600080fd5b505af1158015610a88573d6000803e3d6000fd5b505050505b50505050505050565b610a9e610b3c565b6009805460ff1916911515919091179055565b60006005546004546003546105979190610da2565b610ace610b3c565b6001600160a01b038116610b335760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016105f1565b61053b81610b96565b6000546001600160a01b031633146105735760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016105f1565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600082610bf38584610bfc565b14949350505050565b600081815b8451811015610c4157610c2d82868381518110610c2057610c20610dea565b6020026020010151610c4b565b915080610c3981610e00565b915050610c01565b5090505b92915050565b6000818310610c67576000828152602084905260409020610c76565b60008381526020839052604090205b9392505050565b600060208284031215610c8f57600080fd5b81356001600160a01b0381168114610c7657600080fd5b600060208284031215610cb857600080fd5b5035919050565b600080600060608486031215610cd457600080fd5b505081359360208301359350604090920135919050565b600080600060408486031215610d0057600080fd5b83359250602084013567ffffffffffffffff80821115610d1f57600080fd5b818601915086601f830112610d3357600080fd5b813581811115610d4257600080fd5b8760208260051b8501011115610d5757600080fd5b6020830194508093505050509250925092565b600060208284031215610d7c57600080fd5b81358015158114610c7657600080fd5b634e487b7160e01b600052601160045260246000fd5b80820180821115610c4557610c45610d8c565b81810381811115610c4557610c45610d8c565b600082610de557634e487b7160e01b600052601260045260246000fd5b500690565b634e487b7160e01b600052603260045260246000fd5b600060018201610e1257610e12610d8c565b506001019056fea26469706673582212207f29271799a0a0ed05f012eee556cfa9371162fe33ee45079453b0254059455a64736f6c63430008120033

Deployed Bytecode

0x6080604052600436106101815760003560e01c80636f42ebcf116100d1578063a2309ff81161008a578063d0abd1ad11610064578063d0abd1ad1461041e578063d5abeb0114610434578063f2fde38b14610449578063f6d228011461046957600080fd5b8063a2309ff8146103d6578063ba41b0c6146103eb578063bedb86fb146103fe57600080fd5b80636f42ebcf14610337578063715018a61461034d57806372193c5b1461036257806378b2e3a9146103785780637cb64759146103985780638da5cb5b146103b857600080fd5b80633ab1a4941161013e5780634c15b268116101185780634c15b268146102c157806350a8c639146102e15780635c975abb146102f757806363ff47231461032157600080fd5b80633ab1a494146102795780633ccfd60b1461029957806344a0d68a146102a157600080fd5b8063101e2be11461018657806313faede6146101c65780631581b600146101dc57806325656307146102145780632b4fd779146102415780632eb4a7ab14610263575b600080fd5b34801561019257600080fd5b506101b36101a1366004610c7d565b600c6020526000908152604090205481565b6040519081526020015b60405180910390f35b3480156101d257600080fd5b506101b360025481565b3480156101e857600080fd5b506001546101fc906001600160a01b031681565b6040516001600160a01b0390911681526020016101bd565b34801561022057600080fd5b506101b361022f366004610c7d565b600b6020526000908152604090205481565b34801561024d57600080fd5b5061026161025c366004610c7d565b61047f565b005b34801561026f57600080fd5b506101b3600a5481565b34801561028557600080fd5b50610261610294366004610c7d565b6104a9565b6102616104d3565b3480156102ad57600080fd5b506102616102bc366004610ca6565b61053e565b3480156102cd57600080fd5b506102616102dc366004610cbf565b61054b565b3480156102ed57600080fd5b506101b360045481565b34801561030357600080fd5b506009546103119060ff1681565b60405190151581526020016101bd565b34801561032d57600080fd5b506101b360075481565b34801561034357600080fd5b506101b360065481565b34801561035957600080fd5b50610261610561565b34801561036e57600080fd5b506101b360055481565b34801561038457600080fd5b50600d546101fc906001600160a01b031681565b3480156103a457600080fd5b506102616103b3366004610ca6565b610575565b3480156103c457600080fd5b506000546001600160a01b03166101fc565b3480156103e257600080fd5b506101b3610582565b6102616103f9366004610ceb565b6105a6565b34801561040a57600080fd5b50610261610419366004610d6a565b610a96565b34801561042a57600080fd5b506101b360035481565b34801561044057600080fd5b506101b3610ab1565b34801561045557600080fd5b50610261610464366004610c7d565b610ac6565b34801561047557600080fd5b506101b360085481565b610487610b3c565b600d80546001600160a01b0319166001600160a01b0392909216919091179055565b6104b1610b3c565b600180546001600160a01b0319166001600160a01b0392909216919091179055565b6104db610b3c565b6001546040516000916001600160a01b03169047908381818185875af1925050503d8060008114610528576040519150601f19603f3d011682016040523d82523d6000602084013e61052d565b606091505b505090508061053b57600080fd5b50565b610546610b3c565b600255565b610553610b3c565b600392909255600455600555565b610569610b3c565b6105736000610b96565b565b61057d610b3c565b600a55565b60006008546007546006546105979190610da2565b6105a19190610da2565b905090565b3233146105fa5760405162461bcd60e51b815260206004820152601f60248201527f5468652063616c6c657220697320616e6f7468657220636f6e74726163742e0060448201526064015b60405180910390fd5b60095460ff16156106465760405162461bcd60e51b81526020600482015260166024820152751d1a194818dbdb9d1c9858dd081a5cc81c185d5cd95960521b60448201526064016105f1565b61064e610ab1565b610656610582565b610661906001610da2565b11156106a85760405162461bcd60e51b81526020600482015260166024820152751b585e08139195081b1a5b5a5d08195e18d95959195960521b60448201526064016105f1565b3460025411156106ef5760405162461bcd60e51b8152602060048201526012602482015271696e73756666696369656e742066756e647360701b60448201526064016105f1565b6040516bffffffffffffffffffffffff193360601b16602082015260348101849052600090819060540160405160208183030381529060405280519060200120905061077284848080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050600a549150849050610be6565b6107be5760405162461bcd60e51b815260206004820152601760248201527f75736572206973206e6f7420616c6c6f776c697374656400000000000000000060448201526064016105f1565b336000908152600b60205260409020548592506107db9083610db5565b6001111561082b5760405162461bcd60e51b815260206004820152601c60248201527f6d6178204e46542070657220616464726573732065786365656465640000000060448201526064016105f1565b336000908152600b6020526040812080546001929061084b908490610da2565b909155506000905061085b610582565b610863610ab1565b61086d9190610db5565b905060008142336040516020016108a092919091825260601b6bffffffffffffffffffffffff1916602082015260340190565b6040516020818303038152906040528051906020012060001c6108c39190610dc8565b90506006546003546108d59190610db5565b811015610965576001600660008282546108ef9190610da2565b9091555050600d54604051636f4d5e8d60e01b815233600482015260016024820152600360448201526001600160a01b0390911690636f4d5e8d906064015b600060405180830381600087803b15801561094857600080fd5b505af115801561095c573d6000803e3d6000fd5b50505050610a8d565b806006546003546109769190610db5565b111580156109ac575060075460045461098f9190610db5565b60065460035461099f9190610db5565b6109a99190610da2565b81105b15610a09576001600760008282546109c49190610da2565b9091555050600d54604051636f4d5e8d60e01b8152336004808301919091526001602483015260448201526001600160a01b0390911690636f4d5e8d9060640161092e565b600160086000828254610a1c9190610da2565b9091555050600d54604051636f4d5e8d60e01b815233600482015260016024820152600560448201526001600160a01b0390911690636f4d5e8d90606401600060405180830381600087803b158015610a7457600080fd5b505af1158015610a88573d6000803e3d6000fd5b505050505b50505050505050565b610a9e610b3c565b6009805460ff1916911515919091179055565b60006005546004546003546105979190610da2565b610ace610b3c565b6001600160a01b038116610b335760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016105f1565b61053b81610b96565b6000546001600160a01b031633146105735760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016105f1565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600082610bf38584610bfc565b14949350505050565b600081815b8451811015610c4157610c2d82868381518110610c2057610c20610dea565b6020026020010151610c4b565b915080610c3981610e00565b915050610c01565b5090505b92915050565b6000818310610c67576000828152602084905260409020610c76565b60008381526020839052604090205b9392505050565b600060208284031215610c8f57600080fd5b81356001600160a01b0381168114610c7657600080fd5b600060208284031215610cb857600080fd5b5035919050565b600080600060608486031215610cd457600080fd5b505081359360208301359350604090920135919050565b600080600060408486031215610d0057600080fd5b83359250602084013567ffffffffffffffff80821115610d1f57600080fd5b818601915086601f830112610d3357600080fd5b813581811115610d4257600080fd5b8760208260051b8501011115610d5757600080fd5b6020830194508093505050509250925092565b600060208284031215610d7c57600080fd5b81358015158114610c7657600080fd5b634e487b7160e01b600052601160045260246000fd5b80820180821115610c4557610c45610d8c565b81810381811115610c4557610c45610d8c565b600082610de557634e487b7160e01b600052601260045260246000fd5b500690565b634e487b7160e01b600052603260045260246000fd5b600060018201610e1257610e12610d8c565b506001019056fea26469706673582212207f29271799a0a0ed05f012eee556cfa9371162fe33ee45079453b0254059455a64736f6c63430008120033

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.