ETH Price: $3,363.16 (-1.57%)
Gas: 6 Gwei

Contract

0xDF4bcE0cB5623e0084C334a18Da401FDD2f01861
 

Overview

ETH Balance

0.004915222 ETH

Eth Value

$16.53 (@ $3,363.16/ETH)

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Value
Batch Transfer196978222024-04-20 16:29:3567 days ago1713630575IN
0xDF4bcE0c...DD2f01861
0 ETH0.0115924111.74003236
Batch Transfer195926072024-04-05 22:46:5981 days ago1712357219IN
0xDF4bcE0c...DD2f01861
0 ETH0.0017561215.03984141
Batch Transfer195925952024-04-05 22:44:3581 days ago1712357075IN
0xDF4bcE0c...DD2f01861
0 ETH0.0043502816.55100882
Batch Transfer192457862024-02-17 6:25:35130 days ago1708151135IN
0xDF4bcE0c...DD2f01861
0 ETH0.0031542216.34423992
Batch Transfer192235142024-02-14 3:25:11133 days ago1707881111IN
0xDF4bcE0c...DD2f01861
0 ETH0.0037207418.02162472
Batch Transfer190671002024-01-23 4:48:11155 days ago1705985291IN
0xDF4bcE0c...DD2f01861
0 ETH0.001600129.31520579
Batch Transfer189106752024-01-01 6:00:47177 days ago1704088847IN
0xDF4bcE0c...DD2f01861
0 ETH0.0014807113.23464306
Batch Transfer189097082024-01-01 2:45:23177 days ago1704077123IN
0xDF4bcE0c...DD2f01861
0 ETH0.0021564612.05870272
Batch Transfer189096842024-01-01 2:40:35177 days ago1704076835IN
0xDF4bcE0c...DD2f01861
0 ETH0.0028793212.53323077
Batch Transfer189095922024-01-01 2:21:47177 days ago1704075707IN
0xDF4bcE0c...DD2f01861
0 ETH0.001401811.98469676
Batch Transfer189095832024-01-01 2:19:59177 days ago1704075599IN
0xDF4bcE0c...DD2f01861
0 ETH0.0012273810.49353807
Batch Transfer189085622023-12-31 22:53:35177 days ago1704063215IN
0xDF4bcE0c...DD2f01861
0 ETH0.0078120128.2494521
Batch Transfer189077442023-12-31 20:09:23177 days ago1704053363IN
0xDF4bcE0c...DD2f01861
0 ETH0.0017187115.06379439
Batch Transfer189077082023-12-31 20:02:11177 days ago1704052931IN
0xDF4bcE0c...DD2f01861
0 ETH0.0038847915.33194034
Batch Transfer188988012023-12-30 14:03:35179 days ago1703945015IN
0xDF4bcE0c...DD2f01861
0 ETH0.0029628117.70855261
Batch Transfer188986972023-12-30 13:42:35179 days ago1703943755IN
0xDF4bcE0c...DD2f01861
0 ETH0.0019239318.80309386
Batch Transfer188986772023-12-30 13:38:35179 days ago1703943515IN
0xDF4bcE0c...DD2f01861
0 ETH0.0029366118.68978245
Batch Transfer188986612023-12-30 13:35:23179 days ago1703943323IN
0xDF4bcE0c...DD2f01861
0 ETH0.0017856718.7107197
Batch Transfer188971692023-12-30 8:31:47179 days ago1703925107IN
0xDF4bcE0c...DD2f01861
0 ETH0.0011063112.77735966
Batch Transfer188802362023-12-27 23:25:47181 days ago1703719547IN
0xDF4bcE0c...DD2f01861
0 ETH0.0021055727.73077792
Batch Transfer188710322023-12-26 16:22:23183 days ago1703607743IN
0xDF4bcE0c...DD2f01861
0 ETH0.0021639727.74614657
Batch Transfer188710082023-12-26 16:17:35183 days ago1703607455IN
0xDF4bcE0c...DD2f01861
0 ETH0.00417630.42318489
Batch Transfer188709952023-12-26 16:14:59183 days ago1703607299IN
0xDF4bcE0c...DD2f01861
0 ETH0.0064336130.59925041
Batch Transfer188709622023-12-26 16:08:23183 days ago1703606903IN
0xDF4bcE0c...DD2f01861
0 ETH0.004853930.43849626
Batch Transfer188709362023-12-26 16:03:11183 days ago1703606591IN
0xDF4bcE0c...DD2f01861
0 ETH0.0025492236.17159175
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block From To Value
196978222024-04-20 16:29:3567 days ago1713630575
0xDF4bcE0c...DD2f01861
0.00000003 ETH
195926072024-04-05 22:46:5981 days ago1712357219
0xDF4bcE0c...DD2f01861
0 ETH
195925952024-04-05 22:44:3581 days ago1712357075
0xDF4bcE0c...DD2f01861
0 ETH
192457862024-02-17 6:25:35130 days ago1708151135
0xDF4bcE0c...DD2f01861
0 ETH
192235142024-02-14 3:25:11133 days ago1707881111
0xDF4bcE0c...DD2f01861
0 ETH
190671002024-01-23 4:48:11155 days ago1705985291
0xDF4bcE0c...DD2f01861
0 ETH
189106752024-01-01 6:00:47177 days ago1704088847
0xDF4bcE0c...DD2f01861
0 ETH
189097082024-01-01 2:45:23177 days ago1704077123
0xDF4bcE0c...DD2f01861
0 ETH
189096842024-01-01 2:40:35177 days ago1704076835
0xDF4bcE0c...DD2f01861
0 ETH
189095922024-01-01 2:21:47177 days ago1704075707
0xDF4bcE0c...DD2f01861
0 ETH
189095832024-01-01 2:19:59177 days ago1704075599
0xDF4bcE0c...DD2f01861
0 ETH
189085622023-12-31 22:53:35177 days ago1704063215
0xDF4bcE0c...DD2f01861
0 ETH
189077442023-12-31 20:09:23177 days ago1704053363
0xDF4bcE0c...DD2f01861
0 ETH
189077082023-12-31 20:02:11177 days ago1704052931
0xDF4bcE0c...DD2f01861
0 ETH
188988012023-12-30 14:03:35179 days ago1703945015
0xDF4bcE0c...DD2f01861
0 ETH
188986972023-12-30 13:42:35179 days ago1703943755
0xDF4bcE0c...DD2f01861
0 ETH
188986772023-12-30 13:38:35179 days ago1703943515
0xDF4bcE0c...DD2f01861
0 ETH
188986612023-12-30 13:35:23179 days ago1703943323
0xDF4bcE0c...DD2f01861
0 ETH
188971692023-12-30 8:31:47179 days ago1703925107
0xDF4bcE0c...DD2f01861
0 ETH
188802362023-12-27 23:25:47181 days ago1703719547
0xDF4bcE0c...DD2f01861
0 ETH
188710322023-12-26 16:22:23183 days ago1703607743
0xDF4bcE0c...DD2f01861
0 ETH
188710082023-12-26 16:17:35183 days ago1703607455
0xDF4bcE0c...DD2f01861
0 ETH
188709952023-12-26 16:14:59183 days ago1703607299
0xDF4bcE0c...DD2f01861
0 ETH
188709622023-12-26 16:08:23183 days ago1703606903
0xDF4bcE0c...DD2f01861
0 ETH
188709362023-12-26 16:03:11183 days ago1703606591
0xDF4bcE0c...DD2f01861
0 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
HarvestArt

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license
File 1 of 5 : HarvestArt.sol
pragma solidity >=0.8.0 <0.9.0;
//SPDX-License-Identifier: MIT

// ⠀⡠⡤⢤⣀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
// ⠀⠀⠀⢿⡢⣁⢄⢫⡲⢤⡀⠀⠀⠀⠀⢀⠄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
// ⠀⠀⠀⠘⣧⡁⢔⢑⢄⠙⣬⠳⢄⠀⠀⣾⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
// ⠀⠀⠀⠀⠘⢎⣤⠑⣤⠛⢄⠝⠃⡙⢦⣸⣧⡀⠀⢠⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
// ⠀⠀⠀⠀⠀⠈⢧⡿⣀⠷⣁⠱⢎⠉⣦⡛⢿⣷⣤⣯⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
// ⠀⠀⠈⠉⠛⠻⢶⣵⣎⣢⡜⠣⣠⠛⢄⣜⣳⣿⣿⣿⡄⠀⠀⠀⠀⠀⠀⠀⠀⠀
// ⠀⠀⠀⠀⠀⠀⠀⠈⠻⢿⣿⣾⣿⣾⣿⣿⣿⣿⣿⣿⣷⣄⠀⠀⠀⠀⠀⠀⠀⠀
// ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠙⢿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣷⡀⠀⠀⠀⠀⠀⠀
// ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣰⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣷⠀⠀⠀⠀⠀⠀
// ⠀⠀⠀⠀⠀⠀⠀⠀⠀⢰⣿⠟⠛⠛⠛⢿⣿⣿⣿⣿⣿⣿⣿⣿⡇⠀⠀⠀⠀⠀
// ⠀⠀⠀⠀⠀⠀⠀⠀⠀⢸⠋⠀⠀⠀⠀⠀⠙⠿⣿⣿⣿⣿⣿⣿⣿⠂⠀⠀⠀⠀
// ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⠻⠿⠋⠁

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/Pausable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";

interface ERCBase {
    function supportsInterface(bytes4 interfaceId) external view returns (bool);
    function isApprovedForAll(address account, address operator) external view returns (bool);
}

interface ERC721Partial is ERCBase {
    function transferFrom(address from, address to, uint256 tokenId) external;
}

interface ERC1155Partial is ERCBase {
    function safeTransferFrom(address from, address to, uint256 id, uint256 amount, bytes calldata) external;
}

contract HarvestArt is ReentrancyGuard, Pausable, Ownable {

    bytes4 _ERC721 = 0x80ac58cd;
    bytes4 _ERC1155 = 0xd9b67a26;

    address public barn = address(0);
    uint256 public defaultPrice = 1 gwei;
    uint256 public maxTokensPerTx = 100;

    mapping (address => uint256) private _contractPrices;

    function setBarn(address _barn) onlyOwner public {
        barn = _barn;
    }

    function setDefaultPrice(uint256 _defaultPrice) onlyOwner public {
        defaultPrice = _defaultPrice;
    }

    function setMaxTokensPerTx(uint256 _maxTokensPerTx) onlyOwner public {
        maxTokensPerTx = _maxTokensPerTx;
    }

    function setPriceByContract(address contractAddress, uint256 price) onlyOwner public {
        _contractPrices[contractAddress] = price;
    }

    function pause() onlyOwner public {
        _pause();
    }

    function unpause() onlyOwner public {
        _unpause();
    }

    function _getPrice(address contractAddress) internal view returns (uint256) {
        if (_contractPrices[contractAddress] > 0)
            return _contractPrices[contractAddress];
        else
            return defaultPrice;
    }

    function batchTransfer(address[] calldata tokenContracts, uint256[] calldata tokenIds, uint256[] calldata counts) external whenNotPaused {
        require(barn != address(0), "Barn cannot be the 0x0 address");
        require(tokenContracts.length > 0, "Must have 1 or more token contracts");
        require(tokenContracts.length == tokenIds.length && tokenIds.length == counts.length, "All params must have equal length");

        ERCBase tokenContract;
        uint256 totalTokens = 0;
        uint256 totalPrice = 0;

        for (uint256 i = 0; i < tokenContracts.length; i++) {
            require(counts[i] > 0, "Token count must be greater than zero.");

            tokenContract = ERCBase(tokenContracts[i]);

            if (tokenContract.supportsInterface(_ERC721)) {
                totalTokens += 1;
                totalPrice += _getPrice(tokenContracts[i]);
            }
            else if (tokenContract.supportsInterface(_ERC1155)) {
                totalTokens += counts[i];
                totalPrice += _getPrice(tokenContracts[i]) * counts[i];
            }
            else {
                continue;
            }

            require(totalTokens < maxTokensPerTx, "Maximum token count reached.");
            require(address(this).balance > totalPrice, "Not enough ether in contract.");
            require(tokenContract.isApprovedForAll(msg.sender, address(this)), "Token not yet approved for all transfers");

            if (tokenContract.supportsInterface(_ERC721)) {
                ERC721Partial(tokenContracts[i]).transferFrom(msg.sender, barn, tokenIds[i]);
            }
            else {
                ERC1155Partial(tokenContracts[i]).safeTransferFrom(msg.sender, barn, tokenIds[i], counts[i], "");
            }
        }

        (bool sent, ) = payable(msg.sender).call{ value: totalPrice }("");
        require(sent, "Failed to send ether.");
    }

    receive () external payable { }

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

File 2 of 5 : Ownable.sol
// SPDX-License-Identifier: MIT

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() {
        _setOwner(_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 {
        _setOwner(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");
        _setOwner(newOwner);
    }

    function _setOwner(address newOwner) private {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 3 of 5 : Pausable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../utils/Context.sol";

/**
 * @dev Contract module which allows children to implement an emergency stop
 * mechanism that can be triggered by an authorized account.
 *
 * This module is used through inheritance. It will make available the
 * modifiers `whenNotPaused` and `whenPaused`, which can be applied to
 * the functions of your contract. Note that they will not be pausable by
 * simply including this module, only once the modifiers are put in place.
 */
abstract contract Pausable is Context {
    /**
     * @dev Emitted when the pause is triggered by `account`.
     */
    event Paused(address account);

    /**
     * @dev Emitted when the pause is lifted by `account`.
     */
    event Unpaused(address account);

    bool private _paused;

    /**
     * @dev Initializes the contract in unpaused state.
     */
    constructor() {
        _paused = false;
    }

    /**
     * @dev Returns true if the contract is paused, and false otherwise.
     */
    function paused() public view virtual returns (bool) {
        return _paused;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is not paused.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    modifier whenNotPaused() {
        require(!paused(), "Pausable: paused");
        _;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is paused.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    modifier whenPaused() {
        require(paused(), "Pausable: not paused");
        _;
    }

    /**
     * @dev Triggers stopped state.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    function _pause() internal virtual whenNotPaused {
        _paused = true;
        emit Paused(_msgSender());
    }

    /**
     * @dev Returns to normal state.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    function _unpause() internal virtual whenPaused {
        _paused = false;
        emit Unpaused(_msgSender());
    }
}

File 4 of 5 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT

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 make 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 5 of 5 : Context.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

Contract Security Audit

Contract ABI

[{"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":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"barn","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"tokenContracts","type":"address[]"},{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"},{"internalType":"uint256[]","name":"counts","type":"uint256[]"}],"name":"batchTransfer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"defaultPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxTokensPerTx","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_barn","type":"address"}],"name":"setBarn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_defaultPrice","type":"uint256"}],"name":"setDefaultPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxTokensPerTx","type":"uint256"}],"name":"setMaxTokensPerTx","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"contractAddress","type":"address"},{"internalType":"uint256","name":"price","type":"uint256"}],"name":"setPriceByContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawBalance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

608060405260018054600160a81b600160e81b03191667d9b67a2680ac58cd60a81b179055600280546001600160a01b0319169055633b9aca00600355606460045534801561004d57600080fd5b5060016000819055805460ff191690556100663361006b565b6100c5565b600180546001600160a01b03838116610100818102610100600160a81b031985161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b611265806100d46000396000f3fe6080604052600436106100ec5760003560e01c80636d3c7ec51161008a578063b9bed05e11610059578063b9bed05e14610255578063c9f01d8314610275578063e69e04b314610295578063f2fde38b146102ab57600080fd5b80636d3c7ec5146101e8578063715018a6146102085780638456cb591461021d5780638da5cb5b1461023257600080fd5b80633f4ba83a116100c65780633f4ba83a146101775780635c975abb1461018c5780635e307a48146101af5780635fd8c710146101d357600080fd5b8063194f480e146100f85780631ef690c4146101355780633b342a851461015757600080fd5b366100f357005b600080fd5b34801561010457600080fd5b50600254610118906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b34801561014157600080fd5b506101556101503660046110c4565b6102cb565b005b34801561016357600080fd5b5061015561017236600461107a565b610bbb565b34801561018357600080fd5b50610155610c0d565b34801561019857600080fd5b5060015460ff16604051901515815260200161012c565b3480156101bb57600080fd5b506101c560045481565b60405190815260200161012c565b3480156101df57600080fd5b50610155610c47565b3480156101f457600080fd5b5061015561020336600461117a565b610ca6565b34801561021457600080fd5b50610155610cdb565b34801561022957600080fd5b50610155610d15565b34801561023e57600080fd5b5060015461010090046001600160a01b0316610118565b34801561026157600080fd5b5061015561027036600461117a565b610d4d565b34801561028157600080fd5b5061015561029036600461109b565b610d82565b3480156102a157600080fd5b506101c560035481565b3480156102b757600080fd5b506101556102c636600461107a565b610dce565b60015460ff16156103165760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b60448201526064015b60405180910390fd5b6002546001600160a01b031661036e5760405162461bcd60e51b815260206004820152601e60248201527f4261726e2063616e6e6f74206265207468652030783020616464726573730000604482015260640161030d565b846103c75760405162461bcd60e51b815260206004820152602360248201527f4d75737420686176652031206f72206d6f726520746f6b656e20636f6e74726160448201526263747360e81b606482015260840161030d565b84831480156103d557508281145b61042b5760405162461bcd60e51b815260206004820152602160248201527f416c6c20706172616d73206d757374206861766520657175616c206c656e67746044820152600d60fb1b606482015260840161030d565b60008080805b88811015610b1e57600086868381811061045b57634e487b7160e01b600052603260045260246000fd5b90506020020135116104be5760405162461bcd60e51b815260206004820152602660248201527f546f6b656e20636f756e74206d7573742062652067726561746572207468616e604482015265103d32b9379760d11b606482015260840161030d565b8989828181106104de57634e487b7160e01b600052603260045260246000fd5b90506020020160208101906104f3919061107a565b6001546040516301ffc9a760e01b8152600160a81b90910460e01b6001600160e01b03191660048201529094506001600160a01b038516906301ffc9a79060240160206040518083038186803b15801561054c57600080fd5b505afa158015610560573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610584919061115a565b156105e4576105946001846111c7565b92506105d38a8a838181106105b957634e487b7160e01b600052603260045260246000fd5b90506020020160208101906105ce919061107a565b610e6c565b6105dd90836111c7565b9150610704565b6001546040516301ffc9a760e01b8152600160c81b90910460e01b6001600160e01b03191660048201526001600160a01b038516906301ffc9a79060240160206040518083038186803b15801561063a57600080fd5b505afa15801561064e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610672919061115a565b156106ff5785858281811061069757634e487b7160e01b600052603260045260246000fd5b90506020020135836106a991906111c7565b92508585828181106106cb57634e487b7160e01b600052603260045260246000fd5b905060200201356106f58b8b848181106105b957634e487b7160e01b600052603260045260246000fd5b6105d391906111df565b610b0c565b60045483106107555760405162461bcd60e51b815260206004820152601c60248201527f4d6178696d756d20746f6b656e20636f756e7420726561636865642e00000000604482015260640161030d565b8147116107a45760405162461bcd60e51b815260206004820152601d60248201527f4e6f7420656e6f75676820657468657220696e20636f6e74726163742e000000604482015260640161030d565b60405163e985e9c560e01b81523360048201523060248201526001600160a01b0385169063e985e9c59060440160206040518083038186803b1580156107e957600080fd5b505afa1580156107fd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610821919061115a565b61087e5760405162461bcd60e51b815260206004820152602860248201527f546f6b656e206e6f742079657420617070726f76656420666f7220616c6c207460448201526772616e736665727360c01b606482015260840161030d565b6001546040516301ffc9a760e01b8152600160a81b90910460e01b6001600160e01b03191660048201526001600160a01b038516906301ffc9a79060240160206040518083038186803b1580156108d457600080fd5b505afa1580156108e8573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061090c919061115a565b156109f25789898281811061093157634e487b7160e01b600052603260045260246000fd5b9050602002016020810190610946919061107a565b6002546001600160a01b03918216916323b872dd913391168b8b8681811061097e57634e487b7160e01b600052603260045260246000fd5b6040516001600160e01b031960e088901b1681526001600160a01b03958616600482015294909316602485015250602090910201356044820152606401600060405180830381600087803b1580156109d557600080fd5b505af11580156109e9573d6000803e3d6000fd5b50505050610b0c565b898982818110610a1257634e487b7160e01b600052603260045260246000fd5b9050602002016020810190610a27919061107a565b6002546001600160a01b039182169163f242432a913391168b8b86818110610a5f57634e487b7160e01b600052603260045260246000fd5b905060200201358a8a87818110610a8657634e487b7160e01b600052603260045260246000fd5b6040516001600160e01b031960e089901b1681526001600160a01b03968716600482015295909416602486015250604484019190915260209091020135606482015260a06084820152600060a482015260c401600060405180830381600087803b158015610af357600080fd5b505af1158015610b07573d6000803e3d6000fd5b505050505b80610b16816111fe565b915050610431565b50604051600090339083908381818185875af1925050503d8060008114610b61576040519150601f19603f3d011682016040523d82523d6000602084013e610b66565b606091505b5050905080610baf5760405162461bcd60e51b81526020600482015260156024820152742330b4b632b2103a379039b2b7321032ba3432b91760591b604482015260640161030d565b50505050505050505050565b6001546001600160a01b03610100909104163314610beb5760405162461bcd60e51b815260040161030d90611192565b600280546001600160a01b0319166001600160a01b0392909216919091179055565b6001546001600160a01b03610100909104163314610c3d5760405162461bcd60e51b815260040161030d90611192565b610c45610eb3565b565b6001546001600160a01b03610100909104163314610c775760405162461bcd60e51b815260040161030d90611192565b60405133904780156108fc02916000818181858888f19350505050158015610ca3573d6000803e3d6000fd5b50565b6001546001600160a01b03610100909104163314610cd65760405162461bcd60e51b815260040161030d90611192565b600355565b6001546001600160a01b03610100909104163314610d0b5760405162461bcd60e51b815260040161030d90611192565b610c456000610f46565b6001546001600160a01b03610100909104163314610d455760405162461bcd60e51b815260040161030d90611192565b610c45610fa0565b6001546001600160a01b03610100909104163314610d7d5760405162461bcd60e51b815260040161030d90611192565b600455565b6001546001600160a01b03610100909104163314610db25760405162461bcd60e51b815260040161030d90611192565b6001600160a01b03909116600090815260056020526040902055565b6001546001600160a01b03610100909104163314610dfe5760405162461bcd60e51b815260040161030d90611192565b6001600160a01b038116610e635760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161030d565b610ca381610f46565b6001600160a01b03811660009081526005602052604081205415610ea657506001600160a01b031660009081526005602052604090205490565b505060035490565b919050565b60015460ff16610efc5760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604482015260640161030d565b6001805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b600180546001600160a01b03838116610100818102610100600160a81b031985161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60015460ff1615610fe65760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015260640161030d565b6001805460ff1916811790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25833610f29565b80356001600160a01b0381168114610eae57600080fd5b60008083601f840112611041578182fd5b50813567ffffffffffffffff811115611058578182fd5b6020830191508360208260051b850101111561107357600080fd5b9250929050565b60006020828403121561108b578081fd5b61109482611019565b9392505050565b600080604083850312156110ad578081fd5b6110b683611019565b946020939093013593505050565b600080600080600080606087890312156110dc578182fd5b863567ffffffffffffffff808211156110f3578384fd5b6110ff8a838b01611030565b90985096506020890135915080821115611117578384fd5b6111238a838b01611030565b9096509450604089013591508082111561113b578384fd5b5061114889828a01611030565b979a9699509497509295939492505050565b60006020828403121561116b578081fd5b81518015158114611094578182fd5b60006020828403121561118b578081fd5b5035919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600082198211156111da576111da611219565b500190565b60008160001904831182151516156111f9576111f9611219565b500290565b600060001982141561121257611212611219565b5060010190565b634e487b7160e01b600052601160045260246000fdfea2646970667358221220d88dd506feb474cd5214ed3e9497043690480adffa92707e945f5fbe22f9f02964736f6c63430008040033

Deployed Bytecode

0x6080604052600436106100ec5760003560e01c80636d3c7ec51161008a578063b9bed05e11610059578063b9bed05e14610255578063c9f01d8314610275578063e69e04b314610295578063f2fde38b146102ab57600080fd5b80636d3c7ec5146101e8578063715018a6146102085780638456cb591461021d5780638da5cb5b1461023257600080fd5b80633f4ba83a116100c65780633f4ba83a146101775780635c975abb1461018c5780635e307a48146101af5780635fd8c710146101d357600080fd5b8063194f480e146100f85780631ef690c4146101355780633b342a851461015757600080fd5b366100f357005b600080fd5b34801561010457600080fd5b50600254610118906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b34801561014157600080fd5b506101556101503660046110c4565b6102cb565b005b34801561016357600080fd5b5061015561017236600461107a565b610bbb565b34801561018357600080fd5b50610155610c0d565b34801561019857600080fd5b5060015460ff16604051901515815260200161012c565b3480156101bb57600080fd5b506101c560045481565b60405190815260200161012c565b3480156101df57600080fd5b50610155610c47565b3480156101f457600080fd5b5061015561020336600461117a565b610ca6565b34801561021457600080fd5b50610155610cdb565b34801561022957600080fd5b50610155610d15565b34801561023e57600080fd5b5060015461010090046001600160a01b0316610118565b34801561026157600080fd5b5061015561027036600461117a565b610d4d565b34801561028157600080fd5b5061015561029036600461109b565b610d82565b3480156102a157600080fd5b506101c560035481565b3480156102b757600080fd5b506101556102c636600461107a565b610dce565b60015460ff16156103165760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b60448201526064015b60405180910390fd5b6002546001600160a01b031661036e5760405162461bcd60e51b815260206004820152601e60248201527f4261726e2063616e6e6f74206265207468652030783020616464726573730000604482015260640161030d565b846103c75760405162461bcd60e51b815260206004820152602360248201527f4d75737420686176652031206f72206d6f726520746f6b656e20636f6e74726160448201526263747360e81b606482015260840161030d565b84831480156103d557508281145b61042b5760405162461bcd60e51b815260206004820152602160248201527f416c6c20706172616d73206d757374206861766520657175616c206c656e67746044820152600d60fb1b606482015260840161030d565b60008080805b88811015610b1e57600086868381811061045b57634e487b7160e01b600052603260045260246000fd5b90506020020135116104be5760405162461bcd60e51b815260206004820152602660248201527f546f6b656e20636f756e74206d7573742062652067726561746572207468616e604482015265103d32b9379760d11b606482015260840161030d565b8989828181106104de57634e487b7160e01b600052603260045260246000fd5b90506020020160208101906104f3919061107a565b6001546040516301ffc9a760e01b8152600160a81b90910460e01b6001600160e01b03191660048201529094506001600160a01b038516906301ffc9a79060240160206040518083038186803b15801561054c57600080fd5b505afa158015610560573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610584919061115a565b156105e4576105946001846111c7565b92506105d38a8a838181106105b957634e487b7160e01b600052603260045260246000fd5b90506020020160208101906105ce919061107a565b610e6c565b6105dd90836111c7565b9150610704565b6001546040516301ffc9a760e01b8152600160c81b90910460e01b6001600160e01b03191660048201526001600160a01b038516906301ffc9a79060240160206040518083038186803b15801561063a57600080fd5b505afa15801561064e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610672919061115a565b156106ff5785858281811061069757634e487b7160e01b600052603260045260246000fd5b90506020020135836106a991906111c7565b92508585828181106106cb57634e487b7160e01b600052603260045260246000fd5b905060200201356106f58b8b848181106105b957634e487b7160e01b600052603260045260246000fd5b6105d391906111df565b610b0c565b60045483106107555760405162461bcd60e51b815260206004820152601c60248201527f4d6178696d756d20746f6b656e20636f756e7420726561636865642e00000000604482015260640161030d565b8147116107a45760405162461bcd60e51b815260206004820152601d60248201527f4e6f7420656e6f75676820657468657220696e20636f6e74726163742e000000604482015260640161030d565b60405163e985e9c560e01b81523360048201523060248201526001600160a01b0385169063e985e9c59060440160206040518083038186803b1580156107e957600080fd5b505afa1580156107fd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610821919061115a565b61087e5760405162461bcd60e51b815260206004820152602860248201527f546f6b656e206e6f742079657420617070726f76656420666f7220616c6c207460448201526772616e736665727360c01b606482015260840161030d565b6001546040516301ffc9a760e01b8152600160a81b90910460e01b6001600160e01b03191660048201526001600160a01b038516906301ffc9a79060240160206040518083038186803b1580156108d457600080fd5b505afa1580156108e8573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061090c919061115a565b156109f25789898281811061093157634e487b7160e01b600052603260045260246000fd5b9050602002016020810190610946919061107a565b6002546001600160a01b03918216916323b872dd913391168b8b8681811061097e57634e487b7160e01b600052603260045260246000fd5b6040516001600160e01b031960e088901b1681526001600160a01b03958616600482015294909316602485015250602090910201356044820152606401600060405180830381600087803b1580156109d557600080fd5b505af11580156109e9573d6000803e3d6000fd5b50505050610b0c565b898982818110610a1257634e487b7160e01b600052603260045260246000fd5b9050602002016020810190610a27919061107a565b6002546001600160a01b039182169163f242432a913391168b8b86818110610a5f57634e487b7160e01b600052603260045260246000fd5b905060200201358a8a87818110610a8657634e487b7160e01b600052603260045260246000fd5b6040516001600160e01b031960e089901b1681526001600160a01b03968716600482015295909416602486015250604484019190915260209091020135606482015260a06084820152600060a482015260c401600060405180830381600087803b158015610af357600080fd5b505af1158015610b07573d6000803e3d6000fd5b505050505b80610b16816111fe565b915050610431565b50604051600090339083908381818185875af1925050503d8060008114610b61576040519150601f19603f3d011682016040523d82523d6000602084013e610b66565b606091505b5050905080610baf5760405162461bcd60e51b81526020600482015260156024820152742330b4b632b2103a379039b2b7321032ba3432b91760591b604482015260640161030d565b50505050505050505050565b6001546001600160a01b03610100909104163314610beb5760405162461bcd60e51b815260040161030d90611192565b600280546001600160a01b0319166001600160a01b0392909216919091179055565b6001546001600160a01b03610100909104163314610c3d5760405162461bcd60e51b815260040161030d90611192565b610c45610eb3565b565b6001546001600160a01b03610100909104163314610c775760405162461bcd60e51b815260040161030d90611192565b60405133904780156108fc02916000818181858888f19350505050158015610ca3573d6000803e3d6000fd5b50565b6001546001600160a01b03610100909104163314610cd65760405162461bcd60e51b815260040161030d90611192565b600355565b6001546001600160a01b03610100909104163314610d0b5760405162461bcd60e51b815260040161030d90611192565b610c456000610f46565b6001546001600160a01b03610100909104163314610d455760405162461bcd60e51b815260040161030d90611192565b610c45610fa0565b6001546001600160a01b03610100909104163314610d7d5760405162461bcd60e51b815260040161030d90611192565b600455565b6001546001600160a01b03610100909104163314610db25760405162461bcd60e51b815260040161030d90611192565b6001600160a01b03909116600090815260056020526040902055565b6001546001600160a01b03610100909104163314610dfe5760405162461bcd60e51b815260040161030d90611192565b6001600160a01b038116610e635760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161030d565b610ca381610f46565b6001600160a01b03811660009081526005602052604081205415610ea657506001600160a01b031660009081526005602052604090205490565b505060035490565b919050565b60015460ff16610efc5760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604482015260640161030d565b6001805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b600180546001600160a01b03838116610100818102610100600160a81b031985161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60015460ff1615610fe65760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015260640161030d565b6001805460ff1916811790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25833610f29565b80356001600160a01b0381168114610eae57600080fd5b60008083601f840112611041578182fd5b50813567ffffffffffffffff811115611058578182fd5b6020830191508360208260051b850101111561107357600080fd5b9250929050565b60006020828403121561108b578081fd5b61109482611019565b9392505050565b600080604083850312156110ad578081fd5b6110b683611019565b946020939093013593505050565b600080600080600080606087890312156110dc578182fd5b863567ffffffffffffffff808211156110f3578384fd5b6110ff8a838b01611030565b90985096506020890135915080821115611117578384fd5b6111238a838b01611030565b9096509450604089013591508082111561113b578384fd5b5061114889828a01611030565b979a9699509497509295939492505050565b60006020828403121561116b578081fd5b81518015158114611094578182fd5b60006020828403121561118b578081fd5b5035919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600082198211156111da576111da611219565b500190565b60008160001904831182151516156111f9576111f9611219565b500290565b600060001982141561121257611212611219565b5060010190565b634e487b7160e01b600052601160045260246000fdfea2646970667358221220d88dd506feb474cd5214ed3e9497043690480adffa92707e945f5fbe22f9f02964736f6c63430008040033

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.