@holographxyz/holograph-genesis
Version:
Holograph Protocol Genesis
233 lines • 40.9 kB
JSON
{
"address": "0x4c3BA951A7ea09b5BB57230F63a89D36A07B2992",
"abi": [
{
"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": "address",
"name": "newDeployer",
"type": "address"
},
{
"internalType": "bool",
"name": "approve",
"type": "bool"
}
],
"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": "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"
}
],
"transactionHash": "0xa67e7adf7b8910714094b805ffaa4b71b480f92798f24d9e8bf2379820f82e69",
"receipt": {
"to": null,
"from": "0xdf5295149F367b1FBFD595bdA578BAd22e59f504",
"contractAddress": "0x4c3BA951A7ea09b5BB57230F63a89D36A07B2992",
"transactionIndex": 0,
"gasUsed": "596485",
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000000000000000000000000000400000000800000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000001000000000000000000000000000000000000000000000",
"blockHash": "0x7023fe38e46c6c5e86372e4725329f36a82524e185cc7d1026fb3db367861258",
"transactionHash": "0xa67e7adf7b8910714094b805ffaa4b71b480f92798f24d9e8bf2379820f82e69",
"logs": [
{
"transactionIndex": 0,
"blockNumber": 1,
"transactionHash": "0xa67e7adf7b8910714094b805ffaa4b71b480f92798f24d9e8bf2379820f82e69",
"address": "0x4c3BA951A7ea09b5BB57230F63a89D36A07B2992",
"topics": [
"0x51a7f65c6325882f237d4aeb43228179cfad48b868511d508e24b4437a819137"
],
"data": "0x000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000195468652066757475726520697320486f6c6f6772617068696300000000000000",
"logIndex": 0,
"blockHash": "0x7023fe38e46c6c5e86372e4725329f36a82524e185cc7d1026fb3db367861258"
}
],
"blockNumber": 1,
"cumulativeGasUsed": "596485",
"status": 1,
"byzantium": true
},
"args": [],
"numDeployments": 1,
"solcInputHash": "f184714953e7232320208d16c56d6fb3",
"metadata": "{\"compiler\":{\"version\":\"0.8.17+commit.8df45f5f\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"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\":\"address\",\"name\":\"newDeployer\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"approve\",\"type\":\"bool\"}],\"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\":\"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\"}],\"devdoc\":{\"details\":\"In the beginning there was a smart contract...\",\"kind\":\"dev\",\"methods\":{\"approveDeployer(address,bool)\":{\"details\":\"Approve or revoke an address as a deployer.\",\"params\":{\"approve\":\"Boolean to approve or revoke\",\"newDeployer\":\"Address to approve or revoke\"}},\"constructor\":{\"details\":\"Sets the initial deployers as approved upon contract creation.\"},\"deploy(uint256,bytes12,bytes20,bytes,bytes)\":{\"details\":\"Deploy a contract using the EIP-1014 (create2) opcode for deterministic addresses.\",\"params\":{\"chainId\":\"The chain on which to deploy\",\"initCode\":\"The initialization code for the contract\",\"saltHash\":\"A unique salt for contract creation\",\"secret\":\"A secret part of the salt\",\"sourceCode\":\"The bytecode of the contract to deploy\"}},\"getVersion()\":{\"details\":\"Returns the version number of the Genesis contract\",\"returns\":{\"_0\":\"uint32 representing the version number\"}},\"isApprovedDeployer(address)\":{\"details\":\"Check if an address is an approved deployer.\",\"params\":{\"deployer\":\"Address to check\"},\"returns\":{\"_0\":\"bool representing approval status\"}}},\"title\":\"HOLOGRAPH GENESIS\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/HolographGenesisLocal.sol\":\"HolographGenesisLocal\"},\"evmVersion\":\"london\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"none\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":true,\"runs\":999999},\"remappings\":[]},\"sources\":{\"contracts/HolographGenesisLocal.sol\":{\"content\":\"// SPDX-License-Identifier: UNLICENSED\\n/*\\n\\n \\u250c\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2510\\n \\u2502 HOLOGRAPH \\u2502\\n \\u2514\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2518\\n\\u2554\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2557\\n\\u2551 \\u2551\\n\\u2551 / ^ \\\\ \\u2551\\n\\u2551 ~~*~~ \\u00b8 \\u2551\\n\\u2551 [ '<>:<>' ] \\u2502\\u2591\\u2591\\u2591 \\u2551\\n\\u2551 \\u2554\\u2557 _/\\\"\\\\_ \\u2554\\u2563 \\u2551\\n\\u2551 \\u250c\\u2500\\u256c\\u256c\\u2500\\u2510 \\\"\\\"\\\" \\u250c\\u2500\\u256c\\u256c\\u2500\\u2510 \\u2551\\n\\u2551 \\u250c\\u2500\\u252c\\u2518 \\u2560\\u2563 \\u2514\\u252c\\u2500\\u2510 \\\\_/ \\u250c\\u2500\\u252c\\u2518 \\u2560\\u2563 \\u2514\\u252c\\u2500\\u2510 \\u2551\\n\\u2551 \\u250c\\u2500\\u252c\\u2518 \\u2502 \\u2560\\u2563 \\u2502 \\u2514\\u252c\\u2500\\u2510 \\u250c\\u2500\\u252c\\u2518 \\u2502 \\u2560\\u2563 \\u2502 \\u2514\\u252c\\u2500\\u2510 \\u2551\\n\\u2551 \\u250c\\u2500\\u252c\\u2518 \\u2502 \\u2502 \\u2560\\u2563 \\u2502 \\u2502 \\u2514\\u252c\\u2500\\u2510 \\u250c\\u2500\\u252c\\u2518 \\u2502 \\u2502 \\u2560\\u2563 \\u2502 \\u2502 \\u2514\\u252c\\u2500\\u2510 \\u2551\\n\\u2551 \\u250c\\u2500\\u252c\\u2518 \\u2502 \\u2502 \\u2502 \\u2560\\u2563 \\u2502 \\u2502 \\u2502 \\u2514\\u252c\\u2510 \\u250c\\u252c\\u2518 \\u2502 \\u2502 \\u2502 \\u2560\\u2563 \\u2502 \\u2502 \\u2502 \\u2514\\u252c\\u2500\\u2510 \\u2551\\n\\u2560\\u252c\\u2518 \\u2502 \\u2502 \\u2502 \\u2502 \\u2560\\u2563 \\u2502 \\u2502 \\u2502 \\u2502\\u2514\\u00a4\\u2518\\u2502 \\u2502 \\u2502 \\u2502 \\u2560\\u2563 \\u2502 \\u2502 \\u2502 \\u2502 \\u2514\\u252c\\u2563\\n\\u2551\\u2502 \\u2502 \\u2502 \\u2502 \\u2502 \\u2560\\u2563 \\u2502 \\u2502 \\u2502 \\u2502 \\u2502 \\u2502 \\u2502 \\u2502 \\u2560\\u2563 \\u2502 \\u2502 \\u2502 \\u2502 \\u2502\\u2551\\n\\u2560\\u2569\\u2550\\u2550\\u2569\\u2550\\u2550\\u2569\\u2550\\u2550\\u2569\\u2550\\u2550\\u2569\\u2550\\u2550\\u256c\\u256c\\u2550\\u2550\\u2569\\u2550\\u2550\\u2569\\u2550\\u2550\\u2569\\u2550\\u2550\\u2569\\u2550\\u2550\\u2550\\u2569\\u2550\\u2550\\u2569\\u2550\\u2550\\u2569\\u2550\\u2550\\u2569\\u2550\\u2550\\u256c\\u256c\\u2550\\u2550\\u2569\\u2550\\u2550\\u2569\\u2550\\u2550\\u2569\\u2550\\u2550\\u2569\\u2550\\u2550\\u2569\\u2563\\n\\u2560\\u2534\\u2534\\u2534\\u2534\\u2534\\u2534\\u2534\\u2534\\u2534\\u2534\\u2534\\u2534\\u2534\\u2534\\u2534\\u256c\\u256c\\u2534\\u2534\\u2534\\u2534\\u2534\\u2534\\u2534\\u2534\\u2534\\u2534\\u2534\\u2534\\u2534\\u2534\\u2534\\u2534\\u2534\\u2534\\u2534\\u2534\\u2534\\u2534\\u2534\\u2534\\u2534\\u2534\\u2534\\u256c\\u256c\\u2534\\u2534\\u2534\\u2534\\u2534\\u2534\\u2534\\u2534\\u2534\\u2534\\u2534\\u2534\\u2534\\u2534\\u2534\\u2563\\n\\u2551 \\u2560\\u2563 \\u2560\\u2563 \\u2551\\n\\u2551 \\u2560\\u2563 \\u2560\\u2563 \\u2551\\n\\u2551 , \\u2560\\u2563 , ,' * \\u2560\\u2563 \\u2551\\n\\u2551~~~~~^~~~~~~~~\\u250c\\u256c\\u256c\\u2510~~~^~~~~~~~~^^~~~~~~~~^~~\\u250c\\u256c\\u256c\\u2510~~~~~~~^~~~~~~\\u2551\\n\\u255a\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2569\\u2569\\u2569\\u2569\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2569\\u2569\\u2569\\u2569\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u255d\\n - one protocol, one bridge = infinite possibilities -\\n\\n\\n ***************************************************************\\n\\n DISCLAIMER: U.S Patent Pending\\n\\n LICENSE: Holograph Limited Public License (H-LPL)\\n\\n https://holograph.xyz/licenses/h-lpl/1.0.0\\n\\n This license governs use of the accompanying software. If you\\n use the software, you accept this license. If you do not accept\\n the license, you are not permitted to use the software.\\n\\n 1. Definitions\\n\\n The terms \\\"reproduce,\\\" \\\"reproduction,\\\" \\\"derivative works,\\\" and\\n \\\"distribution\\\" have the same meaning here as under U.S.\\n copyright law. A \\\"contribution\\\" is the original software, or\\n any additions or changes to the software. A \\\"contributor\\\" is\\n any person that distributes its contribution under this\\n license. \\\"Licensed patents\\\" are a contributor\\u2019s patent claims\\n that read directly on its contribution.\\n\\n 2. Grant of Rights\\n\\n A) Copyright Grant- Subject to the terms of this license,\\n including the license conditions and limitations in sections 3\\n and 4, each contributor grants you a non-exclusive, worldwide,\\n royalty-free copyright license to reproduce its contribution,\\n prepare derivative works of its contribution, and distribute\\n its contribution or any derivative works that you create.\\n B) Patent Grant- Subject to the terms of this license,\\n including the license conditions and limitations in section 3,\\n each contributor grants you a non-exclusive, worldwide,\\n royalty-free license under its licensed patents to make, have\\n made, use, sell, offer for sale, import, and/or otherwise\\n dispose of its contribution in the software or derivative works\\n of the contribution in the software.\\n\\n 3. Conditions and Limitations\\n\\n A) No Trademark License- This license does not grant you rights\\n to use any contributors\\u2019 name, logo, or trademarks.\\n B) If you bring a patent claim against any contributor over\\n patents that you claim are infringed by the software, your\\n patent license from such contributor is terminated with\\n immediate effect.\\n C) If you distribute any portion of the software, you must\\n retain all copyright, patent, trademark, and attribution\\n notices that are present in the software.\\n D) If you distribute any portion of the software in source code\\n form, you may do so only under this license by including a\\n complete copy of this license with your distribution. If you\\n distribute any portion of the software in compiled or object\\n code form, you may only do so under a license that complies\\n with this license.\\n E) The software is licensed \\u201cas-is.\\u201d You bear all risks of\\n using it. The contributors give no express warranties,\\n guarantees, or conditions. You may have additional consumer\\n rights under your local laws which this license cannot change.\\n To the extent permitted under your local laws, the contributors\\n exclude all implied warranties, including those of\\n merchantability, fitness for a particular purpose and\\n non-infringement.\\n\\n 4. (F) Platform Limitation- The licenses granted in sections\\n 2.A & 2.B extend only to the software or derivative works that\\n you create that run on a Holograph system product.\\n\\n ***************************************************************\\n\\n*/\\n\\npragma solidity 0.8.17;\\n\\nimport \\\"./interface/InitializableInterface.sol\\\";\\n\\n/**\\n * @title HOLOGRAPH GENESIS\\n * @dev In the beginning there was a smart contract...\\n */\\ncontract HolographGenesisLocal {\\n uint32 private immutable _version;\\n\\n // Immutable addresses of the initial deployers\\n address private immutable deployer1 = 0xdf5295149F367b1FBFD595bdA578BAd22e59f504;\\n\\n // Mapping of addresses that are approved deployers\\n mapping(address => bool) private _approvedDeployers;\\n\\n // Events\\n event Message(string message);\\n event ContractDeployed(address deployedContract);\\n\\n // Modifier to restrict function calls to approved deployers\\n modifier onlyDeployer() {\\n require(_approvedDeployers[msg.sender], \\\"HOLOGRAPH: deployer not approved\\\");\\n _;\\n }\\n\\n /**\\n * @dev Sets the initial deployers as approved upon contract creation.\\n */\\n constructor() {\\n _version = 2;\\n\\n // Set the immutable deployers as approved\\n _approvedDeployers[deployer1] = true;\\n\\n emit Message(\\\"The future is Holographic\\\");\\n }\\n\\n /**\\n * @dev Deploy a contract using the EIP-1014 (create2) opcode for deterministic addresses.\\n * @param chainId The chain on which to deploy\\n * @param saltHash A unique salt for contract creation\\n * @param secret A secret part of the salt\\n * @param sourceCode The bytecode of the contract to deploy\\n * @param initCode The initialization code for the contract\\n */\\n function deploy(\\n uint256 chainId,\\n bytes12 saltHash,\\n bytes20 secret,\\n bytes memory sourceCode,\\n bytes memory initCode\\n ) external onlyDeployer {\\n require(chainId == block.chainid, \\\"HOLOGRAPH: incorrect chain id\\\");\\n bytes32 salt = bytes32(abi.encodePacked(secret, saltHash));\\n address contractAddress = address(\\n uint160(uint256(keccak256(abi.encodePacked(bytes1(0xff), address(this), salt, keccak256(sourceCode)))))\\n );\\n require(!_isContract(contractAddress), \\\"HOLOGRAPH: already deployed\\\");\\n assembly {\\n contractAddress := create2(0, add(sourceCode, 0x20), mload(sourceCode), salt)\\n }\\n require(_isContract(contractAddress), \\\"HOLOGRAPH: deployment failed\\\");\\n require(\\n InitializableInterface(contractAddress).init(initCode) == InitializableInterface.init.selector,\\n \\\"HOLOGRAPH: initialization failed\\\"\\n );\\n\\n emit ContractDeployed(contractAddress);\\n }\\n\\n /**\\n * @dev Approve or revoke an address as a deployer.\\n * @param newDeployer Address to approve or revoke\\n * @param approve Boolean to approve or revoke\\n */\\n function approveDeployer(address newDeployer, bool approve) external onlyDeployer {\\n _approvedDeployers[newDeployer] = approve;\\n }\\n\\n /**\\n * @dev Check if an address is an approved deployer.\\n * @param deployer Address to check\\n * @return bool representing approval status\\n */\\n function isApprovedDeployer(address deployer) external view returns (bool) {\\n return _approvedDeployers[deployer];\\n }\\n\\n /**\\n * @dev Internal function to determine if an address is a deployed contract.\\n * @param contractAddress The address to check\\n * @return bool representing if the address is a contract\\n */\\n function _isContract(address contractAddress) internal view returns (bool) {\\n bytes32 codehash;\\n assembly {\\n codehash := extcodehash(contractAddress)\\n }\\n return (codehash != 0x0 && codehash != 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470);\\n }\\n\\n /**\\n * @dev Returns the version number of the Genesis contract\\n * @return uint32 representing the version number\\n */\\n function getVersion() external view returns (uint32) {\\n return _version;\\n }\\n}\\n\",\"keccak256\":\"0x88639a5db6aefeb9237d0652d6e0f8b70ab28ede1366d0acbd2afb267623f7b1\",\"license\":\"UNLICENSED\"},\"contracts/interface/InitializableInterface.sol\":{\"content\":\"// SPDX-License-Identifier: UNLICENSED\\n/*\\n\\n \\u250c\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2510\\n \\u2502 HOLOGRAPH \\u2502\\n \\u2514\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2518\\n\\u2554\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2557\\n\\u2551 \\u2551\\n\\u2551 / ^ \\\\ \\u2551\\n\\u2551 ~~*~~ \\u00b8 \\u2551\\n\\u2551 [ '<>:<>' ] \\u2502\\u2591\\u2591\\u2591 \\u2551\\n\\u2551 \\u2554\\u2557 _/\\\"\\\\_ \\u2554\\u2563 \\u2551\\n\\u2551 \\u250c\\u2500\\u256c\\u256c\\u2500\\u2510 \\\"\\\"\\\" \\u250c\\u2500\\u256c\\u256c\\u2500\\u2510 \\u2551\\n\\u2551 \\u250c\\u2500\\u252c\\u2518 \\u2560\\u2563 \\u2514\\u252c\\u2500\\u2510 \\\\_/ \\u250c\\u2500\\u252c\\u2518 \\u2560\\u2563 \\u2514\\u252c\\u2500\\u2510 \\u2551\\n\\u2551 \\u250c\\u2500\\u252c\\u2518 \\u2502 \\u2560\\u2563 \\u2502 \\u2514\\u252c\\u2500\\u2510 \\u250c\\u2500\\u252c\\u2518 \\u2502 \\u2560\\u2563 \\u2502 \\u2514\\u252c\\u2500\\u2510 \\u2551\\n\\u2551 \\u250c\\u2500\\u252c\\u2518 \\u2502 \\u2502 \\u2560\\u2563 \\u2502 \\u2502 \\u2514\\u252c\\u2500\\u2510 \\u250c\\u2500\\u252c\\u2518 \\u2502 \\u2502 \\u2560\\u2563 \\u2502 \\u2502 \\u2514\\u252c\\u2500\\u2510 \\u2551\\n\\u2551 \\u250c\\u2500\\u252c\\u2518 \\u2502 \\u2502 \\u2502 \\u2560\\u2563 \\u2502 \\u2502 \\u2502 \\u2514\\u252c\\u2510 \\u250c\\u252c\\u2518 \\u2502 \\u2502 \\u2502 \\u2560\\u2563 \\u2502 \\u2502 \\u2502 \\u2514\\u252c\\u2500\\u2510 \\u2551\\n\\u2560\\u252c\\u2518 \\u2502 \\u2502 \\u2502 \\u2502 \\u2560\\u2563 \\u2502 \\u2502 \\u2502 \\u2502\\u2514\\u00a4\\u2518\\u2502 \\u2502 \\u2502 \\u2502 \\u2560\\u2563 \\u2502 \\u2502 \\u2502 \\u2502 \\u2514\\u252c\\u2563\\n\\u2551\\u2502 \\u2502 \\u2502 \\u2502 \\u2502 \\u2560\\u2563 \\u2502 \\u2502 \\u2502 \\u2502 \\u2502 \\u2502 \\u2502 \\u2502 \\u2560\\u2563 \\u2502 \\u2502 \\u2502 \\u2502 \\u2502\\u2551\\n\\u2560\\u2569\\u2550\\u2550\\u2569\\u2550\\u2550\\u2569\\u2550\\u2550\\u2569\\u2550\\u2550\\u2569\\u2550\\u2550\\u256c\\u256c\\u2550\\u2550\\u2569\\u2550\\u2550\\u2569\\u2550\\u2550\\u2569\\u2550\\u2550\\u2569\\u2550\\u2550\\u2550\\u2569\\u2550\\u2550\\u2569\\u2550\\u2550\\u2569\\u2550\\u2550\\u2569\\u2550\\u2550\\u256c\\u256c\\u2550\\u2550\\u2569\\u2550\\u2550\\u2569\\u2550\\u2550\\u2569\\u2550\\u2550\\u2569\\u2550\\u2550\\u2569\\u2563\\n\\u2560\\u2534\\u2534\\u2534\\u2534\\u2534\\u2534\\u2534\\u2534\\u2534\\u2534\\u2534\\u2534\\u2534\\u2534\\u2534\\u256c\\u256c\\u2534\\u2534\\u2534\\u2534\\u2534\\u2534\\u2534\\u2534\\u2534\\u2534\\u2534\\u2534\\u2534\\u2534\\u2534\\u2534\\u2534\\u2534\\u2534\\u2534\\u2534\\u2534\\u2534\\u2534\\u2534\\u2534\\u2534\\u256c\\u256c\\u2534\\u2534\\u2534\\u2534\\u2534\\u2534\\u2534\\u2534\\u2534\\u2534\\u2534\\u2534\\u2534\\u2534\\u2534\\u2563\\n\\u2551 \\u2560\\u2563 \\u2560\\u2563 \\u2551\\n\\u2551 \\u2560\\u2563 \\u2560\\u2563 \\u2551\\n\\u2551 , \\u2560\\u2563 , ,' * \\u2560\\u2563 \\u2551\\n\\u2551~~~~~^~~~~~~~~\\u250c\\u256c\\u256c\\u2510~~~^~~~~~~~~^^~~~~~~~~^~~\\u250c\\u256c\\u256c\\u2510~~~~~~~^~~~~~~\\u2551\\n\\u255a\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2569\\u2569\\u2569\\u2569\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2569\\u2569\\u2569\\u2569\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u255d\\n - one protocol, one bridge = infinite possibilities -\\n\\n\\n ***************************************************************\\n\\n DISCLAIMER: U.S Patent Pending\\n\\n LICENSE: Holograph Limited Public License (H-LPL)\\n\\n https://holograph.xyz/licenses/h-lpl/1.0.0\\n\\n This license governs use of the accompanying software. If you\\n use the software, you accept this license. If you do not accept\\n the license, you are not permitted to use the software.\\n\\n 1. Definitions\\n\\n The terms \\\"reproduce,\\\" \\\"reproduction,\\\" \\\"derivative works,\\\" and\\n \\\"distribution\\\" have the same meaning here as under U.S.\\n copyright law. A \\\"contribution\\\" is the original software, or\\n any additions or changes to the software. A \\\"contributor\\\" is\\n any person that distributes its contribution under this\\n license. \\\"Licensed patents\\\" are a contributor\\u2019s patent claims\\n that read directly on its contribution.\\n\\n 2. Grant of Rights\\n\\n A) Copyright Grant- Subject to the terms of this license,\\n including the license conditions and limitations in sections 3\\n and 4, each contributor grants you a non-exclusive, worldwide,\\n royalty-free copyright license to reproduce its contribution,\\n prepare derivative works of its contribution, and distribute\\n its contribution or any derivative works that you create.\\n B) Patent Grant- Subject to the terms of this license,\\n including the license conditions and limitations in section 3,\\n each contributor grants you a non-exclusive, worldwide,\\n royalty-free license under its licensed patents to make, have\\n made, use, sell, offer for sale, import, and/or otherwise\\n dispose of its contribution in the software or derivative works\\n of the contribution in the software.\\n\\n 3. Conditions and Limitations\\n\\n A) No Trademark License- This license does not grant you rights\\n to use any contributors\\u2019 name, logo, or trademarks.\\n B) If you bring a patent claim against any contributor over\\n patents that you claim are infringed by the software, your\\n patent license from such contributor is terminated with\\n immediate effect.\\n C) If you distribute any portion of the software, you must\\n retain all copyright, patent, trademark, and attribution\\n notices that are present in the software.\\n D) If you distribute any portion of the software in source code\\n form, you may do so only under this license by including a\\n complete copy of this license with your distribution. If you\\n distribute any portion of the software in compiled or object\\n code form, you may only do so under a license that complies\\n with this license.\\n E) The software is licensed \\u201cas-is.\\u201d You bear all risks of\\n using it. The contributors give no express warranties,\\n guarantees, or conditions. You may have additional consumer\\n rights under your local laws which this license cannot change.\\n To the extent permitted under your local laws, the contributors\\n exclude all implied warranties, including those of\\n merchantability, fitness for a particular purpose and\\n non-infringement.\\n\\n 4. (F) Platform Limitation- The licenses granted in sections\\n 2.A & 2.B extend only to the software or derivative works that\\n you create that run on a Holograph system product.\\n\\n ***************************************************************\\n\\n*/\\n\\npragma solidity 0.8.17;\\n\\n/**\\n * @title Initializable\\n * @author https://github.com/holographxyz\\n * @notice Use init instead of constructor\\n * @dev This allows for use of init function to make one time initializations without the need of a constructor\\n */\\ninterface InitializableInterface {\\n /**\\n * @notice Used internally to initialize the contract instead of through a constructor\\n * @dev This function is called by the deployer/factory when creating a contract\\n * @param initPayload abi encoded payload to use for contract initilaization\\n */\\n function init(bytes memory initPayload) external returns (bytes4);\\n}\\n\",\"keccak256\":\"0x3763904cf6e56ab7e724aa9881c6230a7acc686e737e802ea348197b81a50493\",\"license\":\"UNLICENSED\"}},\"version\":1}",
"bytecode": "0x60c060405273df5295149f367b1fbfd595bda578bad22e59f50460a05234801561002857600080fd5b50600260805260a0516001600160a01b031660009081526020819052604090819020805460ff19166001179055517f51a7f65c6325882f237d4aeb43228179cfad48b868511d508e24b4437a819137906100b39060208082526019908201527f5468652066757475726520697320486f6c6f6772617068696300000000000000604082015260600190565b60405180910390a160805160a0516109756100dc600039600050506000605b01526109756000f3fe608060405234801561001057600080fd5b506004361061004c5760003560e01c80630d8e6e2c1461005157806349aa18fc1461008a578063a07d73161461009f578063dc7faa07146100b2575b600080fd5b60405163ffffffff7f00000000000000000000000000000000000000000000000000000000000000001681526020015b60405180910390f35b61009d610098366004610718565b6100fb565b005b61009d6100ad36600461081e565b610535565b6100eb6100c036600461085a565b73ffffffffffffffffffffffffffffffffffffffff1660009081526020819052604090205460ff1690565b6040519015158152602001610081565b3360009081526020819052604090205460ff16610179576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f484f4c4f47524150483a206465706c6f796572206e6f7420617070726f76656460448201526064015b60405180910390fd5b4685146101e2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f484f4c4f47524150483a20696e636f727265637420636861696e2069640000006044820152606401610170565b604080517fffffffffffffffffffffffffffffffffffffffff000000000000000000000000851660208201527fffffffffffffffffffffffff0000000000000000000000000000000000000000861660348201526000910160405160208183030381529060405261025290610875565b8351602080860191909120604080517fff00000000000000000000000000000000000000000000000000000000000000818501523060601b7fffffffffffffffffffffffffffffffffffffffff0000000000000000000000001660218201526035810185905260558082019390935281518082039093018352607501905280519101209091506102e181610604565b15610348576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f484f4c4f47524150483a20616c7265616479206465706c6f79656400000000006044820152606401610170565b818451602086016000f5905061035d81610604565b6103c3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f484f4c4f47524150483a206465706c6f796d656e74206661696c6564000000006044820152606401610170565b6040517f4ddf47d4000000000000000000000000000000000000000000000000000000008082529073ffffffffffffffffffffffffffffffffffffffff831690634ddf47d4906104179087906004016108ba565b6020604051808303816000875af1158015610436573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061045a9190610926565b7fffffffff0000000000000000000000000000000000000000000000000000000016146104e3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f484f4c4f47524150483a20696e697469616c697a6174696f6e206661696c65646044820152606401610170565b60405173ffffffffffffffffffffffffffffffffffffffff821681527f8ffcdc15a283d706d38281f500270d8b5a656918f555de0913d7455e3e6bc1bf9060200160405180910390a150505050505050565b3360009081526020819052604090205460ff166105ae576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f484f4c4f47524150483a206465706c6f796572206e6f7420617070726f7665646044820152606401610170565b73ffffffffffffffffffffffffffffffffffffffff91909116600090815260208190526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016911515919091179055565b6000813f801580159061063757507fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a4708114155b9392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600082601f83011261067e57600080fd5b813567ffffffffffffffff808211156106995761069961063e565b604051601f83017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0908116603f011681019082821181831017156106df576106df61063e565b816040528381528660208588010111156106f857600080fd5b836020870160208301376000602085830101528094505050505092915050565b600080600080600060a0868803121561073057600080fd5b8535945060208601357fffffffffffffffffffffffff00000000000000000000000000000000000000008116811461076757600080fd5b935060408601357fffffffffffffffffffffffffffffffffffffffff0000000000000000000000008116811461079c57600080fd5b9250606086013567ffffffffffffffff808211156107b957600080fd5b6107c589838a0161066d565b935060808801359150808211156107db57600080fd5b506107e88882890161066d565b9150509295509295909350565b803573ffffffffffffffffffffffffffffffffffffffff8116811461081957600080fd5b919050565b6000806040838503121561083157600080fd5b61083a836107f5565b91506020830135801515811461084f57600080fd5b809150509250929050565b60006020828403121561086c57600080fd5b610637826107f5565b805160208083015191908110156108b4577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8160200360031b1b821691505b50919050565b600060208083528351808285015260005b818110156108e7578581018301518582016040015282016108cb565b5060006040828601015260407fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f8301168501019250505092915050565b60006020828403121561093857600080fd5b81517fffffffff000000000000000000000000000000000000000000000000000000008116811461063757600080fdfea164736f6c6343000811000a",
"deployedBytecode": "0x608060405234801561001057600080fd5b506004361061004c5760003560e01c80630d8e6e2c1461005157806349aa18fc1461008a578063a07d73161461009f578063dc7faa07146100b2575b600080fd5b60405163ffffffff7f00000000000000000000000000000000000000000000000000000000000000001681526020015b60405180910390f35b61009d610098366004610718565b6100fb565b005b61009d6100ad36600461081e565b610535565b6100eb6100c036600461085a565b73ffffffffffffffffffffffffffffffffffffffff1660009081526020819052604090205460ff1690565b6040519015158152602001610081565b3360009081526020819052604090205460ff16610179576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f484f4c4f47524150483a206465706c6f796572206e6f7420617070726f76656460448201526064015b60405180910390fd5b4685146101e2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f484f4c4f47524150483a20696e636f727265637420636861696e2069640000006044820152606401610170565b604080517fffffffffffffffffffffffffffffffffffffffff000000000000000000000000851660208201527fffffffffffffffffffffffff0000000000000000000000000000000000000000861660348201526000910160405160208183030381529060405261025290610875565b8351602080860191909120604080517fff00000000000000000000000000000000000000000000000000000000000000818501523060601b7fffffffffffffffffffffffffffffffffffffffff0000000000000000000000001660218201526035810185905260558082019390935281518082039093018352607501905280519101209091506102e181610604565b15610348576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f484f4c4f47524150483a20616c7265616479206465706c6f79656400000000006044820152606401610170565b818451602086016000f5905061035d81610604565b6103c3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f484f4c4f47524150483a206465706c6f796d656e74206661696c6564000000006044820152606401610170565b6040517f4ddf47d4000000000000000000000000000000000000000000000000000000008082529073ffffffffffffffffffffffffffffffffffffffff831690634ddf47d4906104179087906004016108ba565b6020604051808303816000875af1158015610436573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061045a9190610926565b7fffffffff0000000000000000000000000000000000000000000000000000000016146104e3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f484f4c4f47524150483a20696e697469616c697a6174696f6e206661696c65646044820152606401610170565b60405173ffffffffffffffffffffffffffffffffffffffff821681527f8ffcdc15a283d706d38281f500270d8b5a656918f555de0913d7455e3e6bc1bf9060200160405180910390a150505050505050565b3360009081526020819052604090205460ff166105ae576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f484f4c4f47524150483a206465706c6f796572206e6f7420617070726f7665646044820152606401610170565b73ffffffffffffffffffffffffffffffffffffffff91909116600090815260208190526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016911515919091179055565b6000813f801580159061063757507fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a4708114155b9392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600082601f83011261067e57600080fd5b813567ffffffffffffffff808211156106995761069961063e565b604051601f83017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0908116603f011681019082821181831017156106df576106df61063e565b816040528381528660208588010111156106f857600080fd5b836020870160208301376000602085830101528094505050505092915050565b600080600080600060a0868803121561073057600080fd5b8535945060208601357fffffffffffffffffffffffff00000000000000000000000000000000000000008116811461076757600080fd5b935060408601357fffffffffffffffffffffffffffffffffffffffff0000000000000000000000008116811461079c57600080fd5b9250606086013567ffffffffffffffff808211156107b957600080fd5b6107c589838a0161066d565b935060808801359150808211156107db57600080fd5b506107e88882890161066d565b9150509295509295909350565b803573ffffffffffffffffffffffffffffffffffffffff8116811461081957600080fd5b919050565b6000806040838503121561083157600080fd5b61083a836107f5565b91506020830135801515811461084f57600080fd5b809150509250929050565b60006020828403121561086c57600080fd5b610637826107f5565b805160208083015191908110156108b4577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8160200360031b1b821691505b50919050565b600060208083528351808285015260005b818110156108e7578581018301518582016040015282016108cb565b5060006040828601015260407fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f8301168501019250505092915050565b60006020828403121561093857600080fd5b81517fffffffff000000000000000000000000000000000000000000000000000000008116811461063757600080fdfea164736f6c6343000811000a",
"devdoc": {
"details": "In the beginning there was a smart contract...",
"kind": "dev",
"methods": {
"approveDeployer(address,bool)": {
"details": "Approve or revoke an address as a deployer.",
"params": {
"approve": "Boolean to approve or revoke",
"newDeployer": "Address to approve or revoke"
}
},
"constructor": {
"details": "Sets the initial deployers as approved upon contract creation."
},
"deploy(uint256,bytes12,bytes20,bytes,bytes)": {
"details": "Deploy a contract using the EIP-1014 (create2) opcode for deterministic addresses.",
"params": {
"chainId": "The chain on which to deploy",
"initCode": "The initialization code for the contract",
"saltHash": "A unique salt for contract creation",
"secret": "A secret part of the salt",
"sourceCode": "The bytecode of the contract to deploy"
}
},
"getVersion()": {
"details": "Returns the version number of the Genesis contract",
"returns": {
"_0": "uint32 representing the version number"
}
},
"isApprovedDeployer(address)": {
"details": "Check if an address is an approved deployer.",
"params": {
"deployer": "Address to check"
},
"returns": {
"_0": "bool representing approval status"
}
}
},
"title": "HOLOGRAPH GENESIS",
"version": 1
},
"userdoc": {
"kind": "user",
"methods": {},
"version": 1
},
"storageLayout": {
"storage": [
{
"astId": 12,
"contract": "contracts/HolographGenesisLocal.sol:HolographGenesisLocal",
"label": "_approvedDeployers",
"offset": 0,
"slot": "0",
"type": "t_mapping(t_address,t_bool)"
}
],
"types": {
"t_address": {
"encoding": "inplace",
"label": "address",
"numberOfBytes": "20"
},
"t_bool": {
"encoding": "inplace",
"label": "bool",
"numberOfBytes": "1"
},
"t_mapping(t_address,t_bool)": {
"encoding": "mapping",
"key": "t_address",
"label": "mapping(address => bool)",
"numberOfBytes": "32",
"value": "t_bool"
}
}
}
}