Skip to content

Commit a37d7ef

Browse files
committed
chore: makefile targets
1 parent 1442040 commit a37d7ef

File tree

3 files changed

+23
-0
lines changed

3 files changed

+23
-0
lines changed

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,3 +43,6 @@
4343
[submodule "examples/l2/contracts/lib/forge-std"]
4444
path = examples/l2/contracts/lib/forge-std
4545
url = https://github.com/foundry-rs/forge-std
46+
[submodule "examples/circom/contracts/lib/forge-std"]
47+
path = examples/circom/contracts/lib/forge-std
48+
url = https://github.com/foundry-rs/forge-std

examples/circom/Cargo.lock

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/circom/Makefile

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,20 @@ SHELL := /bin/bash
33
generate_circom_groth16_bn256_setup: ## Run the circom_groth16_bn256_script setup
44
@echo "Running circom_groth16_bn256 script setup..."
55
@cd circuits && ./generate_setup.sh
6+
$(MAKE) get_vk_commitment
67

78
deploy_contract:
9+
@. ./contracts/.env && . ./contracts/deploy.sh
10+
11+
deploy_contract_devnet:
12+
@. ./contracts/.env.devnet && . ./contracts/deploy.sh
13+
14+
get_vk_commitment:
15+
cargo run --release --bin get_vk_commitment
816

917
run:
18+
cargo run --release --bin main
19+
20+
run_devnet:
21+
cargo run --release --bin main -- .env.devnet
22+

0 commit comments

Comments
 (0)