-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Solidity Build System: first iteration
- Loading branch information
1 parent
86aa02f
commit 2bb19ed
Showing
107 changed files
with
6,893 additions
and
419 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
// SPDX-License-Identifier: UNLICENSED | ||
pragma solidity ^0.8.0; | ||
pragma solidity *; | ||
|
||
import "./B.sol"; | ||
|
||
contract A is B {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
// SPDX-License-Identifier: UNLICENSED | ||
pragma solidity ^0.8.0; | ||
|
||
import "@openzeppelin/contracts/access/Ownable.sol"; | ||
|
||
contract B {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
// SPDX-License-Identifier: UNLICENSED | ||
pragma solidity ^0.8.0; | ||
|
||
import "./B.sol"; | ||
|
||
contract C {} | ||
|
||
contract C2 {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
import "./C.sol"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
// SPDX-License-Identifier: SEE LICENSE IN LICENSE | ||
pragma solidity ^0.7.0; | ||
|
||
contract NoImports {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
// SPDX-License-Identifier: SEE LICENSE IN LICENSE | ||
pragma solidity ^0.8.0; | ||
|
||
import "remapped/Ownable.sol"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,6 +11,8 @@ import { viemScketchPlugin } from "./viem-scketch-plugin.js"; | |
import hardhatNetworkHelpersPlugin from "@ignored/hardhat-vnext-network-helpers"; | ||
import hardhatEthersPlugin from "@ignored/hardhat-vnext-ethers"; | ||
|
||
util.inspect.defaultOptions.depth = null; | ||
|
||
const exampleEmptyTask = emptyTask("empty", "An example empty task").build(); | ||
|
||
const exampleEmptySubtask = task(["empty", "task"]) | ||
|
@@ -135,6 +137,33 @@ const config: HardhatUserConfig = { | |
nodeTest: "test/node", | ||
}, | ||
}, | ||
solidity: { | ||
profiles: { | ||
default: { | ||
compilers: [ | ||
{ | ||
version: "0.8.22", | ||
}, | ||
{ | ||
version: "0.7.1", | ||
}, | ||
], | ||
overrides: { | ||
"foo/bar.sol": { | ||
version: "0.8.1", | ||
}, | ||
}, | ||
}, | ||
test: { | ||
version: "0.8.2", | ||
}, | ||
coverage: { | ||
version: "0.8.2", | ||
}, | ||
}, | ||
dependenciesToCompile: ["@openzeppelin/contracts/token/ERC20/ERC20.sol"], | ||
remappings: ["remapped/=npm/@openzeppelin/[email protected]/access/"], | ||
}, | ||
}; | ||
|
||
export default config; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.