ethers-rs/ethers-solc/test-data/in/compiler-in-10.json

1 line
67 KiB
JSON
Raw Permalink Normal View History

{"language":"Solidity","sources":{"contracts/Greeter.sol":{"content":"//SPDX-License-Identifier: Unlicense\npragma solidity >0.8.0;\nfunction c_0xa7ece7d7(bytes32 c__0xa7ece7d7) pure {}\n\n\nimport \"hardhat/console.sol\";\n\ncontract Greeter {\nfunction c_0xd8380828(bytes32 c__0xd8380828) public pure {}\n\n string private greeting;\n\n constructor(string memory _greeting) {c_0xd8380828(0xaeab27122bcfbe8b29fd16f15e4f29b9977861b0a61f5a4ae924aff5c87e1300); /* function */ \n\nc_0xd8380828(0xb222f6b6e6d08e159ea1e198ed04962b45d895fb02bfb883aeb5481835c14d48); /* line */ \n c_0xd8380828(0xc47f5faeee8b5e1c0c9e6c2b6f141ccac7ce5b061ef327f642c66cccdb9dd638); /* statement */ \nconsole.log(\"Deploying a Greeter with greeting:\", _greeting);\nc_0xd8380828(0x5decbb4ee832fb880c32d6e973db74d5ebd182f184c9f4192c833c109647c329); /* line */ \n c_0xd8380828(0x60e7e36c8fa0f31f48904f5c2f5e88de387e0c77767647d2c2ddd70e8e98cba6); /* statement */ \ngreeting = _greeting;\n }\n\n function greet() public view returns (string memory) {c_0xd8380828(0xc9e0e71d2c5004923641c12acdb10e01af11425b720980f3e3e34c0e9ea17e85); /* function */ \n\nc_0xd8380828(0x6196f6d68af9809e5ddfee4697310cb797225e177f9fa0b6d9b5a48b16000952); /* line */ \n c_0xd8380828(0xc77f4cb371cece0507ce0aad925b95c2018b3643108eb67e64974f9607915c3b); /* statement */ \nreturn greeting;\n }\n\n function setGreeting(string memory _greeting) public {c_0xd8380828(0xac590a6b4fd6a5dbb6e84c096d8a5c5ed399eba9e07f90ca73888555da102635); /* function */ \n\nc_0xd8380828(0x8121e70dd3a37b5d8c583fd34872b82e09d580b507576ab4bc713dacfa901f23); /* line */ \n c_0xd8380828(0x4250114b5ab0164fc2b5356269d8a26687ae196d1376aae7735590b79343e416); /* statement */ \nconsole.log(\"Changing greeting from '%s' to '%s'\", greeting, _greeting);\nc_0xd8380828(0x6a189ea380073d342c5d8cdd793457e5d757398e0f898d34dfdbf1cc02a1bd23); /* line */ \n c_0xd8380828(0x305a8bec4600540020eb293573e1410fbe4ea7cd600dfe4a4317f4bf53c35c7a); /* statement */ \ngreeting = _greeting;\n }\n}\n"},"hardhat/console.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity >= 0.4.22 <0.9.0;\n\nlibrary console {\n\taddress constant CONSOLE_ADDRESS = address(0x000000000000000000636F6e736F6c652e6c6f67);\n\n\tfunction _sendLogPayload(bytes memory payload) private view {\n\t\tuint256 payloadLength = payload.length;\n\t\taddress consoleAddress = CONSOLE_ADDRESS;\n\t\tassembly {\n\t\t\tlet payloadStart := add(payload, 32)\n\t\t\tlet r := staticcall(gas(), consoleAddress, payloadStart, payloadLength, 0, 0)\n\t\t}\n\t}\n\n\tfunction log() internal view {\n\t\t_sendLogPayload(abi.encodeWithSignature(\"log()\"));\n\t}\n\n\tfunction logInt(int p0) internal view {\n\t\t_sendLogPayload(abi.encodeWithSignature(\"log(int)\", p0));\n\t}\n\n\tfunction logUint(uint p0) internal view {\n\t\t_sendLogPayload(abi.encodeWithSignature(\"log(uint)\", p0));\n\t}\n\n\tfunction logString(string memory p0) internal view {\n\t\t_sendLogPayload(abi.encodeWithSignature(\"log(string)\", p0));\n\t}\n\n\tfunction logBool(bool p0) internal view {\n\t\t_sendLogPayload(abi.encodeWithSignature(\"log(bool)\", p0));\n\t}\n\n\tfunction logAddress(address p0) internal view {\n\t\t_sendLogPayload(abi.encodeWithSignature(\"log(address)\", p0));\n\t}\n\n\tfunction logBytes(bytes memory p0) internal view {\n\t\t_sendLogPayload(abi.encodeWithSignature(\"log(bytes)\", p0));\n\t}\n\n\tfunction logBytes1(bytes1 p0) internal view {\n\t\t_sendLogPayload(abi.encodeWithSignature(\"log(bytes1)\", p0));\n\t}\n\n\tfunction logBytes2(bytes2 p0) internal view {\n\t\t_sendLogPayload(abi.encodeWithSignature(\"log(bytes2)\", p0));\n\t}\n\n\tfunction logBytes3(bytes3 p0) internal view {\n\t\t_sendLogPayload(abi.encodeWithSignature(\"log(bytes3)\", p0));\n\t}\n\n\tfunction logBytes4(bytes4 p0) internal view {\n\t\t_sendLogPayload(abi.encodeWithSignature(\"log(bytes4)\", p0));\n\t}\n\n\tfunction logBytes5(bytes5 p0) internal view {\n\t\t_sendLogPayload(abi.encodeWithSignature(\"log(bytes5)\", p0));\n\t}\n\n\tfunction logBytes6(bytes6 p0) internal view {\n\t\t_