Ape Curtis Testnet

Contract

0x0EF1b6939693B8db18d744E7929753Cf1403c2Ae

Overview

APE Balance

Ape Curtis LogoApe Curtis LogoApe Curtis Logo0 APE

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To

There are no matching entries

Please try again later

Parent Transaction Hash Block From To
View All Internal Transactions

Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Crossmint

Compiler Version
v0.8.20+commit.a1b79de6

Optimization Enabled:
Yes with 200 runs

Other Settings:
paris EvmVersion

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 4 : Crossmint.sol
pragma solidity ^0.8.0;

import "solmate/src/tokens/ERC721.sol";
import "@openzeppelin/contracts/access/Ownable.sol";

contract Crossmint is ERC721, Ownable {
    uint256 public constant MAX_SUPPLY = 100000;
    uint256 public salePrice = 0.001 ether;
    uint256 public totalSupply;
    uint256 public stage = 1;
    string public uri =
        "https://cdn.kaizen.finance/nft/FREQUENCIES/jsonV2/1.json";

    // MODIFIERS

    modifier isCorrectPayment() {
        require(salePrice == msg.value, "Incorrect ETH value sent");
        _;
    }

    modifier isAvailable() {
        require(totalSupply + 1 <= MAX_SUPPLY, "No more left");
        _;
    }

    modifier isOpen() {
        require(stage == 1, "Minting is closed");
        _;
    }

    constructor() payable ERC721("Crossmint Testing NFT", "XMTEST") {
        // address to = 0xe9151A3467Fc4eD90c717e7EF7Ae70Dc8775921b;
        // for (uint i = 0; i < 500; i++) {
        //     _safeMint(to, totalSupply++);
        // }
    }

    // PUBLIC

    function mint() external payable isCorrectPayment isAvailable {
        _safeMint(msg.sender, totalSupply++);
    }
    function freeMint(address to, uint256 amount) external payable {
        _safeMint(to, totalSupply += amount);
    }

    function setStage(uint256 newStage) external onlyOwner {
        stage = newStage;
    }

    function getStage() public view returns (uint256) {
        return stage;
    }
    function setPrice(uint256 newPrice) external onlyOwner {
        salePrice = newPrice;
    }

    function crossmint(
        address to,
        uint256 amount
    ) external payable isAvailable isOpen {
        require(msg.value >= salePrice * amount, "Incorrect ETH value sent");
        _safeMint(to, totalSupply += amount);
    }

    function fakeMint(address to) external payable isAvailable isOpen {
        require(msg.value >= salePrice, "Incorrect ETH value sent");
    }

    // ADMIN

    function setBaseURI(string calldata baseURI) external onlyOwner {
        uri = baseURI;
    }

    function setSalePrice(uint256 price) external onlyOwner {
        salePrice = price;
    }

    // VIEW

    function tokenURI(
        uint256 tokenId
    ) public view override returns (string memory) {
        return uri;
    }
}

File 2 of 4 : Ownable.sol
// 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);
    }
}

File 3 of 4 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.4) (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;
    }

    function _contextSuffixLength() internal view virtual returns (uint256) {
        return 0;
    }
}

File 4 of 4 : ERC721.sol
// SPDX-License-Identifier: AGPL-3.0-only
pragma solidity >=0.8.0;

/// @notice Modern, minimalist, and gas efficient ERC-721 implementation.
/// @author Solmate (https://github.com/transmissions11/solmate/blob/main/src/tokens/ERC721.sol)
abstract contract ERC721 {
    /*//////////////////////////////////////////////////////////////
                                 EVENTS
    //////////////////////////////////////////////////////////////*/

    event Transfer(address indexed from, address indexed to, uint256 indexed id);

    event Approval(address indexed owner, address indexed spender, uint256 indexed id);

    event ApprovalForAll(address indexed owner, address indexed operator, bool approved);

    /*//////////////////////////////////////////////////////////////
                         METADATA STORAGE/LOGIC
    //////////////////////////////////////////////////////////////*/

    string public name;

    string public symbol;

    function tokenURI(uint256 id) public view virtual returns (string memory);

    /*//////////////////////////////////////////////////////////////
                      ERC721 BALANCE/OWNER STORAGE
    //////////////////////////////////////////////////////////////*/

    mapping(uint256 => address) internal _ownerOf;

    mapping(address => uint256) internal _balanceOf;

    function ownerOf(uint256 id) public view virtual returns (address owner) {
        require((owner = _ownerOf[id]) != address(0), "NOT_MINTED");
    }

    function balanceOf(address owner) public view virtual returns (uint256) {
        require(owner != address(0), "ZERO_ADDRESS");

        return _balanceOf[owner];
    }

    /*//////////////////////////////////////////////////////////////
                         ERC721 APPROVAL STORAGE
    //////////////////////////////////////////////////////////////*/

    mapping(uint256 => address) public getApproved;

    mapping(address => mapping(address => bool)) public isApprovedForAll;

    /*//////////////////////////////////////////////////////////////
                               CONSTRUCTOR
    //////////////////////////////////////////////////////////////*/

    constructor(string memory _name, string memory _symbol) {
        name = _name;
        symbol = _symbol;
    }

    /*//////////////////////////////////////////////////////////////
                              ERC721 LOGIC
    //////////////////////////////////////////////////////////////*/

    function approve(address spender, uint256 id) public virtual {
        address owner = _ownerOf[id];

        require(msg.sender == owner || isApprovedForAll[owner][msg.sender], "NOT_AUTHORIZED");

        getApproved[id] = spender;

        emit Approval(owner, spender, id);
    }

    function setApprovalForAll(address operator, bool approved) public virtual {
        isApprovedForAll[msg.sender][operator] = approved;

        emit ApprovalForAll(msg.sender, operator, approved);
    }

    function transferFrom(
        address from,
        address to,
        uint256 id
    ) public virtual {
        require(from == _ownerOf[id], "WRONG_FROM");

        require(to != address(0), "INVALID_RECIPIENT");

        require(
            msg.sender == from || isApprovedForAll[from][msg.sender] || msg.sender == getApproved[id],
            "NOT_AUTHORIZED"
        );

        // Underflow of the sender's balance is impossible because we check for
        // ownership above and the recipient's balance can't realistically overflow.
        unchecked {
            _balanceOf[from]--;

            _balanceOf[to]++;
        }

        _ownerOf[id] = to;

        delete getApproved[id];

        emit Transfer(from, to, id);
    }

    function safeTransferFrom(
        address from,
        address to,
        uint256 id
    ) public virtual {
        transferFrom(from, to, id);

        require(
            to.code.length == 0 ||
                ERC721TokenReceiver(to).onERC721Received(msg.sender, from, id, "") ==
                ERC721TokenReceiver.onERC721Received.selector,
            "UNSAFE_RECIPIENT"
        );
    }

    function safeTransferFrom(
        address from,
        address to,
        uint256 id,
        bytes calldata data
    ) public virtual {
        transferFrom(from, to, id);

        require(
            to.code.length == 0 ||
                ERC721TokenReceiver(to).onERC721Received(msg.sender, from, id, data) ==
                ERC721TokenReceiver.onERC721Received.selector,
            "UNSAFE_RECIPIENT"
        );
    }

    /*//////////////////////////////////////////////////////////////
                              ERC165 LOGIC
    //////////////////////////////////////////////////////////////*/

    function supportsInterface(bytes4 interfaceId) public view virtual returns (bool) {
        return
            interfaceId == 0x01ffc9a7 || // ERC165 Interface ID for ERC165
            interfaceId == 0x80ac58cd || // ERC165 Interface ID for ERC721
            interfaceId == 0x5b5e139f; // ERC165 Interface ID for ERC721Metadata
    }

    /*//////////////////////////////////////////////////////////////
                        INTERNAL MINT/BURN LOGIC
    //////////////////////////////////////////////////////////////*/

    function _mint(address to, uint256 id) internal virtual {
        require(to != address(0), "INVALID_RECIPIENT");

        require(_ownerOf[id] == address(0), "ALREADY_MINTED");

        // Counter overflow is incredibly unrealistic.
        unchecked {
            _balanceOf[to]++;
        }

        _ownerOf[id] = to;

        emit Transfer(address(0), to, id);
    }

    function _burn(uint256 id) internal virtual {
        address owner = _ownerOf[id];

        require(owner != address(0), "NOT_MINTED");

        // Ownership check above ensures no underflow.
        unchecked {
            _balanceOf[owner]--;
        }

        delete _ownerOf[id];

        delete getApproved[id];

        emit Transfer(owner, address(0), id);
    }

    /*//////////////////////////////////////////////////////////////
                        INTERNAL SAFE MINT LOGIC
    //////////////////////////////////////////////////////////////*/

    function _safeMint(address to, uint256 id) internal virtual {
        _mint(to, id);

        require(
            to.code.length == 0 ||
                ERC721TokenReceiver(to).onERC721Received(msg.sender, address(0), id, "") ==
                ERC721TokenReceiver.onERC721Received.selector,
            "UNSAFE_RECIPIENT"
        );
    }

    function _safeMint(
        address to,
        uint256 id,
        bytes memory data
    ) internal virtual {
        _mint(to, id);

        require(
            to.code.length == 0 ||
                ERC721TokenReceiver(to).onERC721Received(msg.sender, address(0), id, data) ==
                ERC721TokenReceiver.onERC721Received.selector,
            "UNSAFE_RECIPIENT"
        );
    }
}

/// @notice A generic interface for a contract which properly accepts ERC721 tokens.
/// @author Solmate (https://github.com/transmissions11/solmate/blob/main/src/tokens/ERC721.sol)
abstract contract ERC721TokenReceiver {
    function onERC721Received(
        address,
        address,
        uint256,
        bytes calldata
    ) external virtual returns (bytes4) {
        return ERC721TokenReceiver.onERC721Received.selector;
    }
}

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

Contract ABI

[{"inputs":[],"stateMutability":"payable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","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":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"crossmint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"}],"name":"fakeMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"freeMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getStage","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"owner","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"salePrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newPrice","type":"uint256"}],"name":"setPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"price","type":"uint256"}],"name":"setSalePrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newStage","type":"uint256"}],"name":"setStage","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stage","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"}]

66038d7ea4c68000600755600160095560e060405260386080818152906200198560a039600a90620000329082620001c6565b506040518060400160405280601581526020017f43726f73736d696e742054657374696e67204e46540000000000000000000000815250604051806040016040528060068152602001651613551154d560d21b8152508160009081620000999190620001c6565b506001620000a88282620001c6565b505050620000c5620000bf620000cb60201b60201c565b620000cf565b62000292565b3390565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200014c57607f821691505b6020821081036200016d57634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620001c157600081815260208120601f850160051c810160208610156200019c5750805b601f850160051c820191505b81811015620001bd57828155600101620001a8565b5050505b505050565b81516001600160401b03811115620001e257620001e262000121565b620001fa81620001f3845462000137565b8462000173565b602080601f831160018114620002325760008415620002195750858301515b600019600386901b1c1916600185901b178555620001bd565b600085815260208120601f198616915b82811015620002635788860151825594840194600190910190840162000242565b5085821015620002825787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6116e380620002a26000396000f3fe6080604052600436106101cd5760003560e01c8063715018a6116100f7578063b88d4fde11610095578063eac989f811610064578063eac989f8146104ee578063f2fde38b14610503578063f51f96dd14610523578063fcaa76641461053957600080fd5b8063b88d4fde1461045d578063c040e6b81461047d578063c87b56dd14610493578063e985e9c5146104b357600080fd5b806395d89b41116100d157806395d89b41146104025780639883566e14610417578063a22cb4651461042a578063a53afc2a1461044a57600080fd5b8063715018a6146103cf5780638da5cb5b146103e457806391b7f5ed146102c557600080fd5b806323b872dd1161016f57806355f804b31161013e57806355f804b31461035c57806358891a371461037c5780636352211e1461038f57806370a08231146103af57600080fd5b806323b872dd146102e557806332cb6b0c146103055780633eb1d7771461031c57806342842e0e1461033c57600080fd5b8063095ea7b3116101ab578063095ea7b3146102775780631249c58b1461029957806318160ddd146102a15780631919fed7146102c557600080fd5b806301ffc9a7146101d257806306fdde0314610207578063081812fc14610229575b600080fd5b3480156101de57600080fd5b506101f26101ed366004611172565b61054e565b60405190151581526020015b60405180910390f35b34801561021357600080fd5b5061021c6105a0565b6040516101fe9190611196565b34801561023557600080fd5b5061025f6102443660046111e4565b6004602052600090815260409020546001600160a01b031681565b6040516001600160a01b0390911681526020016101fe565b34801561028357600080fd5b50610297610292366004611214565b61062e565b005b610297610715565b3480156102ad57600080fd5b506102b760085481565b6040519081526020016101fe565b3480156102d157600080fd5b506102976102e03660046111e4565b610788565b3480156102f157600080fd5b5061029761030036600461123e565b610795565b34801561031157600080fd5b506102b7620186a081565b34801561032857600080fd5b506102976103373660046111e4565b61095c565b34801561034857600080fd5b5061029761035736600461123e565b610969565b34801561036857600080fd5b506102976103773660046112c3565b610a3e565b61029761038a366004611214565b610a53565b34801561039b57600080fd5b5061025f6103aa3660046111e4565b610b1c565b3480156103bb57600080fd5b506102b76103ca366004611305565b610b73565b3480156103db57600080fd5b50610297610bd6565b3480156103f057600080fd5b506006546001600160a01b031661025f565b34801561040e57600080fd5b5061021c610be8565b610297610425366004611214565b610af7565b34801561043657600080fd5b50610297610445366004611320565b610bf5565b610297610458366004611305565b610c61565b34801561046957600080fd5b5061029761047836600461135c565b610cfd565b34801561048957600080fd5b506102b760095481565b34801561049f57600080fd5b5061021c6104ae3660046111e4565b610dc2565b3480156104bf57600080fd5b506101f26104ce3660046113cb565b600560209081526000928352604080842090915290825290205460ff1681565b3480156104fa57600080fd5b5061021c610e56565b34801561050f57600080fd5b5061029761051e366004611305565b610e63565b34801561052f57600080fd5b506102b760075481565b34801561054557600080fd5b506009546102b7565b60006301ffc9a760e01b6001600160e01b03198316148061057f57506380ac58cd60e01b6001600160e01b03198316145b8061059a5750635b5e139f60e01b6001600160e01b03198316145b92915050565b600080546105ad906113fe565b80601f01602080910402602001604051908101604052809291908181526020018280546105d9906113fe565b80156106265780601f106105fb57610100808354040283529160200191610626565b820191906000526020600020905b81548152906001019060200180831161060957829003601f168201915b505050505081565b6000818152600260205260409020546001600160a01b03163381148061067757506001600160a01b038116600090815260056020908152604080832033845290915290205460ff165b6106b95760405162461bcd60e51b815260206004820152600e60248201526d1393d517d055551213d49256915160921b60448201526064015b60405180910390fd5b60008281526004602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b34600754146107365760405162461bcd60e51b81526004016106b090611438565b620186a060085460016107499190611485565b11156107675760405162461bcd60e51b81526004016106b090611498565b6008805461078691339190600061077d836114be565b91905055610ed9565b565b610790610fa5565b600755565b6000818152600260205260409020546001600160a01b038481169116146107eb5760405162461bcd60e51b815260206004820152600a60248201526957524f4e475f46524f4d60b01b60448201526064016106b0565b6001600160a01b0382166108355760405162461bcd60e51b81526020600482015260116024820152701253959053125117d49150d25412515395607a1b60448201526064016106b0565b336001600160a01b038416148061086f57506001600160a01b038316600090815260056020908152604080832033845290915290205460ff165b8061089057506000818152600460205260409020546001600160a01b031633145b6108cd5760405162461bcd60e51b815260206004820152600e60248201526d1393d517d055551213d49256915160921b60448201526064016106b0565b6001600160a01b0380841660008181526003602090815260408083208054600019019055938616808352848320805460010190558583526002825284832080546001600160a01b03199081168317909155600490925284832080549092169091559251849392917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b610964610fa5565b600955565b610974838383610795565b6001600160a01b0382163b1580610a1d5750604051630a85bd0160e11b8082523360048301526001600160a01b03858116602484015260448301849052608060648401526000608484015290919084169063150b7a029060a4016020604051808303816000875af11580156109ed573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a1191906114d7565b6001600160e01b031916145b610a395760405162461bcd60e51b81526004016106b0906114f4565b505050565b610a46610fa5565b600a610a39828483611582565b620186a06008546001610a669190611485565b1115610a845760405162461bcd60e51b81526004016106b090611498565b600954600114610aca5760405162461bcd60e51b8152602060048201526011602482015270135a5b9d1a5b99c81a5cc818db1bdcd959607a1b60448201526064016106b0565b80600754610ad89190611642565b341015610af75760405162461bcd60e51b81526004016106b090611438565b610b18828260086000828254610b0d9190611485565b925050819055610ed9565b5050565b6000818152600260205260409020546001600160a01b031680610b6e5760405162461bcd60e51b815260206004820152600a6024820152691393d517d3525395115160b21b60448201526064016106b0565b919050565b60006001600160a01b038216610bba5760405162461bcd60e51b815260206004820152600c60248201526b5a45524f5f4144445245535360a01b60448201526064016106b0565b506001600160a01b031660009081526003602052604090205490565b610bde610fa5565b6107866000610fff565b600180546105ad906113fe565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b620186a06008546001610c749190611485565b1115610c925760405162461bcd60e51b81526004016106b090611498565b600954600114610cd85760405162461bcd60e51b8152602060048201526011602482015270135a5b9d1a5b99c81a5cc818db1bdcd959607a1b60448201526064016106b0565b600754341015610cfa5760405162461bcd60e51b81526004016106b090611438565b50565b610d08858585610795565b6001600160a01b0384163b1580610d9f5750604051630a85bd0160e11b808252906001600160a01b0386169063150b7a0290610d509033908a90899089908990600401611659565b6020604051808303816000875af1158015610d6f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d9391906114d7565b6001600160e01b031916145b610dbb5760405162461bcd60e51b81526004016106b0906114f4565b5050505050565b6060600a8054610dd1906113fe565b80601f0160208091040260200160405190810160405280929190818152602001828054610dfd906113fe565b8015610e4a5780601f10610e1f57610100808354040283529160200191610e4a565b820191906000526020600020905b815481529060010190602001808311610e2d57829003601f168201915b50505050509050919050565b600a80546105ad906113fe565b610e6b610fa5565b6001600160a01b038116610ed05760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016106b0565b610cfa81610fff565b610ee38282611051565b6001600160a01b0382163b1580610f895750604051630a85bd0160e11b80825233600483015260006024830181905260448301849052608060648401526084830152906001600160a01b0384169063150b7a029060a4016020604051808303816000875af1158015610f59573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f7d91906114d7565b6001600160e01b031916145b610b185760405162461bcd60e51b81526004016106b0906114f4565b6006546001600160a01b031633146107865760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016106b0565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b03821661109b5760405162461bcd60e51b81526020600482015260116024820152701253959053125117d49150d25412515395607a1b60448201526064016106b0565b6000818152600260205260409020546001600160a01b0316156110f15760405162461bcd60e51b815260206004820152600e60248201526d1053149150511657d3525395115160921b60448201526064016106b0565b6001600160a01b038216600081815260036020908152604080832080546001019055848352600290915280822080546001600160a01b0319168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6001600160e01b031981168114610cfa57600080fd5b60006020828403121561118457600080fd5b813561118f8161115c565b9392505050565b600060208083528351808285015260005b818110156111c3578581018301518582016040015282016111a7565b506000604082860101526040601f19601f8301168501019250505092915050565b6000602082840312156111f657600080fd5b5035919050565b80356001600160a01b0381168114610b6e57600080fd5b6000806040838503121561122757600080fd5b611230836111fd565b946020939093013593505050565b60008060006060848603121561125357600080fd5b61125c846111fd565b925061126a602085016111fd565b9150604084013590509250925092565b60008083601f84011261128c57600080fd5b50813567ffffffffffffffff8111156112a457600080fd5b6020830191508360208285010111156112bc57600080fd5b9250929050565b600080602083850312156112d657600080fd5b823567ffffffffffffffff8111156112ed57600080fd5b6112f98582860161127a565b90969095509350505050565b60006020828403121561131757600080fd5b61118f826111fd565b6000806040838503121561133357600080fd5b61133c836111fd565b91506020830135801515811461135157600080fd5b809150509250929050565b60008060008060006080868803121561137457600080fd5b61137d866111fd565b945061138b602087016111fd565b935060408601359250606086013567ffffffffffffffff8111156113ae57600080fd5b6113ba8882890161127a565b969995985093965092949392505050565b600080604083850312156113de57600080fd5b6113e7836111fd565b91506113f5602084016111fd565b90509250929050565b600181811c9082168061141257607f821691505b60208210810361143257634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526018908201527f496e636f7272656374204554482076616c75652073656e740000000000000000604082015260600190565b634e487b7160e01b600052601160045260246000fd5b8082018082111561059a5761059a61146f565b6020808252600c908201526b139bc81b5bdc99481b19599d60a21b604082015260600190565b6000600182016114d0576114d061146f565b5060010190565b6000602082840312156114e957600080fd5b815161118f8161115c565b60208082526010908201526f155394d0519157d49150d2541251539560821b604082015260600190565b634e487b7160e01b600052604160045260246000fd5b601f821115610a3957600081815260208120601f850160051c8101602086101561155b5750805b601f850160051c820191505b8181101561157a57828155600101611567565b505050505050565b67ffffffffffffffff83111561159a5761159a61151e565b6115ae836115a883546113fe565b83611534565b6000601f8411600181146115e257600085156115ca5750838201355b600019600387901b1c1916600186901b178355610dbb565b600083815260209020601f19861690835b8281101561161357868501358255602094850194600190920191016115f3565b50868210156116305760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b808202811582820484141761059a5761059a61146f565b6001600160a01b038681168252851660208201526040810184905260806060820181905281018290526000828460a0840137600060a0848401015260a0601f19601f8501168301019050969550505050505056fea26469706673582212206a16b095b6d71c6c1ae2c337bcf1649468d4facf2027a007acc0f481d61c097464736f6c6343000814003368747470733a2f2f63646e2e6b61697a656e2e66696e616e63652f6e66742f4652455155454e434945532f6a736f6e56322f312e6a736f6e

Deployed Bytecode

0x6080604052600436106101cd5760003560e01c8063715018a6116100f7578063b88d4fde11610095578063eac989f811610064578063eac989f8146104ee578063f2fde38b14610503578063f51f96dd14610523578063fcaa76641461053957600080fd5b8063b88d4fde1461045d578063c040e6b81461047d578063c87b56dd14610493578063e985e9c5146104b357600080fd5b806395d89b41116100d157806395d89b41146104025780639883566e14610417578063a22cb4651461042a578063a53afc2a1461044a57600080fd5b8063715018a6146103cf5780638da5cb5b146103e457806391b7f5ed146102c557600080fd5b806323b872dd1161016f57806355f804b31161013e57806355f804b31461035c57806358891a371461037c5780636352211e1461038f57806370a08231146103af57600080fd5b806323b872dd146102e557806332cb6b0c146103055780633eb1d7771461031c57806342842e0e1461033c57600080fd5b8063095ea7b3116101ab578063095ea7b3146102775780631249c58b1461029957806318160ddd146102a15780631919fed7146102c557600080fd5b806301ffc9a7146101d257806306fdde0314610207578063081812fc14610229575b600080fd5b3480156101de57600080fd5b506101f26101ed366004611172565b61054e565b60405190151581526020015b60405180910390f35b34801561021357600080fd5b5061021c6105a0565b6040516101fe9190611196565b34801561023557600080fd5b5061025f6102443660046111e4565b6004602052600090815260409020546001600160a01b031681565b6040516001600160a01b0390911681526020016101fe565b34801561028357600080fd5b50610297610292366004611214565b61062e565b005b610297610715565b3480156102ad57600080fd5b506102b760085481565b6040519081526020016101fe565b3480156102d157600080fd5b506102976102e03660046111e4565b610788565b3480156102f157600080fd5b5061029761030036600461123e565b610795565b34801561031157600080fd5b506102b7620186a081565b34801561032857600080fd5b506102976103373660046111e4565b61095c565b34801561034857600080fd5b5061029761035736600461123e565b610969565b34801561036857600080fd5b506102976103773660046112c3565b610a3e565b61029761038a366004611214565b610a53565b34801561039b57600080fd5b5061025f6103aa3660046111e4565b610b1c565b3480156103bb57600080fd5b506102b76103ca366004611305565b610b73565b3480156103db57600080fd5b50610297610bd6565b3480156103f057600080fd5b506006546001600160a01b031661025f565b34801561040e57600080fd5b5061021c610be8565b610297610425366004611214565b610af7565b34801561043657600080fd5b50610297610445366004611320565b610bf5565b610297610458366004611305565b610c61565b34801561046957600080fd5b5061029761047836600461135c565b610cfd565b34801561048957600080fd5b506102b760095481565b34801561049f57600080fd5b5061021c6104ae3660046111e4565b610dc2565b3480156104bf57600080fd5b506101f26104ce3660046113cb565b600560209081526000928352604080842090915290825290205460ff1681565b3480156104fa57600080fd5b5061021c610e56565b34801561050f57600080fd5b5061029761051e366004611305565b610e63565b34801561052f57600080fd5b506102b760075481565b34801561054557600080fd5b506009546102b7565b60006301ffc9a760e01b6001600160e01b03198316148061057f57506380ac58cd60e01b6001600160e01b03198316145b8061059a5750635b5e139f60e01b6001600160e01b03198316145b92915050565b600080546105ad906113fe565b80601f01602080910402602001604051908101604052809291908181526020018280546105d9906113fe565b80156106265780601f106105fb57610100808354040283529160200191610626565b820191906000526020600020905b81548152906001019060200180831161060957829003601f168201915b505050505081565b6000818152600260205260409020546001600160a01b03163381148061067757506001600160a01b038116600090815260056020908152604080832033845290915290205460ff165b6106b95760405162461bcd60e51b815260206004820152600e60248201526d1393d517d055551213d49256915160921b60448201526064015b60405180910390fd5b60008281526004602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b34600754146107365760405162461bcd60e51b81526004016106b090611438565b620186a060085460016107499190611485565b11156107675760405162461bcd60e51b81526004016106b090611498565b6008805461078691339190600061077d836114be565b91905055610ed9565b565b610790610fa5565b600755565b6000818152600260205260409020546001600160a01b038481169116146107eb5760405162461bcd60e51b815260206004820152600a60248201526957524f4e475f46524f4d60b01b60448201526064016106b0565b6001600160a01b0382166108355760405162461bcd60e51b81526020600482015260116024820152701253959053125117d49150d25412515395607a1b60448201526064016106b0565b336001600160a01b038416148061086f57506001600160a01b038316600090815260056020908152604080832033845290915290205460ff165b8061089057506000818152600460205260409020546001600160a01b031633145b6108cd5760405162461bcd60e51b815260206004820152600e60248201526d1393d517d055551213d49256915160921b60448201526064016106b0565b6001600160a01b0380841660008181526003602090815260408083208054600019019055938616808352848320805460010190558583526002825284832080546001600160a01b03199081168317909155600490925284832080549092169091559251849392917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b610964610fa5565b600955565b610974838383610795565b6001600160a01b0382163b1580610a1d5750604051630a85bd0160e11b8082523360048301526001600160a01b03858116602484015260448301849052608060648401526000608484015290919084169063150b7a029060a4016020604051808303816000875af11580156109ed573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a1191906114d7565b6001600160e01b031916145b610a395760405162461bcd60e51b81526004016106b0906114f4565b505050565b610a46610fa5565b600a610a39828483611582565b620186a06008546001610a669190611485565b1115610a845760405162461bcd60e51b81526004016106b090611498565b600954600114610aca5760405162461bcd60e51b8152602060048201526011602482015270135a5b9d1a5b99c81a5cc818db1bdcd959607a1b60448201526064016106b0565b80600754610ad89190611642565b341015610af75760405162461bcd60e51b81526004016106b090611438565b610b18828260086000828254610b0d9190611485565b925050819055610ed9565b5050565b6000818152600260205260409020546001600160a01b031680610b6e5760405162461bcd60e51b815260206004820152600a6024820152691393d517d3525395115160b21b60448201526064016106b0565b919050565b60006001600160a01b038216610bba5760405162461bcd60e51b815260206004820152600c60248201526b5a45524f5f4144445245535360a01b60448201526064016106b0565b506001600160a01b031660009081526003602052604090205490565b610bde610fa5565b6107866000610fff565b600180546105ad906113fe565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b620186a06008546001610c749190611485565b1115610c925760405162461bcd60e51b81526004016106b090611498565b600954600114610cd85760405162461bcd60e51b8152602060048201526011602482015270135a5b9d1a5b99c81a5cc818db1bdcd959607a1b60448201526064016106b0565b600754341015610cfa5760405162461bcd60e51b81526004016106b090611438565b50565b610d08858585610795565b6001600160a01b0384163b1580610d9f5750604051630a85bd0160e11b808252906001600160a01b0386169063150b7a0290610d509033908a90899089908990600401611659565b6020604051808303816000875af1158015610d6f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d9391906114d7565b6001600160e01b031916145b610dbb5760405162461bcd60e51b81526004016106b0906114f4565b5050505050565b6060600a8054610dd1906113fe565b80601f0160208091040260200160405190810160405280929190818152602001828054610dfd906113fe565b8015610e4a5780601f10610e1f57610100808354040283529160200191610e4a565b820191906000526020600020905b815481529060010190602001808311610e2d57829003601f168201915b50505050509050919050565b600a80546105ad906113fe565b610e6b610fa5565b6001600160a01b038116610ed05760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016106b0565b610cfa81610fff565b610ee38282611051565b6001600160a01b0382163b1580610f895750604051630a85bd0160e11b80825233600483015260006024830181905260448301849052608060648401526084830152906001600160a01b0384169063150b7a029060a4016020604051808303816000875af1158015610f59573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f7d91906114d7565b6001600160e01b031916145b610b185760405162461bcd60e51b81526004016106b0906114f4565b6006546001600160a01b031633146107865760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016106b0565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b03821661109b5760405162461bcd60e51b81526020600482015260116024820152701253959053125117d49150d25412515395607a1b60448201526064016106b0565b6000818152600260205260409020546001600160a01b0316156110f15760405162461bcd60e51b815260206004820152600e60248201526d1053149150511657d3525395115160921b60448201526064016106b0565b6001600160a01b038216600081815260036020908152604080832080546001019055848352600290915280822080546001600160a01b0319168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6001600160e01b031981168114610cfa57600080fd5b60006020828403121561118457600080fd5b813561118f8161115c565b9392505050565b600060208083528351808285015260005b818110156111c3578581018301518582016040015282016111a7565b506000604082860101526040601f19601f8301168501019250505092915050565b6000602082840312156111f657600080fd5b5035919050565b80356001600160a01b0381168114610b6e57600080fd5b6000806040838503121561122757600080fd5b611230836111fd565b946020939093013593505050565b60008060006060848603121561125357600080fd5b61125c846111fd565b925061126a602085016111fd565b9150604084013590509250925092565b60008083601f84011261128c57600080fd5b50813567ffffffffffffffff8111156112a457600080fd5b6020830191508360208285010111156112bc57600080fd5b9250929050565b600080602083850312156112d657600080fd5b823567ffffffffffffffff8111156112ed57600080fd5b6112f98582860161127a565b90969095509350505050565b60006020828403121561131757600080fd5b61118f826111fd565b6000806040838503121561133357600080fd5b61133c836111fd565b91506020830135801515811461135157600080fd5b809150509250929050565b60008060008060006080868803121561137457600080fd5b61137d866111fd565b945061138b602087016111fd565b935060408601359250606086013567ffffffffffffffff8111156113ae57600080fd5b6113ba8882890161127a565b969995985093965092949392505050565b600080604083850312156113de57600080fd5b6113e7836111fd565b91506113f5602084016111fd565b90509250929050565b600181811c9082168061141257607f821691505b60208210810361143257634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526018908201527f496e636f7272656374204554482076616c75652073656e740000000000000000604082015260600190565b634e487b7160e01b600052601160045260246000fd5b8082018082111561059a5761059a61146f565b6020808252600c908201526b139bc81b5bdc99481b19599d60a21b604082015260600190565b6000600182016114d0576114d061146f565b5060010190565b6000602082840312156114e957600080fd5b815161118f8161115c565b60208082526010908201526f155394d0519157d49150d2541251539560821b604082015260600190565b634e487b7160e01b600052604160045260246000fd5b601f821115610a3957600081815260208120601f850160051c8101602086101561155b5750805b601f850160051c820191505b8181101561157a57828155600101611567565b505050505050565b67ffffffffffffffff83111561159a5761159a61151e565b6115ae836115a883546113fe565b83611534565b6000601f8411600181146115e257600085156115ca5750838201355b600019600387901b1c1916600186901b178355610dbb565b600083815260209020601f19861690835b8281101561161357868501358255602094850194600190920191016115f3565b50868210156116305760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b808202811582820484141761059a5761059a61146f565b6001600160a01b038681168252851660208201526040810184905260806060820181905281018290526000828460a0840137600060a0848401015260a0601f19601f8501168301019050969550505050505056fea26469706673582212206a16b095b6d71c6c1ae2c337bcf1649468d4facf2027a007acc0f481d61c097464736f6c63430008140033

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

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.