ETH Price: $3,386.76 (+1.17%)

Contract

0x1EBb488b218138e88C086C0B175eE54E3fbbf1BC
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Mint168904802023-03-23 13:17:35641 days ago1679577455IN
0x1EBb488b...E3fbbf1BC
0 ETH0.0005751818.95474609
Mint168888162023-03-23 7:39:23641 days ago1679557163IN
0x1EBb488b...E3fbbf1BC
0 ETH0.000294259.69317625
Set Pause168805702023-03-22 3:50:47642 days ago1679457047IN
0x1EBb488b...E3fbbf1BC
0 ETH0.0005789212.62624465
Mint168803982023-03-22 3:16:23643 days ago1679454983IN
0x1EBb488b...E3fbbf1BC
0 ETH0.0018485215.40425191
Mint168802722023-03-22 2:50:59643 days ago1679453459IN
0x1EBb488b...E3fbbf1BC
0 ETH0.0020814317.3419263
Mint168802102023-03-22 2:37:59643 days ago1679452679IN
0x1EBb488b...E3fbbf1BC
0 ETH0.001777614.91006005
Mint168801232023-03-22 2:20:35643 days ago1679451635IN
0x1EBb488b...E3fbbf1BC
0 ETH0.0016737113.94266781
Mint168800582023-03-22 2:07:35643 days ago1679450855IN
0x1EBb488b...E3fbbf1BC
0 ETH0.0020313817.04754221
Mint168800562023-03-22 2:06:59643 days ago1679450819IN
0x1EBb488b...E3fbbf1BC
0 ETH0.0019873416.42676998
Mint168799892023-03-22 1:53:23643 days ago1679450003IN
0x1EBb488b...E3fbbf1BC
0 ETH0.0017395114.3780473
Mint168799742023-03-22 1:50:23643 days ago1679449823IN
0x1EBb488b...E3fbbf1BC
0 ETH0.0017784714.70141446
Mint168799512023-03-22 1:45:47643 days ago1679449547IN
0x1EBb488b...E3fbbf1BC
0 ETH0.0018462115.3639996
Mint168799302023-03-22 1:41:35643 days ago1679449295IN
0x1EBb488b...E3fbbf1BC
0 ETH0.001939716.14271923
Mint168799272023-03-22 1:40:59643 days ago1679449259IN
0x1EBb488b...E3fbbf1BC
0 ETH0.0018367315.30572486
Mint168799152023-03-22 1:38:35643 days ago1679449115IN
0x1EBb488b...E3fbbf1BC
0 ETH0.0017710714.64401989
Mint168799002023-03-22 1:35:35643 days ago1679448935IN
0x1EBb488b...E3fbbf1BC
0 ETH0.0017461114.54693919
Mint168798992023-03-22 1:35:23643 days ago1679448923IN
0x1EBb488b...E3fbbf1BC
0 ETH0.0019145615.82544556
Mint168798772023-03-22 1:30:59643 days ago1679448659IN
0x1EBb488b...E3fbbf1BC
0 ETH0.001726714.37306189
Mint168798202023-03-22 1:19:35643 days ago1679447975IN
0x1EBb488b...E3fbbf1BC
0 ETH0.0018183415.12889194
Mint168798162023-03-22 1:18:47643 days ago1679447927IN
0x1EBb488b...E3fbbf1BC
0 ETH0.0008113815.19185811
Mint168798072023-03-22 1:16:59643 days ago1679447819IN
0x1EBb488b...E3fbbf1BC
0 ETH0.0016695413.89176869
Mint168797882023-03-22 1:13:11643 days ago1679447591IN
0x1EBb488b...E3fbbf1BC
0 ETH0.0018026815.12645927
Mint168797812023-03-22 1:11:47643 days ago1679447507IN
0x1EBb488b...E3fbbf1BC
0 ETH0.0018681915.54565285
Mint168797652023-03-22 1:08:35643 days ago1679447315IN
0x1EBb488b...E3fbbf1BC
0 ETH0.0018266115.21758372
Mint168797552023-03-22 1:06:35643 days ago1679447195IN
0x1EBb488b...E3fbbf1BC
0 ETH0.0019681216.39977885
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(0x7cc6338ba814ad7addaa22e07fb1b682ade9c930789912a396094a66c772b346);
        setWithdrawAddress(0xe72301c175e589eE2F94e77c40A2E37096a771D0);
    }


    //////////////////////////////////////////////////
    //      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 = 1111;
    uint256 public maxAmount1 = 1111;
    uint256 public maxAmount2 = 1111;
    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 ,0);
        } else if ( (maxAmount0 - mintedAmount0) <= random && random < ((maxAmount0 - mintedAmount0) + (maxAmount1 - mintedAmount1)) ) {
            mintedAmount1 += 1;
            NFTCollection.externalMintWithPhaseId( msg.sender , 1 ,1);
        } else {
            mintedAmount2 += 1;
            NFTCollection.externalMintWithPhaseId( msg.sender , 1 ,2);
        }

    }

    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"}]

6080604052600180546001600160a01b03191673decf4b112d4120b6998e5020a6b4819e490f7db61781556000600281905561045760038190556004819055600555600681905560078190556008556009805460ff1916909117905534801561006757600080fd5b50610071336100d9565b61008e732895509d9fb161577b58ceb76d71ef9fb85e0cd6610129565b6100b77f7cc6338ba814ad7addaa22e07fb1b682ade9c930789912a396094a66c772b346610153565b6100d473e72301c175e589ee2f94e77c40a2e37096a771d0610160565b6101ea565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b61013161018a565b600d80546001600160a01b0319166001600160a01b0392909216919091179055565b61015b61018a565b600a55565b61016861018a565b600180546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b031633146101e85760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640160405180910390fd5b565b610e4d80620001fa6000396000f3fe6080604052600436106101815760003560e01c80636f42ebcf116100d1578063a2309ff81161008a578063d0abd1ad11610064578063d0abd1ad1461041e578063d5abeb0114610434578063f2fde38b14610449578063f6d228011461046957600080fd5b8063a2309ff8146103d6578063ba41b0c6146103eb578063bedb86fb146103fe57600080fd5b80636f42ebcf14610337578063715018a61461034d57806372193c5b1461036257806378b2e3a9146103785780637cb64759146103985780638da5cb5b146103b857600080fd5b80633ab1a4941161013e5780634c15b268116101185780634c15b268146102c157806350a8c639146102e15780635c975abb146102f757806363ff47231461032157600080fd5b80633ab1a494146102795780633ccfd60b1461029957806344a0d68a146102a157600080fd5b8063101e2be11461018657806313faede6146101c65780631581b600146101dc57806325656307146102145780632b4fd779146102415780632eb4a7ab14610263575b600080fd5b34801561019257600080fd5b506101b36101a1366004610c7b565b600c6020526000908152604090205481565b6040519081526020015b60405180910390f35b3480156101d257600080fd5b506101b360025481565b3480156101e857600080fd5b506001546101fc906001600160a01b031681565b6040516001600160a01b0390911681526020016101bd565b34801561022057600080fd5b506101b361022f366004610c7b565b600b6020526000908152604090205481565b34801561024d57600080fd5b5061026161025c366004610c7b565b61047f565b005b34801561026f57600080fd5b506101b3600a5481565b34801561028557600080fd5b50610261610294366004610c7b565b6104a9565b6102616104d3565b3480156102ad57600080fd5b506102616102bc366004610ca4565b61053e565b3480156102cd57600080fd5b506102616102dc366004610cbd565b61054b565b3480156102ed57600080fd5b506101b360045481565b34801561030357600080fd5b506009546103119060ff1681565b60405190151581526020016101bd565b34801561032d57600080fd5b506101b360075481565b34801561034357600080fd5b506101b360065481565b34801561035957600080fd5b50610261610561565b34801561036e57600080fd5b506101b360055481565b34801561038457600080fd5b50600d546101fc906001600160a01b031681565b3480156103a457600080fd5b506102616103b3366004610ca4565b610575565b3480156103c457600080fd5b506000546001600160a01b03166101fc565b3480156103e257600080fd5b506101b3610582565b6102616103f9366004610ce9565b6105a6565b34801561040a57600080fd5b50610261610419366004610d68565b610a94565b34801561042a57600080fd5b506101b360035481565b34801561044057600080fd5b506101b3610aaf565b34801561045557600080fd5b50610261610464366004610c7b565b610ac4565b34801561047557600080fd5b506101b360085481565b610487610b3a565b600d80546001600160a01b0319166001600160a01b0392909216919091179055565b6104b1610b3a565b600180546001600160a01b0319166001600160a01b0392909216919091179055565b6104db610b3a565b6001546040516000916001600160a01b03169047908381818185875af1925050503d8060008114610528576040519150601f19603f3d011682016040523d82523d6000602084013e61052d565b606091505b505090508061053b57600080fd5b50565b610546610b3a565b600255565b610553610b3a565b600392909255600455600555565b610569610b3a565b6105736000610b94565b565b61057d610b3a565b600a55565b60006008546007546006546105979190610da0565b6105a19190610da0565b905090565b3233146105fa5760405162461bcd60e51b815260206004820152601f60248201527f5468652063616c6c657220697320616e6f7468657220636f6e74726163742e0060448201526064015b60405180910390fd5b60095460ff16156106465760405162461bcd60e51b81526020600482015260166024820152751d1a194818dbdb9d1c9858dd081a5cc81c185d5cd95960521b60448201526064016105f1565b61064e610aaf565b610656610582565b610661906001610da0565b11156106a85760405162461bcd60e51b81526020600482015260166024820152751b585e08139195081b1a5b5a5d08195e18d95959195960521b60448201526064016105f1565b3460025411156106ef5760405162461bcd60e51b8152602060048201526012602482015271696e73756666696369656e742066756e647360701b60448201526064016105f1565b6040516bffffffffffffffffffffffff193360601b16602082015260348101849052600090819060540160405160208183030381529060405280519060200120905061077284848080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050600a549150849050610be4565b6107be5760405162461bcd60e51b815260206004820152601760248201527f75736572206973206e6f7420616c6c6f776c697374656400000000000000000060448201526064016105f1565b336000908152600b60205260409020548592506107db9083610db3565b6001111561082b5760405162461bcd60e51b815260206004820152601c60248201527f6d6178204e46542070657220616464726573732065786365656465640000000060448201526064016105f1565b336000908152600b6020526040812080546001929061084b908490610da0565b909155506000905061085b610582565b610863610aaf565b61086d9190610db3565b905060008142336040516020016108a092919091825260601b6bffffffffffffffffffffffff1916602082015260340190565b6040516020818303038152906040528051906020012060001c6108c39190610dc6565b90506006546003546108d59190610db3565b811015610965576001600660008282546108ef9190610da0565b9091555050600d54604051636f4d5e8d60e01b815233600482015260016024820152600060448201526001600160a01b0390911690636f4d5e8d906064015b600060405180830381600087803b15801561094857600080fd5b505af115801561095c573d6000803e3d6000fd5b50505050610a8b565b806006546003546109769190610db3565b111580156109ac575060075460045461098f9190610db3565b60065460035461099f9190610db3565b6109a99190610da0565b81105b15610a07576001600760008282546109c49190610da0565b9091555050600d54604051636f4d5e8d60e01b815233600482015260016024820181905260448201526001600160a01b0390911690636f4d5e8d9060640161092e565b600160086000828254610a1a9190610da0565b9091555050600d54604051636f4d5e8d60e01b815233600482015260016024820152600260448201526001600160a01b0390911690636f4d5e8d90606401600060405180830381600087803b158015610a7257600080fd5b505af1158015610a86573d6000803e3d6000fd5b505050505b50505050505050565b610a9c610b3a565b6009805460ff1916911515919091179055565b60006005546004546003546105979190610da0565b610acc610b3a565b6001600160a01b038116610b315760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016105f1565b61053b81610b94565b6000546001600160a01b031633146105735760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016105f1565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600082610bf18584610bfa565b14949350505050565b600081815b8451811015610c3f57610c2b82868381518110610c1e57610c1e610de8565b6020026020010151610c49565b915080610c3781610dfe565b915050610bff565b5090505b92915050565b6000818310610c65576000828152602084905260409020610c74565b60008381526020839052604090205b9392505050565b600060208284031215610c8d57600080fd5b81356001600160a01b0381168114610c7457600080fd5b600060208284031215610cb657600080fd5b5035919050565b600080600060608486031215610cd257600080fd5b505081359360208301359350604090920135919050565b600080600060408486031215610cfe57600080fd5b83359250602084013567ffffffffffffffff80821115610d1d57600080fd5b818601915086601f830112610d3157600080fd5b813581811115610d4057600080fd5b8760208260051b8501011115610d5557600080fd5b6020830194508093505050509250925092565b600060208284031215610d7a57600080fd5b81358015158114610c7457600080fd5b634e487b7160e01b600052601160045260246000fd5b80820180821115610c4357610c43610d8a565b81810381811115610c4357610c43610d8a565b600082610de357634e487b7160e01b600052601260045260246000fd5b500690565b634e487b7160e01b600052603260045260246000fd5b600060018201610e1057610e10610d8a565b506001019056fea26469706673582212208a4142405f7a0180edecb2619dfef4fe383327c94333238109ca52e9c2b2992764736f6c63430008120033

Deployed Bytecode

0x6080604052600436106101815760003560e01c80636f42ebcf116100d1578063a2309ff81161008a578063d0abd1ad11610064578063d0abd1ad1461041e578063d5abeb0114610434578063f2fde38b14610449578063f6d228011461046957600080fd5b8063a2309ff8146103d6578063ba41b0c6146103eb578063bedb86fb146103fe57600080fd5b80636f42ebcf14610337578063715018a61461034d57806372193c5b1461036257806378b2e3a9146103785780637cb64759146103985780638da5cb5b146103b857600080fd5b80633ab1a4941161013e5780634c15b268116101185780634c15b268146102c157806350a8c639146102e15780635c975abb146102f757806363ff47231461032157600080fd5b80633ab1a494146102795780633ccfd60b1461029957806344a0d68a146102a157600080fd5b8063101e2be11461018657806313faede6146101c65780631581b600146101dc57806325656307146102145780632b4fd779146102415780632eb4a7ab14610263575b600080fd5b34801561019257600080fd5b506101b36101a1366004610c7b565b600c6020526000908152604090205481565b6040519081526020015b60405180910390f35b3480156101d257600080fd5b506101b360025481565b3480156101e857600080fd5b506001546101fc906001600160a01b031681565b6040516001600160a01b0390911681526020016101bd565b34801561022057600080fd5b506101b361022f366004610c7b565b600b6020526000908152604090205481565b34801561024d57600080fd5b5061026161025c366004610c7b565b61047f565b005b34801561026f57600080fd5b506101b3600a5481565b34801561028557600080fd5b50610261610294366004610c7b565b6104a9565b6102616104d3565b3480156102ad57600080fd5b506102616102bc366004610ca4565b61053e565b3480156102cd57600080fd5b506102616102dc366004610cbd565b61054b565b3480156102ed57600080fd5b506101b360045481565b34801561030357600080fd5b506009546103119060ff1681565b60405190151581526020016101bd565b34801561032d57600080fd5b506101b360075481565b34801561034357600080fd5b506101b360065481565b34801561035957600080fd5b50610261610561565b34801561036e57600080fd5b506101b360055481565b34801561038457600080fd5b50600d546101fc906001600160a01b031681565b3480156103a457600080fd5b506102616103b3366004610ca4565b610575565b3480156103c457600080fd5b506000546001600160a01b03166101fc565b3480156103e257600080fd5b506101b3610582565b6102616103f9366004610ce9565b6105a6565b34801561040a57600080fd5b50610261610419366004610d68565b610a94565b34801561042a57600080fd5b506101b360035481565b34801561044057600080fd5b506101b3610aaf565b34801561045557600080fd5b50610261610464366004610c7b565b610ac4565b34801561047557600080fd5b506101b360085481565b610487610b3a565b600d80546001600160a01b0319166001600160a01b0392909216919091179055565b6104b1610b3a565b600180546001600160a01b0319166001600160a01b0392909216919091179055565b6104db610b3a565b6001546040516000916001600160a01b03169047908381818185875af1925050503d8060008114610528576040519150601f19603f3d011682016040523d82523d6000602084013e61052d565b606091505b505090508061053b57600080fd5b50565b610546610b3a565b600255565b610553610b3a565b600392909255600455600555565b610569610b3a565b6105736000610b94565b565b61057d610b3a565b600a55565b60006008546007546006546105979190610da0565b6105a19190610da0565b905090565b3233146105fa5760405162461bcd60e51b815260206004820152601f60248201527f5468652063616c6c657220697320616e6f7468657220636f6e74726163742e0060448201526064015b60405180910390fd5b60095460ff16156106465760405162461bcd60e51b81526020600482015260166024820152751d1a194818dbdb9d1c9858dd081a5cc81c185d5cd95960521b60448201526064016105f1565b61064e610aaf565b610656610582565b610661906001610da0565b11156106a85760405162461bcd60e51b81526020600482015260166024820152751b585e08139195081b1a5b5a5d08195e18d95959195960521b60448201526064016105f1565b3460025411156106ef5760405162461bcd60e51b8152602060048201526012602482015271696e73756666696369656e742066756e647360701b60448201526064016105f1565b6040516bffffffffffffffffffffffff193360601b16602082015260348101849052600090819060540160405160208183030381529060405280519060200120905061077284848080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050600a549150849050610be4565b6107be5760405162461bcd60e51b815260206004820152601760248201527f75736572206973206e6f7420616c6c6f776c697374656400000000000000000060448201526064016105f1565b336000908152600b60205260409020548592506107db9083610db3565b6001111561082b5760405162461bcd60e51b815260206004820152601c60248201527f6d6178204e46542070657220616464726573732065786365656465640000000060448201526064016105f1565b336000908152600b6020526040812080546001929061084b908490610da0565b909155506000905061085b610582565b610863610aaf565b61086d9190610db3565b905060008142336040516020016108a092919091825260601b6bffffffffffffffffffffffff1916602082015260340190565b6040516020818303038152906040528051906020012060001c6108c39190610dc6565b90506006546003546108d59190610db3565b811015610965576001600660008282546108ef9190610da0565b9091555050600d54604051636f4d5e8d60e01b815233600482015260016024820152600060448201526001600160a01b0390911690636f4d5e8d906064015b600060405180830381600087803b15801561094857600080fd5b505af115801561095c573d6000803e3d6000fd5b50505050610a8b565b806006546003546109769190610db3565b111580156109ac575060075460045461098f9190610db3565b60065460035461099f9190610db3565b6109a99190610da0565b81105b15610a07576001600760008282546109c49190610da0565b9091555050600d54604051636f4d5e8d60e01b815233600482015260016024820181905260448201526001600160a01b0390911690636f4d5e8d9060640161092e565b600160086000828254610a1a9190610da0565b9091555050600d54604051636f4d5e8d60e01b815233600482015260016024820152600260448201526001600160a01b0390911690636f4d5e8d90606401600060405180830381600087803b158015610a7257600080fd5b505af1158015610a86573d6000803e3d6000fd5b505050505b50505050505050565b610a9c610b3a565b6009805460ff1916911515919091179055565b60006005546004546003546105979190610da0565b610acc610b3a565b6001600160a01b038116610b315760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016105f1565b61053b81610b94565b6000546001600160a01b031633146105735760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016105f1565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600082610bf18584610bfa565b14949350505050565b600081815b8451811015610c3f57610c2b82868381518110610c1e57610c1e610de8565b6020026020010151610c49565b915080610c3781610dfe565b915050610bff565b5090505b92915050565b6000818310610c65576000828152602084905260409020610c74565b60008381526020839052604090205b9392505050565b600060208284031215610c8d57600080fd5b81356001600160a01b0381168114610c7457600080fd5b600060208284031215610cb657600080fd5b5035919050565b600080600060608486031215610cd257600080fd5b505081359360208301359350604090920135919050565b600080600060408486031215610cfe57600080fd5b83359250602084013567ffffffffffffffff80821115610d1d57600080fd5b818601915086601f830112610d3157600080fd5b813581811115610d4057600080fd5b8760208260051b8501011115610d5557600080fd5b6020830194508093505050509250925092565b600060208284031215610d7a57600080fd5b81358015158114610c7457600080fd5b634e487b7160e01b600052601160045260246000fd5b80820180821115610c4357610c43610d8a565b81810381811115610c4357610c43610d8a565b600082610de357634e487b7160e01b600052601260045260246000fd5b500690565b634e487b7160e01b600052603260045260246000fd5b600060018201610e1057610e10610d8a565b506001019056fea26469706673582212208a4142405f7a0180edecb2619dfef4fe383327c94333238109ca52e9c2b2992764736f6c63430008120033

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.