ETH Price: $3,814.95 (-2.09%)
Gas: 9 Gwei

Contract

0xcD6F0bfa1a53408DE5c15d2028Bae7AFd6B30bC2
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Value
Store Image Part...155003082022-09-09 2:46:53628 days ago1662691613IN
0xcD6F0bfa...Fd6B30bC2
0 ETH0.035967914.24632216
0x61026060155003042022-09-09 2:46:04628 days ago1662691564IN
 Create: ASCIIGenerator
0 ETH0.025535212.72423441

Advanced mode:
Parent Transaction Hash Block From To Value
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
ASCIIGenerator

Compiler Version
v0.8.13+commit.abaa5c0e

Optimization Enabled:
Yes with 1000 runs

Other Settings:
default evmVersion
File 1 of 6 : ASCIIGenerator.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.13;

/// @title: Proof of Merge - ASCII Generator
/// @author: x0r (Michael Blau) and Mason Hall

import {Strings} from "@openzeppelin/contracts/utils/Strings.sol";
import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol";
import {Base64} from "@openzeppelin/contracts/utils/Base64.sol";
import {IASCIIGenerator} from "./IASCIIGenerator.sol";

contract ASCIIGenerator is Ownable, IASCIIGenerator {
    using Base64 for string;
    using Strings for uint256;

    uint256[][] public imagePhases;
    uint256 public phaseTwoStart;

    string internal description =
        "Proof of Merge is a fully on-chain, non-transferable, and dynamic NFT that will change throughout The Merge. We detect The Merge on-chain by checking if the DIFFICULTY opcode returns 0 according to EIP3675. During The Merge, the current Ethereum execution layer will merge into the Beacon chain, and Ethereum will transition from Proof of Work to Proof of Stake. Proof of Merge is a collaboration between Michael Blau (x0r) and Mason Hall.";
    string internal SVGHeader =
        "<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 720 802'><defs><style>.cls-1{font-size: 10px; fill: white; font-family:monospace;}</style></defs><g><rect width='720' height='802' fill='black' />";
    string internal firstTextTagPart =
        "<text lengthAdjust='spacing' textLength='720' class='cls-1' x='0' y='";
    string internal SVGFooter = "</g></svg>";
    uint256 internal tspanLineHeight = 12;

    constructor(uint256 _phaseTwoStart) {
        phaseTwoStart = _phaseTwoStart;
    }

    // =================== ASCII GENERATOR FUNCTIONS =================== //

    /**
     * @notice Generate full NFT metadata
     */
    function generateMetadata() external view returns (string memory) {
        string memory SVG = generateSVG();

        string memory metadata = Base64.encode(
            bytes(
                string.concat(
                    '{"name": "Proof of Merge","description":"',
                    description,
                    '","image":"',
                    SVG,
                    '"}'
                )
            )
        );

        return string.concat("data:application/json;base64,", metadata);
    }

    /**
     * @notice Generate the SVG ASCII image
     */
    function generateSVG() public view returns (string memory) {
        string[66] memory rows = genCoreAscii();

        string memory _firstTextTagPart = firstTextTagPart;
        string memory span;
        string memory center;
        uint256 y = tspanLineHeight;

        for (uint256 i; i < rows.length; i++) {
            span = string.concat(
                _firstTextTagPart,
                y.toString(),
                "'>",
                rows[i],
                "</text>"
            );
            center = string.concat(center, span);
            y += tspanLineHeight;
        }

        // base64 encode the SVG
        string memory SVGImage = Base64.encode(
            bytes(string.concat(SVGHeader, center, SVGFooter))
        );

        return string.concat("data:image/svg+xml;base64,", SVGImage);
    }

    /**
     * @notice Generate all ASCII rows of the image as strings
     */
    function genCoreAscii() public view returns (string[66] memory) {
        string[66] memory asciiRows;

        uint256[] memory imageRows = imagePhases[determineArtPhase()];

        for (uint256 i; i < asciiRows.length; i++) {
            asciiRows[i] = rowToString(imageRows[i], 120);
        }

        return asciiRows;
    }

    /**
     * @notice Generate one ASCII row as a string
     */
    function rowToString(uint256 _row, uint256 _bitsToUnpack)
        internal
        pure
        returns (string memory)
    {
        string memory rowString;

        for (uint256 i; i < _bitsToUnpack; i++) {
            if (((_row >> (1 * i)) & 1) == 0) {
                rowString = string.concat(rowString, ".");
            } else {
                rowString = string.concat(rowString, "1");
            }
        }

        return rowString;
    }

    // =================== MERGE FUNCTIONS =================== //

    function determineArtPhase() public view returns (uint256) {
        if (block.difficulty > 2**64 || block.difficulty == 0) {
            return 2;
        } else if (block.timestamp >= phaseTwoStart) {
            return 1;
        } else {
            return 0;
        }
    }

    // =================== STORE IMAGE DATA =================== //

    function storeImageParts(uint256[][] memory _imagePhases)
        external
        onlyOwner
    {
        imagePhases = _imagePhases;
    }

    function setSVGParts(
        string calldata _SVGHeader,
        string calldata _SVGFooter,
        string calldata _firstTextTagPart,
        uint256 _tspanLineHeight
    ) external onlyOwner {
        SVGHeader = _SVGHeader;
        SVGFooter = _SVGFooter;
        firstTextTagPart = _firstTextTagPart;
        tspanLineHeight = _tspanLineHeight;
    }

    function getSVGParts()
        external
        view
        returns (
            string memory,
            string memory,
            string memory,
            uint256
        )
    {
        return (SVGHeader, SVGFooter, firstTextTagPart, tspanLineHeight);
    }

    function setDescription(string calldata _description) external onlyOwner {
        description = _description;
    }

    function setPhaseTwoStartTime(uint256 _phaseTwoStart) external onlyOwner {
        phaseTwoStart = _phaseTwoStart;
    }
}

File 3 of 6 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol)

pragma solidity ^0.8.0;

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

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

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

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

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
     */
    function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
        bytes memory buffer = new bytes(2 * length + 2);
        buffer[0] = "0";
        buffer[1] = "x";
        for (uint256 i = 2 * length + 1; i > 1; --i) {
            buffer[i] = _HEX_SYMBOLS[value & 0xf];
            value >>= 4;
        }
        require(value == 0, "Strings: hex length insufficient");
        return string(buffer);
    }

    /**
     * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation.
     */
    function toHexString(address addr) internal pure returns (string memory) {
        return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH);
    }
}

File 4 of 6 : 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 5 of 6 : Base64.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Base64.sol)

pragma solidity ^0.8.0;

/**
 * @dev Provides a set of functions to operate with Base64 strings.
 *
 * _Available since v4.5._
 */
library Base64 {
    /**
     * @dev Base64 Encoding/Decoding Table
     */
    string internal constant _TABLE = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";

    /**
     * @dev Converts a `bytes` to its Bytes64 `string` representation.
     */
    function encode(bytes memory data) internal pure returns (string memory) {
        /**
         * Inspired by Brecht Devos (Brechtpd) implementation - MIT licence
         * https://github.com/Brechtpd/base64/blob/e78d9fd951e7b0977ddca77d92dc85183770daf4/base64.sol
         */
        if (data.length == 0) return "";

        // Loads the table into memory
        string memory table = _TABLE;

        // Encoding takes 3 bytes chunks of binary data from `bytes` data parameter
        // and split into 4 numbers of 6 bits.
        // The final Base64 length should be `bytes` data length multiplied by 4/3 rounded up
        // - `data.length + 2`  -> Round up
        // - `/ 3`              -> Number of 3-bytes chunks
        // - `4 *`              -> 4 characters for each chunk
        string memory result = new string(4 * ((data.length + 2) / 3));

        /// @solidity memory-safe-assembly
        assembly {
            // Prepare the lookup table (skip the first "length" byte)
            let tablePtr := add(table, 1)

            // Prepare result pointer, jump over length
            let resultPtr := add(result, 32)

            // Run over the input, 3 bytes at a time
            for {
                let dataPtr := data
                let endPtr := add(data, mload(data))
            } lt(dataPtr, endPtr) {

            } {
                // Advance 3 bytes
                dataPtr := add(dataPtr, 3)
                let input := mload(dataPtr)

                // To write each character, shift the 3 bytes (18 bits) chunk
                // 4 times in blocks of 6 bits for each character (18, 12, 6, 0)
                // and apply logical AND with 0x3F which is the number of
                // the previous character in the ASCII table prior to the Base64 Table
                // The result is then added to the table to get the character to write,
                // and finally write it in the result pointer but with a left shift
                // of 256 (1 byte) - 8 (1 ASCII char) = 248 bits

                mstore8(resultPtr, mload(add(tablePtr, and(shr(18, input), 0x3F))))
                resultPtr := add(resultPtr, 1) // Advance

                mstore8(resultPtr, mload(add(tablePtr, and(shr(12, input), 0x3F))))
                resultPtr := add(resultPtr, 1) // Advance

                mstore8(resultPtr, mload(add(tablePtr, and(shr(6, input), 0x3F))))
                resultPtr := add(resultPtr, 1) // Advance

                mstore8(resultPtr, mload(add(tablePtr, and(input, 0x3F))))
                resultPtr := add(resultPtr, 1) // Advance
            }

            // When data `bytes` is not exactly 3 bytes long
            // it is padded with `=` characters at the end
            switch mod(mload(data), 3)
            case 1 {
                mstore8(sub(resultPtr, 1), 0x3d)
                mstore8(sub(resultPtr, 2), 0x3d)
            }
            case 2 {
                mstore8(sub(resultPtr, 1), 0x3d)
            }
        }

        return result;
    }
}

File 6 of 6 : IASCIIGenerator.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.13;

interface IASCIIGenerator {
    /**
     * @notice Generate full NFT metadata
     */
    function generateMetadata() external view returns (string memory);
}

File 7 of 6 : 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": 1000
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"uint256","name":"_phaseTwoStart","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[],"name":"determineArtPhase","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"genCoreAscii","outputs":[{"internalType":"string[66]","name":"","type":"string[66]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"generateMetadata","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"generateSVG","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getSVGParts","outputs":[{"internalType":"string","name":"","type":"string"},{"internalType":"string","name":"","type":"string"},{"internalType":"string","name":"","type":"string"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"imagePhases","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":"phaseTwoStart","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_description","type":"string"}],"name":"setDescription","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_phaseTwoStart","type":"uint256"}],"name":"setPhaseTwoStartTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_SVGHeader","type":"string"},{"internalType":"string","name":"_SVGFooter","type":"string"},{"internalType":"string","name":"_firstTextTagPart","type":"string"},{"internalType":"uint256","name":"_tspanLineHeight","type":"uint256"}],"name":"setSVGParts","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[][]","name":"_imagePhases","type":"uint256[][]"}],"name":"storeImageParts","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6102606040526101b7608081815290620018f360a03980516200002b916003916020909101906200015c565b5060405180610100016040528060c7815260200162001aef60c7913980516200005d916004916020909101906200015c565b5060405180608001604052806045815260200162001aaa6045913980516200008e916005916020909101906200015c565b5060408051808201909152600a808252691e17b39f1e17b9bb339f60b11b6020909201918252620000c2916006916200015c565b50600c600755348015620000d557600080fd5b5060405162001bb638038062001bb6833981016040819052620000f89162000202565b62000103336200010c565b60025562000258565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b8280546200016a906200021c565b90600052602060002090601f0160209004810192826200018e5760008555620001d9565b82601f10620001a957805160ff1916838001178555620001d9565b82800160010185558215620001d9579182015b82811115620001d9578251825591602001919060010190620001bc565b50620001e7929150620001eb565b5090565b5b80821115620001e75760008155600101620001ec565b6000602082840312156200021557600080fd5b5051919050565b600181811c908216806200023157607f821691505b6020821081036200025257634e487b7160e01b600052602260045260246000fd5b50919050565b61168b80620002686000396000f3fe608060405234801561001057600080fd5b50600436106100ea5760003560e01c806390c3f38f1161008c578063ab5f136b11610066578063ab5f136b146101ac578063ad711e9e146101c1578063d9adcf03146101c9578063f2fde38b146101e157600080fd5b806390c3f38f1461017d57806396b899f814610190578063a8a3b442146101a357600080fd5b80636bcc9b3b116100c85780636bcc9b3b14610132578063715018a6146101475780638aa322fd1461014f5780638da5cb5b1461016257600080fd5b806303d43b93146100ef5780634547060714610115578063521127f11461012a575b600080fd5b6101026100fd366004610d91565b6101f4565b6040519081526020015b60405180910390f35b61011d610231565b60405161010c9190610e0f565b610102610319565b610145610140366004610ec8565b610350565b005b61014561036f565b61014561015d366004610fd4565b610383565b6000546040516001600160a01b03909116815260200161010c565b61014561018b366004611036565b610390565b61014561019e366004611078565b6103a9565b61010260025481565b6101b46103e3565b60405161010c919061111b565b6101b4610447565b6101d16105ce565b60405161010c9493929190611135565b6101456101ef366004611180565b610790565b6001828154811061020457600080fd5b90600052602060002001818154811061021c57600080fd5b90600052602060002001600091509150505481565b610239610c01565b610241610c01565b6000600161024d610319565b8154811061025d5761025d6111a9565b906000526020600020018054806020026020016040519081016040528092919081815260200182805480156102b157602002820191906000526020600020905b81548152602001906001019080831161029d575b5050505050905060005b6042811015610311576102e88282815181106102d9576102d96111a9565b60200260200101516078610825565b8382604281106102fa576102fa6111a9565b602002015280610309816111d5565b9150506102bb565b509092915050565b600068010000000000000000441180610330575044155b1561033b5750600290565b600254421061034a5750600190565b50600090565b6103586108af565b805161036b906001906020840190610c29565b5050565b6103776108af565b6103816000610909565b565b61038b6108af565b600255565b6103986108af565b6103a460038383610c86565b505050565b6103b16108af565b6103bd60048888610c86565b506103ca60068686610c86565b506103d760058484610c86565b50600755505050505050565b606060006103ef610447565b9050600061041e60038360405160200161040a9291906112c1565b604051602081830303815290604052610971565b9050806040516020016104319190611385565b6040516020818303038152906040529250505090565b60606000610453610231565b9050600060058054610464906111ee565b80601f0160208091040260200160405190810160405280929190818152602001828054610490906111ee565b80156104dd5780601f106104b2576101008083540402835291602001916104dd565b820191906000526020600020905b8154815290600101906020018083116104c057829003601f168201915b505050505090506060806000600754905060005b6042811015610584578461050483610ac4565b878360428110610516576105166111a9565b602002015160405160200161052d939291906113ca565b60405160208183030381529060405293508284604051602001610551929190611460565b604051602081830303815290604052925060075482610570919061148f565b91508061057c816111d5565b9150506104f1565b5060006105a1600484600660405160200161040a939291906114a7565b9050806040516020016105b491906114da565b604051602081830303815290604052965050505050505090565b606080606060006004600660056007548380546105ea906111ee565b80601f0160208091040260200160405190810160405280929190818152602001828054610616906111ee565b80156106635780601f1061063857610100808354040283529160200191610663565b820191906000526020600020905b81548152906001019060200180831161064657829003601f168201915b50505050509350828054610676906111ee565b80601f01602080910402602001604051908101604052809291908181526020018280546106a2906111ee565b80156106ef5780601f106106c4576101008083540402835291602001916106ef565b820191906000526020600020905b8154815290600101906020018083116106d257829003601f168201915b50505050509250818054610702906111ee565b80601f016020809104026020016040519081016040528092919081815260200182805461072e906111ee565b801561077b5780601f106107505761010080835404028352916020019161077b565b820191906000526020600020905b81548152906001019060200180831161075e57829003601f168201915b50505050509150935093509350935090919293565b6107986108af565b6001600160a01b0381166108195760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b61082281610909565b50565b60608060005b838110156108a75761083e81600161151f565b85901c600116600003610872578160405160200161085c919061153e565b6040516020818303038152906040529150610895565b81604051602001610883919061157f565b60405160208183030381529060405291505b8061089f816111d5565b91505061082b565b509392505050565b6000546001600160a01b031633146103815760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610810565b600080546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6060815160000361099057505060408051602081019091526000815290565b600060405180606001604052806040815260200161161660409139905060006003845160026109bf919061148f565b6109c991906115d6565b6109d490600461151f565b67ffffffffffffffff8111156109ec576109ec610e5d565b6040519080825280601f01601f191660200182016040528015610a16576020820181803683370190505b509050600182016020820185865187015b80821015610a82576003820191508151603f8160121c168501518453600184019350603f81600c1c168501518453600184019350603f8160061c168501518453600184019350603f8116850151845350600183019250610a27565b5050600386510660018114610a9e5760028114610ab157610ab9565b603d6001830353603d6002830353610ab9565b603d60018303535b509195945050505050565b606081600003610b0757505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115610b315780610b1b816111d5565b9150610b2a9050600a836115d6565b9150610b0b565b60008167ffffffffffffffff811115610b4c57610b4c610e5d565b6040519080825280601f01601f191660200182016040528015610b76576020820181803683370190505b5090505b8415610bf957610b8b6001836115ea565b9150610b98600a86611601565b610ba390603061148f565b60f81b818381518110610bb857610bb86111a9565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350610bf2600a866115d6565b9450610b7a565b949350505050565b6040518061084001604052806042905b6060815260200190600190039081610c115790505090565b828054828255906000526020600020908101928215610c76579160200282015b82811115610c765782518051610c66918491602090910190610d06565b5091602001919060010190610c49565b50610c82929150610d41565b5090565b828054610c92906111ee565b90600052602060002090601f016020900481019282610cb45760008555610cfa565b82601f10610ccd5782800160ff19823516178555610cfa565b82800160010185558215610cfa579182015b82811115610cfa578235825591602001919060010190610cdf565b50610c82929150610d5e565b828054828255906000526020600020908101928215610cfa579160200282015b82811115610cfa578251825591602001919060010190610d26565b80821115610c82576000610d558282610d73565b50600101610d41565b5b80821115610c825760008155600101610d5f565b50805460008255906000526020600020908101906108229190610d5e565b60008060408385031215610da457600080fd5b50508035926020909101359150565b60005b83811015610dce578181015183820152602001610db6565b83811115610ddd576000848401525b50505050565b60008151808452610dfb816020860160208601610db3565b601f01601f19169290920160200192915050565b6020808252600090610860830183820185845b6042811015610e5157601f19878503018352610e3f848351610de3565b93509184019190840190600101610e22565b50919695505050505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715610e9c57610e9c610e5d565b604052919050565b600067ffffffffffffffff821115610ebe57610ebe610e5d565b5060051b60200190565b60006020808385031215610edb57600080fd5b823567ffffffffffffffff80821115610ef357600080fd5b818501915085601f830112610f0757600080fd5b8135610f1a610f1582610ea4565b610e73565b818152600591821b8401850191858201919089841115610f3957600080fd5b8686015b84811015610fc557803586811115610f555760008081fd5b8701603f81018c13610f675760008081fd5b888101356040610f79610f1583610ea4565b82815291851b83018101918b8101908f841115610f965760008081fd5b938201935b83851015610fb45784358252938c0193908c0190610f9b565b885250505093880193508701610f3d565b50909998505050505050505050565b600060208284031215610fe657600080fd5b5035919050565b60008083601f840112610fff57600080fd5b50813567ffffffffffffffff81111561101757600080fd5b60208301915083602082850101111561102f57600080fd5b9250929050565b6000806020838503121561104957600080fd5b823567ffffffffffffffff81111561106057600080fd5b61106c85828601610fed565b90969095509350505050565b60008060008060008060006080888a03121561109357600080fd5b873567ffffffffffffffff808211156110ab57600080fd5b6110b78b838c01610fed565b909950975060208a01359150808211156110d057600080fd5b6110dc8b838c01610fed565b909750955060408a01359150808211156110f557600080fd5b506111028a828b01610fed565b989b979a50959894979596606090950135949350505050565b60208152600061112e6020830184610de3565b9392505050565b6080815260006111486080830187610de3565b828103602084015261115a8187610de3565b9050828103604084015261116e8186610de3565b91505082606083015295945050505050565b60006020828403121561119257600080fd5b81356001600160a01b038116811461112e57600080fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000600182016111e7576111e76111bf565b5060010190565b600181811c9082168061120257607f821691505b60208210810361122257634e487b7160e01b600052602260045260246000fd5b50919050565b8054600090600181811c908083168061124257607f831692505b6020808410820361126357634e487b7160e01b600052602260045260246000fd5b8180156112775760018114611288576112b5565b60ff198616895284890196506112b5565b60008881526020902060005b868110156112ad5781548b820152908501908301611294565b505084890196505b50505050505092915050565b7f7b226e616d65223a202250726f6f66206f66204d65726765222c22646573637281527f697074696f6e223a220000000000000000000000000000000000000000000000602082015260006113196029830185611228565b7f222c22696d616765223a220000000000000000000000000000000000000000008152835161134f81600b840160208801610db3565b7f227d000000000000000000000000000000000000000000000000000000000000600b9290910191820152600d01949350505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c0000008152600082516113bd81601d850160208701610db3565b91909101601d0192915050565b600084516113dc818460208901610db3565b8451908301906113f0818360208901610db3565b7f273e00000000000000000000000000000000000000000000000000000000000091019081528351611429816002840160208801610db3565b7f3c2f746578743e000000000000000000000000000000000000000000000000006002929091019182015260090195945050505050565b60008351611472818460208801610db3565b835190830190611486818360208801610db3565b01949350505050565b600082198211156114a2576114a26111bf565b500190565b60006114b38286611228565b84516114c3818360208901610db3565b6114cf81830186611228565b979650505050505050565b7f646174613a696d6167652f7376672b786d6c3b6261736536342c00000000000081526000825161151281601a850160208701610db3565b91909101601a0192915050565b6000816000190483118215151615611539576115396111bf565b500290565b60008251611550818460208701610db3565b7f2e00000000000000000000000000000000000000000000000000000000000000920191825250600101919050565b60008251611591818460208701610db3565b7f3100000000000000000000000000000000000000000000000000000000000000920191825250600101919050565b634e487b7160e01b600052601260045260246000fd5b6000826115e5576115e56115c0565b500490565b6000828210156115fc576115fc6111bf565b500390565b600082611610576116106115c0565b50069056fe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa26469706673582212205328f08987a441d408f9293ce7e68bc333c947815f30d3fd8a43ce1d16aa9f3d64736f6c634300080d003350726f6f66206f66204d6572676520697320612066756c6c79206f6e2d636861696e2c206e6f6e2d7472616e7366657261626c652c20616e642064796e616d6963204e465420746861742077696c6c206368616e6765207468726f7567686f757420546865204d657267652e2057652064657465637420546865204d65726765206f6e2d636861696e20627920636865636b696e672069662074686520444946464943554c5459206f70636f64652072657475726e732030206163636f7264696e6720746f20454950333637352e20447572696e6720546865204d657267652c207468652063757272656e7420457468657265756d20657865637574696f6e206c617965722077696c6c206d6572676520696e746f2074686520426561636f6e20636861696e2c20616e6420457468657265756d2077696c6c207472616e736974696f6e2066726f6d2050726f6f66206f6620576f726b20746f2050726f6f66206f66205374616b652e2050726f6f66206f66204d65726765206973206120636f6c6c61626f726174696f6e206265747765656e204d69636861656c20426c617520287830722920616e64204d61736f6e2048616c6c2e3c74657874206c656e67746841646a7573743d2773706163696e672720746578744c656e6774683d273732302720636c6173733d27636c732d312720783d27302720793d273c73766720786d6c6e733d27687474703a2f2f7777772e77332e6f72672f323030302f737667272076696577426f783d273020302037323020383032273e3c646566733e3c7374796c653e2e636c732d317b666f6e742d73697a653a20313070783b2066696c6c3a2077686974653b20666f6e742d66616d696c793a6d6f6e6f73706163653b7d3c2f7374796c653e3c2f646566733e3c673e3c726563742077696474683d2737323027206865696768743d27383032272066696c6c3d27626c61636b27202f3e00000000000000000000000000000000000000000000000000000000632151c0

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100ea5760003560e01c806390c3f38f1161008c578063ab5f136b11610066578063ab5f136b146101ac578063ad711e9e146101c1578063d9adcf03146101c9578063f2fde38b146101e157600080fd5b806390c3f38f1461017d57806396b899f814610190578063a8a3b442146101a357600080fd5b80636bcc9b3b116100c85780636bcc9b3b14610132578063715018a6146101475780638aa322fd1461014f5780638da5cb5b1461016257600080fd5b806303d43b93146100ef5780634547060714610115578063521127f11461012a575b600080fd5b6101026100fd366004610d91565b6101f4565b6040519081526020015b60405180910390f35b61011d610231565b60405161010c9190610e0f565b610102610319565b610145610140366004610ec8565b610350565b005b61014561036f565b61014561015d366004610fd4565b610383565b6000546040516001600160a01b03909116815260200161010c565b61014561018b366004611036565b610390565b61014561019e366004611078565b6103a9565b61010260025481565b6101b46103e3565b60405161010c919061111b565b6101b4610447565b6101d16105ce565b60405161010c9493929190611135565b6101456101ef366004611180565b610790565b6001828154811061020457600080fd5b90600052602060002001818154811061021c57600080fd5b90600052602060002001600091509150505481565b610239610c01565b610241610c01565b6000600161024d610319565b8154811061025d5761025d6111a9565b906000526020600020018054806020026020016040519081016040528092919081815260200182805480156102b157602002820191906000526020600020905b81548152602001906001019080831161029d575b5050505050905060005b6042811015610311576102e88282815181106102d9576102d96111a9565b60200260200101516078610825565b8382604281106102fa576102fa6111a9565b602002015280610309816111d5565b9150506102bb565b509092915050565b600068010000000000000000441180610330575044155b1561033b5750600290565b600254421061034a5750600190565b50600090565b6103586108af565b805161036b906001906020840190610c29565b5050565b6103776108af565b6103816000610909565b565b61038b6108af565b600255565b6103986108af565b6103a460038383610c86565b505050565b6103b16108af565b6103bd60048888610c86565b506103ca60068686610c86565b506103d760058484610c86565b50600755505050505050565b606060006103ef610447565b9050600061041e60038360405160200161040a9291906112c1565b604051602081830303815290604052610971565b9050806040516020016104319190611385565b6040516020818303038152906040529250505090565b60606000610453610231565b9050600060058054610464906111ee565b80601f0160208091040260200160405190810160405280929190818152602001828054610490906111ee565b80156104dd5780601f106104b2576101008083540402835291602001916104dd565b820191906000526020600020905b8154815290600101906020018083116104c057829003601f168201915b505050505090506060806000600754905060005b6042811015610584578461050483610ac4565b878360428110610516576105166111a9565b602002015160405160200161052d939291906113ca565b60405160208183030381529060405293508284604051602001610551929190611460565b604051602081830303815290604052925060075482610570919061148f565b91508061057c816111d5565b9150506104f1565b5060006105a1600484600660405160200161040a939291906114a7565b9050806040516020016105b491906114da565b604051602081830303815290604052965050505050505090565b606080606060006004600660056007548380546105ea906111ee565b80601f0160208091040260200160405190810160405280929190818152602001828054610616906111ee565b80156106635780601f1061063857610100808354040283529160200191610663565b820191906000526020600020905b81548152906001019060200180831161064657829003601f168201915b50505050509350828054610676906111ee565b80601f01602080910402602001604051908101604052809291908181526020018280546106a2906111ee565b80156106ef5780601f106106c4576101008083540402835291602001916106ef565b820191906000526020600020905b8154815290600101906020018083116106d257829003601f168201915b50505050509250818054610702906111ee565b80601f016020809104026020016040519081016040528092919081815260200182805461072e906111ee565b801561077b5780601f106107505761010080835404028352916020019161077b565b820191906000526020600020905b81548152906001019060200180831161075e57829003601f168201915b50505050509150935093509350935090919293565b6107986108af565b6001600160a01b0381166108195760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b61082281610909565b50565b60608060005b838110156108a75761083e81600161151f565b85901c600116600003610872578160405160200161085c919061153e565b6040516020818303038152906040529150610895565b81604051602001610883919061157f565b60405160208183030381529060405291505b8061089f816111d5565b91505061082b565b509392505050565b6000546001600160a01b031633146103815760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610810565b600080546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6060815160000361099057505060408051602081019091526000815290565b600060405180606001604052806040815260200161161660409139905060006003845160026109bf919061148f565b6109c991906115d6565b6109d490600461151f565b67ffffffffffffffff8111156109ec576109ec610e5d565b6040519080825280601f01601f191660200182016040528015610a16576020820181803683370190505b509050600182016020820185865187015b80821015610a82576003820191508151603f8160121c168501518453600184019350603f81600c1c168501518453600184019350603f8160061c168501518453600184019350603f8116850151845350600183019250610a27565b5050600386510660018114610a9e5760028114610ab157610ab9565b603d6001830353603d6002830353610ab9565b603d60018303535b509195945050505050565b606081600003610b0757505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115610b315780610b1b816111d5565b9150610b2a9050600a836115d6565b9150610b0b565b60008167ffffffffffffffff811115610b4c57610b4c610e5d565b6040519080825280601f01601f191660200182016040528015610b76576020820181803683370190505b5090505b8415610bf957610b8b6001836115ea565b9150610b98600a86611601565b610ba390603061148f565b60f81b818381518110610bb857610bb86111a9565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350610bf2600a866115d6565b9450610b7a565b949350505050565b6040518061084001604052806042905b6060815260200190600190039081610c115790505090565b828054828255906000526020600020908101928215610c76579160200282015b82811115610c765782518051610c66918491602090910190610d06565b5091602001919060010190610c49565b50610c82929150610d41565b5090565b828054610c92906111ee565b90600052602060002090601f016020900481019282610cb45760008555610cfa565b82601f10610ccd5782800160ff19823516178555610cfa565b82800160010185558215610cfa579182015b82811115610cfa578235825591602001919060010190610cdf565b50610c82929150610d5e565b828054828255906000526020600020908101928215610cfa579160200282015b82811115610cfa578251825591602001919060010190610d26565b80821115610c82576000610d558282610d73565b50600101610d41565b5b80821115610c825760008155600101610d5f565b50805460008255906000526020600020908101906108229190610d5e565b60008060408385031215610da457600080fd5b50508035926020909101359150565b60005b83811015610dce578181015183820152602001610db6565b83811115610ddd576000848401525b50505050565b60008151808452610dfb816020860160208601610db3565b601f01601f19169290920160200192915050565b6020808252600090610860830183820185845b6042811015610e5157601f19878503018352610e3f848351610de3565b93509184019190840190600101610e22565b50919695505050505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715610e9c57610e9c610e5d565b604052919050565b600067ffffffffffffffff821115610ebe57610ebe610e5d565b5060051b60200190565b60006020808385031215610edb57600080fd5b823567ffffffffffffffff80821115610ef357600080fd5b818501915085601f830112610f0757600080fd5b8135610f1a610f1582610ea4565b610e73565b818152600591821b8401850191858201919089841115610f3957600080fd5b8686015b84811015610fc557803586811115610f555760008081fd5b8701603f81018c13610f675760008081fd5b888101356040610f79610f1583610ea4565b82815291851b83018101918b8101908f841115610f965760008081fd5b938201935b83851015610fb45784358252938c0193908c0190610f9b565b885250505093880193508701610f3d565b50909998505050505050505050565b600060208284031215610fe657600080fd5b5035919050565b60008083601f840112610fff57600080fd5b50813567ffffffffffffffff81111561101757600080fd5b60208301915083602082850101111561102f57600080fd5b9250929050565b6000806020838503121561104957600080fd5b823567ffffffffffffffff81111561106057600080fd5b61106c85828601610fed565b90969095509350505050565b60008060008060008060006080888a03121561109357600080fd5b873567ffffffffffffffff808211156110ab57600080fd5b6110b78b838c01610fed565b909950975060208a01359150808211156110d057600080fd5b6110dc8b838c01610fed565b909750955060408a01359150808211156110f557600080fd5b506111028a828b01610fed565b989b979a50959894979596606090950135949350505050565b60208152600061112e6020830184610de3565b9392505050565b6080815260006111486080830187610de3565b828103602084015261115a8187610de3565b9050828103604084015261116e8186610de3565b91505082606083015295945050505050565b60006020828403121561119257600080fd5b81356001600160a01b038116811461112e57600080fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000600182016111e7576111e76111bf565b5060010190565b600181811c9082168061120257607f821691505b60208210810361122257634e487b7160e01b600052602260045260246000fd5b50919050565b8054600090600181811c908083168061124257607f831692505b6020808410820361126357634e487b7160e01b600052602260045260246000fd5b8180156112775760018114611288576112b5565b60ff198616895284890196506112b5565b60008881526020902060005b868110156112ad5781548b820152908501908301611294565b505084890196505b50505050505092915050565b7f7b226e616d65223a202250726f6f66206f66204d65726765222c22646573637281527f697074696f6e223a220000000000000000000000000000000000000000000000602082015260006113196029830185611228565b7f222c22696d616765223a220000000000000000000000000000000000000000008152835161134f81600b840160208801610db3565b7f227d000000000000000000000000000000000000000000000000000000000000600b9290910191820152600d01949350505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c0000008152600082516113bd81601d850160208701610db3565b91909101601d0192915050565b600084516113dc818460208901610db3565b8451908301906113f0818360208901610db3565b7f273e00000000000000000000000000000000000000000000000000000000000091019081528351611429816002840160208801610db3565b7f3c2f746578743e000000000000000000000000000000000000000000000000006002929091019182015260090195945050505050565b60008351611472818460208801610db3565b835190830190611486818360208801610db3565b01949350505050565b600082198211156114a2576114a26111bf565b500190565b60006114b38286611228565b84516114c3818360208901610db3565b6114cf81830186611228565b979650505050505050565b7f646174613a696d6167652f7376672b786d6c3b6261736536342c00000000000081526000825161151281601a850160208701610db3565b91909101601a0192915050565b6000816000190483118215151615611539576115396111bf565b500290565b60008251611550818460208701610db3565b7f2e00000000000000000000000000000000000000000000000000000000000000920191825250600101919050565b60008251611591818460208701610db3565b7f3100000000000000000000000000000000000000000000000000000000000000920191825250600101919050565b634e487b7160e01b600052601260045260246000fd5b6000826115e5576115e56115c0565b500490565b6000828210156115fc576115fc6111bf565b500390565b600082611610576116106115c0565b50069056fe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa26469706673582212205328f08987a441d408f9293ce7e68bc333c947815f30d3fd8a43ce1d16aa9f3d64736f6c634300080d0033

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

00000000000000000000000000000000000000000000000000000000632151c0

-----Decoded View---------------
Arg [0] : _phaseTwoStart (uint256): 1663128000

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000632151c0


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.