diff --git a/crates/compilers/src/compilers/mod.rs b/crates/compilers/src/compilers/mod.rs index d1843dfb..35b5dd75 100644 --- a/crates/compilers/src/compilers/mod.rs +++ b/crates/compilers/src/compilers/mod.rs @@ -21,6 +21,7 @@ use std::{ pub mod multi; pub mod solc; +pub mod resolc; pub mod vyper; pub use vyper::*; diff --git a/test-data/resolc/input/compile-input.json b/test-data/resolc/input/compile-input.json new file mode 100644 index 00000000..5bfdb635 --- /dev/null +++ b/test-data/resolc/input/compile-input.json @@ -0,0 +1,31 @@ +{ + "language": "Solidity", + "sources": { + "contracts/1_Storage.sol": { + "content": "// SPDX-License-Identifier: GPL-3.0\n\npragma solidity >=0.4.20 <0.9.0;\n\n/**\n * @title Storage\n * @dev Store & retrieve value in a variable\n * @custom:dev-run-script ./scripts/deploy_with_ethers.ts\n */\ncontract Storage {\n\n uint256 number;\n uint256 number1;\n /**\n * @dev Store value in variable\n * @param num value to store\n */\n function store(uint256 num) public {\n number = num;\n }\n\n /**\n * @dev Return value \n * @return value of 'number'\n */\n function retrieve() public view returns (uint256){\n return number;\n }\n}" + } + }, + "settings": { + "optimizer": { + "enabled": false, + "runs": 200 + }, + "outputSelection": { + "*": { + "": ["ast"], + "*": [ + "abi", + "metadata", + "devdoc", + "userdoc", + "storageLayout", + "evm.legacyAssembly", + "evm.deployedBytecode", + "evm.methodIdentifiers" + ] + } + }, + "remappings": [] + } + } + \ No newline at end of file