From 62553fd38229a09d1c01dc632b5354c0be7c3fe4 Mon Sep 17 00:00:00 2001 From: "Shiv Bhonde | shivbhonde.eth" Date: Wed, 6 Mar 2024 14:01:13 +0530 Subject: [PATCH] add foundry flatten script (#746) --- .changeset/wet-carrots-laugh.md | 5 +++++ templates/extensions/foundry/package.json | 1 + templates/extensions/foundry/packages/foundry/package.json | 1 + 3 files changed, 7 insertions(+) create mode 100644 .changeset/wet-carrots-laugh.md diff --git a/.changeset/wet-carrots-laugh.md b/.changeset/wet-carrots-laugh.md new file mode 100644 index 000000000..f92d4e10b --- /dev/null +++ b/.changeset/wet-carrots-laugh.md @@ -0,0 +1,5 @@ +--- +"create-eth": patch +--- + +forge flatten for foundy diff --git a/templates/extensions/foundry/package.json b/templates/extensions/foundry/package.json index 2bc523652..e2115c64f 100644 --- a/templates/extensions/foundry/package.json +++ b/templates/extensions/foundry/package.json @@ -12,6 +12,7 @@ "test": "yarn foundry:test", "verify": "yarn workspace @se-2/foundry verify", "generate": "yarn workspace @se-2/foundry generate", + "flatten": "yarn workspace @se-1/foundry flatten", "format": "yarn next:format && yarn foundry:format" } } diff --git a/templates/extensions/foundry/packages/foundry/package.json b/templates/extensions/foundry/packages/foundry/package.json index 7c110dec0..81dddfad6 100644 --- a/templates/extensions/foundry/packages/foundry/package.json +++ b/templates/extensions/foundry/packages/foundry/package.json @@ -7,6 +7,7 @@ "fork": "anvil --fork-url ${0:-mainnet} --chain-id 31337 --config-out localhost.json", "compile": "forge compile", "generate": "node script/generateAccount.js", + "flatten": "forge flatten", "deploy": "forge build --build-info --build-info-path out/build-info/ && forge script script/Deploy.s.sol --rpc-url ${1:-default_network} --broadcast --legacy && node script/generateTsAbis.js", "deploy:verify": "forge build --build-info --build-info-path out/build-info/ && forge script script/Deploy.s.sol --rpc-url ${1:-default_network} --broadcast --legacy --verify ; node script/generateTsAbis.js", "verify": "forge build --build-info --build-info-path out/build-info/ && forge script script/VerifyAll.s.sol --ffi --rpc-url ${1:-default_network}",