ETH Price: $2,258.86 (-0.93%)
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

More Info

Private Name Tags

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Withdraw194382472024-03-15 5:24:35691 days ago1710480275IN
0x2874C718...7b3f3Ed7e
0 ETH0.0013195942.78707716
Mint Private193878602024-03-08 3:46:59698 days ago1709869619IN
0x2874C718...7b3f3Ed7e
0 ETH0.0011656440.74827372
Mint Public193862112024-03-07 22:15:11698 days ago1709849711IN
0x2874C718...7b3f3Ed7e
0.08 ETH0.0016296357.08397574
Set Stage193846722024-03-07 17:05:35698 days ago1709831135IN
0x2874C718...7b3f3Ed7e
0 ETH0.00319506129.22941847
Mint Public193837132024-03-07 13:52:23698 days ago1709819543IN
0x2874C718...7b3f3Ed7e
0.08 ETH0.014205374.2396338
Mint Public193836422024-03-07 13:38:11698 days ago1709818691IN
0x2874C718...7b3f3Ed7e
0.08 ETH0.0125711965.69943359
Mint Public193836362024-03-07 13:36:59698 days ago1709818619IN
0x2874C718...7b3f3Ed7e
0.08 ETH0.0120309862.87620195
Mint Public193836302024-03-07 13:35:47698 days ago1709818547IN
0x2874C718...7b3f3Ed7e
0.08 ETH0.0130327668.1116813
Mint Public193836262024-03-07 13:34:59698 days ago1709818499IN
0x2874C718...7b3f3Ed7e
0.08 ETH0.0122605764.07609204
Mint Public193836202024-03-07 13:33:47698 days ago1709818427IN
0x2874C718...7b3f3Ed7e
0.08 ETH0.0134605370.34730546
Mint Public193836112024-03-07 13:31:59698 days ago1709818319IN
0x2874C718...7b3f3Ed7e
0.08 ETH0.0139901173.11497383
Mint Public193836072024-03-07 13:31:11698 days ago1709818271IN
0x2874C718...7b3f3Ed7e
0.08 ETH0.013295169.48272393
Mint Public193836042024-03-07 13:30:35698 days ago1709818235IN
0x2874C718...7b3f3Ed7e
0.08 ETH0.0131498668.72366116
Mint Public193835972024-03-07 13:29:11698 days ago1709818151IN
0x2874C718...7b3f3Ed7e
0.08 ETH0.0129630667.74741826
Mint Public193835862024-03-07 13:26:59698 days ago1709818019IN
0x2874C718...7b3f3Ed7e
0.08 ETH0.0133208969.61754425
Mint Public193835782024-03-07 13:25:23698 days ago1709817923IN
0x2874C718...7b3f3Ed7e
0.08 ETH0.012994667.91224328
Mint Public193835402024-03-07 13:17:47698 days ago1709817467IN
0x2874C718...7b3f3Ed7e
0.08 ETH0.0112845158.97499268
Mint Public193834882024-03-07 13:07:23698 days ago1709816843IN
0x2874C718...7b3f3Ed7e
0.08 ETH0.0124582365.10908693
Mint Public193834122024-03-07 12:51:59698 days ago1709815919IN
0x2874C718...7b3f3Ed7e
0.08 ETH0.0114636959.91142199
Mint Public193834012024-03-07 12:49:47698 days ago1709815787IN
0x2874C718...7b3f3Ed7e
0.08 ETH0.0099294651.89325087
Mint Public193833832024-03-07 12:46:11698 days ago1709815571IN
0x2874C718...7b3f3Ed7e
0.08 ETH0.0103846654.27222763
Mint Public193833782024-03-07 12:45:11698 days ago1709815511IN
0x2874C718...7b3f3Ed7e
0.08 ETH0.008621245.0560686
Mint Public193833732024-03-07 12:44:11698 days ago1709815451IN
0x2874C718...7b3f3Ed7e
0.08 ETH0.0104572454.63329636
Mint Public193833642024-03-07 12:42:23698 days ago1709815343IN
0x2874C718...7b3f3Ed7e
0.08 ETH0.0107786656.33135684
Mint Public193833532024-03-07 12:40:11698 days ago1709815211IN
0x2874C718...7b3f3Ed7e
0.08 ETH0.0122329863.93192013
View all transactions

Latest 1 internal transaction

Advanced mode:
Parent Transaction Hash Method Block
From
To
Transfer194382472024-03-15 5:24:35691 days ago1710480275
0x2874C718...7b3f3Ed7e
175.38 ETH
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
MetaboltsMint

Compiler Version
v0.8.19+commit.7dd6d404

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.19;

/*
888b     d888          888             888               888 888             888b     d888 d8b          888    
8888b   d8888          888             888               888 888             8888b   d8888 Y8P          888    
88888b.d88888          888             888               888 888             88888b.d88888              888    
888Y88888P888  .d88b.  888888  8888b.  88888b.   .d88b.  888 888888 .d8888b  888Y88888P888 888 88888b.  888888 
888 Y888P 888 d8P  Y8b 888        "88b 888 "88b d88""88b 888 888    88K      888 Y888P 888 888 888 "88b 888    
888  Y8P  888 88888888 888    .d888888 888  888 888  888 888 888    "Y8888b. 888  Y8P  888 888 888  888 888    
888   "   888 Y8b.     Y88b.  888  888 888 d88P Y88..88P 888 Y88b.       X88 888   "   888 888 888  888 Y88b.  
888       888  "Y8888   "Y888 "Y888888 88888P"   "Y88P"  888  "Y888  88888P' 888       888 888 888  888  "Y888 
*/                                                                                                             


import "@openzeppelin/[email protected]/access/Ownable.sol";
import "@openzeppelin/[email protected]/utils/cryptography/ECDSA.sol";
import "@openzeppelin/[email protected]/security/ReentrancyGuard.sol";

import "./IMetabolts.sol";

contract MetaboltsMint is Ownable, ReentrancyGuard{
    using ECDSA for bytes32;
    
    address public signVerifier;
    address public nftAddress;
    uint256 public chainId;

    bool public isDeposit = false;
    bool public isPrivateMint = false;
    bool public isWhitelistMint = false;
    bool public isPublicMint = false;   

    mapping(uint256 => uint256) public adpassDeposit;
    mapping(address => uint256) public depositAddress;
    mapping(address => uint256) public claimAddress;
    mapping(address => uint256) public mintAddress;

    uint256 public adpassPrice = 0.06 ether;
    uint256 public privatePrice = 0.08 ether;
    uint256 public publicPrice = 0.1 ether;    

    uint256 private constant DEPOSITPRIVATE_SIGN = 1;
    uint256 private constant MINTWHITELIST_SIGN = 2;

    event DepositAp(address indexed _account, uint256 _count, uint256[] _adpassIds, uint256[] _adpassLv);
    event DepositPrivate(address indexed _account, uint256 _count);
    event MintPrivate(address indexed _account, uint256 _count);
    event MintWhitelist(address indexed _account, uint256 _count);
    event MintPublic(address indexed _account, uint256 _count);

    
    constructor(address _signVerifier, uint256 _chainId, address _nftAddress){
        signVerifier = _signVerifier;
        chainId = _chainId;
        nftAddress = _nftAddress;
    }

    receive() payable external {
    }

    // @dev Withdraws ethers
    // @param _walletAddress The wallet address
    function withdraw(address _walletAddress) external onlyOwner {
        uint256 balance = address(this).balance;
        payable(_walletAddress).transfer(balance);
    }

    // @dev ethers to claim NFTs
    // @param _adpassId The index of the adpass
    // @param _mintLv The level of the adpass
    // @param _sig The signature
    function depositAp(
        uint256[] memory _adpassIds,
        uint256[] memory _mintLv,
        bytes memory _sig
    ) payable external nonReentrant{
        require( isDeposit, "MetaboltsMint: deposit is not open");
        require(_adpassIds.length > 0, "MetaboltsMint: invalid adpass length");
        require(_adpassIds.length == _mintLv.length, "MetaboltsMint: invalid adpass length");
       
        bytes32 message = prefixed(keccak256(abi.encodePacked(msg.sender, _adpassIds, _mintLv, chainId, this)));
        require(recoverSigner(message, _sig) == signVerifier, "MetaboltsMint: invalid signature");

        for( uint256 i = 0; i < _adpassIds.length; i++){
            if( _mintLv[i] == 2 ){
                require( adpassDeposit[_adpassIds[i]] < 2, "MetaboltsMint: adpass already deposited");
            }else{
                require( adpassDeposit[_adpassIds[i]] < 1, "MetaboltsMint: adpass already deposited");
            }
            
            adpassDeposit[_adpassIds[i]]++;
        }
        
        uint256 totalPrice = _adpassIds.length * adpassPrice;

        depositAddress[msg.sender] += _adpassIds.length;
        mintAddress[msg.sender] += _adpassIds.length;
        
        IMetabolts(nftAddress).setPrivateCount(_adpassIds.length);

        require(msg.value >= totalPrice, "MetaboltsMint: invalid value");

        emit DepositAp(msg.sender, _adpassIds.length, _adpassIds, _mintLv);
    }

    // @dev ethers to claim NFTs
    // @param _sig The signature
    function depositPrivate(        
        bytes memory _sig
    ) payable external nonReentrant{
        require( isDeposit, "MetaboltsMint: deposit is not open");
       
        bytes32 message = prefixed(keccak256(abi.encodePacked(msg.sender, DEPOSITPRIVATE_SIGN, chainId, this)));
        require(recoverSigner(message, _sig) == signVerifier, "MetaboltsMint: invalid signature");

        require( depositAddress[msg.sender] < 1, "MetaboltsMint: invalid deposit address");

        depositAddress[msg.sender] += 1;
        mintAddress[msg.sender] += 1;
        
        IMetabolts(nftAddress).setPrivateCount(1);

        require(msg.value >= privatePrice, "MetaboltsMint: invalid value");

        emit DepositPrivate(msg.sender, 1);
    }

    // @dev Mints NFTs
    function mintPrivate() external nonReentrant {
        require(isPrivateMint, "MetaboltsMint: private mint is not open");
        require(depositAddress[msg.sender] > 0, "MetaboltsMint: invalid deposit address");
        
        uint256 claimCount = depositAddress[msg.sender];
        IMetabolts(nftAddress).mintMTBT(msg.sender, claimCount, claimCount);
        depositAddress[msg.sender] = 0;

        emit MintPrivate(msg.sender, claimCount);
    }

    // @dev Whitelist Mints NFTs
    // @param _sig The signature
    function mintWhitelist(bytes memory _sig) payable external nonReentrant{
        require(isWhitelistMint, "MetaboltsMint: whitelist mint is not open");
        
        bytes32 message = prefixed(keccak256(abi.encodePacked(msg.sender, MINTWHITELIST_SIGN, chainId, this)));
        require(recoverSigner(message, _sig) == signVerifier, "MetaboltsMint: invalid signature");

        _mintNft();

        emit MintWhitelist(msg.sender, 1);
    }

    // @dev Public Mints NFTs
    function mintPublic() payable external nonReentrant{
        require(isPublicMint, "MetaboltsMint: public mint is not open");

        _mintNft();

        emit MintPublic(msg.sender, 1);
    }

    // @dev Mints NFTs
    function _mintNft() internal {
        require(mintAddress[msg.sender] < 1, "MetaboltsMint: invalid mint address");
        require(msg.value >= publicPrice, "MetaboltsMint: invalid value");

        mintAddress[msg.sender] += 1;
        IMetabolts(nftAddress).mintMTBT(msg.sender, 1, 0);
    }

    // @dev Returns the status of the metabolts
    // @return The status of the metabolts
    function getMetaboltsMintStatus() external view returns(bool, bool, bool, bool, uint256){
        uint256 totalMinted = IMetabolts(nftAddress).reserveCount()+IMetabolts(nftAddress).privateCount()+IMetabolts(nftAddress).mintIndex();
        return (isDeposit, isPrivateMint, isWhitelistMint, isPublicMint, totalMinted);
    }

    // @dev Sets the mint price
    // @param _adpassPrice The adpass price
    // @param _privatePrice The private price
    // @param _publicPrice The public price
    function setMintPrice(uint256 _adpassPrice, uint256 _privatePrice, uint256 _publicPrice) external onlyOwner {
        adpassPrice = _adpassPrice;
        privatePrice = _privatePrice;
        publicPrice = _publicPrice;
    }

    // @dev Sets the stage
    // @param _isDeposit The activation of the deposit    
    // @param _isPrivateMint The activation of the claim
    // @param _isWhitelistMint The activation of the whitelist mint
    // @param _isPublicMint The activation of the public mint
    function setStage(bool _isDeposit, bool _isPrivateMint, bool _isWhitelistMint, bool _isPublicMint) external onlyOwner {
        isDeposit = _isDeposit;
        isPrivateMint = _isPrivateMint;
        isWhitelistMint = _isWhitelistMint;
        isPublicMint = _isPublicMint;
    }

    // @dev Sets a new signature verifier
    // @param verifier The verifier
    function setSignVerifier(address verifier) external onlyOwner {
        signVerifier = verifier;
    }

    // @dev Returns the signer of a message
    function recoverSigner(bytes32 message, bytes memory sig)
        public
        pure
    returns (address){
        uint8 v;
        bytes32 r;
        bytes32 s;
        (v, r, s) = splitSignature(sig);
        return ecrecover(message, v, r, s);
    }

    // @dev Splits a signature
    function splitSignature(bytes memory sig) 
        public
        pure 
    returns (uint8, bytes32, bytes32){
        require(sig.length == 65);

        bytes32 r;
        bytes32 s;
        uint8 v;

        assembly {
            // first 32 bytes, after the length prefix
            r := mload(add(sig, 32))
            // second 32 bytes
            s := mload(add(sig, 64))
            // final byte (first byte of the next 32 bytes)
            v := byte(0, mload(add(sig, 96)))
        }
    
        return (v, r, s);
    }

    // @dev Returns a prefixed hash
    function prefixed(bytes32 hash) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash));
    }
}

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.19;

interface IMetabolts {

    function mintMTBT(
        address _account, 
        uint256 _numberOfTokens, 
        uint256 _privateCount
    ) external;

    function setPrivateCount(
        uint256 _count
    ) external;

    function reserveCount() external view returns (uint256);
    function mintIndex() external view returns (uint256);
    function privateCount() external view returns (uint256);
    function startingIndex() external view returns (uint256);
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

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

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

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

    function _nonReentrantBefore() private {
        // On the first call to nonReentrant, _status will be _NOT_ENTERED
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

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

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

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

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/cryptography/ECDSA.sol)

pragma solidity ^0.8.0;

import "../Strings.sol";

/**
 * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.
 *
 * These functions can be used to verify that a message was signed by the holder
 * of the private keys of a given address.
 */
library ECDSA {
    enum RecoverError {
        NoError,
        InvalidSignature,
        InvalidSignatureLength,
        InvalidSignatureS,
        InvalidSignatureV // Deprecated in v4.8
    }

    function _throwError(RecoverError error) private pure {
        if (error == RecoverError.NoError) {
            return; // no error: do nothing
        } else if (error == RecoverError.InvalidSignature) {
            revert("ECDSA: invalid signature");
        } else if (error == RecoverError.InvalidSignatureLength) {
            revert("ECDSA: invalid signature length");
        } else if (error == RecoverError.InvalidSignatureS) {
            revert("ECDSA: invalid signature 's' value");
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature` or error string. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     *
     * Documentation for signature generation:
     * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js]
     * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers]
     *
     * _Available since v4.3._
     */
    function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) {
        if (signature.length == 65) {
            bytes32 r;
            bytes32 s;
            uint8 v;
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            /// @solidity memory-safe-assembly
            assembly {
                r := mload(add(signature, 0x20))
                s := mload(add(signature, 0x40))
                v := byte(0, mload(add(signature, 0x60)))
            }
            return tryRecover(hash, v, r, s);
        } else {
            return (address(0), RecoverError.InvalidSignatureLength);
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature`. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     */
    function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, signature);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately.
     *
     * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures]
     *
     * _Available since v4.3._
     */
    function tryRecover(bytes32 hash, bytes32 r, bytes32 vs) internal pure returns (address, RecoverError) {
        bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff);
        uint8 v = uint8((uint256(vs) >> 255) + 27);
        return tryRecover(hash, v, r, s);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately.
     *
     * _Available since v4.2._
     */
    function recover(bytes32 hash, bytes32 r, bytes32 vs) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, r, vs);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `v`,
     * `r` and `s` signature fields separately.
     *
     * _Available since v4.3._
     */
    function tryRecover(bytes32 hash, uint8 v, bytes32 r, bytes32 s) internal pure returns (address, RecoverError) {
        // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature
        // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines
        // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most
        // signatures from current libraries generate a unique signature with an s-value in the lower half order.
        //
        // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value
        // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or
        // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept
        // these malleable signatures as well.
        if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) {
            return (address(0), RecoverError.InvalidSignatureS);
        }

        // If the signature is valid (and not malleable), return the signer address
        address signer = ecrecover(hash, v, r, s);
        if (signer == address(0)) {
            return (address(0), RecoverError.InvalidSignature);
        }

        return (signer, RecoverError.NoError);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `v`,
     * `r` and `s` signature fields separately.
     */
    function recover(bytes32 hash, uint8 v, bytes32 r, bytes32 s) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, v, r, s);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from a `hash`. This
     * produces hash corresponding to the one signed with the
     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
     * JSON-RPC method as part of EIP-191.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32 message) {
        // 32 is the length in bytes of hash,
        // enforced by the type signature above
        /// @solidity memory-safe-assembly
        assembly {
            mstore(0x00, "\x19Ethereum Signed Message:\n32")
            mstore(0x1c, hash)
            message := keccak256(0x00, 0x3c)
        }
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from `s`. This
     * produces hash corresponding to the one signed with the
     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
     * JSON-RPC method as part of EIP-191.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s));
    }

    /**
     * @dev Returns an Ethereum Signed Typed Data, created from a
     * `domainSeparator` and a `structHash`. This produces hash corresponding
     * to the one signed with the
     * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`]
     * JSON-RPC method as part of EIP-712.
     *
     * See {recover}.
     */
    function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32 data) {
        /// @solidity memory-safe-assembly
        assembly {
            let ptr := mload(0x40)
            mstore(ptr, "\x19\x01")
            mstore(add(ptr, 0x02), domainSeparator)
            mstore(add(ptr, 0x22), structHash)
            data := keccak256(ptr, 0x42)
        }
    }

    /**
     * @dev Returns an Ethereum Signed Data with intended validator, created from a
     * `validator` and `data` according to the version 0 of EIP-191.
     *
     * See {recover}.
     */
    function toDataWithIntendedValidatorHash(address validator, bytes memory data) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19\x00", validator, data));
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.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. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby disabling any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _transferOwnership(address(0));
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        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);
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/Strings.sol)

pragma solidity ^0.8.0;

import "./math/Math.sol";
import "./math/SignedMath.sol";

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant _SYMBOLS = "0123456789abcdef";
    uint8 private constant _ADDRESS_LENGTH = 20;

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        unchecked {
            uint256 length = Math.log10(value) + 1;
            string memory buffer = new string(length);
            uint256 ptr;
            /// @solidity memory-safe-assembly
            assembly {
                ptr := add(buffer, add(32, length))
            }
            while (true) {
                ptr--;
                /// @solidity memory-safe-assembly
                assembly {
                    mstore8(ptr, byte(mod(value, 10), _SYMBOLS))
                }
                value /= 10;
                if (value == 0) break;
            }
            return buffer;
        }
    }

    /**
     * @dev Converts a `int256` to its ASCII `string` decimal representation.
     */
    function toString(int256 value) internal pure returns (string memory) {
        return string(abi.encodePacked(value < 0 ? "-" : "", toString(SignedMath.abs(value))));
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        unchecked {
            return toHexString(value, Math.log256(value) + 1);
        }
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
     */
    function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
        bytes memory buffer = new bytes(2 * length + 2);
        buffer[0] = "0";
        buffer[1] = "x";
        for (uint256 i = 2 * length + 1; i > 1; --i) {
            buffer[i] = _SYMBOLS[value & 0xf];
            value >>= 4;
        }
        require(value == 0, "Strings: hex length insufficient");
        return string(buffer);
    }

    /**
     * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation.
     */
    function toHexString(address addr) internal pure returns (string memory) {
        return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH);
    }

    /**
     * @dev Returns true if the two strings are equal.
     */
    function equal(string memory a, string memory b) internal pure returns (bool) {
        return keccak256(bytes(a)) == keccak256(bytes(b));
    }
}

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

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/SignedMath.sol)

pragma solidity ^0.8.0;

/**
 * @dev Standard signed math utilities missing in the Solidity language.
 */
library SignedMath {
    /**
     * @dev Returns the largest of two signed numbers.
     */
    function max(int256 a, int256 b) internal pure returns (int256) {
        return a > b ? a : b;
    }

    /**
     * @dev Returns the smallest of two signed numbers.
     */
    function min(int256 a, int256 b) internal pure returns (int256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two signed numbers without overflow.
     * The result is rounded towards zero.
     */
    function average(int256 a, int256 b) internal pure returns (int256) {
        // Formula from the book "Hacker's Delight"
        int256 x = (a & b) + ((a ^ b) >> 1);
        return x + (int256(uint256(x) >> 255) & (a ^ b));
    }

    /**
     * @dev Returns the absolute unsigned value of a signed value.
     */
    function abs(int256 n) internal pure returns (uint256) {
        unchecked {
            // must be unchecked in order to support `n = type(int256).min`
            return uint256(n >= 0 ? n : -n);
        }
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/math/Math.sol)

pragma solidity ^0.8.0;

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library Math {
    enum Rounding {
        Down, // Toward negative infinity
        Up, // Toward infinity
        Zero // Toward zero
    }

    /**
     * @dev Returns the largest of two numbers.
     */
    function max(uint256 a, uint256 b) internal pure returns (uint256) {
        return a > b ? a : b;
    }

    /**
     * @dev Returns the smallest of two numbers.
     */
    function min(uint256 a, uint256 b) internal pure returns (uint256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two numbers. The result is rounded towards
     * zero.
     */
    function average(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b) / 2 can overflow.
        return (a & b) + (a ^ b) / 2;
    }

    /**
     * @dev Returns the ceiling of the division of two numbers.
     *
     * This differs from standard division with `/` in that it rounds up instead
     * of rounding down.
     */
    function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b - 1) / b can overflow on addition, so we distribute.
        return a == 0 ? 0 : (a - 1) / b + 1;
    }

    /**
     * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0
     * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv)
     * with further edits by Uniswap Labs also under MIT license.
     */
    function mulDiv(uint256 x, uint256 y, uint256 denominator) internal pure returns (uint256 result) {
        unchecked {
            // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use
            // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256
            // variables such that product = prod1 * 2^256 + prod0.
            uint256 prod0; // Least significant 256 bits of the product
            uint256 prod1; // Most significant 256 bits of the product
            assembly {
                let mm := mulmod(x, y, not(0))
                prod0 := mul(x, y)
                prod1 := sub(sub(mm, prod0), lt(mm, prod0))
            }

            // Handle non-overflow cases, 256 by 256 division.
            if (prod1 == 0) {
                // Solidity will revert if denominator == 0, unlike the div opcode on its own.
                // The surrounding unchecked block does not change this fact.
                // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic.
                return prod0 / denominator;
            }

            // Make sure the result is less than 2^256. Also prevents denominator == 0.
            require(denominator > prod1, "Math: mulDiv overflow");

            ///////////////////////////////////////////////
            // 512 by 256 division.
            ///////////////////////////////////////////////

            // Make division exact by subtracting the remainder from [prod1 prod0].
            uint256 remainder;
            assembly {
                // Compute remainder using mulmod.
                remainder := mulmod(x, y, denominator)

                // Subtract 256 bit number from 512 bit number.
                prod1 := sub(prod1, gt(remainder, prod0))
                prod0 := sub(prod0, remainder)
            }

            // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1.
            // See https://cs.stackexchange.com/q/138556/92363.

            // Does not overflow because the denominator cannot be zero at this stage in the function.
            uint256 twos = denominator & (~denominator + 1);
            assembly {
                // Divide denominator by twos.
                denominator := div(denominator, twos)

                // Divide [prod1 prod0] by twos.
                prod0 := div(prod0, twos)

                // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.
                twos := add(div(sub(0, twos), twos), 1)
            }

            // Shift in bits from prod1 into prod0.
            prod0 |= prod1 * twos;

            // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such
            // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for
            // four bits. That is, denominator * inv = 1 mod 2^4.
            uint256 inverse = (3 * denominator) ^ 2;

            // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works
            // in modular arithmetic, doubling the correct bits in each step.
            inverse *= 2 - denominator * inverse; // inverse mod 2^8
            inverse *= 2 - denominator * inverse; // inverse mod 2^16
            inverse *= 2 - denominator * inverse; // inverse mod 2^32
            inverse *= 2 - denominator * inverse; // inverse mod 2^64
            inverse *= 2 - denominator * inverse; // inverse mod 2^128
            inverse *= 2 - denominator * inverse; // inverse mod 2^256

            // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.
            // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is
            // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1
            // is no longer required.
            result = prod0 * inverse;
            return result;
        }
    }

    /**
     * @notice Calculates x * y / denominator with full precision, following the selected rounding direction.
     */
    function mulDiv(uint256 x, uint256 y, uint256 denominator, Rounding rounding) internal pure returns (uint256) {
        uint256 result = mulDiv(x, y, denominator);
        if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) {
            result += 1;
        }
        return result;
    }

    /**
     * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down.
     *
     * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11).
     */
    function sqrt(uint256 a) internal pure returns (uint256) {
        if (a == 0) {
            return 0;
        }

        // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.
        //
        // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have
        // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.
        //
        // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`
        // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`
        // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`
        //
        // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.
        uint256 result = 1 << (log2(a) >> 1);

        // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,
        // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at
        // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision
        // into the expected uint128 result.
        unchecked {
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            return min(result, a / result);
        }
    }

    /**
     * @notice Calculates sqrt(a), following the selected rounding direction.
     */
    function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = sqrt(a);
            return result + (rounding == Rounding.Up && result * result < a ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 2, rounded down, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 128;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 64;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 32;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 16;
            }
            if (value >> 8 > 0) {
                value >>= 8;
                result += 8;
            }
            if (value >> 4 > 0) {
                value >>= 4;
                result += 4;
            }
            if (value >> 2 > 0) {
                value >>= 2;
                result += 2;
            }
            if (value >> 1 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 2, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log2(value);
            return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 10, rounded down, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >= 10 ** 64) {
                value /= 10 ** 64;
                result += 64;
            }
            if (value >= 10 ** 32) {
                value /= 10 ** 32;
                result += 32;
            }
            if (value >= 10 ** 16) {
                value /= 10 ** 16;
                result += 16;
            }
            if (value >= 10 ** 8) {
                value /= 10 ** 8;
                result += 8;
            }
            if (value >= 10 ** 4) {
                value /= 10 ** 4;
                result += 4;
            }
            if (value >= 10 ** 2) {
                value /= 10 ** 2;
                result += 2;
            }
            if (value >= 10 ** 1) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 10, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log10(value);
            return result + (rounding == Rounding.Up && 10 ** result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 256, rounded down, of a positive value.
     * Returns 0 if given 0.
     *
     * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.
     */
    function log256(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 16;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 8;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 4;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 2;
            }
            if (value >> 8 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 256, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log256(value);
            return result + (rounding == Rounding.Up && 1 << (result << 3) < value ? 1 : 0);
        }
    }
}

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

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"address","name":"_signVerifier","type":"address"},{"internalType":"uint256","name":"_chainId","type":"uint256"},{"internalType":"address","name":"_nftAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_account","type":"address"},{"indexed":false,"internalType":"uint256","name":"_count","type":"uint256"},{"indexed":false,"internalType":"uint256[]","name":"_adpassIds","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"_adpassLv","type":"uint256[]"}],"name":"DepositAp","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_account","type":"address"},{"indexed":false,"internalType":"uint256","name":"_count","type":"uint256"}],"name":"DepositPrivate","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_account","type":"address"},{"indexed":false,"internalType":"uint256","name":"_count","type":"uint256"}],"name":"MintPrivate","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_account","type":"address"},{"indexed":false,"internalType":"uint256","name":"_count","type":"uint256"}],"name":"MintPublic","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_account","type":"address"},{"indexed":false,"internalType":"uint256","name":"_count","type":"uint256"}],"name":"MintWhitelist","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"adpassDeposit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"adpassPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"chainId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"claimAddress","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"depositAddress","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_adpassIds","type":"uint256[]"},{"internalType":"uint256[]","name":"_mintLv","type":"uint256[]"},{"internalType":"bytes","name":"_sig","type":"bytes"}],"name":"depositAp","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"bytes","name":"_sig","type":"bytes"}],"name":"depositPrivate","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"getMetaboltsMintStatus","outputs":[{"internalType":"bool","name":"","type":"bool"},{"internalType":"bool","name":"","type":"bool"},{"internalType":"bool","name":"","type":"bool"},{"internalType":"bool","name":"","type":"bool"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isDeposit","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isPrivateMint","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isPublicMint","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isWhitelistMint","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"mintAddress","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintPrivate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"mintPublic","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"bytes","name":"_sig","type":"bytes"}],"name":"mintWhitelist","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"nftAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"privatePrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"message","type":"bytes32"},{"internalType":"bytes","name":"sig","type":"bytes"}],"name":"recoverSigner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_adpassPrice","type":"uint256"},{"internalType":"uint256","name":"_privatePrice","type":"uint256"},{"internalType":"uint256","name":"_publicPrice","type":"uint256"}],"name":"setMintPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"verifier","type":"address"}],"name":"setSignVerifier","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_isDeposit","type":"bool"},{"internalType":"bool","name":"_isPrivateMint","type":"bool"},{"internalType":"bool","name":"_isWhitelistMint","type":"bool"},{"internalType":"bool","name":"_isPublicMint","type":"bool"}],"name":"setStage","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"signVerifier","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes","name":"sig","type":"bytes"}],"name":"splitSignature","outputs":[{"internalType":"uint8","name":"","type":"uint8"},{"internalType":"bytes32","name":"","type":"bytes32"},{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_walletAddress","type":"address"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

60806040526005805463ffffffff1916905566d529ae9e860000600a5567011c37937e080000600b5567016345785d8a0000600c553480156200004157600080fd5b5060405162001be538038062001be5833981016040819052620000649162000118565b6200006f33620000ab565b60018055600280546001600160a01b039485166001600160a01b0319918216179091556004929092556003805491909316911617905562000159565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80516001600160a01b03811681146200011357600080fd5b919050565b6000806000606084860312156200012e57600080fd5b6200013984620000fb565b9250602084015191506200015060408501620000fb565b90509250925092565b611a7c80620001696000396000f3fe6080604052600436106101c65760003560e01c80638c874ebd116100f7578063a945bf8011610095578063d2d4481911610064578063d2d4481914610530578063ded356361461054f578063e8649f5814610562578063f2fde38b1461058257600080fd5b8063a945bf80146104ba578063af1e86c7146104d0578063b00425e1146104e3578063c754da331461051057600080fd5b8063989ea162116100d1578063989ea1621461040a5780639a8a05921461044f5780639c6c9a0114610465578063a7bb58031461047b57600080fd5b80638c874ebd146103c45780638da5cb5b146103cc57806397aba7f9146103ea57600080fd5b8063683e78d7116101645780637bc3b5ff1161013e5780637bc3b5ff1461033a5780637c3c7fd71461035457806383997a571461038157806387c0568b146103ae57600080fd5b8063683e78d7146102e55780636d7e978214610305578063715018a61461032557600080fd5b80633f249df0116101a05780633f249df01461023f57806351cff8d91461027a5780635bf8633a1461029a57806366af5228146102d257600080fd5b80633057931f146101d2578063319948ba146102085780633e28eae11461022a57600080fd5b366101cd57005b600080fd5b3480156101de57600080fd5b506005546101f3906301000000900460ff1681565b60405190151581526020015b60405180910390f35b34801561021457600080fd5b50610228610223366004611408565b6105a2565b005b34801561023657600080fd5b506102286105b8565b34801561024b57600080fd5b5061026c61025a366004611434565b60086020526000908152604090205481565b6040519081526020016101ff565b34801561028657600080fd5b50610228610295366004611434565b610731565b3480156102a657600080fd5b506003546102ba906001600160a01b031681565b6040516001600160a01b0390911681526020016101ff565b6102286102e036600461151b565b610776565b3480156102f157600080fd5b506002546102ba906001600160a01b031681565b34801561031157600080fd5b5061022861032036600461156d565b61099b565b34801561033157600080fd5b506102286109f1565b34801561034657600080fd5b506005546101f39060ff1681565b34801561036057600080fd5b5061026c61036f3660046115c1565b60066020526000908152604090205481565b34801561038d57600080fd5b5061026c61039c366004611434565b60096020526000908152604090205481565b3480156103ba57600080fd5b5061026c600b5481565b610228610a03565b3480156103d857600080fd5b506000546001600160a01b03166102ba565b3480156103f657600080fd5b506102ba6104053660046115da565b610aba565b34801561041657600080fd5b5061041f610b3a565b6040805195151586529315156020860152911515928401929092529015156060830152608082015260a0016101ff565b34801561045b57600080fd5b5061026c60045481565b34801561047157600080fd5b5061026c600a5481565b34801561048757600080fd5b5061049b61049636600461151b565b610ceb565b6040805160ff90941684526020840192909252908201526060016101ff565b3480156104c657600080fd5b5061026c600c5481565b6102286104de36600461151b565b610d1a565b3480156104ef57600080fd5b5061026c6104fe366004611434565b60076020526000908152604090205481565b34801561051c57600080fd5b506005546101f39062010000900460ff1681565b34801561053c57600080fd5b506005546101f390610100900460ff1681565b61022861055d3660046116a1565b610e25565b34801561056e57600080fd5b5061022861057d366004611434565b611146565b34801561058e57600080fd5b5061022861059d366004611434565b611170565b6105aa6111e6565b600a92909255600b55600c55565b6105c0611240565b600554610100900460ff1661062c5760405162461bcd60e51b815260206004820152602760248201527f4d657461626f6c74734d696e743a2070726976617465206d696e74206973206e60448201526637ba1037b832b760c91b60648201526084015b60405180910390fd5b336000908152600760205260409020546106585760405162461bcd60e51b815260040161062390611729565b3360008181526007602052604090819020546003549151630c746df560e41b815260048101939093526024830181905260448301819052916001600160a01b039091169063c746df5090606401600060405180830381600087803b1580156106bf57600080fd5b505af11580156106d3573d6000803e3d6000fd5b50503360008181526007602052604080822091909155519092507f5f2c98d8345f312ee9d419048892501922ce91e9488027ba729aeb25c514a313915061071d9084815260200190565b60405180910390a25061072f60018055565b565b6107396111e6565b60405147906001600160a01b0383169082156108fc029083906000818181858888f19350505050158015610771573d6000803e3d6000fd5b505050565b61077e611240565b60055460ff166107a05760405162461bcd60e51b81526004016106239061176f565b600061081f336001600454306040516020016107bf94939291906117b1565b60408051601f1981840301815282825280516020918201207f19457468657265756d205369676e6564204d6573736167653a0a33320000000084830152603c8085019190915282518085039091018152605c909301909152815191012090565b6002549091506001600160a01b03166108388284610aba565b6001600160a01b03161461085e5760405162461bcd60e51b8152600401610623906117e7565b3360009081526007602052604090205460011161088d5760405162461bcd60e51b815260040161062390611729565b3360009081526007602052604081208054600192906108ad908490611832565b90915550503360009081526009602052604081208054600192906108d2908490611832565b9091555050600354604051634845546b60e11b8152600160048201526001600160a01b039091169063908aa8d690602401600060405180830381600087803b15801561091d57600080fd5b505af1158015610931573d6000803e3d6000fd5b50505050600b543410156109575760405162461bcd60e51b815260040161062390611845565b6040516001815233907f6da6f6c1c8cc962def6f703276d6811f88f220609c3374f8aae4f8e452d64aea906020015b60405180910390a25061099860018055565b50565b6109a36111e6565b6005805461ffff191694151561ff00191694909417610100931515939093029290921763ffff00001916620100009115159190910263ff000000191617630100000091151591909102179055565b6109f96111e6565b61072f6000611299565b610a0b611240565b6005546301000000900460ff16610a735760405162461bcd60e51b815260206004820152602660248201527f4d657461626f6c74734d696e743a207075626c6963206d696e74206973206e6f6044820152653a1037b832b760d11b6064820152608401610623565b610a7b6112e9565b6040516001815233907f0615c0c48f3021bc9137e1071d4c1669eb7b35faed3a1b028dfd241b541b9c859060200160405180910390a261072f60018055565b600080600080610ac985610ceb565b6040805160008152602081018083528b905260ff8516918101919091526060810183905260808101829052929550909350915060019060a0016020604051602081039080840390855afa158015610b24573d6000803e3d6000fd5b5050506020604051035193505050505b92915050565b600080600080600080600360009054906101000a90046001600160a01b03166001600160a01b031663f74f9bfd6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610b96573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bba919061187c565b600360009054906101000a90046001600160a01b03166001600160a01b03166357f745446040518163ffffffff1660e01b8152600401602060405180830381865afa158015610c0d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c31919061187c565b600360009054906101000a90046001600160a01b03166001600160a01b03166316317c216040518163ffffffff1660e01b8152600401602060405180830381865afa158015610c84573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ca8919061187c565b610cb29190611832565b610cbc9190611832565b60055460ff80821699610100830482169950620100008304821698506301000000909204169550909350915050565b60008060008351604114610cfe57600080fd5b5050506020810151604082015160609092015160001a92909190565b610d22611240565b60055462010000900460ff16610d8c5760405162461bcd60e51b815260206004820152602960248201527f4d657461626f6c74734d696e743a2077686974656c697374206d696e74206973604482015268103737ba1037b832b760b91b6064820152608401610623565b6000610dab336002600454306040516020016107bf94939291906117b1565b6002549091506001600160a01b0316610dc48284610aba565b6001600160a01b031614610dea5760405162461bcd60e51b8152600401610623906117e7565b610df26112e9565b6040516001815233907fda47e427fb170a95b4539ea720c3caf8ad5a319335b1a85fb3a8db83a61159c090602001610986565b610e2d611240565b60055460ff16610e4f5760405162461bcd60e51b81526004016106239061176f565b6000835111610e705760405162461bcd60e51b815260040161062390611895565b8151835114610e915760405162461bcd60e51b815260040161062390611895565b6000610eb1338585600454306040516020016107bf95949392919061190c565b6002549091506001600160a01b0316610eca8284610aba565b6001600160a01b031614610ef05760405162461bcd60e51b8152600401610623906117e7565b60005b845181101561100f57838181518110610f0e57610f0e611957565b6020026020010151600203610f6e57600260066000878481518110610f3557610f35611957565b602002602001015181526020019081526020016000205410610f695760405162461bcd60e51b81526004016106239061196d565b610fba565b600160066000878481518110610f8657610f86611957565b602002602001015181526020019081526020016000205410610fba5760405162461bcd60e51b81526004016106239061196d565b60066000868381518110610fd057610fd0611957565b602002602001015181526020019081526020016000206000815480929190610ff7906119b4565b91905055508080611007906119b4565b915050610ef3565b506000600a54855161102191906119cd565b855133600090815260076020526040812080549394509192611044908490611832565b90915550508451336000908152600960205260408120805490919061106a908490611832565b90915550506003548551604051634845546b60e11b81526001600160a01b039092169163908aa8d6916110a39160040190815260200190565b600060405180830381600087803b1580156110bd57600080fd5b505af11580156110d1573d6000803e3d6000fd5b50505050803410156110f55760405162461bcd60e51b815260040161062390611845565b336001600160a01b03167f7fa94c965b6c0941c5a3cbe400965cde1ece32ab360c6717b5e4bb30bd2415318651878760405161113393929190611a11565b60405180910390a2505061077160018055565b61114e6111e6565b600280546001600160a01b0319166001600160a01b0392909216919091179055565b6111786111e6565b6001600160a01b0381166111dd5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610623565b61099881611299565b6000546001600160a01b0316331461072f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610623565b6002600154036112925760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610623565b6002600155565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b336000908152600960205260409020546001116113545760405162461bcd60e51b815260206004820152602360248201527f4d657461626f6c74734d696e743a20696e76616c6964206d696e74206164647260448201526265737360e81b6064820152608401610623565b600c543410156113765760405162461bcd60e51b815260040161062390611845565b336000908152600960205260408120805460019290611396908490611832565b9091555050600354604051630c746df560e41b815233600482015260016024820152600060448201526001600160a01b039091169063c746df5090606401600060405180830381600087803b1580156113ee57600080fd5b505af1158015611402573d6000803e3d6000fd5b50505050565b60008060006060848603121561141d57600080fd5b505081359360208301359350604090920135919050565b60006020828403121561144657600080fd5b81356001600160a01b038116811461145d57600080fd5b9392505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff811182821017156114a3576114a3611464565b604052919050565b600082601f8301126114bc57600080fd5b813567ffffffffffffffff8111156114d6576114d6611464565b6114e9601f8201601f191660200161147a565b8181528460208386010111156114fe57600080fd5b816020850160208301376000918101602001919091529392505050565b60006020828403121561152d57600080fd5b813567ffffffffffffffff81111561154457600080fd5b611550848285016114ab565b949350505050565b8035801515811461156857600080fd5b919050565b6000806000806080858703121561158357600080fd5b61158c85611558565b935061159a60208601611558565b92506115a860408601611558565b91506115b660608601611558565b905092959194509250565b6000602082840312156115d357600080fd5b5035919050565b600080604083850312156115ed57600080fd5b82359150602083013567ffffffffffffffff81111561160b57600080fd5b611617858286016114ab565b9150509250929050565b600082601f83011261163257600080fd5b8135602067ffffffffffffffff82111561164e5761164e611464565b8160051b61165d82820161147a565b928352848101820192828101908785111561167757600080fd5b83870192505b848310156116965782358252918301919083019061167d565b979650505050505050565b6000806000606084860312156116b657600080fd5b833567ffffffffffffffff808211156116ce57600080fd5b6116da87838801611621565b945060208601359150808211156116f057600080fd5b6116fc87838801611621565b9350604086013591508082111561171257600080fd5b5061171f868287016114ab565b9150509250925092565b60208082526026908201527f4d657461626f6c74734d696e743a20696e76616c6964206465706f736974206160408201526564647265737360d01b606082015260800190565b60208082526022908201527f4d657461626f6c74734d696e743a206465706f736974206973206e6f74206f7060408201526132b760f11b606082015260800190565b6bffffffffffffffffffffffff19606095861b811682526014820194909452603481019290925290921b16605482015260680190565b6020808252818101527f4d657461626f6c74734d696e743a20696e76616c6964207369676e6174757265604082015260600190565b634e487b7160e01b600052601160045260246000fd5b80820180821115610b3457610b3461181c565b6020808252601c908201527f4d657461626f6c74734d696e743a20696e76616c69642076616c756500000000604082015260600190565b60006020828403121561188e57600080fd5b5051919050565b60208082526024908201527f4d657461626f6c74734d696e743a20696e76616c696420616470617373206c656040820152630dccee8d60e31b606082015260800190565b60008151602080840160005b83811015611901578151875295820195908201906001016118e5565b509495945050505050565b60006bffffffffffffffffffffffff19808860601b16835261193a61193460148501896118d9565b876118d9565b94855260609390931b909216602084015250506034019392505050565b634e487b7160e01b600052603260045260246000fd5b60208082526027908201527f4d657461626f6c74734d696e743a2061647061737320616c72656164792064656040820152661c1bdcda5d195960ca1b606082015260800190565b6000600182016119c6576119c661181c565b5060010190565b8082028115828204841417610b3457610b3461181c565b805180835260209283019260009190808401838315611901578151875295820195908201906001016118e5565b838152606060208201526000611a2a60608301856119e4565b8281036040840152611a3c81856119e4565b969550505050505056fea2646970667358221220200048f0edebf604868bd3b04fb3d9c498bd12177a76c22b02468ffdbbb9074564736f6c63430008130033000000000000000000000000e90382e2c5df76013df8af89051797b3351da9ca000000000000000000000000000000000000000000000000000000000000000100000000000000000000000036267105d35e765f40c34d062bc569bf93eb810e

Deployed Bytecode

0x6080604052600436106101c65760003560e01c80638c874ebd116100f7578063a945bf8011610095578063d2d4481911610064578063d2d4481914610530578063ded356361461054f578063e8649f5814610562578063f2fde38b1461058257600080fd5b8063a945bf80146104ba578063af1e86c7146104d0578063b00425e1146104e3578063c754da331461051057600080fd5b8063989ea162116100d1578063989ea1621461040a5780639a8a05921461044f5780639c6c9a0114610465578063a7bb58031461047b57600080fd5b80638c874ebd146103c45780638da5cb5b146103cc57806397aba7f9146103ea57600080fd5b8063683e78d7116101645780637bc3b5ff1161013e5780637bc3b5ff1461033a5780637c3c7fd71461035457806383997a571461038157806387c0568b146103ae57600080fd5b8063683e78d7146102e55780636d7e978214610305578063715018a61461032557600080fd5b80633f249df0116101a05780633f249df01461023f57806351cff8d91461027a5780635bf8633a1461029a57806366af5228146102d257600080fd5b80633057931f146101d2578063319948ba146102085780633e28eae11461022a57600080fd5b366101cd57005b600080fd5b3480156101de57600080fd5b506005546101f3906301000000900460ff1681565b60405190151581526020015b60405180910390f35b34801561021457600080fd5b50610228610223366004611408565b6105a2565b005b34801561023657600080fd5b506102286105b8565b34801561024b57600080fd5b5061026c61025a366004611434565b60086020526000908152604090205481565b6040519081526020016101ff565b34801561028657600080fd5b50610228610295366004611434565b610731565b3480156102a657600080fd5b506003546102ba906001600160a01b031681565b6040516001600160a01b0390911681526020016101ff565b6102286102e036600461151b565b610776565b3480156102f157600080fd5b506002546102ba906001600160a01b031681565b34801561031157600080fd5b5061022861032036600461156d565b61099b565b34801561033157600080fd5b506102286109f1565b34801561034657600080fd5b506005546101f39060ff1681565b34801561036057600080fd5b5061026c61036f3660046115c1565b60066020526000908152604090205481565b34801561038d57600080fd5b5061026c61039c366004611434565b60096020526000908152604090205481565b3480156103ba57600080fd5b5061026c600b5481565b610228610a03565b3480156103d857600080fd5b506000546001600160a01b03166102ba565b3480156103f657600080fd5b506102ba6104053660046115da565b610aba565b34801561041657600080fd5b5061041f610b3a565b6040805195151586529315156020860152911515928401929092529015156060830152608082015260a0016101ff565b34801561045b57600080fd5b5061026c60045481565b34801561047157600080fd5b5061026c600a5481565b34801561048757600080fd5b5061049b61049636600461151b565b610ceb565b6040805160ff90941684526020840192909252908201526060016101ff565b3480156104c657600080fd5b5061026c600c5481565b6102286104de36600461151b565b610d1a565b3480156104ef57600080fd5b5061026c6104fe366004611434565b60076020526000908152604090205481565b34801561051c57600080fd5b506005546101f39062010000900460ff1681565b34801561053c57600080fd5b506005546101f390610100900460ff1681565b61022861055d3660046116a1565b610e25565b34801561056e57600080fd5b5061022861057d366004611434565b611146565b34801561058e57600080fd5b5061022861059d366004611434565b611170565b6105aa6111e6565b600a92909255600b55600c55565b6105c0611240565b600554610100900460ff1661062c5760405162461bcd60e51b815260206004820152602760248201527f4d657461626f6c74734d696e743a2070726976617465206d696e74206973206e60448201526637ba1037b832b760c91b60648201526084015b60405180910390fd5b336000908152600760205260409020546106585760405162461bcd60e51b815260040161062390611729565b3360008181526007602052604090819020546003549151630c746df560e41b815260048101939093526024830181905260448301819052916001600160a01b039091169063c746df5090606401600060405180830381600087803b1580156106bf57600080fd5b505af11580156106d3573d6000803e3d6000fd5b50503360008181526007602052604080822091909155519092507f5f2c98d8345f312ee9d419048892501922ce91e9488027ba729aeb25c514a313915061071d9084815260200190565b60405180910390a25061072f60018055565b565b6107396111e6565b60405147906001600160a01b0383169082156108fc029083906000818181858888f19350505050158015610771573d6000803e3d6000fd5b505050565b61077e611240565b60055460ff166107a05760405162461bcd60e51b81526004016106239061176f565b600061081f336001600454306040516020016107bf94939291906117b1565b60408051601f1981840301815282825280516020918201207f19457468657265756d205369676e6564204d6573736167653a0a33320000000084830152603c8085019190915282518085039091018152605c909301909152815191012090565b6002549091506001600160a01b03166108388284610aba565b6001600160a01b03161461085e5760405162461bcd60e51b8152600401610623906117e7565b3360009081526007602052604090205460011161088d5760405162461bcd60e51b815260040161062390611729565b3360009081526007602052604081208054600192906108ad908490611832565b90915550503360009081526009602052604081208054600192906108d2908490611832565b9091555050600354604051634845546b60e11b8152600160048201526001600160a01b039091169063908aa8d690602401600060405180830381600087803b15801561091d57600080fd5b505af1158015610931573d6000803e3d6000fd5b50505050600b543410156109575760405162461bcd60e51b815260040161062390611845565b6040516001815233907f6da6f6c1c8cc962def6f703276d6811f88f220609c3374f8aae4f8e452d64aea906020015b60405180910390a25061099860018055565b50565b6109a36111e6565b6005805461ffff191694151561ff00191694909417610100931515939093029290921763ffff00001916620100009115159190910263ff000000191617630100000091151591909102179055565b6109f96111e6565b61072f6000611299565b610a0b611240565b6005546301000000900460ff16610a735760405162461bcd60e51b815260206004820152602660248201527f4d657461626f6c74734d696e743a207075626c6963206d696e74206973206e6f6044820152653a1037b832b760d11b6064820152608401610623565b610a7b6112e9565b6040516001815233907f0615c0c48f3021bc9137e1071d4c1669eb7b35faed3a1b028dfd241b541b9c859060200160405180910390a261072f60018055565b600080600080610ac985610ceb565b6040805160008152602081018083528b905260ff8516918101919091526060810183905260808101829052929550909350915060019060a0016020604051602081039080840390855afa158015610b24573d6000803e3d6000fd5b5050506020604051035193505050505b92915050565b600080600080600080600360009054906101000a90046001600160a01b03166001600160a01b031663f74f9bfd6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610b96573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bba919061187c565b600360009054906101000a90046001600160a01b03166001600160a01b03166357f745446040518163ffffffff1660e01b8152600401602060405180830381865afa158015610c0d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c31919061187c565b600360009054906101000a90046001600160a01b03166001600160a01b03166316317c216040518163ffffffff1660e01b8152600401602060405180830381865afa158015610c84573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ca8919061187c565b610cb29190611832565b610cbc9190611832565b60055460ff80821699610100830482169950620100008304821698506301000000909204169550909350915050565b60008060008351604114610cfe57600080fd5b5050506020810151604082015160609092015160001a92909190565b610d22611240565b60055462010000900460ff16610d8c5760405162461bcd60e51b815260206004820152602960248201527f4d657461626f6c74734d696e743a2077686974656c697374206d696e74206973604482015268103737ba1037b832b760b91b6064820152608401610623565b6000610dab336002600454306040516020016107bf94939291906117b1565b6002549091506001600160a01b0316610dc48284610aba565b6001600160a01b031614610dea5760405162461bcd60e51b8152600401610623906117e7565b610df26112e9565b6040516001815233907fda47e427fb170a95b4539ea720c3caf8ad5a319335b1a85fb3a8db83a61159c090602001610986565b610e2d611240565b60055460ff16610e4f5760405162461bcd60e51b81526004016106239061176f565b6000835111610e705760405162461bcd60e51b815260040161062390611895565b8151835114610e915760405162461bcd60e51b815260040161062390611895565b6000610eb1338585600454306040516020016107bf95949392919061190c565b6002549091506001600160a01b0316610eca8284610aba565b6001600160a01b031614610ef05760405162461bcd60e51b8152600401610623906117e7565b60005b845181101561100f57838181518110610f0e57610f0e611957565b6020026020010151600203610f6e57600260066000878481518110610f3557610f35611957565b602002602001015181526020019081526020016000205410610f695760405162461bcd60e51b81526004016106239061196d565b610fba565b600160066000878481518110610f8657610f86611957565b602002602001015181526020019081526020016000205410610fba5760405162461bcd60e51b81526004016106239061196d565b60066000868381518110610fd057610fd0611957565b602002602001015181526020019081526020016000206000815480929190610ff7906119b4565b91905055508080611007906119b4565b915050610ef3565b506000600a54855161102191906119cd565b855133600090815260076020526040812080549394509192611044908490611832565b90915550508451336000908152600960205260408120805490919061106a908490611832565b90915550506003548551604051634845546b60e11b81526001600160a01b039092169163908aa8d6916110a39160040190815260200190565b600060405180830381600087803b1580156110bd57600080fd5b505af11580156110d1573d6000803e3d6000fd5b50505050803410156110f55760405162461bcd60e51b815260040161062390611845565b336001600160a01b03167f7fa94c965b6c0941c5a3cbe400965cde1ece32ab360c6717b5e4bb30bd2415318651878760405161113393929190611a11565b60405180910390a2505061077160018055565b61114e6111e6565b600280546001600160a01b0319166001600160a01b0392909216919091179055565b6111786111e6565b6001600160a01b0381166111dd5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610623565b61099881611299565b6000546001600160a01b0316331461072f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610623565b6002600154036112925760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610623565b6002600155565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b336000908152600960205260409020546001116113545760405162461bcd60e51b815260206004820152602360248201527f4d657461626f6c74734d696e743a20696e76616c6964206d696e74206164647260448201526265737360e81b6064820152608401610623565b600c543410156113765760405162461bcd60e51b815260040161062390611845565b336000908152600960205260408120805460019290611396908490611832565b9091555050600354604051630c746df560e41b815233600482015260016024820152600060448201526001600160a01b039091169063c746df5090606401600060405180830381600087803b1580156113ee57600080fd5b505af1158015611402573d6000803e3d6000fd5b50505050565b60008060006060848603121561141d57600080fd5b505081359360208301359350604090920135919050565b60006020828403121561144657600080fd5b81356001600160a01b038116811461145d57600080fd5b9392505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff811182821017156114a3576114a3611464565b604052919050565b600082601f8301126114bc57600080fd5b813567ffffffffffffffff8111156114d6576114d6611464565b6114e9601f8201601f191660200161147a565b8181528460208386010111156114fe57600080fd5b816020850160208301376000918101602001919091529392505050565b60006020828403121561152d57600080fd5b813567ffffffffffffffff81111561154457600080fd5b611550848285016114ab565b949350505050565b8035801515811461156857600080fd5b919050565b6000806000806080858703121561158357600080fd5b61158c85611558565b935061159a60208601611558565b92506115a860408601611558565b91506115b660608601611558565b905092959194509250565b6000602082840312156115d357600080fd5b5035919050565b600080604083850312156115ed57600080fd5b82359150602083013567ffffffffffffffff81111561160b57600080fd5b611617858286016114ab565b9150509250929050565b600082601f83011261163257600080fd5b8135602067ffffffffffffffff82111561164e5761164e611464565b8160051b61165d82820161147a565b928352848101820192828101908785111561167757600080fd5b83870192505b848310156116965782358252918301919083019061167d565b979650505050505050565b6000806000606084860312156116b657600080fd5b833567ffffffffffffffff808211156116ce57600080fd5b6116da87838801611621565b945060208601359150808211156116f057600080fd5b6116fc87838801611621565b9350604086013591508082111561171257600080fd5b5061171f868287016114ab565b9150509250925092565b60208082526026908201527f4d657461626f6c74734d696e743a20696e76616c6964206465706f736974206160408201526564647265737360d01b606082015260800190565b60208082526022908201527f4d657461626f6c74734d696e743a206465706f736974206973206e6f74206f7060408201526132b760f11b606082015260800190565b6bffffffffffffffffffffffff19606095861b811682526014820194909452603481019290925290921b16605482015260680190565b6020808252818101527f4d657461626f6c74734d696e743a20696e76616c6964207369676e6174757265604082015260600190565b634e487b7160e01b600052601160045260246000fd5b80820180821115610b3457610b3461181c565b6020808252601c908201527f4d657461626f6c74734d696e743a20696e76616c69642076616c756500000000604082015260600190565b60006020828403121561188e57600080fd5b5051919050565b60208082526024908201527f4d657461626f6c74734d696e743a20696e76616c696420616470617373206c656040820152630dccee8d60e31b606082015260800190565b60008151602080840160005b83811015611901578151875295820195908201906001016118e5565b509495945050505050565b60006bffffffffffffffffffffffff19808860601b16835261193a61193460148501896118d9565b876118d9565b94855260609390931b909216602084015250506034019392505050565b634e487b7160e01b600052603260045260246000fd5b60208082526027908201527f4d657461626f6c74734d696e743a2061647061737320616c72656164792064656040820152661c1bdcda5d195960ca1b606082015260800190565b6000600182016119c6576119c661181c565b5060010190565b8082028115828204841417610b3457610b3461181c565b805180835260209283019260009190808401838315611901578151875295820195908201906001016118e5565b838152606060208201526000611a2a60608301856119e4565b8281036040840152611a3c81856119e4565b969550505050505056fea2646970667358221220200048f0edebf604868bd3b04fb3d9c498bd12177a76c22b02468ffdbbb9074564736f6c63430008130033

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

000000000000000000000000e90382e2c5df76013df8af89051797b3351da9ca000000000000000000000000000000000000000000000000000000000000000100000000000000000000000036267105d35e765f40c34d062bc569bf93eb810e

-----Decoded View---------------
Arg [0] : _signVerifier (address): 0xE90382E2c5dF76013Df8aF89051797b3351dA9CA
Arg [1] : _chainId (uint256): 1
Arg [2] : _nftAddress (address): 0x36267105D35e765f40c34D062bC569bF93Eb810e

-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 000000000000000000000000e90382e2c5df76013df8af89051797b3351da9ca
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [2] : 00000000000000000000000036267105d35e765f40c34d062bc569bf93eb810e


Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading
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.