Skip to content

Commit

Permalink
add foundry flatten script (#746)
Browse files Browse the repository at this point in the history
  • Loading branch information
technophile-04 authored Mar 6, 2024
1 parent b03c011 commit 62553fd
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/wet-carrots-laugh.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"create-eth": patch
---

forge flatten for foundy
1 change: 1 addition & 0 deletions templates/extensions/foundry/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
1 change: 1 addition & 0 deletions templates/extensions/foundry/packages/foundry/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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}",
Expand Down

0 comments on commit 62553fd

Please sign in to comment.