ETH Price: $2,412.78 (+1.25%)

Contract

0x692883f2e58359fA4019164B809fCF8646100C71
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Mint Presale145000802022-04-01 11:27:20917 days ago1648812440IN
0x692883f2...646100C71
0.5 ETH0.000973831.74587451
Mint Presale145000802022-04-01 11:27:20917 days ago1648812440IN
0x692883f2...646100C71
0.5 ETH0.0009741831.74587451
Mint Presale144040162022-03-17 12:28:31932 days ago1647520111IN
0x692883f2...646100C71
0.5 ETH0.0018840861.39676046
Mint Presale144040162022-03-17 12:28:31932 days ago1647520111IN
0x692883f2...646100C71
0.5 ETH0.0018840861.39676046
Mint Presale144040162022-03-17 12:28:31932 days ago1647520111IN
0x692883f2...646100C71
0.5 ETH0.0018840861.39676046
Mint Presale144040162022-03-17 12:28:31932 days ago1647520111IN
0x692883f2...646100C71
0.5 ETH0.0018840861.39676046
Mint Presale144040162022-03-17 12:28:31932 days ago1647520111IN
0x692883f2...646100C71
0.5 ETH0.0018840861.39676046
Mint Presale144040162022-03-17 12:28:31932 days ago1647520111IN
0x692883f2...646100C71
0.5 ETH0.0018840861.39676046
Mint Presale144040152022-03-17 12:28:10932 days ago1647520090IN
0x692883f2...646100C71
0.5 ETH0.0016923955.19346416
Mint Presale143956432022-03-16 5:07:08934 days ago1647407228IN
0x692883f2...646100C71
0.5 ETH0.0065786200
Mint Presale143956422022-03-16 5:07:03934 days ago1647407223IN
0x692883f2...646100C71
0.5 ETH0.0026467927.97796618
Mint Presale143956422022-03-16 5:07:03934 days ago1647407223IN
0x692883f2...646100C71
0.5 ETH0.0026471327.97796618
Mint Presale143956422022-03-16 5:07:03934 days ago1647407223IN
0x692883f2...646100C71
0.5 ETH0.0026471327.97796618
Mint Presale143956422022-03-16 5:07:03934 days ago1647407223IN
0x692883f2...646100C71
0.5 ETH0.0026465727.97796618
Mint Presale143956422022-03-16 5:07:03934 days ago1647407223IN
0x692883f2...646100C71
0.5 ETH0.0026465727.97796618
Mint Presale143956422022-03-16 5:07:03934 days ago1647407223IN
0x692883f2...646100C71
0.5 ETH0.0026471327.97796618
Mint Presale143956422022-03-16 5:07:03934 days ago1647407223IN
0x692883f2...646100C71
0.5 ETH0.0026465727.97796618
Mint Presale143956422022-03-16 5:07:03934 days ago1647407223IN
0x692883f2...646100C71
0.5 ETH0.0026471327.97796618
Mint Presale143956422022-03-16 5:07:03934 days ago1647407223IN
0x692883f2...646100C71
0.5 ETH0.0026471327.97796618
Mint Presale143956422022-03-16 5:07:03934 days ago1647407223IN
0x692883f2...646100C71
0.5 ETH0.0026465727.97796618
Mint Presale143956422022-03-16 5:07:03934 days ago1647407223IN
0x692883f2...646100C71
0.5 ETH0.0026465727.97796618
Mint Presale143956422022-03-16 5:07:03934 days ago1647407223IN
0x692883f2...646100C71
0.5 ETH0.0026465727.97796618
Mint Presale143956422022-03-16 5:07:03934 days ago1647407223IN
0x692883f2...646100C71
0.5 ETH0.0026465727.97796618
Mint Presale143956422022-03-16 5:07:03934 days ago1647407223IN
0x692883f2...646100C71
0.5 ETH0.0026465727.97796618
Mint Presale143956422022-03-16 5:07:03934 days ago1647407223IN
0x692883f2...646100C71
0.5 ETH0.0026471327.97796618
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block From To
143956422022-03-16 5:07:03934 days ago1647407223
0x692883f2...646100C71
0.5 ETH
143956422022-03-16 5:07:03934 days ago1647407223
0x692883f2...646100C71
0.5 ETH
143956422022-03-16 5:07:03934 days ago1647407223
0x692883f2...646100C71
0.5 ETH
143956422022-03-16 5:07:03934 days ago1647407223
0x692883f2...646100C71
0.5 ETH
143956422022-03-16 5:07:03934 days ago1647407223
0x692883f2...646100C71
0.5 ETH
143956422022-03-16 5:07:03934 days ago1647407223
0x692883f2...646100C71
0.5 ETH
143956422022-03-16 5:07:03934 days ago1647407223
0x692883f2...646100C71
0.5 ETH
143956422022-03-16 5:07:03934 days ago1647407223
0x692883f2...646100C71
0.5 ETH
143956422022-03-16 5:07:03934 days ago1647407223
0x692883f2...646100C71
0.5 ETH
143956422022-03-16 5:07:03934 days ago1647407223
0x692883f2...646100C71
0.5 ETH
143956422022-03-16 5:07:03934 days ago1647407223
0x692883f2...646100C71
0.5 ETH
143956422022-03-16 5:07:03934 days ago1647407223
0x692883f2...646100C71
0.5 ETH
143956422022-03-16 5:07:03934 days ago1647407223
0x692883f2...646100C71
0.5 ETH
143956422022-03-16 5:07:03934 days ago1647407223
0x692883f2...646100C71
0.5 ETH
143956422022-03-16 5:07:03934 days ago1647407223
0x692883f2...646100C71
0.5 ETH
143956422022-03-16 5:07:03934 days ago1647407223
0x692883f2...646100C71
0.5 ETH
143956422022-03-16 5:07:03934 days ago1647407223
0x692883f2...646100C71
0.5 ETH
143956422022-03-16 5:07:03934 days ago1647407223
0x692883f2...646100C71
0.5 ETH
143956422022-03-16 5:07:03934 days ago1647407223
0x692883f2...646100C71
0.5 ETH
143956422022-03-16 5:07:03934 days ago1647407223
0x692883f2...646100C71
0.5 ETH
143956422022-03-16 5:07:03934 days ago1647407223
0x692883f2...646100C71
0.5 ETH
143956422022-03-16 5:07:03934 days ago1647407223
0x692883f2...646100C71
0.5 ETH
143956422022-03-16 5:07:03934 days ago1647407223
0x692883f2...646100C71
0.5 ETH
143956422022-03-16 5:07:03934 days ago1647407223
0x692883f2...646100C71
0.5 ETH
143956422022-03-16 5:07:03934 days ago1647407223
0x692883f2...646100C71
0.5 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
WhiteSandsParcelPassPresaleMinter

Compiler Version
v0.8.12+commit.f00d7308

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license
/**
 *Submitted for verification at Etherscan.io on 2022-03-14
*/

// File: @openzeppelin/contracts/token/ERC721/IERC721Receiver.sol


// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721Receiver.sol)

pragma solidity ^0.8.0;

/**
 * @title ERC721 token receiver interface
 * @dev Interface for any contract that wants to support safeTransfers
 * from ERC721 asset contracts.
 */
interface IERC721Receiver {
    /**
     * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom}
     * by `operator` from `from`, this function is called.
     *
     * It must return its Solidity selector to confirm the token transfer.
     * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted.
     *
     * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`.
     */
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

// File: @openzeppelin/contracts/security/ReentrancyGuard.sol


// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

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

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

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

        _;

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

// File: @openzeppelin/contracts/utils/Strings.sol


// OpenZeppelin Contracts v4.4.1 (utils/Strings.sol)

pragma solidity ^0.8.0;

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        // Inspired by OraclizeAPI's implementation - MIT licence
        // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol

        if (value == 0) {
            return "0";
        }
        uint256 temp = value;
        uint256 digits;
        while (temp != 0) {
            digits++;
            temp /= 10;
        }
        bytes memory buffer = new bytes(digits);
        while (value != 0) {
            digits -= 1;
            buffer[digits] = bytes1(uint8(48 + uint256(value % 10)));
            value /= 10;
        }
        return string(buffer);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        if (value == 0) {
            return "0x00";
        }
        uint256 temp = value;
        uint256 length = 0;
        while (temp != 0) {
            length++;
            temp >>= 8;
        }
        return toHexString(value, length);
    }

    /**
     * @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] = _HEX_SYMBOLS[value & 0xf];
            value >>= 4;
        }
        require(value == 0, "Strings: hex length insufficient");
        return string(buffer);
    }
}

// File: @openzeppelin/contracts/utils/cryptography/ECDSA.sol


// OpenZeppelin Contracts (last updated v4.5.0) (utils/cryptography/ECDSA.sol)

pragma solidity ^0.8.0;


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

    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");
        } else if (error == RecoverError.InvalidSignatureV) {
            revert("ECDSA: invalid signature 'v' 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) {
        // Check the signature length
        // - case 65: r,s,v signature (standard)
        // - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._
        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.
            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 if (signature.length == 64) {
            bytes32 r;
            bytes32 vs;
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            assembly {
                r := mload(add(signature, 0x20))
                vs := mload(add(signature, 0x40))
            }
            return tryRecover(hash, r, vs);
        } 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 (v != 27 && v != 28) {
            return (address(0), RecoverError.InvalidSignatureV);
        }

        // 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) {
        // 32 is the length in bytes of hash,
        // enforced by the type signature above
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash));
    }

    /**
     * @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) {
        return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash));
    }
}

// File: @openzeppelin/contracts/utils/Context.sol


// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

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

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

// File: @openzeppelin/contracts/access/Ownable.sol


// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)

pragma solidity ^0.8.0;


/**
 * @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 Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        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: whitesandsPresaleMinter.sol


pragma solidity ^0.8.7;

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






interface IWhiteSandsNFT {
    function mintPresale(uint16 count,uint256 nonce,bytes calldata signature) external payable;
    function totalSupply() external view returns (uint256);
    function safeTransferFrom(address,address,uint256) external;
}

contract WhiteSandsParcelPassPresaleMinter is Ownable, IERC721Receiver, ReentrancyGuard {
    using ECDSA for bytes32;
    using Strings for uint256;
    bool public mintActive = false;

    mapping (address => uint) private presale; 
    address private signer;
    IWhiteSandsNFT public whiteSandsParcelPass;
    uint constant cost = 0.5 ether;

    constructor(IWhiteSandsNFT _whiteSandsParcelPass) {
        whiteSandsParcelPass = _whiteSandsParcelPass;
    }

    // ======== Admin functions ========

    function setmintActive(bool _active) external onlyOwner {
        mintActive = _active;
    }


    function setSigner(address _signer) external onlyOwner {
        signer = _signer;
    }

    function withdraw() external onlyOwner {
        uint balance = address(this).balance;
        payable(msg.sender).transfer(balance);
    }


    // ======== Public functions ========
    // Allows 1 mint per wallet only
    function mintPresale(uint16 count, uint256 maxTimestamp, bytes calldata _signature) external payable nonReentrant {
        count;
        require(msg.sender == tx.origin, "Only EOA");
        require(mintActive, "Mint is not active");
        require(block.timestamp <= maxTimestamp, "Signature expired");
        require(presale[msg.sender] == 0, "Already participated in the pre-sale");
        require(msg.value >= cost, "Insufficient funds");
        require(_verifySignerSignature(keccak256(abi.encode(address(this), msg.sender, maxTimestamp)), _signature), "Invalid signature");
        presale[msg.sender] = 1;
        whiteSandsParcelPass.mintPresale{value: cost}(1, 1, _signature);
        uint currTokenId = whiteSandsParcelPass.totalSupply();
        whiteSandsParcelPass.safeTransferFrom(address(this), msg.sender, currTokenId);
        if (msg.value > cost) {
            uint256 refund = msg.value - cost;
            // payable(msg.sender).transfer(refund);
            (bool status,) = payable(msg.sender).call{value : refund}("");
            require(status, "Failed to refund additional value");
        }

    }

    function onERC721Received(address operator, address from, uint256 tokenId, bytes calldata data) external override returns (bytes4) {
        operator;from;tokenId;data;
        return this.onERC721Received.selector;
    }

    // ======== Internal functions ========

    function _verifySignerSignature(bytes32 hash, bytes calldata signature) internal view returns(bool) {
        return hash.toEthSignedMessageHash().recover(signature) == signer;
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"contract IWhiteSandsNFT","name":"_whiteSandsParcelPass","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[],"name":"mintActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"count","type":"uint16"},{"internalType":"uint256","name":"maxTimestamp","type":"uint256"},{"internalType":"bytes","name":"_signature","type":"bytes"}],"name":"mintPresale","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"address","name":"from","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"onERC721Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_signer","type":"address"}],"name":"setSigner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_active","type":"bool"}],"name":"setmintActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"whiteSandsParcelPass","outputs":[{"internalType":"contract IWhiteSandsNFT","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040526002805460ff1916905534801561001a57600080fd5b50604051611063380380611063833981016040819052610039916100bb565b6100423361006b565b60018055600580546001600160a01b0319166001600160a01b03929092169190911790556100eb565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000602082840312156100cd57600080fd5b81516001600160a01b03811681146100e457600080fd5b9392505050565b610f69806100fa6000396000f3fe6080604052600436106100915760003560e01c80636c19e783116100595780636c19e78314610179578063715018a6146101995780638da5cb5b146101ae5780639eeaf9a2146101cc578063f2fde38b146101df57600080fd5b8063150b7a021461009657806325fd90f3146100e05780633ccfd60b1461010a57806343aff9be1461012157806359f04d4a14610141575b600080fd5b3480156100a257600080fd5b506100c26100b1366004610d33565b630a85bd0160e11b95945050505050565b6040516001600160e01b031990911681526020015b60405180910390f35b3480156100ec57600080fd5b506002546100fa9060ff1681565b60405190151581526020016100d7565b34801561011657600080fd5b5061011f6101ff565b005b34801561012d57600080fd5b5061011f61013c366004610da2565b610265565b34801561014d57600080fd5b50600554610161906001600160a01b031681565b6040516001600160a01b0390911681526020016100d7565b34801561018557600080fd5b5061011f610194366004610dcb565b6102a2565b3480156101a557600080fd5b5061011f6102ee565b3480156101ba57600080fd5b506000546001600160a01b0316610161565b61011f6101da366004610de6565b610324565b3480156101eb57600080fd5b5061011f6101fa366004610dcb565b6107b6565b6000546001600160a01b031633146102325760405162461bcd60e51b815260040161022990610e49565b60405180910390fd5b6040514790339082156108fc029083906000818181858888f19350505050158015610261573d6000803e3d6000fd5b5050565b6000546001600160a01b0316331461028f5760405162461bcd60e51b815260040161022990610e49565b6002805460ff1916911515919091179055565b6000546001600160a01b031633146102cc5760405162461bcd60e51b815260040161022990610e49565b600480546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b031633146103185760405162461bcd60e51b815260040161022990610e49565b6103226000610851565b565b600260015414156103775760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610229565b60026001553332146103b65760405162461bcd60e51b81526020600482015260086024820152674f6e6c7920454f4160c01b6044820152606401610229565b60025460ff166103fd5760405162461bcd60e51b81526020600482015260126024820152714d696e74206973206e6f742061637469766560701b6044820152606401610229565b824211156104415760405162461bcd60e51b815260206004820152601160248201527014da59db985d1d5c9948195e1c1a5c9959607a1b6044820152606401610229565b33600090815260036020526040902054156104aa5760405162461bcd60e51b8152602060048201526024808201527f416c72656164792070617274696369706174656420696e20746865207072652d60448201526373616c6560e01b6064820152608401610229565b6706f05b59d3b200003410156104f75760405162461bcd60e51b8152602060048201526012602482015271496e73756666696369656e742066756e647360701b6044820152606401610229565b60408051306020820152339181019190915260608101849052610534906080016040516020818303038152906040528051906020012083836108a1565b6105745760405162461bcd60e51b8152602060048201526011602482015270496e76616c6964207369676e617475726560781b6044820152606401610229565b33600090815260036020526040908190206001908190556005549151634f757cd160e11b81526001600160a01b0390921691639eeaf9a2916706f05b59d3b20000916105c99190819088908890600401610e7e565b6000604051808303818588803b1580156105e257600080fd5b505af11580156105f6573d6000803e3d6000fd5b50505050506000600560009054906101000a90046001600160a01b03166001600160a01b03166318160ddd6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610650573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106749190610ebf565b600554604051632142170760e11b8152306004820152336024820152604481018390529192506001600160a01b0316906342842e0e90606401600060405180830381600087803b1580156106c757600080fd5b505af11580156106db573d6000803e3d6000fd5b505050506706f05b59d3b200003411156107ab5760006107036706f05b59d3b2000034610eee565b604051909150600090339083908381818185875af1925050503d8060008114610748576040519150601f19603f3d011682016040523d82523d6000602084013e61074d565b606091505b50509050806107a85760405162461bcd60e51b815260206004820152602160248201527f4661696c656420746f20726566756e64206164646974696f6e616c2076616c756044820152606560f81b6064820152608401610229565b50505b505060018055505050565b6000546001600160a01b031633146107e05760405162461bcd60e51b815260040161022990610e49565b6001600160a01b0381166108455760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610229565b61084e81610851565b50565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600454604080516020601f85018190048102820181019092528381526000926001600160a01b0316916108fb919086908690819084018382808284376000920191909152506108f5925089915061090d9050565b90610960565b6001600160a01b031614949350505050565b6040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01604051602081830303815290604052805190602001209050919050565b600080600061096f8585610984565b9150915061097c816109f4565b509392505050565b6000808251604114156109bb5760208301516040840151606085015160001a6109af87828585610baf565b945094505050506109ed565b8251604014156109e557602083015160408401516109da868383610c9c565b9350935050506109ed565b506000905060025b9250929050565b6000816004811115610a0857610a08610f05565b1415610a115750565b6001816004811115610a2557610a25610f05565b1415610a735760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610229565b6002816004811115610a8757610a87610f05565b1415610ad55760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610229565b6003816004811115610ae957610ae9610f05565b1415610b425760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610229565b6004816004811115610b5657610b56610f05565b141561084e5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610229565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115610be65750600090506003610c93565b8460ff16601b14158015610bfe57508460ff16601c14155b15610c0f5750600090506004610c93565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015610c63573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116610c8c57600060019250925050610c93565b9150600090505b94509492505050565b6000806001600160ff1b03831681610cb960ff86901c601b610f1b565b9050610cc787828885610baf565b935093505050935093915050565b80356001600160a01b0381168114610cec57600080fd5b919050565b60008083601f840112610d0357600080fd5b50813567ffffffffffffffff811115610d1b57600080fd5b6020830191508360208285010111156109ed57600080fd5b600080600080600060808688031215610d4b57600080fd5b610d5486610cd5565b9450610d6260208701610cd5565b935060408601359250606086013567ffffffffffffffff811115610d8557600080fd5b610d9188828901610cf1565b969995985093965092949392505050565b600060208284031215610db457600080fd5b81358015158114610dc457600080fd5b9392505050565b600060208284031215610ddd57600080fd5b610dc482610cd5565b60008060008060608587031215610dfc57600080fd5b843561ffff81168114610e0e57600080fd5b935060208501359250604085013567ffffffffffffffff811115610e3157600080fd5b610e3d87828801610cf1565b95989497509550505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b61ffff8516815283602082015260606040820152816060820152818360808301376000818301608090810191909152601f909201601f191601019392505050565b600060208284031215610ed157600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b600082821015610f0057610f00610ed8565b500390565b634e487b7160e01b600052602160045260246000fd5b60008219821115610f2e57610f2e610ed8565b50019056fea2646970667358221220ff4dc14758138326b628d6d18800a783eadea8746f8384d348374f6cf3d4e14a64736f6c634300080c00330000000000000000000000007feb477600a03fd6ab1fe451cb3c7836a420f4ad

Deployed Bytecode

0x6080604052600436106100915760003560e01c80636c19e783116100595780636c19e78314610179578063715018a6146101995780638da5cb5b146101ae5780639eeaf9a2146101cc578063f2fde38b146101df57600080fd5b8063150b7a021461009657806325fd90f3146100e05780633ccfd60b1461010a57806343aff9be1461012157806359f04d4a14610141575b600080fd5b3480156100a257600080fd5b506100c26100b1366004610d33565b630a85bd0160e11b95945050505050565b6040516001600160e01b031990911681526020015b60405180910390f35b3480156100ec57600080fd5b506002546100fa9060ff1681565b60405190151581526020016100d7565b34801561011657600080fd5b5061011f6101ff565b005b34801561012d57600080fd5b5061011f61013c366004610da2565b610265565b34801561014d57600080fd5b50600554610161906001600160a01b031681565b6040516001600160a01b0390911681526020016100d7565b34801561018557600080fd5b5061011f610194366004610dcb565b6102a2565b3480156101a557600080fd5b5061011f6102ee565b3480156101ba57600080fd5b506000546001600160a01b0316610161565b61011f6101da366004610de6565b610324565b3480156101eb57600080fd5b5061011f6101fa366004610dcb565b6107b6565b6000546001600160a01b031633146102325760405162461bcd60e51b815260040161022990610e49565b60405180910390fd5b6040514790339082156108fc029083906000818181858888f19350505050158015610261573d6000803e3d6000fd5b5050565b6000546001600160a01b0316331461028f5760405162461bcd60e51b815260040161022990610e49565b6002805460ff1916911515919091179055565b6000546001600160a01b031633146102cc5760405162461bcd60e51b815260040161022990610e49565b600480546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b031633146103185760405162461bcd60e51b815260040161022990610e49565b6103226000610851565b565b600260015414156103775760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610229565b60026001553332146103b65760405162461bcd60e51b81526020600482015260086024820152674f6e6c7920454f4160c01b6044820152606401610229565b60025460ff166103fd5760405162461bcd60e51b81526020600482015260126024820152714d696e74206973206e6f742061637469766560701b6044820152606401610229565b824211156104415760405162461bcd60e51b815260206004820152601160248201527014da59db985d1d5c9948195e1c1a5c9959607a1b6044820152606401610229565b33600090815260036020526040902054156104aa5760405162461bcd60e51b8152602060048201526024808201527f416c72656164792070617274696369706174656420696e20746865207072652d60448201526373616c6560e01b6064820152608401610229565b6706f05b59d3b200003410156104f75760405162461bcd60e51b8152602060048201526012602482015271496e73756666696369656e742066756e647360701b6044820152606401610229565b60408051306020820152339181019190915260608101849052610534906080016040516020818303038152906040528051906020012083836108a1565b6105745760405162461bcd60e51b8152602060048201526011602482015270496e76616c6964207369676e617475726560781b6044820152606401610229565b33600090815260036020526040908190206001908190556005549151634f757cd160e11b81526001600160a01b0390921691639eeaf9a2916706f05b59d3b20000916105c99190819088908890600401610e7e565b6000604051808303818588803b1580156105e257600080fd5b505af11580156105f6573d6000803e3d6000fd5b50505050506000600560009054906101000a90046001600160a01b03166001600160a01b03166318160ddd6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610650573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106749190610ebf565b600554604051632142170760e11b8152306004820152336024820152604481018390529192506001600160a01b0316906342842e0e90606401600060405180830381600087803b1580156106c757600080fd5b505af11580156106db573d6000803e3d6000fd5b505050506706f05b59d3b200003411156107ab5760006107036706f05b59d3b2000034610eee565b604051909150600090339083908381818185875af1925050503d8060008114610748576040519150601f19603f3d011682016040523d82523d6000602084013e61074d565b606091505b50509050806107a85760405162461bcd60e51b815260206004820152602160248201527f4661696c656420746f20726566756e64206164646974696f6e616c2076616c756044820152606560f81b6064820152608401610229565b50505b505060018055505050565b6000546001600160a01b031633146107e05760405162461bcd60e51b815260040161022990610e49565b6001600160a01b0381166108455760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610229565b61084e81610851565b50565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600454604080516020601f85018190048102820181019092528381526000926001600160a01b0316916108fb919086908690819084018382808284376000920191909152506108f5925089915061090d9050565b90610960565b6001600160a01b031614949350505050565b6040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01604051602081830303815290604052805190602001209050919050565b600080600061096f8585610984565b9150915061097c816109f4565b509392505050565b6000808251604114156109bb5760208301516040840151606085015160001a6109af87828585610baf565b945094505050506109ed565b8251604014156109e557602083015160408401516109da868383610c9c565b9350935050506109ed565b506000905060025b9250929050565b6000816004811115610a0857610a08610f05565b1415610a115750565b6001816004811115610a2557610a25610f05565b1415610a735760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610229565b6002816004811115610a8757610a87610f05565b1415610ad55760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610229565b6003816004811115610ae957610ae9610f05565b1415610b425760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610229565b6004816004811115610b5657610b56610f05565b141561084e5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610229565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115610be65750600090506003610c93565b8460ff16601b14158015610bfe57508460ff16601c14155b15610c0f5750600090506004610c93565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015610c63573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116610c8c57600060019250925050610c93565b9150600090505b94509492505050565b6000806001600160ff1b03831681610cb960ff86901c601b610f1b565b9050610cc787828885610baf565b935093505050935093915050565b80356001600160a01b0381168114610cec57600080fd5b919050565b60008083601f840112610d0357600080fd5b50813567ffffffffffffffff811115610d1b57600080fd5b6020830191508360208285010111156109ed57600080fd5b600080600080600060808688031215610d4b57600080fd5b610d5486610cd5565b9450610d6260208701610cd5565b935060408601359250606086013567ffffffffffffffff811115610d8557600080fd5b610d9188828901610cf1565b969995985093965092949392505050565b600060208284031215610db457600080fd5b81358015158114610dc457600080fd5b9392505050565b600060208284031215610ddd57600080fd5b610dc482610cd5565b60008060008060608587031215610dfc57600080fd5b843561ffff81168114610e0e57600080fd5b935060208501359250604085013567ffffffffffffffff811115610e3157600080fd5b610e3d87828801610cf1565b95989497509550505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b61ffff8516815283602082015260606040820152816060820152818360808301376000818301608090810191909152601f909201601f191601019392505050565b600060208284031215610ed157600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b600082821015610f0057610f00610ed8565b500390565b634e487b7160e01b600052602160045260246000fd5b60008219821115610f2e57610f2e610ed8565b50019056fea2646970667358221220ff4dc14758138326b628d6d18800a783eadea8746f8384d348374f6cf3d4e14a64736f6c634300080c0033

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

0000000000000000000000007feb477600a03fd6ab1fe451cb3c7836a420f4ad

-----Decoded View---------------
Arg [0] : _whiteSandsParcelPass (address): 0x7feB477600a03fd6ab1fE451cB3c7836a420F4AD

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000007feb477600a03fd6ab1fe451cb3c7836a420f4ad


Deployed Bytecode Sourcemap

19271:2587:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;21392:224;;;;;;;;;;-1:-1:-1;21392:224:0;;;;;:::i;:::-;-1:-1:-1;;;21392:224:0;;;;;;;;;;;-1:-1:-1;;;;;;1337:33:1;;;1319:52;;1307:2;1292:18;21392:224:0;;;;;;;;19428:30;;;;;;;;;;-1:-1:-1;19428:30:0;;;;;;;;;;;1547:14:1;;1540:22;1522:41;;1510:2;1495:18;19428:30:0;1382:187:1;20001:142:0;;;;;;;;;;;;;:::i;:::-;;19798:95;;;;;;;;;;-1:-1:-1;19798:95:0;;;;;:::i;:::-;;:::i;19545:42::-;;;;;;;;;;-1:-1:-1;19545:42:0;;;;-1:-1:-1;;;;;19545:42:0;;;;;;-1:-1:-1;;;;;2038:32:1;;;2020:51;;2008:2;1993:18;19545:42:0;1852:225:1;19903:90:0;;;;;;;;;;-1:-1:-1;19903:90:0;;;;;:::i;:::-;;:::i;18054:103::-;;;;;;;;;;;;;:::i;17403:87::-;;;;;;;;;;-1:-1:-1;17449:7:0;17476:6;-1:-1:-1;;;;;17476:6:0;17403:87;;20234:1150;;;;;;:::i;:::-;;:::i;18312:201::-;;;;;;;;;;-1:-1:-1;18312:201:0;;;;;:::i;:::-;;:::i;20001:142::-;17449:7;17476:6;-1:-1:-1;;;;;17476:6:0;16207:10;17623:23;17615:68;;;;-1:-1:-1;;;17615:68:0;;;;;;;:::i;:::-;;;;;;;;;20098:37:::1;::::0;20066:21:::1;::::0;20106:10:::1;::::0;20098:37;::::1;;;::::0;20066:21;;20051:12:::1;20098:37:::0;20051:12;20098:37;20066:21;20106:10;20098:37;::::1;;;;;;;;;;;;;::::0;::::1;;;;;;20040:103;20001:142::o:0;19798:95::-;17449:7;17476:6;-1:-1:-1;;;;;17476:6:0;16207:10;17623:23;17615:68;;;;-1:-1:-1;;;17615:68:0;;;;;;;:::i;:::-;19865:10:::1;:20:::0;;-1:-1:-1;;19865:20:0::1;::::0;::::1;;::::0;;;::::1;::::0;;19798:95::o;19903:90::-;17449:7;17476:6;-1:-1:-1;;;;;17476:6:0;16207:10;17623:23;17615:68;;;;-1:-1:-1;;;17615:68:0;;;;;;;:::i;:::-;19969:6:::1;:16:::0;;-1:-1:-1;;;;;;19969:16:0::1;-1:-1:-1::0;;;;;19969:16:0;;;::::1;::::0;;;::::1;::::0;;19903:90::o;18054:103::-;17449:7;17476:6;-1:-1:-1;;;;;17476:6:0;16207:10;17623:23;17615:68;;;;-1:-1:-1;;;17615:68:0;;;;;;;:::i;:::-;18119:30:::1;18146:1;18119:18;:30::i;:::-;18054:103::o:0;20234:1150::-;2843:1;3441:7;;:19;;3433:63;;;;-1:-1:-1;;;3433:63:0;;3686:2:1;3433:63:0;;;3668:21:1;3725:2;3705:18;;;3698:30;3764:33;3744:18;;;3737:61;3815:18;;3433:63:0;3484:355:1;3433:63:0;2843:1;3574:7;:18;20383:10:::1;20397:9;20383:23;20375:44;;;::::0;-1:-1:-1;;;20375:44:0;;4046:2:1;20375:44:0::1;::::0;::::1;4028:21:1::0;4085:1;4065:18;;;4058:29;-1:-1:-1;;;4103:18:1;;;4096:38;4151:18;;20375:44:0::1;3844:331:1::0;20375:44:0::1;20438:10;::::0;::::1;;20430:41;;;::::0;-1:-1:-1;;;20430:41:0;;4382:2:1;20430:41:0::1;::::0;::::1;4364:21:1::0;4421:2;4401:18;;;4394:30;-1:-1:-1;;;4440:18:1;;;4433:48;4498:18;;20430:41:0::1;4180:342:1::0;20430:41:0::1;20509:12;20490:15;:31;;20482:61;;;::::0;-1:-1:-1;;;20482:61:0;;4729:2:1;20482:61:0::1;::::0;::::1;4711:21:1::0;4768:2;4748:18;;;4741:30;-1:-1:-1;;;4787:18:1;;;4780:47;4844:18;;20482:61:0::1;4527:341:1::0;20482:61:0::1;20570:10;20562:19;::::0;;;:7:::1;:19;::::0;;;;;:24;20554:73:::1;;;::::0;-1:-1:-1;;;20554:73:0;;5075:2:1;20554:73:0::1;::::0;::::1;5057:21:1::0;5114:2;5094:18;;;5087:30;5153:34;5133:18;;;5126:62;-1:-1:-1;;;5204:18:1;;;5197:34;5248:19;;20554:73:0::1;4873:400:1::0;20554:73:0::1;19615:9;20646;:17;;20638:48;;;::::0;-1:-1:-1;;;20638:48:0;;5480:2:1;20638:48:0::1;::::0;::::1;5462:21:1::0;5519:2;5499:18;;;5492:30;-1:-1:-1;;;5538:18:1;;;5531:48;5596:18;;20638:48:0::1;5278:342:1::0;20638:48:0::1;20738:51;::::0;;20757:4:::1;20738:51;::::0;::::1;5865:34:1::0;20764:10:0::1;5915:18:1::0;;;5908:43;;;;5967:18;;;5960:34;;;20705:98:0::1;::::0;5800:18:1;;20738:51:0::1;;;;;;;;;;;;20728:62;;;;;;20792:10;;20705:22;:98::i;:::-;20697:128;;;::::0;-1:-1:-1;;;20697:128:0;;6207:2:1;20697:128:0::1;::::0;::::1;6189:21:1::0;6246:2;6226:18;;;6219:30;-1:-1:-1;;;6265:18:1;;;6258:47;6322:18;;20697:128:0::1;6005:341:1::0;20697:128:0::1;20844:10;20836:19;::::0;;;:7:::1;:19;::::0;;;;;;20858:1:::1;20836:23:::0;;;;20870:20:::1;::::0;:63;;-1:-1:-1;;;20870:63:0;;-1:-1:-1;;;;;20870:20:0;;::::1;::::0;:32:::1;::::0;19615:9:::1;::::0;20870:63:::1;::::0;20858:1;;;20922:10;;;;20870:63:::1;;;:::i;:::-;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;20944:16;20963:20;;;;;;;;;-1:-1:-1::0;;;;;20963:20:0::1;-1:-1:-1::0;;;;;20963:32:0::1;;:34;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;21008:20;::::0;:77:::1;::::0;-1:-1:-1;;;21008:77:0;;21054:4:::1;21008:77;::::0;::::1;5865:34:1::0;21061:10:0::1;5915:18:1::0;;;5908:43;5967:18;;;5960:34;;;20944:53:0;;-1:-1:-1;;;;;;21008:20:0::1;::::0;:37:::1;::::0;5800:18:1;;21008:77:0::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;19615:9;21100;:16;21096:279;;;21133:14;21150:16;19615:9;21150;:16;:::i;:::-;21252:44;::::0;21133:33;;-1:-1:-1;21236:11:0::1;::::0;21260:10:::1;::::0;21133:33;;21236:11;21252:44;21236:11;21252:44;21133:33;21260:10;21252:44:::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;21235:61;;;21319:6;21311:52;;;::::0;-1:-1:-1;;;21311:52:0;;7780:2:1;21311:52:0::1;::::0;::::1;7762:21:1::0;7819:2;7799:18;;;7792:30;7858:34;7838:18;;;7831:62;-1:-1:-1;;;7909:18:1;;;7902:31;7950:19;;21311:52:0::1;7578:397:1::0;21311:52:0::1;21118:257;;21096:279;-1:-1:-1::0;;2799:1:0;3753:22;;-1:-1:-1;;;20234:1150:0:o;18312:201::-;17449:7;17476:6;-1:-1:-1;;;;;17476:6:0;16207:10;17623:23;17615:68;;;;-1:-1:-1;;;17615:68:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;18401:22:0;::::1;18393:73;;;::::0;-1:-1:-1;;;18393:73:0;;8182:2:1;18393:73:0::1;::::0;::::1;8164:21:1::0;8221:2;8201:18;;;8194:30;8260:34;8240:18;;;8233:62;-1:-1:-1;;;8311:18:1;;;8304:36;8357:19;;18393:73:0::1;7980:402:1::0;18393:73:0::1;18477:28;18496:8;18477:18;:28::i;:::-;18312:201:::0;:::o;18673:191::-;18747:16;18766:6;;-1:-1:-1;;;;;18783:17:0;;;-1:-1:-1;;;;;;18783:17:0;;;;;;18816:40;;18766:6;;;;;;;18816:40;;18747:16;18816:40;18736:128;18673:191;:::o;21671:184::-;21841:6;;21789:48;;;;;;;;;;;;;;;;;;;;;;21765:4;;-1:-1:-1;;;;;21841:6:0;;21789:48;;;21827:9;;;;;;21789:48;;21827:9;;;;21789:48;;;;;;;;;-1:-1:-1;21789:29:0;;-1:-1:-1;21789:4:0;;-1:-1:-1;21789:27:0;;-1:-1:-1;21789:29:0:i;:::-;:37;;:48::i;:::-;-1:-1:-1;;;;;21789:58:0;;;21671:184;-1:-1:-1;;;;21671:184:0:o;14133:269::-;14335:58;;8629:66:1;14335:58:0;;;8617:79:1;8712:12;;;8705:28;;;14202:7:0;;8749:12:1;;14335:58:0;;;;;;;;;;;;14325:69;;;;;;14318:76;;14133:269;;;:::o;10331:231::-;10409:7;10430:17;10449:18;10471:27;10482:4;10488:9;10471:10;:27::i;:::-;10429:69;;;;10509:18;10521:5;10509:11;:18::i;:::-;-1:-1:-1;10545:9:0;10331:231;-1:-1:-1;;;10331:231:0:o;8221:1308::-;8302:7;8311:12;8536:9;:16;8556:2;8536:22;8532:990;;;8832:4;8817:20;;8811:27;8882:4;8867:20;;8861:27;8940:4;8925:20;;8919:27;8575:9;8911:36;8983:25;8994:4;8911:36;8811:27;8861;8983:10;:25::i;:::-;8976:32;;;;;;;;;8532:990;9030:9;:16;9050:2;9030:22;9026:496;;;9305:4;9290:20;;9284:27;9356:4;9341:20;;9335:27;9398:23;9409:4;9284:27;9335;9398:10;:23::i;:::-;9391:30;;;;;;;;9026:496;-1:-1:-1;9470:1:0;;-1:-1:-1;9474:35:0;9026:496;8221:1308;;;;;:::o;6492:643::-;6570:20;6561:5;:29;;;;;;;;:::i;:::-;;6557:571;;;6492:643;:::o;6557:571::-;6668:29;6659:5;:38;;;;;;;;:::i;:::-;;6655:473;;;6714:34;;-1:-1:-1;;;6714:34:0;;9106:2:1;6714:34:0;;;9088:21:1;9145:2;9125:18;;;9118:30;9184:26;9164:18;;;9157:54;9228:18;;6714:34:0;8904:348:1;6655:473:0;6779:35;6770:5;:44;;;;;;;;:::i;:::-;;6766:362;;;6831:41;;-1:-1:-1;;;6831:41:0;;9459:2:1;6831:41:0;;;9441:21:1;9498:2;9478:18;;;9471:30;9537:33;9517:18;;;9510:61;9588:18;;6831:41:0;9257:355:1;6766:362:0;6903:30;6894:5;:39;;;;;;;;:::i;:::-;;6890:238;;;6950:44;;-1:-1:-1;;;6950:44:0;;9819:2:1;6950:44:0;;;9801:21:1;9858:2;9838:18;;;9831:30;9897:34;9877:18;;;9870:62;-1:-1:-1;;;9948:18:1;;;9941:32;9990:19;;6950:44:0;9617:398:1;6890:238:0;7025:30;7016:5;:39;;;;;;;;:::i;:::-;;7012:116;;;7072:44;;-1:-1:-1;;;7072:44:0;;10222:2:1;7072:44:0;;;10204:21:1;10261:2;10241:18;;;10234:30;10300:34;10280:18;;;10273:62;-1:-1:-1;;;10351:18:1;;;10344:32;10393:19;;7072:44:0;10020:398:1;11783:1632:0;11914:7;;12848:66;12835:79;;12831:163;;;-1:-1:-1;12947:1:0;;-1:-1:-1;12951:30:0;12931:51;;12831:163;13008:1;:7;;13013:2;13008:7;;:18;;;;;13019:1;:7;;13024:2;13019:7;;13008:18;13004:102;;;-1:-1:-1;13059:1:0;;-1:-1:-1;13063:30:0;13043:51;;13004:102;13220:24;;;13203:14;13220:24;;;;;;;;;10650:25:1;;;10723:4;10711:17;;10691:18;;;10684:45;;;;10745:18;;;10738:34;;;10788:18;;;10781:34;;;13220:24:0;;10622:19:1;;13220:24:0;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;13220:24:0;;-1:-1:-1;;13220:24:0;;;-1:-1:-1;;;;;;;13259:20:0;;13255:103;;13312:1;13316:29;13296:50;;;;;;;13255:103;13378:6;-1:-1:-1;13386:20:0;;-1:-1:-1;11783:1632:0;;;;;;;;:::o;10825:344::-;10939:7;;-1:-1:-1;;;;;10985:80:0;;10939:7;11092:25;11108:3;11093:18;;;11115:2;11092:25;:::i;:::-;11076:42;;11136:25;11147:4;11153:1;11156;11159;11136:10;:25::i;:::-;11129:32;;;;;;10825:344;;;;;;:::o;14:173:1:-;82:20;;-1:-1:-1;;;;;131:31:1;;121:42;;111:70;;177:1;174;167:12;111:70;14:173;;;:::o;192:347::-;243:8;253:6;307:3;300:4;292:6;288:17;284:27;274:55;;325:1;322;315:12;274:55;-1:-1:-1;348:20:1;;391:18;380:30;;377:50;;;423:1;420;413:12;377:50;460:4;452:6;448:17;436:29;;512:3;505:4;496:6;488;484:19;480:30;477:39;474:59;;;529:1;526;519:12;544:626;641:6;649;657;665;673;726:3;714:9;705:7;701:23;697:33;694:53;;;743:1;740;733:12;694:53;766:29;785:9;766:29;:::i;:::-;756:39;;814:38;848:2;837:9;833:18;814:38;:::i;:::-;804:48;;899:2;888:9;884:18;871:32;861:42;;954:2;943:9;939:18;926:32;981:18;973:6;970:30;967:50;;;1013:1;1010;1003:12;967:50;1052:58;1102:7;1093:6;1082:9;1078:22;1052:58;:::i;:::-;544:626;;;;-1:-1:-1;544:626:1;;-1:-1:-1;1129:8:1;;1026:84;544:626;-1:-1:-1;;;544:626:1:o;1574:273::-;1630:6;1683:2;1671:9;1662:7;1658:23;1654:32;1651:52;;;1699:1;1696;1689:12;1651:52;1738:9;1725:23;1791:5;1784:13;1777:21;1770:5;1767:32;1757:60;;1813:1;1810;1803:12;1757:60;1836:5;1574:273;-1:-1:-1;;;1574:273:1:o;2082:186::-;2141:6;2194:2;2182:9;2173:7;2169:23;2165:32;2162:52;;;2210:1;2207;2200:12;2162:52;2233:29;2252:9;2233:29;:::i;2481:637::-;2568:6;2576;2584;2592;2645:2;2633:9;2624:7;2620:23;2616:32;2613:52;;;2661:1;2658;2651:12;2613:52;2700:9;2687:23;2750:6;2743:5;2739:18;2732:5;2729:29;2719:57;;2772:1;2769;2762:12;2719:57;2795:5;-1:-1:-1;2847:2:1;2832:18;;2819:32;;-1:-1:-1;2902:2:1;2887:18;;2874:32;2929:18;2918:30;;2915:50;;;2961:1;2958;2951:12;2915:50;3000:58;3050:7;3041:6;3030:9;3026:22;3000:58;:::i;:::-;2481:637;;;;-1:-1:-1;3077:8:1;-1:-1:-1;;;;2481:637:1:o;3123:356::-;3325:2;3307:21;;;3344:18;;;3337:30;3403:34;3398:2;3383:18;;3376:62;3470:2;3455:18;;3123:356::o;6351:561::-;6591:6;6583;6579:19;6568:9;6561:38;6635:6;6630:2;6619:9;6615:18;6608:34;6678:2;6673;6662:9;6658:18;6651:30;6717:6;6712:2;6701:9;6697:18;6690:34;6775:6;6767;6761:3;6750:9;6746:19;6733:49;6832:1;6802:22;;;6826:3;6798:32;;;6791:43;;;;6895:2;6874:15;;;-1:-1:-1;;6870:29:1;6855:45;6851:55;;6351:561;-1:-1:-1;;;6351:561:1:o;6917:184::-;6987:6;7040:2;7028:9;7019:7;7015:23;7011:32;7008:52;;;7056:1;7053;7046:12;7008:52;-1:-1:-1;7079:16:1;;6917:184;-1:-1:-1;6917:184:1:o;7106:127::-;7167:10;7162:3;7158:20;7155:1;7148:31;7198:4;7195:1;7188:15;7222:4;7219:1;7212:15;7238:125;7278:4;7306:1;7303;7300:8;7297:34;;;7311:18;;:::i;:::-;-1:-1:-1;7348:9:1;;7238:125::o;8772:127::-;8833:10;8828:3;8824:20;8821:1;8814:31;8864:4;8861:1;8854:15;8888:4;8885:1;8878:15;10826:128;10866:3;10897:1;10893:6;10890:1;10887:13;10884:39;;;10903:18;;:::i;:::-;-1:-1:-1;10939:9:1;;10826:128::o

Swarm Source

ipfs://ff4dc14758138326b628d6d18800a783eadea8746f8384d348374f6cf3d4e14a

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.