ETH Price: $3,434.87 (+2.49%)
Gas: 4 Gwei

Contract

0x63eBC3cb5b4d5F494A2e78b998278184c08f8638
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Evolve190441042024-01-19 23:10:47178 days ago1705705847IN
0x63eBC3cb...4c08f8638
0 ETH0.0036170219.09115476
Evolve190396742024-01-19 8:20:47178 days ago1705652447IN
0x63eBC3cb...4c08f8638
0 ETH0.0046326224.45161017
Evolve190202972024-01-16 15:18:11181 days ago1705418291IN
0x63eBC3cb...4c08f8638
0 ETH0.0089695747.34256862
Evolve190150682024-01-15 21:48:23182 days ago1705355303IN
0x63eBC3cb...4c08f8638
0 ETH0.0042245422.29769292
Evolve190103232024-01-15 5:53:47183 days ago1705298027IN
0x63eBC3cb...4c08f8638
0 ETH0.0038851320.50623741
Evolve189603892024-01-08 6:01:23190 days ago1704693683IN
0x63eBC3cb...4c08f8638
0 ETH0.0036094419.05111121
Evolve189534262024-01-07 6:25:11191 days ago1704608711IN
0x63eBC3cb...4c08f8638
0 ETH0.0065996834.83400074
Evolve189533612024-01-07 6:12:11191 days ago1704607931IN
0x63eBC3cb...4c08f8638
0 ETH0.0084255544.47117061
Evolve189254982024-01-03 7:58:11194 days ago1704268691IN
0x63eBC3cb...4c08f8638
0 ETH0.0029499815.5704191
Evolve189254752024-01-03 7:53:35194 days ago1704268415IN
0x63eBC3cb...4c08f8638
0 ETH0.0027672714.60601922
Evolve189122082024-01-01 11:11:59196 days ago1704107519IN
0x63eBC3cb...4c08f8638
0 ETH0.0023569812.440451
Evolve188790622023-12-27 19:26:35201 days ago1703705195IN
0x63eBC3cb...4c08f8638
0 ETH0.0059448431.37766406
Evolve188247492023-12-20 4:29:23209 days ago1703046563IN
0x63eBC3cb...4c08f8638
0 ETH0.0069343836.60059174
Evolve188247352023-12-20 4:26:35209 days ago1703046395IN
0x63eBC3cb...4c08f8638
0 ETH0.0068589236.20230597
Evolve188247292023-12-20 4:25:23209 days ago1703046323IN
0x63eBC3cb...4c08f8638
0 ETH0.0084274143.38193543
Evolve188247252023-12-20 4:24:35209 days ago1703046275IN
0x63eBC3cb...4c08f8638
0 ETH0.007898441.68882353
Evolve188246852023-12-20 4:16:35209 days ago1703045795IN
0x63eBC3cb...4c08f8638
0 ETH0.010163552.31883808
Evolve188246712023-12-20 4:13:47209 days ago1703045627IN
0x63eBC3cb...4c08f8638
0 ETH0.0121171963.95614437
Evolve188244952023-12-20 3:38:23209 days ago1703043503IN
0x63eBC3cb...4c08f8638
0 ETH0.0064614134.10420403
Evolve184683412023-10-31 6:31:47258 days ago1698733907IN
0x63eBC3cb...4c08f8638
0 ETH0.0033586817.72757572
Evolve184246522023-10-25 3:42:11265 days ago1698205331IN
0x63eBC3cb...4c08f8638
0 ETH0.0028985415.29892287
Evolve182716622023-10-03 18:02:59286 days ago1696356179IN
0x63eBC3cb...4c08f8638
0 ETH0.0038616120.38211404
Evolve181063462023-09-10 13:42:59309 days ago1694353379IN
0x63eBC3cb...4c08f8638
0 ETH0.00164518.68310517
Evolve180582472023-09-03 20:07:47316 days ago1693771667IN
0x63eBC3cb...4c08f8638
0 ETH0.0033179917.5128182
Evolve180528202023-09-03 1:53:59317 days ago1693706039IN
0x63eBC3cb...4c08f8638
0 ETH0.002551413.4666692
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
AlienStorage

Compiler Version
v0.8.13+commit.abaa5c0e

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 4 : alien-storage.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

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

interface IAlienFrensIncubator {
    function balanceOf(
        address account,
        uint256 id
    ) external view returns (uint256);

    function burnIncubatorForAddress(address burnTokenAddress) external;
}

interface IAFE {
    function ownerOf(uint256 id) external view returns (address);
}

contract AlienStorage is Ownable, ReentrancyGuard {
    address public IncubatorContract =
        0x9C8882c6B3e40530CDBCe404Eef003443b1E455A;
    address public AFEContract = 0x47A00fC8590C11bE4c419D9Ae50DEc267B6E24ee;
    mapping(uint256 => bool) public IdIsEvolved;
    mapping(uint8 => string) public partnershipName; // partnershipID => partnershipName -- there is no partnership 0
    mapping(uint8 => uint256) public partnershipMaxMints; // partnershipID => maxMints
    mapping(uint8 => uint256) public partnershipMintCounter; // partnershipID => numMints
    mapping(uint8 => bool) public partnershipIsActive; // partnershipID => isActive
    mapping(uint256 => uint8) public partnershipTokens; // tokenID => partnershipID
    mapping(uint256 => uint256) public metadataId; // tokenID => metadataId -- this associates the tokenID with the ID for metadata
    mapping(uint8 => bool) public partnershipOpen; // partnershipID => allTokensCanEvolve (if true, all tokens can evolve
    uint8 public numberOfPartnerships;
    uint256[] oneOfOnes = [
        0,
        1,
        2,
        3,
        4,
        5,
        708,
        1421,
        2121,
        2988,
        3637,
        4200,
        4946,
        5560,
        6281,
        6969,
        7549,
        8181,
        8700,
        9425,
        9999,
        10719,
        11451,
        12104
    ];
    bool public isActive = false;

    function setIncubatorContract(address _IncubatorContract) public onlyOwner {
        IncubatorContract = _IncubatorContract;
    }

    function setAFEContract(address _contract) public onlyOwner {
        AFEContract = _contract;
    }

    function setIsActive(bool _isActive) public onlyOwner {
        isActive = _isActive;
    }

    function isOneOfOne(uint256 tokenId) public view returns (bool) {
        for (uint8 i = 0; i < oneOfOnes.length; i++) {
            if (tokenId == oneOfOnes[i]) {
                return true;
            }
        }
        return false;
    }

    function createPartnership(
        string calldata _partnershipName,
        uint256 maxMints
    ) public onlyOwner {
        require(numberOfPartnerships < 255, "Max partnerships reached");
        require(maxMints > 0, "Max mints must be greater than 0");
        require(
            bytes(_partnershipName).length > 0,
            "Partnership name must be greater than 0"
        );
        numberOfPartnerships++;
        partnershipName[numberOfPartnerships] = _partnershipName;
        partnershipMaxMints[numberOfPartnerships] = maxMints;
    }

    function updatePartnership(
        uint8 partnershipId,
        uint256 maxMints,
        bool allTokensCanEvolve,
        bool _partnershipIsActive
    ) public onlyOwner {
        require(
            partnershipId <= numberOfPartnerships,
            "Partnership doesn't exist"
        );
        require(partnershipId != 0, "Partnership doesn't exist");
        require(maxMints > 0, "Max mints must be greater than 0");
        require(
            partnershipMintCounter[partnershipId] < maxMints,
            "Max mints must be greater than current mints"
        );
        partnershipMaxMints[partnershipId] = maxMints;
        partnershipOpen[partnershipId] = allTokensCanEvolve;
        partnershipIsActive[partnershipId] = _partnershipIsActive;
    }

    function addTokensToPartnership(
        uint8 partnershipId,
        uint256[] calldata tokenIds
    ) public onlyOwner {
        require(
            partnershipId <= numberOfPartnerships,
            "Partnership doesn't exist"
        );
        require(partnershipId != 0, "Partnership doesn't exist");
        for (uint8 i = 0; i < tokenIds.length; i++) {
            partnershipTokens[tokenIds[i]] = partnershipId;
        }
    }

    function getTokenInfo(
        uint256 tokenId
    ) public view returns (string memory, uint8, bool, uint256) {
        // partnershipName, partnershipId, isEvolved, metadataId
        return (
            partnershipName[partnershipTokens[tokenId]],
            partnershipTokens[tokenId],
            IdIsEvolved[tokenId],
            metadataId[tokenId]
        );
    }

    function getPartnershipInfo(
        uint8 partnershipId
    ) public view returns (string memory, uint256, uint256, bool) {
        // partnershipName, maxMints, numMints
        return (
            partnershipName[partnershipId],
            partnershipMaxMints[partnershipId],
            partnershipMintCounter[partnershipId],
            partnershipOpen[partnershipId]
        );
    }

    event EvolveEvent(uint256 tokenId);

    function evolve(uint256 AFEtokenId, uint8 partnershipId) external {
        require(isActive == true, "Evolving is not active");
        require(
            IAlienFrensIncubator(IncubatorContract).balanceOf(msg.sender, 0) >
                0,
            "You don't own an Incubator"
        );
        require(
            IAFE(AFEContract).ownerOf(AFEtokenId) == msg.sender,
            "You are not the owner of this token"
        );
        require(IdIsEvolved[AFEtokenId] == false, "Already evolved");
        require(
            partnershipMintCounter[partnershipId] <
                partnershipMaxMints[partnershipId],
            "Max mints reached for this partnership"
        );
        require(isOneOfOne(AFEtokenId) == false, "This token is a one of one");
        if (partnershipOpen[partnershipId] == false) {
            require(
                partnershipTokens[AFEtokenId] == partnershipId,
                "Token ID not associated with this partnership"
            );
        }
        require(
            partnershipIsActive[partnershipId] == true,
            "Partnership is not active"
        );
        IdIsEvolved[AFEtokenId] = true;
        metadataId[AFEtokenId] = partnershipMintCounter[partnershipId];
        partnershipMintCounter[partnershipId]++;
        if (partnershipOpen[partnershipId]){
            partnershipTokens[AFEtokenId] = partnershipId;
        }
        // burn Incubator
        IAlienFrensIncubator(IncubatorContract).burnIncubatorForAddress(
            msg.sender
        );

        emit EvolveEvent(AFEtokenId);
    }
}

File 2 of 4 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.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 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 4 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

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

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

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

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

        _;

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

File 4 of 4 : 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;
    }
}

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

Contract Security Audit

Contract ABI

[{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"EvolveEvent","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[],"name":"AFEContract","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"IdIsEvolved","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"IncubatorContract","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint8","name":"partnershipId","type":"uint8"},{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"addTokensToPartnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_partnershipName","type":"string"},{"internalType":"uint256","name":"maxMints","type":"uint256"}],"name":"createPartnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"AFEtokenId","type":"uint256"},{"internalType":"uint8","name":"partnershipId","type":"uint8"}],"name":"evolve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"partnershipId","type":"uint8"}],"name":"getPartnershipInfo","outputs":[{"internalType":"string","name":"","type":"string"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getTokenInfo","outputs":[{"internalType":"string","name":"","type":"string"},{"internalType":"uint8","name":"","type":"uint8"},{"internalType":"bool","name":"","type":"bool"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"isOneOfOne","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"metadataId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"numberOfPartnerships","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint8","name":"","type":"uint8"}],"name":"partnershipIsActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint8","name":"","type":"uint8"}],"name":"partnershipMaxMints","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint8","name":"","type":"uint8"}],"name":"partnershipMintCounter","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint8","name":"","type":"uint8"}],"name":"partnershipName","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint8","name":"","type":"uint8"}],"name":"partnershipOpen","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"partnershipTokens","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_contract","type":"address"}],"name":"setAFEContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_IncubatorContract","type":"address"}],"name":"setIncubatorContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_isActive","type":"bool"}],"name":"setIsActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"partnershipId","type":"uint8"},{"internalType":"uint256","name":"maxMints","type":"uint256"},{"internalType":"bool","name":"allTokensCanEvolve","type":"bool"},{"internalType":"bool","name":"_partnershipIsActive","type":"bool"}],"name":"updatePartnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]

600280546001600160a01b0319908116739c8882c6b3e40530cdbce404eef003443b1e455a178255600380549091167347a00fc8590c11be4c419d9ae50dec267b6e24ee17815561038060405260006080908152600160a05260c09290925260e0526004610100526005610120526102c46101405261058d6101605261084961018052610bac6101a052610e356101c0526110686101e052611352610200526115b86102205261188961024052611b3961026052611d7d61028052611ff56102a0526121fc6102c0526124d16102e05261270f610300526129df61032052612cbb61034052612f4861036052620000fb90600d90601862000179565b50600e805460ff191690553480156200011357600080fd5b506200011f3362000129565b60018055620001e6565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b828054828255906000526020600020908101928215620001bd579160200282015b82811115620001bd578251829061ffff169055916020019190600101906200019a565b50620001cb929150620001cf565b5090565b5b80821115620001cb5760008155600101620001d0565b61155780620001f66000396000f3fe608060405234801561001057600080fd5b50600436106101725760003560e01c80634c507c66116100de5780639940bc6e11610097578063b982f5f411610071578063b982f5f4146103a3578063cae53751146103c3578063e7b0cdea146103e6578063f2fde38b1461040957600080fd5b80639940bc6e1461035a578063a1190a021461036d578063a3b655cd1461038057600080fd5b80634c507c66146102de5780636bcf049a146102f1578063715018a6146103115780638c7a63ae146103195780638da5cb5b1461033c5780639569e5631461034d57600080fd5b80632750fc78116101305780632750fc78146102225780632fe9a2f1146102355780633655833e146102485780633b7c72de1461027d5780633e94515c146102ab5780634758ae68146102cb57600080fd5b80627cdade14610177578063027906e91461018c578063050177ef146101bc5780631a83b185146101df5780631e7bef65146101f257806322f3e2d414610205575b600080fd5b61018a61018536600461112e565b61041c565b005b60025461019f906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b6101cf6101ca3660046111bc565b610590565b6040516101b3949392919061122b565b61018a6101ed36600461126c565b610668565b61018a6102003660046112ce565b6107ca565b600e546102129060ff1681565b60405190151581526020016101b3565b61018a6102303660046112eb565b6107f4565b61018a6102433660046112ce565b61080f565b61026b610256366004611306565b60096020526000908152604090205460ff1681565b60405160ff90911681526020016101b3565b61029d61028b3660046111bc565b60076020526000908152604090205481565b6040519081526020016101b3565b61029d6102b93660046111bc565b60066020526000908152604090205481565b60035461019f906001600160a01b031681565b61018a6102ec36600461131f565b610839565b61029d6102ff366004611306565b600a6020526000908152604090205481565b61018a610d56565b61032c610327366004611306565b610d6a565b6040516101b3949392919061134b565b6000546001600160a01b031661019f565b600c5461026b9060ff1681565b61018a61036836600461137d565b610dba565b61021261037b366004611306565b610e7c565b61021261038e366004611306565b60046020526000908152604090205460ff1681565b6103b66103b13660046111bc565b610ed8565b6040516101b39190611403565b6102126103d13660046111bc565b60086020526000908152604090205460ff1681565b6102126103f43660046111bc565b600b6020526000908152604090205460ff1681565b61018a6104173660046112ce565b610f72565b610424610feb565b600c5460ff9081161061047e5760405162461bcd60e51b815260206004820152601860248201527f4d617820706172746e657273686970732072656163686564000000000000000060448201526064015b60405180910390fd5b600081116104ce5760405162461bcd60e51b815260206004820181905260248201527f4d6178206d696e7473206d7573742062652067726561746572207468616e20306044820152606401610475565b8161052b5760405162461bcd60e51b815260206004820152602760248201527f506172746e657273686970206e616d65206d75737420626520677265617465726044820152660207468616e20360cc1b6064820152608401610475565b600c805460ff1690600061053e8361142c565b82546101009290920a60ff818102199093169183160217909155600c5416600090815260056020526040902061057691508484611095565b50600c5460ff166000908152600660205260409020555050565b60ff808216600090815260056020908152604080832060068352818420546007845282852054600b9094529184205481546060968695869593909291169084906105d99061144b565b80601f01602080910402602001604051908101604052809291908181526020018280546106059061144b565b80156106525780601f1061062757610100808354040283529160200191610652565b820191906000526020600020905b81548152906001019060200180831161063557829003601f168201915b5050505050935093509350935093509193509193565b610670610feb565b600c5460ff90811690851611156106995760405162461bcd60e51b815260040161047590611485565b8360ff166000036106bc5760405162461bcd60e51b815260040161047590611485565b6000831161070c5760405162461bcd60e51b815260206004820181905260248201527f4d6178206d696e7473206d7573742062652067726561746572207468616e20306044820152606401610475565b60ff841660009081526007602052604090205483116107825760405162461bcd60e51b815260206004820152602c60248201527f4d6178206d696e7473206d7573742062652067726561746572207468616e206360448201526b757272656e74206d696e747360a01b6064820152608401610475565b60ff909316600090815260066020908152604080832094909455600b8152838220805493151560ff199485161790556008905291909120805492151592909116919091179055565b6107d2610feb565b600280546001600160a01b0319166001600160a01b0392909216919091179055565b6107fc610feb565b600e805460ff1916911515919091179055565b610817610feb565b600380546001600160a01b0319166001600160a01b0392909216919091179055565b600e5460ff1615156001146108895760405162461bcd60e51b815260206004820152601660248201527545766f6c76696e67206973206e6f742061637469766560501b6044820152606401610475565b600254604051627eeac760e11b8152336004820152600060248201819052916001600160a01b03169062fdd58e90604401602060405180830381865afa1580156108d7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108fb91906114bc565b116109485760405162461bcd60e51b815260206004820152601a60248201527f596f7520646f6e2774206f776e20616e20496e63756261746f720000000000006044820152606401610475565b6003546040516331a9108f60e11b81526004810184905233916001600160a01b031690636352211e90602401602060405180830381865afa158015610991573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109b591906114d5565b6001600160a01b031614610a175760405162461bcd60e51b815260206004820152602360248201527f596f7520617265206e6f7420746865206f776e6572206f66207468697320746f60448201526235b2b760e91b6064820152608401610475565b60008281526004602052604090205460ff1615610a685760405162461bcd60e51b815260206004820152600f60248201526e105b1c9958591e48195d9bdb1d9959608a1b6044820152606401610475565b60ff811660009081526006602090815260408083205460079092529091205410610ae35760405162461bcd60e51b815260206004820152602660248201527f4d6178206d696e7473207265616368656420666f72207468697320706172746e60448201526506572736869760d41b6064820152608401610475565b610aec82610e7c565b15610b395760405162461bcd60e51b815260206004820152601a60248201527f5468697320746f6b656e2069732061206f6e65206f66206f6e650000000000006044820152606401610475565b60ff8082166000908152600b602052604081205490911615159003610bd15760008281526009602052604090205460ff828116911614610bd15760405162461bcd60e51b815260206004820152602d60248201527f546f6b656e204944206e6f74206173736f63696174656420776974682074686960448201526c07320706172746e65727368697609c1b6064820152608401610475565b60ff808216600090815260086020526040902054161515600114610c375760405162461bcd60e51b815260206004820152601960248201527f506172746e657273686970206973206e6f7420616374697665000000000000006044820152606401610475565b6000828152600460209081526040808320805460ff1916600117905560ff841680845260078084528285208054888752600a865293862084905591855290925291610c81836114f2565b909155505060ff8082166000908152600b60205260409020541615610cbc576000828152600960205260409020805460ff191660ff83161790555b6002546040516304fd7d9b60e21b81523360048201526001600160a01b03909116906313f5f66c90602401600060405180830381600087803b158015610d0157600080fd5b505af1158015610d15573d6000803e3d6000fd5b505050507fdfb53af43c886e264424fd5c6c48b88790b1fc20c00a01f38f950b723694a9a282604051610d4a91815260200190565b60405180910390a15050565b610d5e610feb565b610d686000611045565b565b60008181526009602090815260408083205460ff908116808552600584528285208686526004855283862054600a909552928520548354606096958695869590949391169184906105d99061144b565b610dc2610feb565b600c5460ff9081169084161115610deb5760405162461bcd60e51b815260040161047590611485565b8260ff16600003610e0e5760405162461bcd60e51b815260040161047590611485565b60005b60ff8116821115610e7657836009600085858560ff16818110610e3657610e3661150b565b90506020020135815260200190815260200160002060006101000a81548160ff021916908360ff1602179055508080610e6e9061142c565b915050610e11565b50505050565b6000805b600d5460ff82161015610ecf57600d8160ff1681548110610ea357610ea361150b565b90600052602060002001548303610ebd5750600192915050565b80610ec78161142c565b915050610e80565b50600092915050565b60056020526000908152604090208054610ef19061144b565b80601f0160208091040260200160405190810160405280929190818152602001828054610f1d9061144b565b8015610f6a5780601f10610f3f57610100808354040283529160200191610f6a565b820191906000526020600020905b815481529060010190602001808311610f4d57829003601f168201915b505050505081565b610f7a610feb565b6001600160a01b038116610fdf5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610475565b610fe881611045565b50565b6000546001600160a01b03163314610d685760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610475565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b8280546110a19061144b565b90600052602060002090601f0160209004810192826110c35760008555611109565b82601f106110dc5782800160ff19823516178555611109565b82800160010185558215611109579182015b828111156111095782358255916020019190600101906110ee565b50611115929150611119565b5090565b5b80821115611115576000815560010161111a565b60008060006040848603121561114357600080fd5b833567ffffffffffffffff8082111561115b57600080fd5b818601915086601f83011261116f57600080fd5b81358181111561117e57600080fd5b87602082850101111561119057600080fd5b6020928301989097509590910135949350505050565b803560ff811681146111b757600080fd5b919050565b6000602082840312156111ce57600080fd5b6111d7826111a6565b9392505050565b6000815180845260005b81811015611204576020818501810151868301820152016111e8565b81811115611216576000602083870101525b50601f01601f19169290920160200192915050565b60808152600061123e60808301876111de565b60208301959095525060408101929092521515606090910152919050565b803580151581146111b757600080fd5b6000806000806080858703121561128257600080fd5b61128b856111a6565b9350602085013592506112a06040860161125c565b91506112ae6060860161125c565b905092959194509250565b6001600160a01b0381168114610fe857600080fd5b6000602082840312156112e057600080fd5b81356111d7816112b9565b6000602082840312156112fd57600080fd5b6111d78261125c565b60006020828403121561131857600080fd5b5035919050565b6000806040838503121561133257600080fd5b82359150611342602084016111a6565b90509250929050565b60808152600061135e60808301876111de565b60ff959095166020830152509115156040830152606090910152919050565b60008060006040848603121561139257600080fd5b61139b846111a6565b9250602084013567ffffffffffffffff808211156113b857600080fd5b818601915086601f8301126113cc57600080fd5b8135818111156113db57600080fd5b8760208260051b85010111156113f057600080fd5b6020830194508093505050509250925092565b6020815260006111d760208301846111de565b634e487b7160e01b600052601160045260246000fd5b600060ff821660ff810361144257611442611416565b60010192915050565b600181811c9082168061145f57607f821691505b60208210810361147f57634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526019908201527f506172746e65727368697020646f65736e277420657869737400000000000000604082015260600190565b6000602082840312156114ce57600080fd5b5051919050565b6000602082840312156114e757600080fd5b81516111d7816112b9565b60006001820161150457611504611416565b5060010190565b634e487b7160e01b600052603260045260246000fdfea2646970667358221220cc9c69ae83a2a372724c0a5846e1baae86a6cf378ce2575d81a3b5b7fd215de964736f6c634300080d0033

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101725760003560e01c80634c507c66116100de5780639940bc6e11610097578063b982f5f411610071578063b982f5f4146103a3578063cae53751146103c3578063e7b0cdea146103e6578063f2fde38b1461040957600080fd5b80639940bc6e1461035a578063a1190a021461036d578063a3b655cd1461038057600080fd5b80634c507c66146102de5780636bcf049a146102f1578063715018a6146103115780638c7a63ae146103195780638da5cb5b1461033c5780639569e5631461034d57600080fd5b80632750fc78116101305780632750fc78146102225780632fe9a2f1146102355780633655833e146102485780633b7c72de1461027d5780633e94515c146102ab5780634758ae68146102cb57600080fd5b80627cdade14610177578063027906e91461018c578063050177ef146101bc5780631a83b185146101df5780631e7bef65146101f257806322f3e2d414610205575b600080fd5b61018a61018536600461112e565b61041c565b005b60025461019f906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b6101cf6101ca3660046111bc565b610590565b6040516101b3949392919061122b565b61018a6101ed36600461126c565b610668565b61018a6102003660046112ce565b6107ca565b600e546102129060ff1681565b60405190151581526020016101b3565b61018a6102303660046112eb565b6107f4565b61018a6102433660046112ce565b61080f565b61026b610256366004611306565b60096020526000908152604090205460ff1681565b60405160ff90911681526020016101b3565b61029d61028b3660046111bc565b60076020526000908152604090205481565b6040519081526020016101b3565b61029d6102b93660046111bc565b60066020526000908152604090205481565b60035461019f906001600160a01b031681565b61018a6102ec36600461131f565b610839565b61029d6102ff366004611306565b600a6020526000908152604090205481565b61018a610d56565b61032c610327366004611306565b610d6a565b6040516101b3949392919061134b565b6000546001600160a01b031661019f565b600c5461026b9060ff1681565b61018a61036836600461137d565b610dba565b61021261037b366004611306565b610e7c565b61021261038e366004611306565b60046020526000908152604090205460ff1681565b6103b66103b13660046111bc565b610ed8565b6040516101b39190611403565b6102126103d13660046111bc565b60086020526000908152604090205460ff1681565b6102126103f43660046111bc565b600b6020526000908152604090205460ff1681565b61018a6104173660046112ce565b610f72565b610424610feb565b600c5460ff9081161061047e5760405162461bcd60e51b815260206004820152601860248201527f4d617820706172746e657273686970732072656163686564000000000000000060448201526064015b60405180910390fd5b600081116104ce5760405162461bcd60e51b815260206004820181905260248201527f4d6178206d696e7473206d7573742062652067726561746572207468616e20306044820152606401610475565b8161052b5760405162461bcd60e51b815260206004820152602760248201527f506172746e657273686970206e616d65206d75737420626520677265617465726044820152660207468616e20360cc1b6064820152608401610475565b600c805460ff1690600061053e8361142c565b82546101009290920a60ff818102199093169183160217909155600c5416600090815260056020526040902061057691508484611095565b50600c5460ff166000908152600660205260409020555050565b60ff808216600090815260056020908152604080832060068352818420546007845282852054600b9094529184205481546060968695869593909291169084906105d99061144b565b80601f01602080910402602001604051908101604052809291908181526020018280546106059061144b565b80156106525780601f1061062757610100808354040283529160200191610652565b820191906000526020600020905b81548152906001019060200180831161063557829003601f168201915b5050505050935093509350935093509193509193565b610670610feb565b600c5460ff90811690851611156106995760405162461bcd60e51b815260040161047590611485565b8360ff166000036106bc5760405162461bcd60e51b815260040161047590611485565b6000831161070c5760405162461bcd60e51b815260206004820181905260248201527f4d6178206d696e7473206d7573742062652067726561746572207468616e20306044820152606401610475565b60ff841660009081526007602052604090205483116107825760405162461bcd60e51b815260206004820152602c60248201527f4d6178206d696e7473206d7573742062652067726561746572207468616e206360448201526b757272656e74206d696e747360a01b6064820152608401610475565b60ff909316600090815260066020908152604080832094909455600b8152838220805493151560ff199485161790556008905291909120805492151592909116919091179055565b6107d2610feb565b600280546001600160a01b0319166001600160a01b0392909216919091179055565b6107fc610feb565b600e805460ff1916911515919091179055565b610817610feb565b600380546001600160a01b0319166001600160a01b0392909216919091179055565b600e5460ff1615156001146108895760405162461bcd60e51b815260206004820152601660248201527545766f6c76696e67206973206e6f742061637469766560501b6044820152606401610475565b600254604051627eeac760e11b8152336004820152600060248201819052916001600160a01b03169062fdd58e90604401602060405180830381865afa1580156108d7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108fb91906114bc565b116109485760405162461bcd60e51b815260206004820152601a60248201527f596f7520646f6e2774206f776e20616e20496e63756261746f720000000000006044820152606401610475565b6003546040516331a9108f60e11b81526004810184905233916001600160a01b031690636352211e90602401602060405180830381865afa158015610991573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109b591906114d5565b6001600160a01b031614610a175760405162461bcd60e51b815260206004820152602360248201527f596f7520617265206e6f7420746865206f776e6572206f66207468697320746f60448201526235b2b760e91b6064820152608401610475565b60008281526004602052604090205460ff1615610a685760405162461bcd60e51b815260206004820152600f60248201526e105b1c9958591e48195d9bdb1d9959608a1b6044820152606401610475565b60ff811660009081526006602090815260408083205460079092529091205410610ae35760405162461bcd60e51b815260206004820152602660248201527f4d6178206d696e7473207265616368656420666f72207468697320706172746e60448201526506572736869760d41b6064820152608401610475565b610aec82610e7c565b15610b395760405162461bcd60e51b815260206004820152601a60248201527f5468697320746f6b656e2069732061206f6e65206f66206f6e650000000000006044820152606401610475565b60ff8082166000908152600b602052604081205490911615159003610bd15760008281526009602052604090205460ff828116911614610bd15760405162461bcd60e51b815260206004820152602d60248201527f546f6b656e204944206e6f74206173736f63696174656420776974682074686960448201526c07320706172746e65727368697609c1b6064820152608401610475565b60ff808216600090815260086020526040902054161515600114610c375760405162461bcd60e51b815260206004820152601960248201527f506172746e657273686970206973206e6f7420616374697665000000000000006044820152606401610475565b6000828152600460209081526040808320805460ff1916600117905560ff841680845260078084528285208054888752600a865293862084905591855290925291610c81836114f2565b909155505060ff8082166000908152600b60205260409020541615610cbc576000828152600960205260409020805460ff191660ff83161790555b6002546040516304fd7d9b60e21b81523360048201526001600160a01b03909116906313f5f66c90602401600060405180830381600087803b158015610d0157600080fd5b505af1158015610d15573d6000803e3d6000fd5b505050507fdfb53af43c886e264424fd5c6c48b88790b1fc20c00a01f38f950b723694a9a282604051610d4a91815260200190565b60405180910390a15050565b610d5e610feb565b610d686000611045565b565b60008181526009602090815260408083205460ff908116808552600584528285208686526004855283862054600a909552928520548354606096958695869590949391169184906105d99061144b565b610dc2610feb565b600c5460ff9081169084161115610deb5760405162461bcd60e51b815260040161047590611485565b8260ff16600003610e0e5760405162461bcd60e51b815260040161047590611485565b60005b60ff8116821115610e7657836009600085858560ff16818110610e3657610e3661150b565b90506020020135815260200190815260200160002060006101000a81548160ff021916908360ff1602179055508080610e6e9061142c565b915050610e11565b50505050565b6000805b600d5460ff82161015610ecf57600d8160ff1681548110610ea357610ea361150b565b90600052602060002001548303610ebd5750600192915050565b80610ec78161142c565b915050610e80565b50600092915050565b60056020526000908152604090208054610ef19061144b565b80601f0160208091040260200160405190810160405280929190818152602001828054610f1d9061144b565b8015610f6a5780601f10610f3f57610100808354040283529160200191610f6a565b820191906000526020600020905b815481529060010190602001808311610f4d57829003601f168201915b505050505081565b610f7a610feb565b6001600160a01b038116610fdf5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610475565b610fe881611045565b50565b6000546001600160a01b03163314610d685760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610475565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b8280546110a19061144b565b90600052602060002090601f0160209004810192826110c35760008555611109565b82601f106110dc5782800160ff19823516178555611109565b82800160010185558215611109579182015b828111156111095782358255916020019190600101906110ee565b50611115929150611119565b5090565b5b80821115611115576000815560010161111a565b60008060006040848603121561114357600080fd5b833567ffffffffffffffff8082111561115b57600080fd5b818601915086601f83011261116f57600080fd5b81358181111561117e57600080fd5b87602082850101111561119057600080fd5b6020928301989097509590910135949350505050565b803560ff811681146111b757600080fd5b919050565b6000602082840312156111ce57600080fd5b6111d7826111a6565b9392505050565b6000815180845260005b81811015611204576020818501810151868301820152016111e8565b81811115611216576000602083870101525b50601f01601f19169290920160200192915050565b60808152600061123e60808301876111de565b60208301959095525060408101929092521515606090910152919050565b803580151581146111b757600080fd5b6000806000806080858703121561128257600080fd5b61128b856111a6565b9350602085013592506112a06040860161125c565b91506112ae6060860161125c565b905092959194509250565b6001600160a01b0381168114610fe857600080fd5b6000602082840312156112e057600080fd5b81356111d7816112b9565b6000602082840312156112fd57600080fd5b6111d78261125c565b60006020828403121561131857600080fd5b5035919050565b6000806040838503121561133257600080fd5b82359150611342602084016111a6565b90509250929050565b60808152600061135e60808301876111de565b60ff959095166020830152509115156040830152606090910152919050565b60008060006040848603121561139257600080fd5b61139b846111a6565b9250602084013567ffffffffffffffff808211156113b857600080fd5b818601915086601f8301126113cc57600080fd5b8135818111156113db57600080fd5b8760208260051b85010111156113f057600080fd5b6020830194508093505050509250925092565b6020815260006111d760208301846111de565b634e487b7160e01b600052601160045260246000fd5b600060ff821660ff810361144257611442611416565b60010192915050565b600181811c9082168061145f57607f821691505b60208210810361147f57634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526019908201527f506172746e65727368697020646f65736e277420657869737400000000000000604082015260600190565b6000602082840312156114ce57600080fd5b5051919050565b6000602082840312156114e757600080fd5b81516111d7816112b9565b60006001820161150457611504611416565b5060010190565b634e487b7160e01b600052603260045260246000fdfea2646970667358221220cc9c69ae83a2a372724c0a5846e1baae86a6cf378ce2575d81a3b5b7fd215de964736f6c634300080d0033

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  ]

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.