ETH Price: $2,291.24 (-2.82%)
Gas: 2.46 Gwei

Contract

0xD0a67cdC394fD0E79527EAEaf533c3BBE9A19092
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Mint143440082022-03-08 4:19:03914 days ago1646713143IN
0xD0a67cdC...BE9A19092
0.25 ETH0.0008037425.36286303
Set Pause143439272022-03-08 4:01:29914 days ago1646712089IN
0xD0a67cdC...BE9A19092
0 ETH0.0012072640.39988773
Mint143439162022-03-08 3:58:59914 days ago1646711939IN
0xD0a67cdC...BE9A19092
0.25 ETH0.0065214430.05743233
Mint143439142022-03-08 3:58:47914 days ago1646711927IN
0xD0a67cdC...BE9A19092
0.25 ETH0.0068693731.66106477
Mint143439112022-03-08 3:57:21914 days ago1646711841IN
0xD0a67cdC...BE9A19092
0.25 ETH0.0085507139.41038732
Mint143438802022-03-08 3:51:12914 days ago1646711472IN
0xD0a67cdC...BE9A19092
0.25 ETH0.0084133938.77960853
Mint143438702022-03-08 3:49:05914 days ago1646711345IN
0xD0a67cdC...BE9A19092
0.5 ETH0.0154279546.32185843
Mint143423842022-03-07 22:23:26914 days ago1646691806IN
0xD0a67cdC...BE9A19092
0.25 ETH0.01012946.68473719
Mint143416812022-03-07 19:43:07914 days ago1646682187IN
0xD0a67cdC...BE9A19092
0.25 ETH0.0113231752.1886891
Mint143416152022-03-07 19:27:47914 days ago1646681267IN
0xD0a67cdC...BE9A19092
0.25 ETH0.0050853923.43865185
Mint143415362022-03-07 19:12:18914 days ago1646680338IN
0xD0a67cdC...BE9A19092
0.25 ETH0.0058024126.74344798
Mint143414332022-03-07 18:52:32914 days ago1646679152IN
0xD0a67cdC...BE9A19092
0.5 ETH0.009991830
Mint143412992022-03-07 18:23:57914 days ago1646677437IN
0xD0a67cdC...BE9A19092
0.5 ETH0.0166676550.04400806
Mint143411372022-03-07 17:45:56914 days ago1646675156IN
0xD0a67cdC...BE9A19092
0.5 ETH0.0109617132.91451461
Mint143411202022-03-07 17:43:08914 days ago1646674988IN
0xD0a67cdC...BE9A19092
0.5 ETH0.0169860651
Mint143410522022-03-07 17:23:34914 days ago1646673814IN
0xD0a67cdC...BE9A19092
0.5 ETH0.0111035833.3392964
Mint143410472022-03-07 17:22:41914 days ago1646673761IN
0xD0a67cdC...BE9A19092
0.25 ETH0.0068841131.72900922
Mint143409712022-03-07 17:05:38914 days ago1646672738IN
0xD0a67cdC...BE9A19092
0.5 ETH0.0123649537.12530214
Mint143409252022-03-07 16:56:00914 days ago1646672160IN
0xD0a67cdC...BE9A19092
0.25 ETH0.0084266538.83858351
Mint143409042022-03-07 16:51:32914 days ago1646671892IN
0xD0a67cdC...BE9A19092
0.25 ETH0.0084097638.76287766
Mint143408462022-03-07 16:38:54914 days ago1646671134IN
0xD0a67cdC...BE9A19092
0.25 ETH0.006885131.73357252
Mint143408292022-03-07 16:34:58914 days ago1646670898IN
0xD0a67cdC...BE9A19092
0.5 ETH0.0075148222.56378182
Mint143408282022-03-07 16:34:39914 days ago1646670879IN
0xD0a67cdC...BE9A19092
0.25 ETH0.0062382328.75372245
Mint143407882022-03-07 16:27:21914 days ago1646670441IN
0xD0a67cdC...BE9A19092
0.25 ETH0.0047800122.03115693
Mint143407652022-03-07 16:23:44914 days ago1646670224IN
0xD0a67cdC...BE9A19092
0.25 ETH0.0055462925.56298998
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block From To
143439162022-03-08 3:58:59914 days ago1646711939
0xD0a67cdC...BE9A19092
0.25 ETH
143439142022-03-08 3:58:47914 days ago1646711927
0xD0a67cdC...BE9A19092
0.25 ETH
143439112022-03-08 3:57:21914 days ago1646711841
0xD0a67cdC...BE9A19092
0.25 ETH
143438802022-03-08 3:51:12914 days ago1646711472
0xD0a67cdC...BE9A19092
0.25 ETH
143438702022-03-08 3:49:05914 days ago1646711345
0xD0a67cdC...BE9A19092
0.5 ETH
143423842022-03-07 22:23:26914 days ago1646691806
0xD0a67cdC...BE9A19092
0.25 ETH
143416812022-03-07 19:43:07914 days ago1646682187
0xD0a67cdC...BE9A19092
0.25 ETH
143416152022-03-07 19:27:47914 days ago1646681267
0xD0a67cdC...BE9A19092
0.25 ETH
143415362022-03-07 19:12:18914 days ago1646680338
0xD0a67cdC...BE9A19092
0.25 ETH
143414332022-03-07 18:52:32914 days ago1646679152
0xD0a67cdC...BE9A19092
0.5 ETH
143412992022-03-07 18:23:57914 days ago1646677437
0xD0a67cdC...BE9A19092
0.5 ETH
143411372022-03-07 17:45:56914 days ago1646675156
0xD0a67cdC...BE9A19092
0.5 ETH
143411202022-03-07 17:43:08914 days ago1646674988
0xD0a67cdC...BE9A19092
0.5 ETH
143410522022-03-07 17:23:34914 days ago1646673814
0xD0a67cdC...BE9A19092
0.5 ETH
143410472022-03-07 17:22:41914 days ago1646673761
0xD0a67cdC...BE9A19092
0.25 ETH
143409712022-03-07 17:05:38914 days ago1646672738
0xD0a67cdC...BE9A19092
0.5 ETH
143409252022-03-07 16:56:00914 days ago1646672160
0xD0a67cdC...BE9A19092
0.25 ETH
143409042022-03-07 16:51:32914 days ago1646671892
0xD0a67cdC...BE9A19092
0.25 ETH
143408462022-03-07 16:38:54914 days ago1646671134
0xD0a67cdC...BE9A19092
0.25 ETH
143408292022-03-07 16:34:58914 days ago1646670898
0xD0a67cdC...BE9A19092
0.5 ETH
143408282022-03-07 16:34:39914 days ago1646670879
0xD0a67cdC...BE9A19092
0.25 ETH
143407882022-03-07 16:27:21914 days ago1646670441
0xD0a67cdC...BE9A19092
0.25 ETH
143407652022-03-07 16:23:44914 days ago1646670224
0xD0a67cdC...BE9A19092
0.25 ETH
143406922022-03-07 16:08:44914 days ago1646669324
0xD0a67cdC...BE9A19092
0.5 ETH
143404292022-03-07 15:07:39914 days ago1646665659
0xD0a67cdC...BE9A19092
0.5 ETH
View All Internal Transactions
Loading...
Loading

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

Contract Name:
PreSale

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
Yes with 100 runs

Other Settings:
default evmVersion
File 1 of 7 : PreSale.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.7;

import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol";
import {IAnftifyNFT} from "./interfaces/IAnftifyNFT.sol";

contract PreSale is Ownable {
    struct Voucher {
		bytes32 r;
		bytes32 s;
		uint8 v;
	}

	mapping(address => bool) public addressMinted;
	uint256 public maxMintsPerAddress;
	uint256 public maxMintsForSaleType;
	uint256 public totalMinted;
	uint256 public mintPrice;
	string public saleType;
	address public nft;
	address public treasury;
	bool public pause = true;

 	event MaxMintsForSaleTypeSet(uint256 maxMintsForSaleType);
	event MaxMintPerAddressSet(uint256 maxMintsPerAddress);
	event MintPriceSet(uint256 mintPrice);
	event SaleTypeSet(string saleType);
	event NFTAddressSet(address nft);
	event TreasuryAddressUpdated(address treasury);
	event PauseUpdated(bool pause);

	constructor(uint256 _maxMintsForSaleType, uint256 _maxMintsPerAddress, uint256 _mintPrice, string memory _saleType, address _nft, address _treasury) {
		require(_maxMintsForSaleType > 0, "PreSale: maxMintsForSaleType should be greater than zero");
		require(_maxMintsPerAddress > 0, "PreSale: maxMintsPerAddress should be greater than zero");
		require(bytes(_saleType).length > 0, "PreSale: Cannot set empty saleType");
		require(_nft != address(0), "PreSale: NFT address cannot be zero address");
		require(_treasury != address(0), "PreSale: treasury address cannot be zero address");

		maxMintsForSaleType = _maxMintsForSaleType;
		maxMintsPerAddress = _maxMintsPerAddress;
		mintPrice = _mintPrice;
		saleType = _saleType;
		nft = _nft;
		treasury = _treasury;

		emit MaxMintsForSaleTypeSet(maxMintsForSaleType);
		emit MaxMintPerAddressSet(maxMintsPerAddress);
		emit MintPriceSet(mintPrice);
		emit SaleTypeSet(saleType);
		emit NFTAddressSet(nft);
		emit TreasuryAddressUpdated(treasury);
	}

    /// Mint function for presale
	/// @dev mints by addresses validated using verified vouchers signed by an admin signer
	/// @notice mints token to addresses eligible for presale
	/// @param amount number of tokens to mint in transaction
	/// @param voucher voucher signed by an admin signer
	function mint(uint256 amount, Voucher memory voucher) 
		external 
		payable 
		validateEthPayment(amount)
		saleIsOpen(amount)
	{
		require(
			amount > 0,
			"PreSale: 0 number of presale mints"
		);

		require(
			amount <= maxMintsPerAddress,
			"PreSale: Exceeds number of presale mints allowed per address"
		);

		require(
			!addressMinted[msg.sender],
			"PreSale: Already minted"
		);
		bytes32 digest = keccak256(abi.encode(saleType, msg.sender));
		require(_isVerifiedVoucher(digest, voucher), "PreSale: Invalid voucher");

		addressMinted[msg.sender] = true;
		totalMinted = totalMinted + amount;
		IAnftifyNFT(nft).mint(amount, msg.sender);

		(bool success, ) = treasury.call{value: address(this).balance}("");
		require(success, "Transfer failed.");
	}

	/// @dev check that the voucher sent was signed by the admin signer
	function _isVerifiedVoucher(bytes32 digest, Voucher memory voucher)
		internal
		view
		returns (bool)
	{
		address signer = ecrecover(digest, voucher.v, voucher.r, voucher.s);
		require(signer != address(0), "ECDSA: invalid signature"); // Added check for zero address
		return signer == owner();
	}

	function setTreasury(address _treasury) public onlyOwner {
		require(_treasury != address(0), "PreSale: treasury address cannot be zero address");
		treasury = _treasury;
		emit TreasuryAddressUpdated(treasury);
    }
	
	function setPause(bool _pause) public onlyOwner {
		pause = _pause;
		emit PauseUpdated(pause);
    }

    /// Modifier to validate eth value on payable functions
	/// @param amount number of tokens to mint in transaction
	modifier validateEthPayment(uint256 amount) {
		require(
			mintPrice * amount <= msg.value,
			"PreSale: Ether value sent is not correct"
		);
		_;
	}

	modifier saleIsOpen(uint256 amount) {
		require(
			totalMinted + amount <= maxMintsForSaleType,
			"PreSale: Exceeds number of total presale mints allowed"
		);
		require(
			!pause, 
			"PreSale: Paused"
		);
        _;
    }
}

File 2 of 7 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (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 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 3 of 7 : IAnftifyNFT.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.7;

import {IERC721Enumerable} from "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol";

interface IAnftifyNFT is IERC721Enumerable {
    function mint(uint256 amount, address account) external;
    function setContractURI(string memory _contractURI) external;
    function setBaseURI(string memory _baseTokenURI) external;
    function setPause(bool _pause) external;
}

File 4 of 7 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

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

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

File 5 of 7 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol)

pragma solidity ^0.8.0;

import "../IERC721.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Enumerable is IERC721 {
    /**
     * @dev Returns the total amount of tokens stored by the contract.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns a token ID owned by `owner` at a given `index` of its token list.
     * Use along with {balanceOf} to enumerate all of ``owner``'s tokens.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256);

    /**
     * @dev Returns a token ID at a given `index` of all the tokens stored by the contract.
     * Use along with {totalSupply} to enumerate all tokens.
     */
    function tokenByIndex(uint256 index) external view returns (uint256);
}

File 6 of 7 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

import "../../utils/introspection/IERC165.sol";

/**
 * @dev Required interface of an ERC721 compliant contract.
 */
interface IERC721 is IERC165 {
    /**
     * @dev Emitted when `tokenId` token is transferred from `from` to `to`.
     */
    event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
     */
    event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.
     */
    event ApprovalForAll(address indexed owner, address indexed operator, bool approved);

    /**
     * @dev Returns the number of tokens in ``owner``'s account.
     */
    function balanceOf(address owner) external view returns (uint256 balance);

    /**
     * @dev Returns the owner of the `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function ownerOf(uint256 tokenId) external view returns (address owner);

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

    /**
     * @dev Transfers `tokenId` token from `from` to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

    /**
     * @dev Gives permission to `to` to transfer `tokenId` token to another account.
     * The approval is cleared when the token is transferred.
     *
     * Only a single account can be approved at a time, so approving the zero address clears previous approvals.
     *
     * Requirements:
     *
     * - The caller must own the token or be an approved operator.
     * - `tokenId` must exist.
     *
     * Emits an {Approval} event.
     */
    function approve(address to, uint256 tokenId) external;

    /**
     * @dev Returns the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) external view returns (address operator);

    /**
     * @dev Approve or remove `operator` as an operator for the caller.
     * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
     *
     * Requirements:
     *
     * - The `operator` cannot be the caller.
     *
     * Emits an {ApprovalForAll} event.
     */
    function setApprovalForAll(address operator, bool _approved) external;

    /**
     * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.
     *
     * See {setApprovalForAll}
     */
    function isApprovedForAll(address owner, address operator) external view returns (bool);

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes calldata data
    ) external;
}

File 7 of 7 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC165 standard, as defined in the
 * https://eips.ethereum.org/EIPS/eip-165[EIP].
 *
 * Implementers can declare support of contract interfaces, which can then be
 * queried by others ({ERC165Checker}).
 *
 * For an implementation, see {ERC165}.
 */
interface IERC165 {
    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30 000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"uint256","name":"_maxMintsForSaleType","type":"uint256"},{"internalType":"uint256","name":"_maxMintsPerAddress","type":"uint256"},{"internalType":"uint256","name":"_mintPrice","type":"uint256"},{"internalType":"string","name":"_saleType","type":"string"},{"internalType":"address","name":"_nft","type":"address"},{"internalType":"address","name":"_treasury","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"maxMintsPerAddress","type":"uint256"}],"name":"MaxMintPerAddressSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"maxMintsForSaleType","type":"uint256"}],"name":"MaxMintsForSaleTypeSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"mintPrice","type":"uint256"}],"name":"MintPriceSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"nft","type":"address"}],"name":"NFTAddressSet","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"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"pause","type":"bool"}],"name":"PauseUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"saleType","type":"string"}],"name":"SaleTypeSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"treasury","type":"address"}],"name":"TreasuryAddressUpdated","type":"event"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"addressMinted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxMintsForSaleType","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxMintsPerAddress","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"components":[{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"},{"internalType":"uint8","name":"v","type":"uint8"}],"internalType":"struct PreSale.Voucher","name":"voucher","type":"tuple"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nft","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":"pause","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"saleType","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"_pause","type":"bool"}],"name":"setPause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_treasury","type":"address"}],"name":"setTreasury","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"totalMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"treasury","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]

Deployed Bytecode

0x6080604052600436106100c85760003560e01c8063885104991161007a57806388510499146101cb5780638da5cb5b146101e1578063a2309ff8146101f6578063ae6a80d51461020c578063bedb86fb14610222578063f0f4426014610242578063f2fde38b14610262578063fa30297e1461028257600080fd5b806347ccca02146100cd5780635bcc79281461010a57806361d027b31461012c5780636817c76c1461014c578063715018a6146101705780638395dab9146101875780638456cb591461019a575b600080fd5b3480156100d957600080fd5b506007546100ed906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b34801561011657600080fd5b5061011f6102b2565b6040516101019190610be1565b34801561013857600080fd5b506008546100ed906001600160a01b031681565b34801561015857600080fd5b5061016260055481565b604051908152602001610101565b34801561017c57600080fd5b50610185610340565b005b610185610195366004610b4b565b610384565b3480156101a657600080fd5b506008546101bb90600160a01b900460ff1681565b6040519015158152602001610101565b3480156101d757600080fd5b5061016260035481565b3480156101ed57600080fd5b506100ed61079b565b34801561020257600080fd5b5061016260045481565b34801561021857600080fd5b5061016260025481565b34801561022e57600080fd5b5061018561023d366004610b29565b6107aa565b34801561024e57600080fd5b5061018561025d366004610af9565b610835565b34801561026e57600080fd5b5061018561027d366004610af9565b610921565b34801561028e57600080fd5b506101bb61029d366004610af9565b60016020526000908152604090205460ff1681565b600680546102bf90610d63565b80601f01602080910402602001604051908101604052809291908181526020018280546102eb90610d63565b80156103385780601f1061030d57610100808354040283529160200191610338565b820191906000526020600020905b81548152906001019060200180831161031b57829003601f168201915b505050505081565b3361034961079b565b6001600160a01b0316146103785760405162461bcd60e51b815260040161036f90610cf7565b60405180910390fd5b61038260006109c1565b565b8134816005546103949190610d44565b11156103f35760405162461bcd60e51b815260206004820152602860248201527f50726553616c653a2045746865722076616c75652073656e74206973206e6f746044820152670818dbdc9c9958dd60c21b606482015260840161036f565b82600354816004546104059190610d2c565b11156104725760405162461bcd60e51b815260206004820152603660248201527f50726553616c653a2045786365656473206e756d626572206f6620746f74616c604482015275081c1c995cd85b19481b5a5b9d1cc8185b1b1bddd95960521b606482015260840161036f565b600854600160a01b900460ff16156104be5760405162461bcd60e51b815260206004820152600f60248201526e141c9954d85b194e8814185d5cd959608a1b604482015260640161036f565b600084116105195760405162461bcd60e51b815260206004820152602260248201527f50726553616c653a2030206e756d626572206f662070726573616c65206d696e604482015261747360f01b606482015260840161036f565b6002548411156105915760405162461bcd60e51b815260206004820152603c60248201527f50726553616c653a2045786365656473206e756d626572206f6620707265736160448201527f6c65206d696e747320616c6c6f77656420706572206164647265737300000000606482015260840161036f565b3360009081526001602052604090205460ff16156105eb5760405162461bcd60e51b8152602060048201526017602482015276141c9954d85b194e88105b1c9958591e481b5a5b9d1959604a1b604482015260640161036f565b6000600633604051602001610601929190610c36565b6040516020818303038152906040528051906020012090506106238185610a11565b61066a5760405162461bcd60e51b8152602060048201526018602482015277283932a9b0b6329d1024b73b30b634b2103b37bab1b432b960411b604482015260640161036f565b336000908152600160208190526040909120805460ff19169091179055600454610695908690610d2c565b60049081556007546040516394bf804d60e01b81529182018790523360248301526001600160a01b0316906394bf804d90604401600060405180830381600087803b1580156106e357600080fd5b505af11580156106f7573d6000803e3d6000fd5b5050600854604051600093506001600160a01b03909116915047908381818185875af1925050503d806000811461074a576040519150601f19603f3d011682016040523d82523d6000602084013e61074f565b606091505b50509050806107935760405162461bcd60e51b815260206004820152601060248201526f2a3930b739b332b9103330b4b632b21760811b604482015260640161036f565b505050505050565b6000546001600160a01b031690565b336107b361079b565b6001600160a01b0316146107d95760405162461bcd60e51b815260040161036f90610cf7565b6008805460ff60a01b1916600160a01b8315158102919091179182905560405160ff9190920416151581527f77860e247ab9186dbe64e5bd0e0b93273cc4273e01818420e788f500078886f5906020015b60405180910390a150565b3361083e61079b565b6001600160a01b0316146108645760405162461bcd60e51b815260040161036f90610cf7565b6001600160a01b0381166108d35760405162461bcd60e51b815260206004820152603060248201527f50726553616c653a20747265617375727920616464726573732063616e6e6f7460448201526f206265207a65726f206164647265737360801b606482015260840161036f565b600880546001600160a01b0319166001600160a01b0383169081179091556040519081527fb6a5e89655cf506139085f051af608195ed056f8dc550b180a1c38d401e2b6c49060200161082a565b3361092a61079b565b6001600160a01b0316146109505760405162461bcd60e51b815260040161036f90610cf7565b6001600160a01b0381166109b55760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161036f565b6109be816109c1565b50565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60008060018484604001518560000151866020015160405160008152602001604052604051610a5c949392919093845260ff9290921660208401526040830152606082015260800190565b6020604051602081039080840390855afa158015610a7e573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116610adc5760405162461bcd60e51b815260206004820152601860248201527745434453413a20696e76616c6964207369676e617475726560401b604482015260640161036f565b610ae461079b565b6001600160a01b039182169116149392505050565b600060208284031215610b0b57600080fd5b81356001600160a01b0381168114610b2257600080fd5b9392505050565b600060208284031215610b3b57600080fd5b81358015158114610b2257600080fd5b6000808284036080811215610b5f57600080fd5b833592506060601f1982011215610b7557600080fd5b506040516060810181811067ffffffffffffffff82111715610ba757634e487b7160e01b600052604160045260246000fd5b80604052506020840135815260408401356020820152606084013560ff81168114610bd157600080fd5b6040820152919491935090915050565b600060208083528351808285015260005b81811015610c0e57858101830151858201604001528201610bf2565b81811115610c20576000604083870101525b50601f01601f1916929092016040019392505050565b60408152600080845481600182811c915080831680610c5657607f831692505b6020808410821415610c7657634e487b7160e01b86526022600452602486fd5b6040880184905260608801828015610c955760018114610ca657610cd1565b60ff19871682528282019750610cd1565b60008c81526020902060005b87811015610ccb57815484820152908601908401610cb2565b83019850505b5050859650610cea8189018a6001600160a01b03169052565b5050505050509392505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60008219821115610d3f57610d3f610d9e565b500190565b6000816000190483118215151615610d5e57610d5e610d9e565b500290565b600181811c90821680610d7757607f821691505b60208210811415610d9857634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fdfea264697066735822122053ec0f054ab0ed34759a50558d37498b82a5a6d4ab4d3d4fdaf8b67036b378f364736f6c63430008070033

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.