Skip to content

Commit

Permalink
chore(cli-template-contracts-foundry): replace Makefile(removed) with…
Browse files Browse the repository at this point in the history
… package.json
  • Loading branch information
jimmychu0807 committed Nov 28, 2024
1 parent 2bbf313 commit c80cdd7
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 57 deletions.
5 changes: 1 addition & 4 deletions packages/cli-template-contracts-foundry/.gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
# Compiler files
# Foundry artifact
cache/
out/

# Dotenv file
.env
48 changes: 0 additions & 48 deletions packages/cli-template-contracts-foundry/Makefile

This file was deleted.

2 changes: 1 addition & 1 deletion packages/cli-template-contracts-foundry/foundry.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ out = "out"
script = "script"
libs = ["node_modules"]
fs_permissions = [{ access = "read", path = "out-optimized" }, { access = "read-write", path = "gas_calculations" }]
allow_paths = ["*", "/"]
allow_paths = ["*", "../.."]

# See more config options https://github.com/foundry-rs/foundry/blob/master/crates/config/README.md#all-options
10 changes: 6 additions & 4 deletions packages/cli-template-contracts-foundry/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,18 @@
"solhint": "^4.1.1"
},
"scripts": {
"build": "forge build",
"compile": "forge build",
"deploy": "",
"clean": "forge clean",
"test": "forge test",
"test:report-gas": "forge test --gas-report",
"test:coverage": "forge coverage",
"fmt": "forge fmt --check",
"fmt:write": "forge fmt",
"lint": "yarn fmt && yarn solhint \"{script,src,test}/**/*.sol\"",
"prettier": "prettier -c \"**/*.{json,md,svg,yml}\"",
"prettier:write": "prettier -w \"**/*.{json,md,svg,yml}\"",
"test": "forge test",
"test:report-gas": "forge test --gas-report --mp \"./test/integration/**/*.sol\" --nmt \"test(Fuzz)?_RevertWhen_\\w{1,}?\"",
"test:optimized": "pnpm run build:optimized && FOUNDRY_PROFILE=test-optimized forge test"
"check": "yarn test & yarn lint & yarn prettier"
},
"files": [
"src",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ contract DeployFeedback is Script {
address semaphoreVerifierAddress;
address semaphoreAddress;

// Targeting Ethereum Sepolia
if (block.chainid == 11155111) {
semaphoreVerifierAddress = 0xe538f9DeeE04A397decb1E7dc5D16fD6f123c043;
semaphoreAddress = 0x1e0d7FF1610e480fC93BdEC510811ea2Ba6d7c2f;
Expand Down

0 comments on commit c80cdd7

Please sign in to comment.