ETH Price: $3,473.76 (-1.22%)
Gas: 5 Gwei

Contract

0x2ABBAf5687bE52ae179Fb65358baB4299D6b3829
 

Overview

ETH Balance

3 ETH

Eth Value

$10,421.29 (@ $3,473.76/ETH)

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Holder Claim203591702024-07-22 2:44:3525 hrs ago1721616275IN
0x2ABBAf56...99D6b3829
0 ETH0.002169097.88746557
Ticket Claim200091722024-06-03 5:21:1149 days ago1717392071IN
0x2ABBAf56...99D6b3829
0 ETH0.002037197.34915857
Holder Claim197415052024-04-26 19:07:5987 days ago1714158479IN
0x2ABBAf56...99D6b3829
0 ETH0.001620145.89107208
Ticket Claim194833892024-03-21 13:39:35123 days ago1711028375IN
0x2ABBAf56...99D6b3829
0 ETH0.008574530.93245557
Holder Claim192262602024-02-14 12:38:35159 days ago1707914315IN
0x2ABBAf56...99D6b3829
0 ETH0.0072922726.24962384
Ticket Claim191812082024-02-08 4:57:47165 days ago1707368267IN
0x2ABBAf56...99D6b3829
0 ETH0.0086261331.11871634
Ticket Claim191546332024-02-04 11:24:35169 days ago1707045875IN
0x2ABBAf56...99D6b3829
0 ETH0.0035409112.77382133
Holder Claim191103032024-01-29 6:09:23175 days ago1706508563IN
0x2ABBAf56...99D6b3829
0 ETH0.002158787.77052607
Holder Claim190905612024-01-26 11:45:11178 days ago1706269511IN
0x2ABBAf56...99D6b3829
0 ETH0.0059543821.43277502
Holder Claim190757962024-01-24 10:07:35180 days ago1706090855IN
0x2ABBAf56...99D6b3829
0 ETH0.0036560913.29408022
Kudasai190700062024-01-23 14:36:59181 days ago1706020619IN
0x2ABBAf56...99D6b3829
0.5 ETH0.0058313627.43553492
Kudasai190687782024-01-23 10:29:23181 days ago1706005763IN
0x2ABBAf56...99D6b3829
0.5 ETH0.0032902115.48045944
Kudasai190686602024-01-23 10:05:35181 days ago1706004335IN
0x2ABBAf56...99D6b3829
0.5 ETH0.0061458628.91490116
Kudasai190676302024-01-23 6:35:23181 days ago1705991723IN
0x2ABBAf56...99D6b3829
0.5 ETH0.002343911.1140549
Kudasai190665602024-01-23 2:59:23182 days ago1705978763IN
0x2ABBAf56...99D6b3829
0.5 ETH0.0021866610.28775044
Set Kudasai List...190657372024-01-23 0:13:35182 days ago1705968815IN
0x2ABBAf56...99D6b3829
0 ETH0.0004147611.31950618
Ticket Claim190267472024-01-17 12:55:59187 days ago1705496159IN
0x2ABBAf56...99D6b3829
0 ETH0.009189733.15176732
Holder Claim190085822024-01-15 0:03:35190 days ago1705277015IN
0x2ABBAf56...99D6b3829
0 ETH0.010111520.85000614
Holder Claim189848522024-01-11 16:24:59193 days ago1704990299IN
0x2ABBAf56...99D6b3829
0 ETH0.0153505655.81921516
Holder Claim189023932023-12-31 2:09:11205 days ago1703988551IN
0x2ABBAf56...99D6b3829
0 ETH0.0033728512.26415283
Holder Claim188896822023-12-29 7:13:35206 days ago1703834015IN
0x2ABBAf56...99D6b3829
0 ETH0.0068490924.90424608
Holder Claim188475362023-12-23 9:11:23212 days ago1703322683IN
0x2ABBAf56...99D6b3829
0 ETH0.0051817818.84249497
Holder Claim188219522023-12-19 19:03:47216 days ago1703012627IN
0x2ABBAf56...99D6b3829
0 ETH0.0158223557.53229106
Ticket Claim188005182023-12-16 18:51:35219 days ago1702752695IN
0x2ABBAf56...99D6b3829
0 ETH0.0119400943.07379112
Holder Claim187984562023-12-16 11:53:47219 days ago1702727627IN
0x2ABBAf56...99D6b3829
0 ETH0.0087767931.91504587
View all transactions

Latest 4 internal transactions

Advanced mode:
Parent Transaction Hash Block From To
174896922023-06-16 3:20:59403 days ago1686885659
0x2ABBAf56...99D6b3829
8.5 ETH
162669882022-12-26 5:58:47574 days ago1672034327
0x2ABBAf56...99D6b3829
0.8 ETH
162543862022-12-24 11:46:23576 days ago1671882383
0x2ABBAf56...99D6b3829
0.6 ETH
162455862022-12-23 6:20:47577 days ago1671776447
0x2ABBAf56...99D6b3829
9.7 ETH
Loading...
Loading

Similar Match Source Code
This contract matches the deployed Bytecode of the Source Code for Contract 0x7A8841Ca...6E16d4B13
The constructor portion of the code might be different and could alter the actual behaviour of the contract

Contract Name:
KudasaiMinter

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
Yes with 1000 runs

Other Settings:
default evmVersion
File 1 of 6 : KudasaiMinter.sol
// SPDX-License-Identifier: MIT
//  ___   _  __   __  ______   _______  _______  _______  ___  
// |   | | ||  | |  ||      | |   _   ||       ||   _   ||   | 
// |   |_| ||  | |  ||  _    ||  |_|  ||  _____||  |_|  ||   | 
// |      _||  |_|  || | |   ||       || |_____ |       ||   | 
// |     |_ |       || |_|   ||       ||_____  ||       ||   | 
// |    _  ||       ||       ||   _   | _____| ||   _   ||   | 
// |___| |_||_______||______| |__| |__||_______||__| |__||___| 
//  __   __  ___   __    _  _______  _______  ______           
// |  |_|  ||   | |  |  | ||       ||       ||    _ |          
// |       ||   | |   |_| ||_     _||    ___||   | ||          
// |       ||   | |       |  |   |  |   |___ |   |_||_         
// |       ||   | |  _    |  |   |  |    ___||    __  |        
// | ||_|| ||   | | | |   |  |   |  |   |___ |   |  | |        
// |_|   |_||___| |_|  |__|  |___|  |_______||___|  |_|        

pragma solidity ^0.8.16;

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

interface Kudasai {
    function mintKudasai(address _to, uint256 _quantity) external;
    function mintReserve(address _to, uint256[] memory _ids) external;
}
interface Hidden {
    function check(address _to, uint256 _quantity, bytes32 _code) external view returns (bool);
}

contract KudasaiMinter is Ownable {
    mapping(address => mapping(uint256 => uint256)) public kudasaiCounter;
    uint256 public kantsuCounter;
    mapping(uint256 => bool) public kudasaiHolderClaimed;
    mapping(uint256 => bool) public ticketHolderClaimed;
    uint256 private immutable _maxWalletPerToken;
    address private immutable _onchainKudasai;
    address private immutable _ticketNFT;
    address private immutable _kudasaiNFT;
    address private _hidden;
    uint256 public proofRound;
    bytes32 public kudasaiListMerkleRoot;
    uint256 public mintCost = 0.1 ether;

    constructor(uint256 maxWalletPerToken_, address onchainKudasai_, address kudasaiNFT_, address ticketNFT_, bytes32 kudasaiListMerkleRoot_) {
        _maxWalletPerToken = maxWalletPerToken_;
        _onchainKudasai = onchainKudasai_;
        _kudasaiNFT = kudasaiNFT_;
        _ticketNFT = ticketNFT_;
        kudasaiListMerkleRoot = kudasaiListMerkleRoot_;
    }

    modifier validateKudasaiAddress(bytes32[] calldata _merkleProof) {
        bytes32 leaf = keccak256(abi.encodePacked(msg.sender));
        require(MerkleProof.verify(_merkleProof, kudasaiListMerkleRoot, leaf), "You are not a Kudasai list");
        _;
    }
    
    modifier onlyKudasaiHolder(uint256[] memory _ids) {
        for (uint256 i = 0; i < _ids.length; i++) {
            require(kudasaiHolderClaimed[_ids[i]] == false, "Already claimed");
            require(IERC721(address(_onchainKudasai)).ownerOf(_ids[i]) == msg.sender, "You do not have Kudasai NFTs");
            kudasaiHolderClaimed[_ids[i]] = true;
        }
        _;
    }
    
    modifier onlyTicketHolder(uint256[] memory _ids) {
        for (uint256 i = 0; i < _ids.length; i++) {
            require(ticketHolderClaimed[_ids[i]] == false, "Already claimed");
            require(IERC721(address(_ticketNFT)).ownerOf(_ids[i]) == msg.sender, "You do not have Kudasai NFTs");
            ticketHolderClaimed[_ids[i]] = true;
        }
        _;
    }

    modifier isNotContract() {
        require(tx.origin == msg.sender, "Reentrancy Guard is watching");
        _;
    }

    function setKudasaiListMerkleRoot(bytes32 _merkleRoot, uint256 _round, uint256 _mintCost) external onlyOwner {
        kudasaiListMerkleRoot = _merkleRoot;
        mintCost = _mintCost;
        proofRound = _round;
    }

    function setHidden(address _contract) external onlyOwner {
        _hidden = _contract;
    }

    function refreshHidden() external onlyOwner {
        _hidden = address(0);
    }

    function banbanban(uint256[] memory _ids) external onlyOwner {
        for (uint256 i = 0; i < _ids.length; i++) {
            kudasaiHolderClaimed[_ids[i]] = true;
        }
    }

    function agemasu(uint256[] memory _ids, uint256 _quantity) external onlyOwner {
        for (uint256 i = 0; i < _ids.length; i++) {
            address owner = IERC721(address(_onchainKudasai)).ownerOf(_ids[i]);
            Kudasai(_kudasaiNFT).mintKudasai(owner, _quantity);
        }
    }

    function kantsuEnable() view public returns(bool) {
        if (kantsuCounter < 10) {
            return true;
        }
        return false;
    }

    function kantsu(uint256 _quantity, bytes32 _code) external payable isNotContract {
        require(msg.value == mintCost * _quantity, "Mint cost is insufficient");
        require(_hidden != address(0) && Hidden(_hidden).check(msg.sender, _quantity, _code), "Your address is Blacklisted!");
        require(kudasaiCounter[msg.sender][proofRound] + _quantity <= _maxWalletPerToken, "No More Kudasai");
        require(kantsuEnable(), "No More Kantsu");

        kudasaiCounter[msg.sender][proofRound] += _quantity;
        kantsuCounter++;
        Kudasai(_kudasaiNFT).mintKudasai(msg.sender, _quantity);
    }

    function holderClaim(uint256[] memory _ids) external onlyKudasaiHolder(_ids) isNotContract {
        Kudasai(_kudasaiNFT).mintReserve(msg.sender, _ids);
        for (uint256 i = 0; i < _ids.length; i++) {
            IERC721(address(_onchainKudasai)).safeTransferFrom(msg.sender, address(0x000000000000000000000000000000000000dEaD), _ids[i]);
        }
    }

    function ticketClaim(uint256[] memory _ids) external onlyTicketHolder(_ids) isNotContract {
        Kudasai(_kudasaiNFT).mintKudasai(msg.sender, _ids.length);
        for (uint256 i = 0; i < _ids.length; i++) {
            IERC721(address(_ticketNFT)).safeTransferFrom(msg.sender, address(0x000000000000000000000000000000000000dEaD), _ids[i]);
        }
    }

    function kudasai(uint256 _quantity, bytes32[] calldata _proof) external payable validateKudasaiAddress(_proof) isNotContract {
        require(msg.value == mintCost * _quantity, "Mint cost is insufficient");
        require(kudasaiCounter[msg.sender][proofRound] + _quantity <= _maxWalletPerToken, "No More Kudasai");

        kudasaiCounter[msg.sender][proofRound] += _quantity;
        Kudasai(_kudasaiNFT).mintKudasai(msg.sender, _quantity);
    }

    function ownerMint(uint256 _quantity) external onlyOwner {
        Kudasai(_kudasaiNFT).mintKudasai(owner(), _quantity);
    }

    function withdrawETH() external onlyOwner {
        payable(owner()).transfer(address(this).balance);
    }
}

File 2 of 6 : 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 3 of 6 : 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 4 of 6 : 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 5 of 6 : 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 6 of 6 : 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": 1000
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"uint256","name":"maxWalletPerToken_","type":"uint256"},{"internalType":"address","name":"onchainKudasai_","type":"address"},{"internalType":"address","name":"kudasaiNFT_","type":"address"},{"internalType":"address","name":"ticketNFT_","type":"address"},{"internalType":"bytes32","name":"kudasaiListMerkleRoot_","type":"bytes32"}],"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":[{"internalType":"uint256[]","name":"_ids","type":"uint256[]"},{"internalType":"uint256","name":"_quantity","type":"uint256"}],"name":"agemasu","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_ids","type":"uint256[]"}],"name":"banbanban","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_ids","type":"uint256[]"}],"name":"holderClaim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_quantity","type":"uint256"},{"internalType":"bytes32","name":"_code","type":"bytes32"}],"name":"kantsu","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"kantsuCounter","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"kantsuEnable","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_quantity","type":"uint256"},{"internalType":"bytes32[]","name":"_proof","type":"bytes32[]"}],"name":"kudasai","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"kudasaiCounter","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"kudasaiHolderClaimed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"kudasaiListMerkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintCost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_quantity","type":"uint256"}],"name":"ownerMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"proofRound","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"refreshHidden","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_contract","type":"address"}],"name":"setHidden","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"},{"internalType":"uint256","name":"_round","type":"uint256"},{"internalType":"uint256","name":"_mintCost","type":"uint256"}],"name":"setKudasaiListMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_ids","type":"uint256[]"}],"name":"ticketClaim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"ticketHolderClaimed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawETH","outputs":[],"stateMutability":"nonpayable","type":"function"}]

Deployed Bytecode

0x6080604052600436106101755760003560e01c8063a5a4caf5116100cb578063bdb4b8481161007f578063ed8dcd8f11610059578063ed8dcd8f146103dc578063f19e75d4146103f1578063f2fde38b1461041157600080fd5b8063bdb4b8481461039e578063d02b9f63146103b4578063e086e5ec146103c757600080fd5b8063b4e33144116100b0578063b4e331441461033a578063b7b1ae0914610350578063ba44442d1461038857600080fd5b8063a5a4caf5146102fa578063a79892a01461031a57600080fd5b806338ba746f1161012d578063715018a611610107578063715018a61461029d5780638da5cb5b146102b257806397145273146102da57600080fd5b806338ba746f1461024a57806364febc381461025d578063672ef7721461027d57600080fd5b80630fd157471161015e5780630fd15747146101e357806314962764146102135780631b4692fc1461023557600080fd5b8063033f7d451461017a578063065e510f146101a3575b600080fd5b34801561018657600080fd5b5061019060025481565b6040519081526020015b60405180910390f35b3480156101af57600080fd5b506101d36101be36600461171b565b60046020526000908152604090205460ff1681565b604051901515815260200161019a565b3480156101ef57600080fd5b506101d36101fe36600461171b565b60036020526000908152604090205460ff1681565b34801561021f57600080fd5b5061023361022e366004611734565b610431565b005b34801561024157600080fd5b506101d361044a565b610233610258366004611760565b610463565b34801561026957600080fd5b50610233610278366004611890565b61072e565b34801561028957600080fd5b50610233610298366004611890565b610af8565b3480156102a957600080fd5b50610233610ea7565b3480156102be57600080fd5b506000546040516001600160a01b03909116815260200161019a565b3480156102e657600080fd5b506102336102f53660046118e2565b610ebb565b34801561030657600080fd5b50610233610315366004611890565b610ef2565b34801561032657600080fd5b506102336103353660046118ff565b610f62565b34801561034657600080fd5b5061019060075481565b34801561035c57600080fd5b5061019061036b366004611944565b600160209081526000928352604080842090915290825290205481565b34801561039457600080fd5b5061019060065481565b3480156103aa57600080fd5b5061019060085481565b6102336103c2366004611970565b6110bb565b3480156103d357600080fd5b50610233611410565b3480156103e857600080fd5b50610233611455565b3480156103fd57600080fd5b5061023361040c36600461171b565b61147c565b34801561041d57600080fd5b5061023361042c3660046118e2565b611540565b6104396115cd565b600792909255600891909155600655565b6000600a600254101561045d5750600190565b50600090565b6040516bffffffffffffffffffffffff193360601b166020820152829082906000906034016040516020818303038152906040528051906020012090506104e1838380806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506007549150849050611627565b6105325760405162461bcd60e51b815260206004820152601a60248201527f596f7520617265206e6f742061204b756461736169206c69737400000000000060448201526064015b60405180910390fd5b3233146105815760405162461bcd60e51b815260206004820152601c60248201527f5265656e7472616e6379204775617264206973207761746368696e67000000006044820152606401610529565b8560085461058f91906119a8565b34146105dd5760405162461bcd60e51b815260206004820152601960248201527f4d696e7420636f737420697320696e73756666696369656e74000000000000006044820152606401610529565b33600090815260016020908152604080832060065484529091529020547f0000000000000000000000000000000000000000000000000000000000000001906106279088906119bf565b11156106755760405162461bcd60e51b815260206004820152600f60248201527f4e6f204d6f7265204b75646173616900000000000000000000000000000000006044820152606401610529565b3360009081526001602090815260408083206006548452909152812080548892906106a19084906119bf565b9091555050604051630450ac2560e41b8152336004820152602481018790527f000000000000000000000000ecd0cbbdbfb07986e22981c8d78e17a9526058546001600160a01b03169063450ac25090604401600060405180830381600087803b15801561070e57600080fd5b505af1158015610722573d6000803e3d6000fd5b50505050505050505050565b8060005b815181101561091c5760036000838381518110610751576107516119d2565b60209081029190910181015182528101919091526040016000205460ff16156107bc5760405162461bcd60e51b815260206004820152600f60248201527f416c726561647920636c61696d656400000000000000000000000000000000006044820152606401610529565b336001600160a01b03167f0000000000000000000000003fa3bc4aa2874977130e5f4d92fd96a03367efbb6001600160a01b0316636352211e848481518110610807576108076119d2565b60200260200101516040518263ffffffff1660e01b815260040161082d91815260200190565b602060405180830381865afa15801561084a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061086e91906119e8565b6001600160a01b0316146108c45760405162461bcd60e51b815260206004820152601c60248201527f596f7520646f206e6f742068617665204b756461736169204e465473000000006044820152606401610529565b6001600360008484815181106108dc576108dc6119d2565b6020026020010151815260200190815260200160002060006101000a81548160ff021916908315150217905550808061091490611a05565b915050610732565b5032331461096c5760405162461bcd60e51b815260206004820152601c60248201527f5265656e7472616e6379204775617264206973207761746368696e67000000006044820152606401610529565b6040517fb1b46fc00000000000000000000000000000000000000000000000000000000081526001600160a01b037f000000000000000000000000ecd0cbbdbfb07986e22981c8d78e17a952605854169063b1b46fc0906109d39033908690600401611a1e565b600060405180830381600087803b1580156109ed57600080fd5b505af1158015610a01573d6000803e3d6000fd5b5050505060005b8251811015610af3577f0000000000000000000000003fa3bc4aa2874977130e5f4d92fd96a03367efbb6001600160a01b03166342842e0e3361dead868581518110610a5657610a566119d2565b60209081029190910101516040517fffffffff0000000000000000000000000000000000000000000000000000000060e086901b1681526001600160a01b0393841660048201529290911660248301526044820152606401600060405180830381600087803b158015610ac857600080fd5b505af1158015610adc573d6000803e3d6000fd5b505050508080610aeb90611a05565b915050610a08565b505050565b8060005b8151811015610ce65760046000838381518110610b1b57610b1b6119d2565b60209081029190910181015182528101919091526040016000205460ff1615610b865760405162461bcd60e51b815260206004820152600f60248201527f416c726561647920636c61696d656400000000000000000000000000000000006044820152606401610529565b336001600160a01b03167f000000000000000000000000a6ba2b2ab66d25cddaa6ea5dce24edd56da33a456001600160a01b0316636352211e848481518110610bd157610bd16119d2565b60200260200101516040518263ffffffff1660e01b8152600401610bf791815260200190565b602060405180830381865afa158015610c14573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c3891906119e8565b6001600160a01b031614610c8e5760405162461bcd60e51b815260206004820152601c60248201527f596f7520646f206e6f742068617665204b756461736169204e465473000000006044820152606401610529565b600160046000848481518110610ca657610ca66119d2565b6020026020010151815260200190815260200160002060006101000a81548160ff0219169083151502179055508080610cde90611a05565b915050610afc565b50323314610d365760405162461bcd60e51b815260206004820152601c60248201527f5265656e7472616e6379204775617264206973207761746368696e67000000006044820152606401610529565b8151604051630450ac2560e41b815233600482015260248101919091527f000000000000000000000000ecd0cbbdbfb07986e22981c8d78e17a9526058546001600160a01b03169063450ac25090604401600060405180830381600087803b158015610da157600080fd5b505af1158015610db5573d6000803e3d6000fd5b5050505060005b8251811015610af3577f000000000000000000000000a6ba2b2ab66d25cddaa6ea5dce24edd56da33a456001600160a01b03166342842e0e3361dead868581518110610e0a57610e0a6119d2565b60209081029190910101516040517fffffffff0000000000000000000000000000000000000000000000000000000060e086901b1681526001600160a01b0393841660048201529290911660248301526044820152606401600060405180830381600087803b158015610e7c57600080fd5b505af1158015610e90573d6000803e3d6000fd5b505050508080610e9f90611a05565b915050610dbc565b610eaf6115cd565b610eb9600061163d565b565b610ec36115cd565b6005805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b610efa6115cd565b60005b8151811015610f5e57600160036000848481518110610f1e57610f1e6119d2565b6020026020010151815260200190815260200160002060006101000a81548160ff0219169083151502179055508080610f5690611a05565b915050610efd565b5050565b610f6a6115cd565b60005b8251811015610af35760007f0000000000000000000000003fa3bc4aa2874977130e5f4d92fd96a03367efbb6001600160a01b0316636352211e858481518110610fb957610fb96119d2565b60200260200101516040518263ffffffff1660e01b8152600401610fdf91815260200190565b602060405180830381865afa158015610ffc573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061102091906119e8565b604051630450ac2560e41b81526001600160a01b038083166004830152602482018690529192507f000000000000000000000000ecd0cbbdbfb07986e22981c8d78e17a9526058549091169063450ac25090604401600060405180830381600087803b15801561108f57600080fd5b505af11580156110a3573d6000803e3d6000fd5b505050505080806110b390611a05565b915050610f6d565b32331461110a5760405162461bcd60e51b815260206004820152601c60248201527f5265656e7472616e6379204775617264206973207761746368696e67000000006044820152606401610529565b8160085461111891906119a8565b34146111665760405162461bcd60e51b815260206004820152601960248201527f4d696e7420636f737420697320696e73756666696369656e74000000000000006044820152606401610529565b6005546001600160a01b03161580159061120e57506005546040517f0c0d074900000000000000000000000000000000000000000000000000000000815233600482015260248101849052604481018390526001600160a01b0390911690630c0d074990606401602060405180830381865afa1580156111ea573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061120e9190611a75565b61125a5760405162461bcd60e51b815260206004820152601c60248201527f596f7572206164647265737320697320426c61636b6c697374656421000000006044820152606401610529565b33600090815260016020908152604080832060065484529091529020547f0000000000000000000000000000000000000000000000000000000000000001906112a49084906119bf565b11156112f25760405162461bcd60e51b815260206004820152600f60248201527f4e6f204d6f7265204b75646173616900000000000000000000000000000000006044820152606401610529565b6112fa61044a565b6113465760405162461bcd60e51b815260206004820152600e60248201527f4e6f204d6f7265204b616e7473750000000000000000000000000000000000006044820152606401610529565b3360009081526001602090815260408083206006548452909152812080548492906113729084906119bf565b90915550506002805490600061138783611a05565b9091555050604051630450ac2560e41b8152336004820152602481018390527f000000000000000000000000ecd0cbbdbfb07986e22981c8d78e17a9526058546001600160a01b03169063450ac25090604401600060405180830381600087803b1580156113f457600080fd5b505af1158015611408573d6000803e3d6000fd5b505050505050565b6114186115cd565b600080546040516001600160a01b03909116914780156108fc02929091818181858888f19350505050158015611452573d6000803e3d6000fd5b50565b61145d6115cd565b6005805473ffffffffffffffffffffffffffffffffffffffff19169055565b6114846115cd565b7f000000000000000000000000ecd0cbbdbfb07986e22981c8d78e17a9526058546001600160a01b031663450ac2506114c56000546001600160a01b031690565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e084901b1681526001600160a01b03909116600482015260248101849052604401600060405180830381600087803b15801561152557600080fd5b505af1158015611539573d6000803e3d6000fd5b5050505050565b6115486115cd565b6001600160a01b0381166115c45760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610529565b6114528161163d565b6000546001600160a01b03163314610eb95760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610529565b600082611634858461169a565b14949350505050565b600080546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600081815b84518110156116df576116cb828683815181106116be576116be6119d2565b60200260200101516116e9565b9150806116d781611a05565b91505061169f565b5090505b92915050565b6000818310611705576000828152602084905260409020611714565b60008381526020839052604090205b9392505050565b60006020828403121561172d57600080fd5b5035919050565b60008060006060848603121561174957600080fd5b505081359360208301359350604090920135919050565b60008060006040848603121561177557600080fd5b83359250602084013567ffffffffffffffff8082111561179457600080fd5b818601915086601f8301126117a857600080fd5b8135818111156117b757600080fd5b8760208260051b85010111156117cc57600080fd5b6020830194508093505050509250925092565b634e487b7160e01b600052604160045260246000fd5b600082601f83011261180657600080fd5b8135602067ffffffffffffffff80831115611823576118236117df565b8260051b604051601f19603f83011681018181108482111715611848576118486117df565b60405293845285810183019383810192508785111561186657600080fd5b83870191505b848210156118855781358352918301919083019061186c565b979650505050505050565b6000602082840312156118a257600080fd5b813567ffffffffffffffff8111156118b957600080fd5b6118c5848285016117f5565b949350505050565b6001600160a01b038116811461145257600080fd5b6000602082840312156118f457600080fd5b8135611714816118cd565b6000806040838503121561191257600080fd5b823567ffffffffffffffff81111561192957600080fd5b611935858286016117f5565b95602094909401359450505050565b6000806040838503121561195757600080fd5b8235611962816118cd565b946020939093013593505050565b6000806040838503121561198357600080fd5b50508035926020909101359150565b634e487b7160e01b600052601160045260246000fd5b80820281158282048414176116e3576116e3611992565b808201808211156116e3576116e3611992565b634e487b7160e01b600052603260045260246000fd5b6000602082840312156119fa57600080fd5b8151611714816118cd565b600060018201611a1757611a17611992565b5060010190565b6000604082016001600160a01b03851683526020604081850152818551808452606086019150828701935060005b81811015611a6857845183529383019391830191600101611a4c565b5090979650505050505050565b600060208284031215611a8757600080fd5b8151801515811461171457600080fdfea2646970667358221220d13c04429c6771be4f96c9bb89301a6f77039eb877a628e79f3c06743d31a49e64736f6c63430008110033

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  ]
[ 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.