22
33PROOF_GENERATOR_ADDR=0x66f9664f97F2b50F62D13eA064982f936dE76657
44
5- RPC_URL=${RPC_URL:- http:// localhost: 8545}
65if [ -z " $NETWORK " ]; then
76 echo " NETWORK is not set. Setting it to devnet"
87 NETWORK=" devnet"
98fi
109
11- if [ -z $ ]; then
10+ if [ -z " $RPC_URL " ]; then
11+ echo " NETWORK is not set. Setting it to devnet"
12+ RPC_URL=" http://localhost:8545"
13+ fi
14+
15+ if [ -z $PROOF_TYPE ]; then
1216 echo " Proof type not provided, using SP1 default"
13- else
1417 PROOF_TYPE=" sp1" # sp1|groth16|plonk|risc0
1518fi
1619
1720echo " Sending $PROOF_TYPE proof to the batcher"
1821
19-
20- if [ $PROOF_TYPE == " sp1" ]; then
22+ if [[ $PROOF_TYPE == " sp1" ]]; then
2123 cd batcher/aligned/
2224 cargo run --release -- submit \
2325 --proving_system SP1 \
@@ -28,7 +30,7 @@ if [ $PROOF_TYPE == "sp1" ]; then
2830 --rpc_url $RPC_URL \
2931 --network $NETWORK
3032
31- elif [ $PROOF_TYPE == " groth16" ]; then
33+ elif [[ $PROOF_TYPE == " groth16" ] ]; then
3234 cd batcher/aligned/
3335 cargo run --release -- submit \
3436 --proving_system Groth16Bn254 \
@@ -40,7 +42,7 @@ elif [ $PROOF_TYPE == "groth16" ]; then
4042 --rpc_url $RPC_URL \
4143 --network $NETWORK
4244
43- elif [ $PROOF_TYPE == " plonk" ]; then
45+ elif [[ $PROOF_TYPE == " plonk" ] ]; then
4446 cd batcher/aligned/
4547 cargo run --release -- submit \
4648 --proving_system GnarkPlonkBn254 \
@@ -52,7 +54,7 @@ elif [ $PROOF_TYPE == "plonk" ]; then
5254 --rpc_url $RPC_URL \
5355 --network $NETWORK
5456
55- elif [ $PROOF_TYPE == " risc0" ]; then
57+ elif [[ $PROOF_TYPE == " risc0" ] ]; then
5658 cd batcher/aligned/
5759 cargo run --release -- submit \
5860 --proving_system Risc0 \
0 commit comments