diff --git a/assets/compilation-benchmark.png b/.github/compilation-benchmark.png similarity index 100% rename from assets/compilation-benchmark.png rename to .github/compilation-benchmark.png diff --git a/assets/demo.gif b/.github/demo.gif similarity index 100% rename from assets/demo.gif rename to .github/demo.gif diff --git a/.github/logo.png b/.github/logo.png new file mode 100644 index 000000000000..8e24b87ef689 Binary files /dev/null and b/.github/logo.png differ diff --git a/README.md b/README.md index eab8542611f2..b8122e686024 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,6 @@ -#

Foundry

+Foundry logo + +## Foundry ![Github Actions][gha-badge] [![Telegram Chat][tg-badge]][tg-url] [![Telegram Support][tg-support-badge]][tg-support-url] @@ -22,7 +24,7 @@ Foundry consists of: **Need help getting started with Foundry? Read the [📖 Foundry Book][foundry-book] (WIP)!** -![Demo](./assets/demo.gif) +![Demo](.github/demo.gif) ## Installation @@ -109,7 +111,7 @@ See the benchmarks below. More benchmarks can be found in the [v0.2.0 announceme **Compilation Benchmarks** -Compilation benchmarks +Compilation benchmarks **Takeaway: Forge compilation is consistently faster by a factor of 1.7-11.3x, depending on the amount of caching involved.** diff --git a/assets/.gitignoreTemplate b/cli/assets/.gitignoreTemplate similarity index 100% rename from assets/.gitignoreTemplate rename to cli/assets/.gitignoreTemplate diff --git a/assets/ContractTemplate.sol b/cli/assets/ContractTemplate.sol similarity index 100% rename from assets/ContractTemplate.sol rename to cli/assets/ContractTemplate.sol diff --git a/assets/ContractTemplate.t.sol b/cli/assets/ContractTemplate.t.sol similarity index 100% rename from assets/ContractTemplate.t.sol rename to cli/assets/ContractTemplate.t.sol diff --git a/assets/workflowTemplate.yml b/cli/assets/workflowTemplate.yml similarity index 100% rename from assets/workflowTemplate.yml rename to cli/assets/workflowTemplate.yml diff --git a/cli/src/cmd/forge/init.rs b/cli/src/cmd/forge/init.rs index c3fecdf8b320..9ff16c71a26b 100644 --- a/cli/src/cmd/forge/init.rs +++ b/cli/src/cmd/forge/init.rs @@ -104,13 +104,10 @@ impl Cmd for InitArgs { // write the contract file let contract_path = src.join("Contract.sol"); - std::fs::write(contract_path, include_str!("../../../../assets/ContractTemplate.sol"))?; + std::fs::write(contract_path, include_str!("../../../assets/ContractTemplate.sol"))?; // write the tests let contract_path = test.join("Contract.t.sol"); - std::fs::write( - contract_path, - include_str!("../../../../assets/ContractTemplate.t.sol"), - )?; + std::fs::write(contract_path, include_str!("../../../assets/ContractTemplate.t.sol"))?; let dest = root.join(Config::FILE_NAME); if !dest.exists() { @@ -158,7 +155,7 @@ fn init_git_repo(root: &Path, no_commit: bool) -> eyre::Result<()> { if !is_git.success() { let gitignore_path = root.join(".gitignore"); - std::fs::write(gitignore_path, include_str!("../../../../assets/.gitignoreTemplate"))?; + std::fs::write(gitignore_path, include_str!("../../../assets/.gitignoreTemplate"))?; // git init Command::new("git") @@ -173,7 +170,7 @@ fn init_git_repo(root: &Path, no_commit: bool) -> eyre::Result<()> { let gh = root.join(".github").join("workflows"); std::fs::create_dir_all(&gh)?; let workflow_path = gh.join("test.yml"); - std::fs::write(workflow_path, include_str!("../../../../assets/workflowTemplate.yml"))?; + std::fs::write(workflow_path, include_str!("../../../assets/workflowTemplate.yml"))?; if !no_commit { Command::new("git").args(&["add", "."]).current_dir(&root).spawn()?.wait()?;