ETH Price: $2,337.65 (-3.41%)
 

Overview

ETH Balance

0 ETH

ETH Value

$0.00

Token Holdings

More Info

Private Name Tags

Multichain Info

No addresses found
Transaction Hash
Block
From
To
Deploy1245973572024-08-27 21:18:11599 days ago1724793491IN
0x2694a14e...adb7E025E
0 ETH0.0000478465860.01
Deploy1245973412024-08-27 21:17:39599 days ago1724793459IN
0x2694a14e...adb7E025E
0 ETH0.00004272120.01
Deploy1245973302024-08-27 21:17:17599 days ago1724793437IN
0x2694a14e...adb7E025E
0 ETH0.0000192310090.01
Deploy1245972672024-08-27 21:15:11599 days ago1724793311IN
0x2694a14e...adb7E025E
0 ETH0.0000452252490.01
Deploy1221341592024-07-01 20:51:35656 days ago1719867095IN
0x2694a14e...adb7E025E
0 ETH0.0045884922331
Deploy1216562762024-06-20 19:22:09667 days ago1718911329IN
0x2694a14e...adb7E025E
0 ETH0.0005885191550.1
Deploy1213641242024-06-14 1:03:45674 days ago1718327025IN
0x2694a14e...adb7E025E
0 ETH0.0000419301550.01
Deploy1213641102024-06-14 1:03:17674 days ago1718326997IN
0x2694a14e...adb7E025E
0 ETH0.0000197907670.01
Deploy1213511632024-06-13 17:51:43674 days ago1718301103IN
0x2694a14e...adb7E025E
0 ETH0.0004605289860.1
Deploy1198424032024-05-09 19:39:43709 days ago1715283583IN
0x2694a14e...adb7E025E
0 ETH0.0014535053041
Deploy1198421832024-05-09 19:32:23709 days ago1715283143IN
0x2694a14e...adb7E025E
0 ETH0.0045131311991
Deploy1166946862024-02-26 22:55:49782 days ago1708988149IN
0x2694a14e...adb7E025E
0 ETH0.0074247392450.01
Deploy1166946202024-02-26 22:53:37782 days ago1708988017IN
0x2694a14e...adb7E025E
0 ETH0.0018108271080.01
Deploy1155252722024-01-30 21:15:21809 days ago1706649321IN
0x2694a14e...adb7E025E
0 ETH0.0110417234121
Deploy1150921752024-01-20 20:38:47819 days ago1705783127IN
0x2694a14e...adb7E025E
0 ETH0.0008928572790.1
Deploy1150920532024-01-20 20:34:43819 days ago1705782883IN
0x2694a14e...adb7E025E
0 ETH0.0007538079260.1
Deploy1150920462024-01-20 20:34:29819 days ago1705782869IN
0x2694a14e...adb7E025E
0 ETH0.0018434347460.1
Deploy1150920412024-01-20 20:34:19819 days ago1705782859IN
0x2694a14e...adb7E025E
0 ETH0.0007123206140.1
Deploy1150918152024-01-20 20:26:47819 days ago1705782407IN
0x2694a14e...adb7E025E
0 ETH0.0034710673910.1
Deploy1150918002024-01-20 20:26:17819 days ago1705782377IN
0x2694a14e...adb7E025E
0 ETH0.0004823542050.1
Deploy1150917942024-01-20 20:26:05819 days ago1705782365IN
0x2694a14e...adb7E025E
0 ETH0.001386962090.1
Deploy1150917832024-01-20 20:25:43819 days ago1705782343IN
0x2694a14e...adb7E025E
0 ETH0.0004709587760.1
Deploy1150917552024-01-20 20:24:47819 days ago1705782287IN
0x2694a14e...adb7E025E
0 ETH0.000813308090.1
Deploy1150917242024-01-20 20:23:45819 days ago1705782225IN
0x2694a14e...adb7E025E
0 ETH0.0004782479540.1
Deploy1150917162024-01-20 20:23:29819 days ago1705782209IN
0x2694a14e...adb7E025E
0 ETH0.0003726974360.1
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block From To
1245973572024-08-27 21:18:11599 days ago1724793491
0x2694a14e...adb7E025E
 Contract Creation0 ETH
1245973412024-08-27 21:17:39599 days ago1724793459
0x2694a14e...adb7E025E
 Contract Creation0 ETH
1245973302024-08-27 21:17:17599 days ago1724793437
0x2694a14e...adb7E025E
 Contract Creation0 ETH
1245972672024-08-27 21:15:11599 days ago1724793311
0x2694a14e...adb7E025E
 Contract Creation0 ETH
1221341592024-07-01 20:51:35656 days ago1719867095
0x2694a14e...adb7E025E
 Contract Creation0 ETH
1216562762024-06-20 19:22:09667 days ago1718911329
0x2694a14e...adb7E025E
 Contract Creation0 ETH
1213641242024-06-14 1:03:45674 days ago1718327025
0x2694a14e...adb7E025E
 Contract Creation0 ETH
1213641102024-06-14 1:03:17674 days ago1718326997
0x2694a14e...adb7E025E
 Contract Creation0 ETH
1213511632024-06-13 17:51:43674 days ago1718301103
0x2694a14e...adb7E025E
 Contract Creation0 ETH
1198424032024-05-09 19:39:43709 days ago1715283583
0x2694a14e...adb7E025E
 Contract Creation0 ETH
1198421832024-05-09 19:32:23709 days ago1715283143
0x2694a14e...adb7E025E
 Contract Creation0 ETH
1166946862024-02-26 22:55:49782 days ago1708988149
0x2694a14e...adb7E025E
 Contract Creation0 ETH
1166946202024-02-26 22:53:37782 days ago1708988017
0x2694a14e...adb7E025E
 Contract Creation0 ETH
1155252722024-01-30 21:15:21809 days ago1706649321
0x2694a14e...adb7E025E
 Contract Creation0 ETH
1150921752024-01-20 20:38:47819 days ago1705783127
0x2694a14e...adb7E025E
 Contract Creation0 ETH
1150920532024-01-20 20:34:43819 days ago1705782883
0x2694a14e...adb7E025E
 Contract Creation0 ETH
1150920462024-01-20 20:34:29819 days ago1705782869
0x2694a14e...adb7E025E
 Contract Creation0 ETH
1150920412024-01-20 20:34:19819 days ago1705782859
0x2694a14e...adb7E025E
 Contract Creation0 ETH
1150918152024-01-20 20:26:47819 days ago1705782407
0x2694a14e...adb7E025E
 Contract Creation0 ETH
1150918002024-01-20 20:26:17819 days ago1705782377
0x2694a14e...adb7E025E
 Contract Creation0 ETH
1150917942024-01-20 20:26:05819 days ago1705782365
0x2694a14e...adb7E025E
 Contract Creation0 ETH
1150917832024-01-20 20:25:43819 days ago1705782343
0x2694a14e...adb7E025E
 Contract Creation0 ETH
1150917552024-01-20 20:24:47819 days ago1705782287
0x2694a14e...adb7E025E
 Contract Creation0 ETH
1150917242024-01-20 20:23:45819 days ago1705782225
0x2694a14e...adb7E025E
 Contract Creation0 ETH
1150917162024-01-20 20:23:29819 days ago1705782209
0x2694a14e...adb7E025E
 Contract Creation0 ETH
View All Internal Transactions

Cross-Chain Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
HolographGenesis

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
Yes with 999999 runs

Other Settings:
default evmVersion
// SPDX-License-Identifier: UNLICENSED
/*

                         ┌───────────┐
                         │ HOLOGRAPH │
                         └───────────┘
╔═════════════════════════════════════════════════════════════╗
║                                                             ║
║                            / ^ \                            ║
║                            ~~*~~            ¸               ║
║                         [ '<>:<>' ]         │░░░            ║
║               ╔╗           _/"\_           ╔╣               ║
║             ┌─╬╬─┐          """          ┌─╬╬─┐             ║
║          ┌─┬┘ ╠╣ └┬─┐       \_/       ┌─┬┘ ╠╣ └┬─┐          ║
║       ┌─┬┘ │  ╠╣  │ └┬─┐           ┌─┬┘ │  ╠╣  │ └┬─┐       ║
║    ┌─┬┘ │  │  ╠╣  │  │ └┬─┐     ┌─┬┘ │  │  ╠╣  │  │ └┬─┐    ║
║ ┌─┬┘ │  │  │  ╠╣  │  │  │ └┬┐ ┌┬┘ │  │  │  ╠╣  │  │  │ └┬─┐ ║
╠┬┘ │  │  │  │  ╠╣  │  │  │  │└¤┘│  │  │  │  ╠╣  │  │  │  │ └┬╣
║│  │  │  │  │  ╠╣  │  │  │  │   │  │  │  │  ╠╣  │  │  │  │  │║
╠╩══╩══╩══╩══╩══╬╬══╩══╩══╩══╩═══╩══╩══╩══╩══╬╬══╩══╩══╩══╩══╩╣
╠┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴╬╬┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴╬╬┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴╣
║               ╠╣                           ╠╣               ║
║               ╠╣                           ╠╣               ║
║    ,          ╠╣     ,        ,'      *    ╠╣               ║
║~~~~~^~~~~~~~~┌╬╬┐~~~^~~~~~~~~^^~~~~~~~~^~~┌╬╬┐~~~~~~~^~~~~~~║
╚══════════════╩╩╩╩═════════════════════════╩╩╩╩══════════════╝
     - one protocol, one bridge = infinite possibilities -


 ***************************************************************

 DISCLAIMER: U.S Patent Pending

 LICENSE: Holograph Limited Public License (H-LPL)

 https://holograph.xyz/licenses/h-lpl/1.0.0

 This license governs use of the accompanying software. If you
 use the software, you accept this license. If you do not accept
 the license, you are not permitted to use the software.

 1. Definitions

 The terms "reproduce," "reproduction," "derivative works," and
 "distribution" have the same meaning here as under U.S.
 copyright law. A "contribution" is the original software, or
 any additions or changes to the software. A "contributor" is
 any person that distributes its contribution under this
 license. "Licensed patents" are a contributor’s patent claims
 that read directly on its contribution.

 2. Grant of Rights

 A) Copyright Grant- Subject to the terms of this license,
 including the license conditions and limitations in sections 3
 and 4, each contributor grants you a non-exclusive, worldwide,
 royalty-free copyright license to reproduce its contribution,
 prepare derivative works of its contribution, and distribute
 its contribution or any derivative works that you create.
 B) Patent Grant- Subject to the terms of this license,
 including the license conditions and limitations in section 3,
 each contributor grants you a non-exclusive, worldwide,
 royalty-free license under its licensed patents to make, have
 made, use, sell, offer for sale, import, and/or otherwise
 dispose of its contribution in the software or derivative works
 of the contribution in the software.

 3. Conditions and Limitations

 A) No Trademark License- This license does not grant you rights
 to use any contributors’ name, logo, or trademarks.
 B) If you bring a patent claim against any contributor over
 patents that you claim are infringed by the software, your
 patent license from such contributor is terminated with
 immediate effect.
 C) If you distribute any portion of the software, you must
 retain all copyright, patent, trademark, and attribution
 notices that are present in the software.
 D) If you distribute any portion of the software in source code
 form, you may do so only under this license by including a
 complete copy of this license with your distribution. If you
 distribute any portion of the software in compiled or object
 code form, you may only do so under a license that complies
 with this license.
 E) The software is licensed “as-is.” You bear all risks of
 using it. The contributors give no express warranties,
 guarantees, or conditions. You may have additional consumer
 rights under your local laws which this license cannot change.
 To the extent permitted under your local laws, the contributors
 exclude all implied warranties, including those of
 merchantability, fitness for a particular purpose and
 non-infringement.

 4. (F) Platform Limitation- The licenses granted in sections
 2.A & 2.B extend only to the software or derivative works that
 you create that run on a Holograph system product.

 ***************************************************************

*/

pragma solidity 0.8.17;

import "./interface/InitializableInterface.sol";

/**
 * @title HOLOGRAPH GENESIS
 * @dev In the beginning there was a smart contract...
 */
contract HolographGenesis {
  uint32 private immutable _version;

  // Nonce to prevent replay attacks on deployer approvals
  uint256 private _approveDeployerNonce;

  // Immutable addresses of the initial deployers
  address private immutable deployer1 = 0xBB566182f35B9E5Ae04dB02a5450CC156d2f89c1;
  address private immutable deployer2 = 0x22ED36947DDd1ae317F7816c410D3c0c58Bb9b90;
  address private immutable deployer3 = 0xFfCA0d6986099FbDb3b6AD9b6aa5DF5ed1d44f0C;
  address private immutable deployer4 = 0xDF9013a9Af763b181EF8acFC0e3229494004e001;
  address private immutable deployer5 = 0x00Ac9Fd50C63f176B49F05FfedA324bD68C7cD69;

  // Mapping of addresses that are approved deployers
  mapping(address => bool) private _approvedDeployers;

  // Events
  event Message(string message);
  event ContractDeployed(address deployedContract);

  // Modifier to restrict function calls to approved deployers
  modifier onlyDeployer() {
    require(_approvedDeployers[msg.sender], "HOLOGRAPH: deployer not approved");
    _;
  }

  /**
   * @dev Sets the initial deployers as approved upon contract creation.
   */
  constructor() {
    _version = 2;

    // Set the immutable deployers as approved
    _approvedDeployers[deployer1] = true;
    _approvedDeployers[deployer2] = true;
    _approvedDeployers[deployer3] = true;
    _approvedDeployers[deployer4] = true;
    _approvedDeployers[deployer5] = true;

    emit Message("The future is Holographic");
  }

  /**
   * @dev Deploy a contract using the EIP-1014 (create2) opcode for deterministic addresses.
   * @param chainId The chain on which to deploy
   * @param saltHash A unique salt for contract creation
   * @param secret A secret part of the salt
   * @param sourceCode The bytecode of the contract to deploy
   * @param initCode The initialization code for the contract
   */
  function deploy(
    uint256 chainId,
    bytes12 saltHash,
    bytes20 secret,
    bytes memory sourceCode,
    bytes memory initCode
  ) external onlyDeployer {
    require(chainId == block.chainid, "HOLOGRAPH: incorrect chain id");
    bytes32 salt = bytes32(abi.encodePacked(secret, saltHash));
    address contractAddress = address(
      uint160(uint256(keccak256(abi.encodePacked(bytes1(0xff), address(this), salt, keccak256(sourceCode)))))
    );
    require(!_isContract(contractAddress), "HOLOGRAPH: already deployed");
    assembly {
      contractAddress := create2(0, add(sourceCode, 0x20), mload(sourceCode), salt)
    }
    require(_isContract(contractAddress), "HOLOGRAPH: deployment failed");
    require(
      InitializableInterface(contractAddress).init(initCode) == InitializableInterface.init.selector,
      "HOLOGRAPH: initialization failed"
    );

    emit ContractDeployed(contractAddress);
  }

  /**
   * @dev Check if an address is an approved deployer.
   * @param deployer Address to check
   * @return bool representing approval status
   */
  function isApprovedDeployer(address deployer) external view returns (bool) {
    return _approvedDeployers[deployer];
  }

  /**
   * @dev Internal function to determine if an address is a deployed contract.
   * @param contractAddress The address to check
   * @return bool representing if the address is a contract
   */
  function _isContract(address contractAddress) internal view returns (bool) {
    bytes32 codehash;
    assembly {
      codehash := extcodehash(contractAddress)
    }
    return (codehash != 0x0 && codehash != 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470);
  }

  /**
   * @dev Approve or disapprove a deployer using multi-signature verification.
   * @param nonce A unique nonce
   * @param newDeployer The address of the deployer to approve or disapprove
   * @param approve Boolean representing the approval status
   * @param sig1 The first signature for multisig
   * @param sig2 The second signature for multisig
   */
  function approveDeployer(
    uint256 nonce,
    address newDeployer,
    bool approve,
    bytes memory sig1,
    bytes memory sig2
  ) external onlyDeployer {
    require(nonce > _approveDeployerNonce, "HOLOGRAPH: invalid nonce");
    _approveDeployerNonce = nonce; // Update the nonce

    // Recover signers
    address signer1 = recoverSigner(nonce, newDeployer, approve, sig1);
    address signer2 = recoverSigner(nonce, newDeployer, approve, sig2);

    // Check that both signers are approved deployers
    require(_approvedDeployers[signer1], "HOLOGRAPH: signer 1 not approved");
    require(_approvedDeployers[signer2], "HOLOGRAPH: signer 2 not approved");

    // Ensure signatures come from two different deployers
    require(signer1 != signer2, "HOLOGRAPH: signatures must be from different deployers");

    // All checks passed, update the deployer approval status
    _approvedDeployers[newDeployer] = approve;

    emit Message(approve ? "HOLOGRAPH: deployer approved" : "HOLOGRAPH: deployer disapproved");
  }

  /**
   * @dev Generates a hash of the message containing nonce, deployer address, and approval status.
   * @param nonce Nonce used in the message
   * @param newDeployer Address of the deployer in the message
   * @param approve Approval status in the message
   * @return bytes32 Ethereum signed message hash
   */
  function getMessageHash(
    uint256 nonce,
    address newDeployer,
    bool approve
  ) public pure returns (bytes32) {
    return keccak256(abi.encodePacked(nonce, newDeployer, approve));
  }

  /**
   * @dev Recreates the Ethereum signed message hash from the plain message hash.
   * @param _messageHash The hash of the original message
   * @return bytes32 Ethereum signed message hash
   */
  function getEthSignedMessageHash(bytes32 _messageHash) public pure returns (bytes32) {
    return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", _messageHash));
  }

  /**
   * @dev Recovers the signer from the signature.
   * @param nonce Nonce used in the message
   * @param newDeployer Address of the deployer in the message
   * @param approve Approval status in the message
   * @param signature The signature to recover
   * @return address of the signer
   */
  function recoverSigner(
    uint256 nonce,
    address newDeployer,
    bool approve,
    bytes memory signature
  ) public pure returns (address) {
    bytes32 messageHash = getMessageHash(nonce, newDeployer, approve);
    bytes32 prefixedHash = getEthSignedMessageHash(messageHash);
    (bytes32 r, bytes32 s, uint8 v) = splitSignature(signature);

    return ecrecover(prefixedHash, v, r, s);
  }

  /**
   * @dev Splits a signature into its r, s, and v components.
   * @param sig The signature to split.
   * @return r The r component of the signature.
   * @return s The s component of the signature.
   * @return v The recovery id component of the signature.
   */
  function splitSignature(bytes memory sig)
    internal
    pure
    returns (
      bytes32 r,
      bytes32 s,
      uint8 v
    )
  {
    require(sig.length == 65, "Invalid signature length");

    assembly {
      // first 32 bytes, after the length prefix
      r := mload(add(sig, 32))
      // second 32 bytes
      s := mload(add(sig, 64))
      // final byte (first byte of the next 32 bytes)
      v := byte(0, mload(add(sig, 96)))
    }
  }

  /**
   * @dev Returns the current nonce for deployer approvals.
   * @return uint256 representing the current nonce
   */
  function getApproveDeployerNonce() external view onlyDeployer returns (uint256) {
    return _approveDeployerNonce;
  }

  /**
   * @dev Returns the version number of the Genesis contract
   * @return uint32 representing the version number
   */
  function getVersion() external view returns (uint32) {
    return _version;
  }
}

// SPDX-License-Identifier: UNLICENSED
/*

                         ┌───────────┐
                         │ HOLOGRAPH │
                         └───────────┘
╔═════════════════════════════════════════════════════════════╗
║                                                             ║
║                            / ^ \                            ║
║                            ~~*~~            ¸               ║
║                         [ '<>:<>' ]         │░░░            ║
║               ╔╗           _/"\_           ╔╣               ║
║             ┌─╬╬─┐          """          ┌─╬╬─┐             ║
║          ┌─┬┘ ╠╣ └┬─┐       \_/       ┌─┬┘ ╠╣ └┬─┐          ║
║       ┌─┬┘ │  ╠╣  │ └┬─┐           ┌─┬┘ │  ╠╣  │ └┬─┐       ║
║    ┌─┬┘ │  │  ╠╣  │  │ └┬─┐     ┌─┬┘ │  │  ╠╣  │  │ └┬─┐    ║
║ ┌─┬┘ │  │  │  ╠╣  │  │  │ └┬┐ ┌┬┘ │  │  │  ╠╣  │  │  │ └┬─┐ ║
╠┬┘ │  │  │  │  ╠╣  │  │  │  │└¤┘│  │  │  │  ╠╣  │  │  │  │ └┬╣
║│  │  │  │  │  ╠╣  │  │  │  │   │  │  │  │  ╠╣  │  │  │  │  │║
╠╩══╩══╩══╩══╩══╬╬══╩══╩══╩══╩═══╩══╩══╩══╩══╬╬══╩══╩══╩══╩══╩╣
╠┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴╬╬┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴╬╬┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴╣
║               ╠╣                           ╠╣               ║
║               ╠╣                           ╠╣               ║
║    ,          ╠╣     ,        ,'      *    ╠╣               ║
║~~~~~^~~~~~~~~┌╬╬┐~~~^~~~~~~~~^^~~~~~~~~^~~┌╬╬┐~~~~~~~^~~~~~~║
╚══════════════╩╩╩╩═════════════════════════╩╩╩╩══════════════╝
     - one protocol, one bridge = infinite possibilities -


 ***************************************************************

 DISCLAIMER: U.S Patent Pending

 LICENSE: Holograph Limited Public License (H-LPL)

 https://holograph.xyz/licenses/h-lpl/1.0.0

 This license governs use of the accompanying software. If you
 use the software, you accept this license. If you do not accept
 the license, you are not permitted to use the software.

 1. Definitions

 The terms "reproduce," "reproduction," "derivative works," and
 "distribution" have the same meaning here as under U.S.
 copyright law. A "contribution" is the original software, or
 any additions or changes to the software. A "contributor" is
 any person that distributes its contribution under this
 license. "Licensed patents" are a contributor’s patent claims
 that read directly on its contribution.

 2. Grant of Rights

 A) Copyright Grant- Subject to the terms of this license,
 including the license conditions and limitations in sections 3
 and 4, each contributor grants you a non-exclusive, worldwide,
 royalty-free copyright license to reproduce its contribution,
 prepare derivative works of its contribution, and distribute
 its contribution or any derivative works that you create.
 B) Patent Grant- Subject to the terms of this license,
 including the license conditions and limitations in section 3,
 each contributor grants you a non-exclusive, worldwide,
 royalty-free license under its licensed patents to make, have
 made, use, sell, offer for sale, import, and/or otherwise
 dispose of its contribution in the software or derivative works
 of the contribution in the software.

 3. Conditions and Limitations

 A) No Trademark License- This license does not grant you rights
 to use any contributors’ name, logo, or trademarks.
 B) If you bring a patent claim against any contributor over
 patents that you claim are infringed by the software, your
 patent license from such contributor is terminated with
 immediate effect.
 C) If you distribute any portion of the software, you must
 retain all copyright, patent, trademark, and attribution
 notices that are present in the software.
 D) If you distribute any portion of the software in source code
 form, you may do so only under this license by including a
 complete copy of this license with your distribution. If you
 distribute any portion of the software in compiled or object
 code form, you may only do so under a license that complies
 with this license.
 E) The software is licensed “as-is.” You bear all risks of
 using it. The contributors give no express warranties,
 guarantees, or conditions. You may have additional consumer
 rights under your local laws which this license cannot change.
 To the extent permitted under your local laws, the contributors
 exclude all implied warranties, including those of
 merchantability, fitness for a particular purpose and
 non-infringement.

 4. (F) Platform Limitation- The licenses granted in sections
 2.A & 2.B extend only to the software or derivative works that
 you create that run on a Holograph system product.

 ***************************************************************

*/

pragma solidity 0.8.17;

/**
 * @title Initializable
 * @author https://github.com/holographxyz
 * @notice Use init instead of constructor
 * @dev This allows for use of init function to make one time initializations without the need of a constructor
 */
interface InitializableInterface {
  /**
   * @notice Used internally to initialize the contract instead of through a constructor
   * @dev This function is called by the deployer/factory when creating a contract
   * @param initPayload abi encoded payload to use for contract initilaization
   */
  function init(bytes memory initPayload) external returns (bytes4);
}

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

Contract Security Audit

Contract ABI

API
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"deployedContract","type":"address"}],"name":"ContractDeployed","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"message","type":"string"}],"name":"Message","type":"event"},{"inputs":[{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"address","name":"newDeployer","type":"address"},{"internalType":"bool","name":"approve","type":"bool"},{"internalType":"bytes","name":"sig1","type":"bytes"},{"internalType":"bytes","name":"sig2","type":"bytes"}],"name":"approveDeployer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"chainId","type":"uint256"},{"internalType":"bytes12","name":"saltHash","type":"bytes12"},{"internalType":"bytes20","name":"secret","type":"bytes20"},{"internalType":"bytes","name":"sourceCode","type":"bytes"},{"internalType":"bytes","name":"initCode","type":"bytes"}],"name":"deploy","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getApproveDeployerNonce","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_messageHash","type":"bytes32"}],"name":"getEthSignedMessageHash","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"address","name":"newDeployer","type":"address"},{"internalType":"bool","name":"approve","type":"bool"}],"name":"getMessageHash","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"getVersion","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"deployer","type":"address"}],"name":"isApprovedDeployer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"address","name":"newDeployer","type":"address"},{"internalType":"bool","name":"approve","type":"bool"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"recoverSigner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"pure","type":"function"}]

61014060405273bb566182f35b9e5ae04db02a5450cc156d2f89c160a0527322ed36947ddd1ae317f7816c410d3c0c58bb9b9060c05273ffca0d6986099fbdb3b6ad9b6aa5df5ed1d44f0c60e05273df9013a9af763b181ef8acfc0e3229494004e0016101005272ac9fd50c63f176b49f05ffeda324bd68c7cd696101205234801561008a57600080fd5b50600260805260a0516001600160a01b039081166000908152600160208190526040808320805460ff19908116841790915560c05185168452818420805482168417905560e0518516845281842080548216841790556101005185168452818420805482168417905561012051909416835291829020805490931617909155517f51a7f65c6325882f237d4aeb43228179cfad48b868511d508e24b4437a819137906101679060208082526019908201527f5468652066757475726520697320486f6c6f6772617068696300000000000000604082015260600190565b60405180910390a160805160a05160c05160e05161010051610120516110f36101ae60003960005050600050506000505060005050600050506000609701526110f36000f3fe608060405234801561001057600080fd5b50600436106100885760003560e01c8063cb33fe541161005b578063cb33fe541461018c578063d288337d1461019f578063dc7faa07146101a7578063fa540801146101f057600080fd5b80630d8e6e2c1461008d57806349aa18fc146100c657806355da4cd0146100db5780636ae675ac14610113575b600080fd5b60405163ffffffff7f00000000000000000000000000000000000000000000000000000000000000001681526020015b60405180910390f35b6100d96100d4366004610dc4565b610251565b005b6100ee6100e9366004610eda565b61068c565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016100bd565b61017e610121366004610f42565b6040805160208082019590955260609390931b7fffffffffffffffffffffffffffffffffffffffff000000000000000000000000168382015290151560f81b60548301528051603581840301815260559092019052805191012090565b6040519081526020016100bd565b6100d961019a366004610f7e565b6107cd565b61017e610ba2565b6101e06101b5366004610fb4565b73ffffffffffffffffffffffffffffffffffffffff1660009081526001602052604090205460ff1690565b60405190151581526020016100bd565b61017e6101fe366004610fcf565b6040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01604051602081830303815290604052805190602001209050919050565b3360009081526001602052604090205460ff166102cf576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f484f4c4f47524150483a206465706c6f796572206e6f7420617070726f76656460448201526064015b60405180910390fd5b468514610338576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f484f4c4f47524150483a20696e636f727265637420636861696e20696400000060448201526064016102c6565b604080517fffffffffffffffffffffffffffffffffffffffff000000000000000000000000851660208201527fffffffffffffffffffffffff000000000000000000000000000000000000000086166034820152600091016040516020818303038152906040526103a890610fe8565b8351602080860191909120604080517fff00000000000000000000000000000000000000000000000000000000000000818501523060601b7fffffffffffffffffffffffffffffffffffffffff00000000000000000000000016602182015260358101859052605580820193909352815180820390930183526075019052805191012090915061043781610c22565b1561049e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f484f4c4f47524150483a20616c7265616479206465706c6f796564000000000060448201526064016102c6565b818451602086016000f590506104b381610c22565b610519576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f484f4c4f47524150483a206465706c6f796d656e74206661696c65640000000060448201526064016102c6565b6040517f4ddf47d4000000000000000000000000000000000000000000000000000000008082529073ffffffffffffffffffffffffffffffffffffffff831690634ddf47d49061056d908790600401611091565b6020604051808303816000875af115801561058c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105b091906110a4565b7fffffffff000000000000000000000000000000000000000000000000000000001614610639576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f484f4c4f47524150483a20696e697469616c697a6174696f6e206661696c656460448201526064016102c6565b60405173ffffffffffffffffffffffffffffffffffffffff821681527f8ffcdc15a283d706d38281f500270d8b5a656918f555de0913d7455e3e6bc1bf906020015b60405180910390a150505050505050565b604080516020808201879052606086901b7fffffffffffffffffffffffffffffffffffffffff000000000000000000000000168284015284151560f81b6054830152825160358184030181526055830184528051908201207f19457468657265756d205369676e6564204d6573736167653a0a333200000000607584015260918084018290528451808503909101815260b1909301909352815191012060009190600080600061073b87610c5c565b60408051600081526020810180835289905260ff8316918101919091526060810184905260808101839052929550909350915060019060a0016020604051602081039080840390855afa158015610796573d6000803e3d6000fd5b50506040517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe001519b9a5050505050505050505050565b3360009081526001602052604090205460ff16610846576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f484f4c4f47524150483a206465706c6f796572206e6f7420617070726f76656460448201526064016102c6565b60005485116108b1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f484f4c4f47524150483a20696e76616c6964206e6f6e6365000000000000000060448201526064016102c6565b60008581556108c28686868661068c565b905060006108d28787878661068c565b73ffffffffffffffffffffffffffffffffffffffff831660009081526001602052604090205490915060ff16610964576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f484f4c4f47524150483a207369676e65722031206e6f7420617070726f76656460448201526064016102c6565b73ffffffffffffffffffffffffffffffffffffffff811660009081526001602052604090205460ff166109f3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f484f4c4f47524150483a207369676e65722032206e6f7420617070726f76656460448201526064016102c6565b8073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610aae576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603660248201527f484f4c4f47524150483a207369676e617475726573206d75737420626520667260448201527f6f6d20646966666572656e74206465706c6f796572730000000000000000000060648201526084016102c6565b73ffffffffffffffffffffffffffffffffffffffff8616600090815260016020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00168615151790557f51a7f65c6325882f237d4aeb43228179cfad48b868511d508e24b4437a81913785610b5e576040518060400160405280601f81526020017f484f4c4f47524150483a206465706c6f79657220646973617070726f76656400815250610b95565b6040518060400160405280601c81526020017f484f4c4f47524150483a206465706c6f79657220617070726f766564000000008152505b60405161067b9190611091565b3360009081526001602052604081205460ff16610c1b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f484f4c4f47524150483a206465706c6f796572206e6f7420617070726f76656460448201526064016102c6565b5060005490565b6000813f8015801590610c5557507fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a4708114155b9392505050565b60008060008351604114610ccc576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f496e76616c6964207369676e6174757265206c656e677468000000000000000060448201526064016102c6565b50505060208101516040820151606090920151909260009190911a90565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600082601f830112610d2a57600080fd5b813567ffffffffffffffff80821115610d4557610d45610cea565b604051601f83017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0908116603f01168101908282118183101715610d8b57610d8b610cea565b81604052838152866020858801011115610da457600080fd5b836020870160208301376000602085830101528094505050505092915050565b600080600080600060a08688031215610ddc57600080fd5b8535945060208601357fffffffffffffffffffffffff000000000000000000000000000000000000000081168114610e1357600080fd5b935060408601357fffffffffffffffffffffffffffffffffffffffff00000000000000000000000081168114610e4857600080fd5b9250606086013567ffffffffffffffff80821115610e6557600080fd5b610e7189838a01610d19565b93506080880135915080821115610e8757600080fd5b50610e9488828901610d19565b9150509295509295909350565b803573ffffffffffffffffffffffffffffffffffffffff81168114610ec557600080fd5b919050565b80358015158114610ec557600080fd5b60008060008060808587031215610ef057600080fd5b84359350610f0060208601610ea1565b9250610f0e60408601610eca565b9150606085013567ffffffffffffffff811115610f2a57600080fd5b610f3687828801610d19565b91505092959194509250565b600080600060608486031215610f5757600080fd5b83359250610f6760208501610ea1565b9150610f7560408501610eca565b90509250925092565b600080600080600060a08688031215610f9657600080fd5b85359450610fa660208701610ea1565b9350610e4860408701610eca565b600060208284031215610fc657600080fd5b610c5582610ea1565b600060208284031215610fe157600080fd5b5035919050565b80516020808301519190811015611027577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8160200360031b1b821691505b50919050565b6000815180845260005b8181101561105357602081850181015186830182015201611037565b5060006020828601015260207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f83011685010191505092915050565b602081526000610c55602083018461102d565b6000602082840312156110b657600080fd5b81517fffffffff0000000000000000000000000000000000000000000000000000000081168114610c5557600080fdfea164736f6c6343000811000a

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100885760003560e01c8063cb33fe541161005b578063cb33fe541461018c578063d288337d1461019f578063dc7faa07146101a7578063fa540801146101f057600080fd5b80630d8e6e2c1461008d57806349aa18fc146100c657806355da4cd0146100db5780636ae675ac14610113575b600080fd5b60405163ffffffff7f00000000000000000000000000000000000000000000000000000000000000021681526020015b60405180910390f35b6100d96100d4366004610dc4565b610251565b005b6100ee6100e9366004610eda565b61068c565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016100bd565b61017e610121366004610f42565b6040805160208082019590955260609390931b7fffffffffffffffffffffffffffffffffffffffff000000000000000000000000168382015290151560f81b60548301528051603581840301815260559092019052805191012090565b6040519081526020016100bd565b6100d961019a366004610f7e565b6107cd565b61017e610ba2565b6101e06101b5366004610fb4565b73ffffffffffffffffffffffffffffffffffffffff1660009081526001602052604090205460ff1690565b60405190151581526020016100bd565b61017e6101fe366004610fcf565b6040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01604051602081830303815290604052805190602001209050919050565b3360009081526001602052604090205460ff166102cf576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f484f4c4f47524150483a206465706c6f796572206e6f7420617070726f76656460448201526064015b60405180910390fd5b468514610338576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f484f4c4f47524150483a20696e636f727265637420636861696e20696400000060448201526064016102c6565b604080517fffffffffffffffffffffffffffffffffffffffff000000000000000000000000851660208201527fffffffffffffffffffffffff000000000000000000000000000000000000000086166034820152600091016040516020818303038152906040526103a890610fe8565b8351602080860191909120604080517fff00000000000000000000000000000000000000000000000000000000000000818501523060601b7fffffffffffffffffffffffffffffffffffffffff00000000000000000000000016602182015260358101859052605580820193909352815180820390930183526075019052805191012090915061043781610c22565b1561049e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f484f4c4f47524150483a20616c7265616479206465706c6f796564000000000060448201526064016102c6565b818451602086016000f590506104b381610c22565b610519576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f484f4c4f47524150483a206465706c6f796d656e74206661696c65640000000060448201526064016102c6565b6040517f4ddf47d4000000000000000000000000000000000000000000000000000000008082529073ffffffffffffffffffffffffffffffffffffffff831690634ddf47d49061056d908790600401611091565b6020604051808303816000875af115801561058c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105b091906110a4565b7fffffffff000000000000000000000000000000000000000000000000000000001614610639576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f484f4c4f47524150483a20696e697469616c697a6174696f6e206661696c656460448201526064016102c6565b60405173ffffffffffffffffffffffffffffffffffffffff821681527f8ffcdc15a283d706d38281f500270d8b5a656918f555de0913d7455e3e6bc1bf906020015b60405180910390a150505050505050565b604080516020808201879052606086901b7fffffffffffffffffffffffffffffffffffffffff000000000000000000000000168284015284151560f81b6054830152825160358184030181526055830184528051908201207f19457468657265756d205369676e6564204d6573736167653a0a333200000000607584015260918084018290528451808503909101815260b1909301909352815191012060009190600080600061073b87610c5c565b60408051600081526020810180835289905260ff8316918101919091526060810184905260808101839052929550909350915060019060a0016020604051602081039080840390855afa158015610796573d6000803e3d6000fd5b50506040517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe001519b9a5050505050505050505050565b3360009081526001602052604090205460ff16610846576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f484f4c4f47524150483a206465706c6f796572206e6f7420617070726f76656460448201526064016102c6565b60005485116108b1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f484f4c4f47524150483a20696e76616c6964206e6f6e6365000000000000000060448201526064016102c6565b60008581556108c28686868661068c565b905060006108d28787878661068c565b73ffffffffffffffffffffffffffffffffffffffff831660009081526001602052604090205490915060ff16610964576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f484f4c4f47524150483a207369676e65722031206e6f7420617070726f76656460448201526064016102c6565b73ffffffffffffffffffffffffffffffffffffffff811660009081526001602052604090205460ff166109f3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f484f4c4f47524150483a207369676e65722032206e6f7420617070726f76656460448201526064016102c6565b8073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610aae576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603660248201527f484f4c4f47524150483a207369676e617475726573206d75737420626520667260448201527f6f6d20646966666572656e74206465706c6f796572730000000000000000000060648201526084016102c6565b73ffffffffffffffffffffffffffffffffffffffff8616600090815260016020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00168615151790557f51a7f65c6325882f237d4aeb43228179cfad48b868511d508e24b4437a81913785610b5e576040518060400160405280601f81526020017f484f4c4f47524150483a206465706c6f79657220646973617070726f76656400815250610b95565b6040518060400160405280601c81526020017f484f4c4f47524150483a206465706c6f79657220617070726f766564000000008152505b60405161067b9190611091565b3360009081526001602052604081205460ff16610c1b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f484f4c4f47524150483a206465706c6f796572206e6f7420617070726f76656460448201526064016102c6565b5060005490565b6000813f8015801590610c5557507fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a4708114155b9392505050565b60008060008351604114610ccc576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f496e76616c6964207369676e6174757265206c656e677468000000000000000060448201526064016102c6565b50505060208101516040820151606090920151909260009190911a90565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600082601f830112610d2a57600080fd5b813567ffffffffffffffff80821115610d4557610d45610cea565b604051601f83017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0908116603f01168101908282118183101715610d8b57610d8b610cea565b81604052838152866020858801011115610da457600080fd5b836020870160208301376000602085830101528094505050505092915050565b600080600080600060a08688031215610ddc57600080fd5b8535945060208601357fffffffffffffffffffffffff000000000000000000000000000000000000000081168114610e1357600080fd5b935060408601357fffffffffffffffffffffffffffffffffffffffff00000000000000000000000081168114610e4857600080fd5b9250606086013567ffffffffffffffff80821115610e6557600080fd5b610e7189838a01610d19565b93506080880135915080821115610e8757600080fd5b50610e9488828901610d19565b9150509295509295909350565b803573ffffffffffffffffffffffffffffffffffffffff81168114610ec557600080fd5b919050565b80358015158114610ec557600080fd5b60008060008060808587031215610ef057600080fd5b84359350610f0060208601610ea1565b9250610f0e60408601610eca565b9150606085013567ffffffffffffffff811115610f2a57600080fd5b610f3687828801610d19565b91505092959194509250565b600080600060608486031215610f5757600080fd5b83359250610f6760208501610ea1565b9150610f7560408501610eca565b90509250925092565b600080600080600060a08688031215610f9657600080fd5b85359450610fa660208701610ea1565b9350610e4860408701610eca565b600060208284031215610fc657600080fd5b610c5582610ea1565b600060208284031215610fe157600080fd5b5035919050565b80516020808301519190811015611027577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8160200360031b1b821691505b50919050565b6000815180845260005b8181101561105357602081850181015186830182015201611037565b5060006020828601015260207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f83011685010191505092915050565b602081526000610c55602083018461102d565b6000602082840312156110b657600080fd5b81517fffffffff0000000000000000000000000000000000000000000000000000000081168114610c5557600080fdfea164736f6c6343000811000a

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
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.