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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

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_0xea1861ca(bytes32 c__0xea1861ca) pure {}\n\n\nimport \"hardhat/console.sol\";\n\ncontract Greeter {\nfunction c_0x64419256(bytes32 c__0x64419256) public pure {}\n\n string private greeting;\n\n constructor(string memory _greeting) {c_0x64419256(0x61caf37df8492478dc64a91357ec2675b5d4099e06babc94422ab41d69bff36b); /* function */ \n\nc_0x64419256(0x696ceabf57543ec60e37c3b15593da7a4fde92cb90d20520adaf40d32439a978); /* line */ \n c_0x64419256(0x11ae6fc3aaac8dd3ad701fc549e6a8812c5438420f600ed7191b073badf856c4); /* statement */ \nconsole.log(\"Deploying a Greeter with greeting:\", _greeting);\nc_0x64419256(0x1ea13f3c0d3d67424bb01cc573c9dafd5e5b208e3ffaf25777c8e0915289b1dc); /* line */ \n c_0x64419256(0xcdee8f4f85097d8628b4021c8229665f64cc5851e7d2b0b409a1f21abe2bf4af); /* statement */ \ngreeting = _greeting;\n }\n\n function greet() public view returns (string memory) {c_0x64419256(0xcfd55d72ff3d81dcfbc85ef2256322dfa4c21dbe155ec99210315489de2abfa5); /* function */ \n\nc_0x64419256(0xcf5a306ce6f35dc174920094e963230b0eeb8416cfa3f5ecf6f9fc27381ec94a); /* line */ \n c_0x64419256(0x9223f3109c0565feea8114c42d50206a39ced65c94c4f59d51df8eb30b2d08c4); /* statement */ \nreturn greeting;\n }\n\n function setGreeting(string memory _greeting) public {c_0x64419256(0x6b2d86b2c85a833af49e03cdd087a27c761a2f651291f57b416e2aa1dce750ea); /* function */ \n\nc_0x64419256(0xeae6c5e1f89c98ce9fbc689041a3854a983b86c1f5006f3f50dcbb817413ee8d); /* line */ \n c_0x64419256(0xc6870ef0b508cd35b77ec2ab398fba1518b2c524a9901b2e960811c95db293d3); /* statement */ \nconsole.log(\"Changing greeting from '%s' to '%s'\", greeting, _greeting);\nc_0x64419256(0x18b429a96edb45f4ce1965861e41c4fcaabc5d4a82a482d358c49824b9172c73); /* line */ \n c_0x64419256(0x1ea317ce31117ea17e175d439308ad2b68902e5674bdc1be0cc9b9ac88ba6c0f); /* 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_