ETH Price: $3,739.89 (+0.28%)

Contract

0x29c283deb27A8A7cAD5C9018d59583C5b3E49B4d
 

Overview

ETH Balance

0 ETH

ETH Value

$0.00

Sponsored

Transaction Hash
Method
Block
From
To
Value

There are no matching entries

Please try again later

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block From To Value
1058043902023-06-19 20:45:57337 days ago1687207557
0x29c283de...5b3E49B4d
0 ETH
1058043902023-06-19 20:45:57337 days ago1687207557
0x29c283de...5b3E49B4d
0 ETH
1058043902023-06-19 20:45:57337 days ago1687207557
0x29c283de...5b3E49B4d
0 ETH
1058043902023-06-19 20:45:57337 days ago1687207557
0x29c283de...5b3E49B4d
0 ETH
1058043902023-06-19 20:45:57337 days ago1687207557
0x29c283de...5b3E49B4d
0 ETH
1058043902023-06-19 20:45:57337 days ago1687207557
0x29c283de...5b3E49B4d
0 ETH
1058043822023-06-19 20:45:41337 days ago1687207541
0x29c283de...5b3E49B4d
0 ETH
1058043822023-06-19 20:45:41337 days ago1687207541
0x29c283de...5b3E49B4d
0 ETH
1058043822023-06-19 20:45:41337 days ago1687207541
0x29c283de...5b3E49B4d
0 ETH
1058043822023-06-19 20:45:41337 days ago1687207541
0x29c283de...5b3E49B4d
0 ETH
1058043822023-06-19 20:45:41337 days ago1687207541
0x29c283de...5b3E49B4d
0 ETH
1058043822023-06-19 20:45:41337 days ago1687207541
0x29c283de...5b3E49B4d
0 ETH
1058043772023-06-19 20:45:31337 days ago1687207531
0x29c283de...5b3E49B4d
0 ETH
1058043772023-06-19 20:45:31337 days ago1687207531
0x29c283de...5b3E49B4d
0 ETH
1058043772023-06-19 20:45:31337 days ago1687207531
0x29c283de...5b3E49B4d
0 ETH
1058043772023-06-19 20:45:31337 days ago1687207531
0x29c283de...5b3E49B4d
0 ETH
1058043772023-06-19 20:45:31337 days ago1687207531
0x29c283de...5b3E49B4d
0 ETH
1058043742023-06-19 20:45:25337 days ago1687207525
0x29c283de...5b3E49B4d
0 ETH
1058043742023-06-19 20:45:25337 days ago1687207525
0x29c283de...5b3E49B4d
0 ETH
1058043742023-06-19 20:45:25337 days ago1687207525
0x29c283de...5b3E49B4d
0 ETH
1058043742023-06-19 20:45:25337 days ago1687207525
0x29c283de...5b3E49B4d
0 ETH
1058043742023-06-19 20:45:25337 days ago1687207525
0x29c283de...5b3E49B4d
0 ETH
1058043742023-06-19 20:45:25337 days ago1687207525
0x29c283de...5b3E49B4d
0 ETH
1058043662023-06-19 20:45:09337 days ago1687207509
0x29c283de...5b3E49B4d
0 ETH
1058043662023-06-19 20:45:09337 days ago1687207509
0x29c283de...5b3E49B4d
0 ETH
View All Internal Transactions

Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
HolographRegistry

Compiler Version
v0.8.13+commit.abaa5c0e

Optimization Enabled:
Yes with 999999 runs

Other Settings:
default evmVersion
File 1 of 6 : HolographRegistry.sol
// 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.13;

import "./abstract/Admin.sol";
import "./abstract/Initializable.sol";

import "./interface/HolographInterface.sol";
import "./interface/HolographRegistryInterface.sol";
import "./interface/InitializableInterface.sol";

/**
 * @title Holograph Registry
 * @author https://github.com/holographxyz
 * @notice View and validate all deployed holographable contracts
 * @dev Use this to: validate that contracts are Holograph Protocol compliant, get source code for supported standards, and interact with hTokens
 */
contract HolographRegistry is Admin, Initializable, HolographRegistryInterface {
  /**
   * @dev bytes32(uint256(keccak256('eip1967.Holograph.holograph')) - 1)
   */
  bytes32 constant _holographSlot = 0xb4107f746e9496e8452accc7de63d1c5e14c19f510932daa04077cd49e8bd77a;
  /**
   * @dev bytes32(uint256(keccak256('eip1967.Holograph.utilityToken')) - 1)
   */
  bytes32 constant _utilityTokenSlot = 0xbf76518d46db472b71aa7677a0908b8016f3dee568415ffa24055f9a670f9c37;

  /**
   * @dev Array of all Holographable contracts that were ever deployed on this chain
   */
  address[] private _holographableContracts;

  /**
   * @dev A mapping of hashes to contract addresses
   */
  mapping(bytes32 => address) private _holographedContractsHashMap;

  /**
   * @dev Storage slot for saving contract type to contract address references
   */
  mapping(bytes32 => address) private _contractTypeAddresses;

  /**
   * @dev Reserved type addresses for Admin
   *  Note: this is used for defining default contracts
   */
  mapping(bytes32 => bool) private _reservedTypes;

  /**
   * @dev A list of smart contracts that are guaranteed secure and holographable
   */
  mapping(address => bool) private _holographedContracts;

  /**
   * @dev Mapping of all hTokens available for the different EVM chains
   */
  mapping(uint32 => address) private _hTokens;

  /**
   * @dev Constructor is left empty and init is used instead
   */
  constructor() {}

  /**
   * @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 override returns (bytes4) {
    require(!_isInitialized(), "HOLOGRAPH: already initialized");
    (address holograph, bytes32[] memory reservedTypes) = abi.decode(initPayload, (address, bytes32[]));
    assembly {
      sstore(_adminSlot, origin())
      sstore(_holographSlot, holograph)
    }
    for (uint256 i = 0; i < reservedTypes.length; i++) {
      _reservedTypes[reservedTypes[i]] = true;
    }
    _setInitialized();
    return InitializableInterface.init.selector;
  }

  function isHolographedContract(address smartContract) external view returns (bool) {
    return _holographedContracts[smartContract];
  }

  function isHolographedHashDeployed(bytes32 hash) external view returns (bool) {
    return _holographedContractsHashMap[hash] != address(0);
  }

  /**
   * @dev Allows to reference a deployed smart contract, and use it's code as reference inside of Holographers
   */
  function referenceContractTypeAddress(address contractAddress) external returns (bytes32) {
    bytes32 contractType;
    assembly {
      contractType := extcodehash(contractAddress)
    }
    require((contractType != 0x0 && contractType != 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470), "HOLOGRAPH: empty contract");
    require(_contractTypeAddresses[contractType] == address(0), "HOLOGRAPH: contract already set");
    require(!_reservedTypes[contractType], "HOLOGRAPH: reserved address type");
    _contractTypeAddresses[contractType] = contractAddress;
    return contractType;
  }

  /**
   * @dev Returns the contract address for a contract type
   */
  function getContractTypeAddress(bytes32 contractType) external view returns (address) {
    return _contractTypeAddresses[contractType];
  }

  /**
   * @dev Sets the contract address for a contract type
   */
  function setContractTypeAddress(bytes32 contractType, address contractAddress) external onlyAdmin {
    require(_reservedTypes[contractType], "HOLOGRAPH: not reserved type");
    _contractTypeAddresses[contractType] = contractAddress;
  }

  /**
   * @notice Get the Holograph Protocol contract
   * @dev This contract stores a reference to all the primary modules and variables of the protocol
   */
  function getHolograph() external view returns (address holograph) {
    assembly {
      holograph := sload(_holographSlot)
    }
  }

  /**
   * @notice Update the Holograph Protocol contract address
   * @param holograph address of the Holograph Protocol smart contract to use
   */
  function setHolograph(address holograph) external onlyAdmin {
    assembly {
      sstore(_holographSlot, holograph)
    }
  }

  /**
   * @notice Get set length list, starting from index, for all holographable contracts
   * @param index The index to start enumeration from
   * @param length The length of returned results
   * @return contracts address[] Returns a set length array of holographable contracts deployed
   */
  function getHolographableContracts(uint256 index, uint256 length) external view returns (address[] memory contracts) {
    uint256 supply = _holographableContracts.length;
    if (index + length > supply) {
      length = supply - index;
    }
    contracts = new address[](length);
    for (uint256 i = 0; i < length; i++) {
      contracts[i] = _holographableContracts[index + i];
    }
  }

  /**
   * @notice Get total number of deployed holographable contracts
   */
  function getHolographableContractsLength() external view returns (uint256) {
    return _holographableContracts.length;
  }

  /**
   * @dev Returns the address for a holographed hash
   */
  function getHolographedHashAddress(bytes32 hash) external view returns (address) {
    return _holographedContractsHashMap[hash];
  }

  /**
   * @dev Allows Holograph Factory to register a deployed contract, referenced with deployment hash
   */
  function setHolographedHashAddress(bytes32 hash, address contractAddress) external {
    address holograph;
    assembly {
      holograph := sload(_holographSlot)
    }
    require(msg.sender == HolographInterface(holograph).getFactory(), "HOLOGRAPH: factory only function");
    _holographedContractsHashMap[hash] = contractAddress;
    _holographedContracts[contractAddress] = true;
    _holographableContracts.push(contractAddress);
  }

  /**
   * @dev Returns the hToken address for a given chain id
   */
  function getHToken(uint32 chainId) external view returns (address) {
    return _hTokens[chainId];
  }

  /**
   * @dev Sets the hToken address for a specific chain id
   */
  function setHToken(uint32 chainId, address hToken) external onlyAdmin {
    _hTokens[chainId] = hToken;
  }

  /**
   * @dev Returns the reserved contract address for a contract type
   */
  function getReservedContractTypeAddress(bytes32 contractType) external view returns (address contractTypeAddress) {
    if (_reservedTypes[contractType]) {
      contractTypeAddress = _contractTypeAddresses[contractType];
    }
  }

  /**
   * @dev Allows admin to update or toggle reserved type
   */
  function setReservedContractTypeAddress(bytes32 hash, bool reserved) external onlyAdmin {
    _reservedTypes[hash] = reserved;
  }

  /**
   * @dev Allows admin to update or toggle reserved types
   */
  function setReservedContractTypeAddresses(bytes32[] calldata hashes, bool[] calldata reserved) external onlyAdmin {
    for (uint256 i = 0; i < hashes.length; i++) {
      _reservedTypes[hashes[i]] = reserved[i];
    }
  }

  /**
   * @notice Get the Holograph Utility Token address
   * @dev This is the official utility token of the Holograph Protocol
   */
  function getUtilityToken() external view returns (address utilityToken) {
    assembly {
      utilityToken := sload(_utilityTokenSlot)
    }
  }

  /**
   * @notice Update the Holograph Utility Token address
   * @param utilityToken address of the Holograph Utility Token smart contract to use
   */
  function setUtilityToken(address utilityToken) external onlyAdmin {
    assembly {
      sstore(_utilityTokenSlot, utilityToken)
    }
  }

  /**
   * @dev Purposefully reverts to prevent having any type of ether transfered into the contract
   */
  receive() external payable {
    revert();
  }

  /**
   * @dev Purposefully reverts to prevent any calls to undefined functions
   */
  fallback() external payable {
    revert();
  }
}

File 2 of 6 : Admin.sol
// 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.13;

abstract contract Admin {
  /**
   * @dev bytes32(uint256(keccak256('eip1967.Holograph.admin')) - 1)
   */
  bytes32 constant _adminSlot = 0x3f106594dc74eeef980dae234cde8324dc2497b13d27a0c59e55bd2ca10a07c9;

  modifier onlyAdmin() {
    require(msg.sender == getAdmin(), "HOLOGRAPH: admin only function");
    _;
  }

  constructor() {}

  function admin() public view returns (address) {
    return getAdmin();
  }

  function getAdmin() public view returns (address adminAddress) {
    assembly {
      adminAddress := sload(_adminSlot)
    }
  }

  function setAdmin(address adminAddress) public onlyAdmin {
    assembly {
      sstore(_adminSlot, adminAddress)
    }
  }

  function adminCall(address target, bytes calldata data) external payable onlyAdmin {
    assembly {
      calldatacopy(0, data.offset, data.length)
      let result := call(gas(), target, callvalue(), 0, data.length, 0, 0)
      returndatacopy(0, 0, returndatasize())
      switch result
      case 0 {
        revert(0, returndatasize())
      }
      default {
        return(0, returndatasize())
      }
    }
  }
}

File 3 of 6 : Initializable.sol
// 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.13;

import "../interface/InitializableInterface.sol";

/**
 * @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 for a constructor
 */
abstract contract Initializable is InitializableInterface {
  /**
   * @dev bytes32(uint256(keccak256('eip1967.Holograph.initialized')) - 1)
   */
  bytes32 constant _initializedSlot = 0x4e5f991bca30eca2d4643aaefa807e88f96a4a97398933d572a3c0d973004a01;

  /**
   * @dev Constructor is left empty and init is used instead
   */
  constructor() {}

  /**
   * @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 virtual returns (bytes4);

  function _isInitialized() internal view returns (bool initialized) {
    assembly {
      initialized := sload(_initializedSlot)
    }
  }

  function _setInitialized() internal {
    assembly {
      sstore(_initializedSlot, 0x0000000000000000000000000000000000000000000000000000000000000001)
    }
  }
}

File 4 of 6 : HolographInterface.sol
// 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.13;

/**
 * @title Holograph Protocol
 * @author https://github.com/holographxyz
 * @notice This is the primary Holograph Protocol smart contract
 * @dev This contract stores a reference to all the primary modules and variables of the protocol
 */
interface HolographInterface {
  /**
   * @notice Get the address of the Holograph Bridge module
   * @dev Used for beaming holographable assets cross-chain
   */
  function getBridge() external view returns (address bridge);

  /**
   * @notice Update the Holograph Bridge module address
   * @param bridge address of the Holograph Bridge smart contract to use
   */
  function setBridge(address bridge) external;

  /**
   * @notice Get the chain ID that the Protocol was deployed on
   * @dev Useful for checking if/when a hard fork occurs
   */
  function getChainId() external view returns (uint256 chainId);

  /**
   * @notice Update the chain ID
   * @dev Useful for updating once a hard fork has been mitigated
   * @param chainId EVM chain ID to use
   */
  function setChainId(uint256 chainId) external;

  /**
   * @notice Get the address of the Holograph Factory module
   * @dev Used for deploying holographable smart contracts
   */
  function getFactory() external view returns (address factory);

  /**
   * @notice Update the Holograph Factory module address
   * @param factory address of the Holograph Factory smart contract to use
   */
  function setFactory(address factory) external;

  /**
   * @notice Get the Holograph chain Id
   * @dev Holograph uses an internal chain id mapping
   */
  function getHolographChainId() external view returns (uint32 holographChainId);

  /**
   * @notice Update the Holograph chain ID
   * @dev Useful for updating once a hard fork was mitigated
   * @param holographChainId Holograph chain ID to use
   */
  function setHolographChainId(uint32 holographChainId) external;

  /**
   * @notice Get the address of the Holograph Interfaces module
   * @dev Holograph uses this contract to store data that needs to be accessed by a large portion of the modules
   */
  function getInterfaces() external view returns (address interfaces);

  /**
   * @notice Update the Holograph Interfaces module address
   * @param interfaces address of the Holograph Interfaces smart contract to use
   */
  function setInterfaces(address interfaces) external;

  /**
   * @notice Get the address of the Holograph Operator module
   * @dev All cross-chain Holograph Bridge beams are handled by the Holograph Operator module
   */
  function getOperator() external view returns (address operator);

  /**
   * @notice Update the Holograph Operator module address
   * @param operator address of the Holograph Operator smart contract to use
   */
  function setOperator(address operator) external;

  /**
   * @notice Get the Holograph Registry module
   * @dev This module stores a reference for all deployed holographable smart contracts
   */
  function getRegistry() external view returns (address registry);

  /**
   * @notice Update the Holograph Registry module address
   * @param registry address of the Holograph Registry smart contract to use
   */
  function setRegistry(address registry) external;

  /**
   * @notice Get the Holograph Treasury module
   * @dev All of the Holograph Protocol assets are stored and managed by this module
   */
  function getTreasury() external view returns (address treasury);

  /**
   * @notice Update the Holograph Treasury module address
   * @param treasury address of the Holograph Treasury smart contract to use
   */
  function setTreasury(address treasury) external;

  /**
   * @notice Get the Holograph Utility Token address
   * @dev This is the official utility token of the Holograph Protocol
   */
  function getUtilityToken() external view returns (address utilityToken);

  /**
   * @notice Update the Holograph Utility Token address
   * @param utilityToken address of the Holograph Utility Token smart contract to use
   */
  function setUtilityToken(address utilityToken) external;
}

File 5 of 6 : HolographRegistryInterface.sol
// 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.13;

interface HolographRegistryInterface {
  function isHolographedContract(address smartContract) external view returns (bool);

  function isHolographedHashDeployed(bytes32 hash) external view returns (bool);

  function referenceContractTypeAddress(address contractAddress) external returns (bytes32);

  function getContractTypeAddress(bytes32 contractType) external view returns (address);

  function setContractTypeAddress(bytes32 contractType, address contractAddress) external;

  function getHolograph() external view returns (address holograph);

  function setHolograph(address holograph) external;

  function getHolographableContracts(uint256 index, uint256 length) external view returns (address[] memory contracts);

  function getHolographableContractsLength() external view returns (uint256);

  function getHolographedHashAddress(bytes32 hash) external view returns (address);

  function setHolographedHashAddress(bytes32 hash, address contractAddress) external;

  function getHToken(uint32 chainId) external view returns (address);

  function setHToken(uint32 chainId, address hToken) external;

  function getReservedContractTypeAddress(bytes32 contractType) external view returns (address contractTypeAddress);

  function setReservedContractTypeAddress(bytes32 hash, bool reserved) external;

  function setReservedContractTypeAddresses(bytes32[] calldata hashes, bool[] calldata reserved) external;

  function getUtilityToken() external view returns (address utilityToken);

  function setUtilityToken(address utilityToken) external;
}

File 6 of 6 : InitializableInterface.sol
// 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.13;

/**
 * @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"
      ]
    }
  },
  "remappings": [
    "ds-test/=lib/forge-std/lib/ds-test/src/",
    "erc721a-upgradeable/=erc721a-upgradeable/",
    "forge-std/=lib/forge-std/src/"
  ],
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"stateMutability":"payable","type":"fallback"},{"inputs":[],"name":"admin","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"target","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"adminCall","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"getAdmin","outputs":[{"internalType":"address","name":"adminAddress","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"contractType","type":"bytes32"}],"name":"getContractTypeAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint32","name":"chainId","type":"uint32"}],"name":"getHToken","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getHolograph","outputs":[{"internalType":"address","name":"holograph","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"},{"internalType":"uint256","name":"length","type":"uint256"}],"name":"getHolographableContracts","outputs":[{"internalType":"address[]","name":"contracts","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getHolographableContractsLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"hash","type":"bytes32"}],"name":"getHolographedHashAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"contractType","type":"bytes32"}],"name":"getReservedContractTypeAddress","outputs":[{"internalType":"address","name":"contractTypeAddress","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getUtilityToken","outputs":[{"internalType":"address","name":"utilityToken","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes","name":"initPayload","type":"bytes"}],"name":"init","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"smartContract","type":"address"}],"name":"isHolographedContract","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"hash","type":"bytes32"}],"name":"isHolographedHashDeployed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"contractAddress","type":"address"}],"name":"referenceContractTypeAddress","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"adminAddress","type":"address"}],"name":"setAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"contractType","type":"bytes32"},{"internalType":"address","name":"contractAddress","type":"address"}],"name":"setContractTypeAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint32","name":"chainId","type":"uint32"},{"internalType":"address","name":"hToken","type":"address"}],"name":"setHToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"holograph","type":"address"}],"name":"setHolograph","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"hash","type":"bytes32"},{"internalType":"address","name":"contractAddress","type":"address"}],"name":"setHolographedHashAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"hash","type":"bytes32"},{"internalType":"bool","name":"reserved","type":"bool"}],"name":"setReservedContractTypeAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"hashes","type":"bytes32[]"},{"internalType":"bool[]","name":"reserved","type":"bool[]"}],"name":"setReservedContractTypeAddresses","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"utilityToken","type":"address"}],"name":"setUtilityToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

608060405234801561001057600080fd5b50611ada806100206000396000f3fe6080604052600436106101835760003560e01c80636e9960c3116100d65780639013ae081161007f578063cc2913f911610059578063cc2913f91461052a578063d16367821461056d578063f851a440146105b057600080fd5b80639013ae08146104ae578063949d53a7146104ce578063bf64a82d1461051757600080fd5b806374b7510c116100b057806374b7510c1461044e5780637674a6ec1461046e578063768797c31461048e57600080fd5b80636e9960c3146103da578063704b6c021461040e578063725229f61461042e57600080fd5b806340ad4fa9116101385780634827ae0c116101125780634827ae0c146103355780634ddf47d41461036957806356116d54146103ba57600080fd5b806340ad4fa9146102b057806343e451bc146102cf57806344b25fff146102ef57600080fd5b806324299c6e1161016957806324299c6e1461021957806325d5cac81461026e57806335ee77cf1461029057600080fd5b80626266791461019257806321ad2353146101ec57600080fd5b3661018d57600080fd5b600080fd5b34801561019e57600080fd5b507fbf76518d46db472b71aa7677a0908b8016f3dee568415ffa24055f9a670f9c37545b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020015b60405180910390f35b3480156101f857600080fd5b5061020c610207366004611500565b6105c5565b6040516101e39190611522565b34801561022557600080fd5b5061025e61023436600461157c565b60009081526001602052604090205473ffffffffffffffffffffffffffffffffffffffff16151590565b60405190151581526020016101e3565b34801561027a57600080fd5b5061028e6102893660046115ba565b6106d1565b005b34801561029c57600080fd5b5061028e6102ab3660046115f2565b6107b0565b3480156102bc57600080fd5b506000545b6040519081526020016101e3565b3480156102db57600080fd5b5061028e6102ea366004611675565b6108c1565b3480156102fb57600080fd5b5061025e61030a3660046115ba565b73ffffffffffffffffffffffffffffffffffffffff1660009081526004602052604090205460ff1690565b34801561034157600080fd5b507fb4107f746e9496e8452accc7de63d1c5e14c19f510932daa04077cd49e8bd77a546101c2565b34801561037557600080fd5b5061038961038436600461175f565b610a05565b6040517fffffffff0000000000000000000000000000000000000000000000000000000090911681526020016101e3565b3480156103c657600080fd5b5061028e6103d5366004611812565b610bae565b3480156103e657600080fd5b507f3f106594dc74eeef980dae234cde8324dc2497b13d27a0c59e55bd2ca10a07c9546101c2565b34801561041a57600080fd5b5061028e6104293660046115ba565b610d2f565b34801561043a57600080fd5b5061028e610449366004611812565b610e09565b34801561045a57600080fd5b506101c261046936600461157c565b610ff1565b34801561047a57600080fd5b5061028e610489366004611847565b611034565b34801561049a57600080fd5b506102c16104a93660046115ba565b611128565b3480156104ba57600080fd5b5061028e6104c93660046115ba565b61131c565b3480156104da57600080fd5b506101c26104e9366004611873565b63ffffffff1660009081526005602052604090205473ffffffffffffffffffffffffffffffffffffffff1690565b61028e61052536600461188e565b6113f6565b34801561053657600080fd5b506101c261054536600461157c565b60009081526002602052604090205473ffffffffffffffffffffffffffffffffffffffff1690565b34801561057957600080fd5b506101c261058836600461157c565b60009081526001602052604090205473ffffffffffffffffffffffffffffffffffffffff1690565b3480156105bc57600080fd5b506101c26114d1565b600054606090806105d68486611942565b11156105e9576105e6848261195a565b92505b8267ffffffffffffffff811115610602576106026116e1565b60405190808252806020026020018201604052801561062b578160200160208202803683370190505b50915060005b838110156106c95760006106458287611942565b8154811061065557610655611971565b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1683828151811061069257610692611971565b73ffffffffffffffffffffffffffffffffffffffff90921660209283029190910190910152806106c1816119a0565b915050610631565b505092915050565b7f3f106594dc74eeef980dae234cde8324dc2497b13d27a0c59e55bd2ca10a07c95473ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461078c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f484f4c4f47524150483a2061646d696e206f6e6c792066756e6374696f6e000060448201526064015b60405180910390fd5b7fb4107f746e9496e8452accc7de63d1c5e14c19f510932daa04077cd49e8bd77a55565b7f3f106594dc74eeef980dae234cde8324dc2497b13d27a0c59e55bd2ca10a07c95473ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610866576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f484f4c4f47524150483a2061646d696e206f6e6c792066756e6374696f6e00006044820152606401610783565b63ffffffff91909116600090815260056020526040902080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff909216919091179055565b7f3f106594dc74eeef980dae234cde8324dc2497b13d27a0c59e55bd2ca10a07c95473ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610977576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f484f4c4f47524150483a2061646d696e206f6e6c792066756e6374696f6e00006044820152606401610783565b60005b838110156109fe5782828281811061099457610994611971565b90506020020160208101906109a991906119d8565b600360008787858181106109bf576109bf611971565b90506020020135815260200190815260200160002060006101000a81548160ff02191690831515021790555080806109f6906119a0565b91505061097a565b5050505050565b6000610a2f7f4e5f991bca30eca2d4643aaefa807e88f96a4a97398933d572a3c0d973004a015490565b15610a96576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f484f4c4f47524150483a20616c726561647920696e697469616c697a656400006044820152606401610783565b60008083806020019051810190610aad91906119f3565b91509150327f3f106594dc74eeef980dae234cde8324dc2497b13d27a0c59e55bd2ca10a07c955817fb4107f746e9496e8452accc7de63d1c5e14c19f510932daa04077cd49e8bd77a5560005b8151811015610b5b57600160036000848481518110610b1b57610b1b611971565b6020026020010151815260200190815260200160002060006101000a81548160ff0219169083151502179055508080610b53906119a0565b915050610afa565b50610b8560017f4e5f991bca30eca2d4643aaefa807e88f96a4a97398933d572a3c0d973004a0155565b507f4ddf47d4000000000000000000000000000000000000000000000000000000009392505050565b7f3f106594dc74eeef980dae234cde8324dc2497b13d27a0c59e55bd2ca10a07c95473ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610c64576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f484f4c4f47524150483a2061646d696e206f6e6c792066756e6374696f6e00006044820152606401610783565b60008281526003602052604090205460ff16610cdc576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f484f4c4f47524150483a206e6f742072657365727665642074797065000000006044820152606401610783565b60009182526002602052604090912080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff909216919091179055565b7f3f106594dc74eeef980dae234cde8324dc2497b13d27a0c59e55bd2ca10a07c95473ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610de5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f484f4c4f47524150483a2061646d696e206f6e6c792066756e6374696f6e00006044820152606401610783565b7f3f106594dc74eeef980dae234cde8324dc2497b13d27a0c59e55bd2ca10a07c955565b60007fb4107f746e9496e8452accc7de63d1c5e14c19f510932daa04077cd49e8bd77a5490508073ffffffffffffffffffffffffffffffffffffffff166388cc58e46040518163ffffffff1660e01b8152600401602060405180830381865afa158015610e7a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e9e9190611ab0565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610f32576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f484f4c4f47524150483a20666163746f7279206f6e6c792066756e6374696f6e6044820152606401610783565b506000918252600160208181526040808520805473ffffffffffffffffffffffffffffffffffffffff9095167fffffffffffffffffffffffff000000000000000000000000000000000000000095861681179091558086526004909252842080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001683179055835491820184559280527f290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e5630180549091169091179055565b60008181526003602052604081205460ff161561102f575060008181526002602052604090205473ffffffffffffffffffffffffffffffffffffffff165b919050565b7f3f106594dc74eeef980dae234cde8324dc2497b13d27a0c59e55bd2ca10a07c95473ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146110ea576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f484f4c4f47524150483a2061646d696e206f6e6c792066756e6374696f6e00006044820152606401610783565b60009182526003602052604090912080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016911515919091179055565b6000813f801580159061115b57507fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a4708114155b6111c1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f484f4c4f47524150483a20656d70747920636f6e7472616374000000000000006044820152606401610783565b60008181526002602052604090205473ffffffffffffffffffffffffffffffffffffffff161561124d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f484f4c4f47524150483a20636f6e747261637420616c726561647920736574006044820152606401610783565b60008181526003602052604090205460ff16156112c6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f484f4c4f47524150483a207265736572766564206164647265737320747970656044820152606401610783565b600081815260026020526040902080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff94909416939093179092555090565b7f3f106594dc74eeef980dae234cde8324dc2497b13d27a0c59e55bd2ca10a07c95473ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146113d2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f484f4c4f47524150483a2061646d696e206f6e6c792066756e6374696f6e00006044820152606401610783565b7fbf76518d46db472b71aa7677a0908b8016f3dee568415ffa24055f9a670f9c3755565b7f3f106594dc74eeef980dae234cde8324dc2497b13d27a0c59e55bd2ca10a07c95473ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146114ac576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f484f4c4f47524150483a2061646d696e206f6e6c792066756e6374696f6e00006044820152606401610783565b808260003760008082600034875af13d6000803e8080156114cc573d6000f35b3d6000fd5b60006114fb7f3f106594dc74eeef980dae234cde8324dc2497b13d27a0c59e55bd2ca10a07c95490565b905090565b6000806040838503121561151357600080fd5b50508035926020909101359150565b6020808252825182820181905260009190848201906040850190845b8181101561157057835173ffffffffffffffffffffffffffffffffffffffff168352928401929184019160010161153e565b50909695505050505050565b60006020828403121561158e57600080fd5b5035919050565b73ffffffffffffffffffffffffffffffffffffffff811681146115b757600080fd5b50565b6000602082840312156115cc57600080fd5b81356115d781611595565b9392505050565b803563ffffffff8116811461102f57600080fd5b6000806040838503121561160557600080fd5b61160e836115de565b9150602083013561161e81611595565b809150509250929050565b60008083601f84011261163b57600080fd5b50813567ffffffffffffffff81111561165357600080fd5b6020830191508360208260051b850101111561166e57600080fd5b9250929050565b6000806000806040858703121561168b57600080fd5b843567ffffffffffffffff808211156116a357600080fd5b6116af88838901611629565b909650945060208701359150808211156116c857600080fd5b506116d587828801611629565b95989497509550505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff81118282101715611757576117576116e1565b604052919050565b6000602080838503121561177257600080fd5b823567ffffffffffffffff8082111561178a57600080fd5b818501915085601f83011261179e57600080fd5b8135818111156117b0576117b06116e1565b6117e0847fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f84011601611710565b915080825286848285010111156117f657600080fd5b8084840185840137600090820190930192909252509392505050565b6000806040838503121561182557600080fd5b82359150602083013561161e81611595565b8035801515811461102f57600080fd5b6000806040838503121561185a57600080fd5b8235915061186a60208401611837565b90509250929050565b60006020828403121561188557600080fd5b6115d7826115de565b6000806000604084860312156118a357600080fd5b83356118ae81611595565b9250602084013567ffffffffffffffff808211156118cb57600080fd5b818601915086601f8301126118df57600080fd5b8135818111156118ee57600080fd5b87602082850101111561190057600080fd5b6020830194508093505050509250925092565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000821982111561195557611955611913565b500190565b60008282101561196c5761196c611913565b500390565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036119d1576119d1611913565b5060010190565b6000602082840312156119ea57600080fd5b6115d782611837565b60008060408385031215611a0657600080fd5b8251611a1181611595565b8092505060208084015167ffffffffffffffff80821115611a3157600080fd5b818601915086601f830112611a4557600080fd5b815181811115611a5757611a576116e1565b8060051b9150611a68848301611710565b8181529183018401918481019089841115611a8257600080fd5b938501935b83851015611aa057845182529385019390850190611a87565b8096505050505050509250929050565b600060208284031215611ac257600080fd5b81516115d78161159556fea164736f6c634300080d000a

Deployed Bytecode

0x6080604052600436106101835760003560e01c80636e9960c3116100d65780639013ae081161007f578063cc2913f911610059578063cc2913f91461052a578063d16367821461056d578063f851a440146105b057600080fd5b80639013ae08146104ae578063949d53a7146104ce578063bf64a82d1461051757600080fd5b806374b7510c116100b057806374b7510c1461044e5780637674a6ec1461046e578063768797c31461048e57600080fd5b80636e9960c3146103da578063704b6c021461040e578063725229f61461042e57600080fd5b806340ad4fa9116101385780634827ae0c116101125780634827ae0c146103355780634ddf47d41461036957806356116d54146103ba57600080fd5b806340ad4fa9146102b057806343e451bc146102cf57806344b25fff146102ef57600080fd5b806324299c6e1161016957806324299c6e1461021957806325d5cac81461026e57806335ee77cf1461029057600080fd5b80626266791461019257806321ad2353146101ec57600080fd5b3661018d57600080fd5b600080fd5b34801561019e57600080fd5b507fbf76518d46db472b71aa7677a0908b8016f3dee568415ffa24055f9a670f9c37545b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020015b60405180910390f35b3480156101f857600080fd5b5061020c610207366004611500565b6105c5565b6040516101e39190611522565b34801561022557600080fd5b5061025e61023436600461157c565b60009081526001602052604090205473ffffffffffffffffffffffffffffffffffffffff16151590565b60405190151581526020016101e3565b34801561027a57600080fd5b5061028e6102893660046115ba565b6106d1565b005b34801561029c57600080fd5b5061028e6102ab3660046115f2565b6107b0565b3480156102bc57600080fd5b506000545b6040519081526020016101e3565b3480156102db57600080fd5b5061028e6102ea366004611675565b6108c1565b3480156102fb57600080fd5b5061025e61030a3660046115ba565b73ffffffffffffffffffffffffffffffffffffffff1660009081526004602052604090205460ff1690565b34801561034157600080fd5b507fb4107f746e9496e8452accc7de63d1c5e14c19f510932daa04077cd49e8bd77a546101c2565b34801561037557600080fd5b5061038961038436600461175f565b610a05565b6040517fffffffff0000000000000000000000000000000000000000000000000000000090911681526020016101e3565b3480156103c657600080fd5b5061028e6103d5366004611812565b610bae565b3480156103e657600080fd5b507f3f106594dc74eeef980dae234cde8324dc2497b13d27a0c59e55bd2ca10a07c9546101c2565b34801561041a57600080fd5b5061028e6104293660046115ba565b610d2f565b34801561043a57600080fd5b5061028e610449366004611812565b610e09565b34801561045a57600080fd5b506101c261046936600461157c565b610ff1565b34801561047a57600080fd5b5061028e610489366004611847565b611034565b34801561049a57600080fd5b506102c16104a93660046115ba565b611128565b3480156104ba57600080fd5b5061028e6104c93660046115ba565b61131c565b3480156104da57600080fd5b506101c26104e9366004611873565b63ffffffff1660009081526005602052604090205473ffffffffffffffffffffffffffffffffffffffff1690565b61028e61052536600461188e565b6113f6565b34801561053657600080fd5b506101c261054536600461157c565b60009081526002602052604090205473ffffffffffffffffffffffffffffffffffffffff1690565b34801561057957600080fd5b506101c261058836600461157c565b60009081526001602052604090205473ffffffffffffffffffffffffffffffffffffffff1690565b3480156105bc57600080fd5b506101c26114d1565b600054606090806105d68486611942565b11156105e9576105e6848261195a565b92505b8267ffffffffffffffff811115610602576106026116e1565b60405190808252806020026020018201604052801561062b578160200160208202803683370190505b50915060005b838110156106c95760006106458287611942565b8154811061065557610655611971565b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1683828151811061069257610692611971565b73ffffffffffffffffffffffffffffffffffffffff90921660209283029190910190910152806106c1816119a0565b915050610631565b505092915050565b7f3f106594dc74eeef980dae234cde8324dc2497b13d27a0c59e55bd2ca10a07c95473ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461078c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f484f4c4f47524150483a2061646d696e206f6e6c792066756e6374696f6e000060448201526064015b60405180910390fd5b7fb4107f746e9496e8452accc7de63d1c5e14c19f510932daa04077cd49e8bd77a55565b7f3f106594dc74eeef980dae234cde8324dc2497b13d27a0c59e55bd2ca10a07c95473ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610866576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f484f4c4f47524150483a2061646d696e206f6e6c792066756e6374696f6e00006044820152606401610783565b63ffffffff91909116600090815260056020526040902080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff909216919091179055565b7f3f106594dc74eeef980dae234cde8324dc2497b13d27a0c59e55bd2ca10a07c95473ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610977576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f484f4c4f47524150483a2061646d696e206f6e6c792066756e6374696f6e00006044820152606401610783565b60005b838110156109fe5782828281811061099457610994611971565b90506020020160208101906109a991906119d8565b600360008787858181106109bf576109bf611971565b90506020020135815260200190815260200160002060006101000a81548160ff02191690831515021790555080806109f6906119a0565b91505061097a565b5050505050565b6000610a2f7f4e5f991bca30eca2d4643aaefa807e88f96a4a97398933d572a3c0d973004a015490565b15610a96576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f484f4c4f47524150483a20616c726561647920696e697469616c697a656400006044820152606401610783565b60008083806020019051810190610aad91906119f3565b91509150327f3f106594dc74eeef980dae234cde8324dc2497b13d27a0c59e55bd2ca10a07c955817fb4107f746e9496e8452accc7de63d1c5e14c19f510932daa04077cd49e8bd77a5560005b8151811015610b5b57600160036000848481518110610b1b57610b1b611971565b6020026020010151815260200190815260200160002060006101000a81548160ff0219169083151502179055508080610b53906119a0565b915050610afa565b50610b8560017f4e5f991bca30eca2d4643aaefa807e88f96a4a97398933d572a3c0d973004a0155565b507f4ddf47d4000000000000000000000000000000000000000000000000000000009392505050565b7f3f106594dc74eeef980dae234cde8324dc2497b13d27a0c59e55bd2ca10a07c95473ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610c64576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f484f4c4f47524150483a2061646d696e206f6e6c792066756e6374696f6e00006044820152606401610783565b60008281526003602052604090205460ff16610cdc576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f484f4c4f47524150483a206e6f742072657365727665642074797065000000006044820152606401610783565b60009182526002602052604090912080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff909216919091179055565b7f3f106594dc74eeef980dae234cde8324dc2497b13d27a0c59e55bd2ca10a07c95473ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610de5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f484f4c4f47524150483a2061646d696e206f6e6c792066756e6374696f6e00006044820152606401610783565b7f3f106594dc74eeef980dae234cde8324dc2497b13d27a0c59e55bd2ca10a07c955565b60007fb4107f746e9496e8452accc7de63d1c5e14c19f510932daa04077cd49e8bd77a5490508073ffffffffffffffffffffffffffffffffffffffff166388cc58e46040518163ffffffff1660e01b8152600401602060405180830381865afa158015610e7a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e9e9190611ab0565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610f32576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f484f4c4f47524150483a20666163746f7279206f6e6c792066756e6374696f6e6044820152606401610783565b506000918252600160208181526040808520805473ffffffffffffffffffffffffffffffffffffffff9095167fffffffffffffffffffffffff000000000000000000000000000000000000000095861681179091558086526004909252842080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001683179055835491820184559280527f290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e5630180549091169091179055565b60008181526003602052604081205460ff161561102f575060008181526002602052604090205473ffffffffffffffffffffffffffffffffffffffff165b919050565b7f3f106594dc74eeef980dae234cde8324dc2497b13d27a0c59e55bd2ca10a07c95473ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146110ea576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f484f4c4f47524150483a2061646d696e206f6e6c792066756e6374696f6e00006044820152606401610783565b60009182526003602052604090912080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016911515919091179055565b6000813f801580159061115b57507fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a4708114155b6111c1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f484f4c4f47524150483a20656d70747920636f6e7472616374000000000000006044820152606401610783565b60008181526002602052604090205473ffffffffffffffffffffffffffffffffffffffff161561124d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f484f4c4f47524150483a20636f6e747261637420616c726561647920736574006044820152606401610783565b60008181526003602052604090205460ff16156112c6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f484f4c4f47524150483a207265736572766564206164647265737320747970656044820152606401610783565b600081815260026020526040902080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff94909416939093179092555090565b7f3f106594dc74eeef980dae234cde8324dc2497b13d27a0c59e55bd2ca10a07c95473ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146113d2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f484f4c4f47524150483a2061646d696e206f6e6c792066756e6374696f6e00006044820152606401610783565b7fbf76518d46db472b71aa7677a0908b8016f3dee568415ffa24055f9a670f9c3755565b7f3f106594dc74eeef980dae234cde8324dc2497b13d27a0c59e55bd2ca10a07c95473ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146114ac576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f484f4c4f47524150483a2061646d696e206f6e6c792066756e6374696f6e00006044820152606401610783565b808260003760008082600034875af13d6000803e8080156114cc573d6000f35b3d6000fd5b60006114fb7f3f106594dc74eeef980dae234cde8324dc2497b13d27a0c59e55bd2ca10a07c95490565b905090565b6000806040838503121561151357600080fd5b50508035926020909101359150565b6020808252825182820181905260009190848201906040850190845b8181101561157057835173ffffffffffffffffffffffffffffffffffffffff168352928401929184019160010161153e565b50909695505050505050565b60006020828403121561158e57600080fd5b5035919050565b73ffffffffffffffffffffffffffffffffffffffff811681146115b757600080fd5b50565b6000602082840312156115cc57600080fd5b81356115d781611595565b9392505050565b803563ffffffff8116811461102f57600080fd5b6000806040838503121561160557600080fd5b61160e836115de565b9150602083013561161e81611595565b809150509250929050565b60008083601f84011261163b57600080fd5b50813567ffffffffffffffff81111561165357600080fd5b6020830191508360208260051b850101111561166e57600080fd5b9250929050565b6000806000806040858703121561168b57600080fd5b843567ffffffffffffffff808211156116a357600080fd5b6116af88838901611629565b909650945060208701359150808211156116c857600080fd5b506116d587828801611629565b95989497509550505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff81118282101715611757576117576116e1565b604052919050565b6000602080838503121561177257600080fd5b823567ffffffffffffffff8082111561178a57600080fd5b818501915085601f83011261179e57600080fd5b8135818111156117b0576117b06116e1565b6117e0847fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f84011601611710565b915080825286848285010111156117f657600080fd5b8084840185840137600090820190930192909252509392505050565b6000806040838503121561182557600080fd5b82359150602083013561161e81611595565b8035801515811461102f57600080fd5b6000806040838503121561185a57600080fd5b8235915061186a60208401611837565b90509250929050565b60006020828403121561188557600080fd5b6115d7826115de565b6000806000604084860312156118a357600080fd5b83356118ae81611595565b9250602084013567ffffffffffffffff808211156118cb57600080fd5b818601915086601f8301126118df57600080fd5b8135818111156118ee57600080fd5b87602082850101111561190057600080fd5b6020830194508093505050509250925092565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000821982111561195557611955611913565b500190565b60008282101561196c5761196c611913565b500390565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036119d1576119d1611913565b5060010190565b6000602082840312156119ea57600080fd5b6115d782611837565b60008060408385031215611a0657600080fd5b8251611a1181611595565b8092505060208084015167ffffffffffffffff80821115611a3157600080fd5b818601915086601f830112611a4557600080fd5b815181811115611a5757611a576116e1565b8060051b9150611a68848301611710565b8181529183018401918481019089841115611a8257600080fd5b938501935b83851015611aa057845182529385019390850190611a87565b8096505050505050509250929050565b600060208284031215611ac257600080fd5b81516115d78161159556fea164736f6c634300080d000a

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
[ 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.