diff --git a/scripts/cli/query_bitvm_challenge_data.sh b/scripts/cli/query_bitvm_challenge_data.sh index 7edaa57..8c347ca 100755 --- a/scripts/cli/query_bitvm_challenge_data.sh +++ b/scripts/cli/query_bitvm_challenge_data.sh @@ -4,7 +4,7 @@ set -e : ${CHAIN_ID:="fiamma-testnet-1"} -: ${NODE:="http://127.0.0.1:26657"} +: ${NODE:="https://testnet-rpc.fiammachain.io"} : ${PROOF_FILE:=../../prover_examples/bitvm_challenge/proof.bitvm} : ${PUBLIC_INPUT_FILE:=../../prover_examples/bitvm_challenge/public_input.bitvm} : ${VK_FILE:=../../prover_examples/bitvm_challenge/vk.bitvm} diff --git a/scripts/cli/query_dasubmission_data.sh b/scripts/cli/query_dasubmission_data.sh index a933ffc..750c62c 100755 --- a/scripts/cli/query_dasubmission_data.sh +++ b/scripts/cli/query_dasubmission_data.sh @@ -3,7 +3,7 @@ set -e : ${CHAIN_ID:="fiamma-testnet-1"} -: ${NODE:="http://127.0.0.1:26657"} +: ${NODE:="https://testnet-rpc.fiammachain.io"} : ${PROOF_FILE:=../../prover_examples/bitvm/proof.bitvm} : ${PUBLIC_INPUT_FILE:=../../prover_examples/bitvm/public_input.bitvm} : ${VK_FILE:=../../prover_examples/bitvm/vk.bitvm} diff --git a/scripts/cli/query_dasubmission_quque.sh b/scripts/cli/query_dasubmission_quque.sh index 16a7890..2337e82 100755 --- a/scripts/cli/query_dasubmission_quque.sh +++ b/scripts/cli/query_dasubmission_quque.sh @@ -4,6 +4,6 @@ set -e : ${CHAIN_ID:="fiamma-testnet-1"} -: ${NODE:="http://127.0.0.1:26657"} +: ${NODE:="https://testnet-rpc.fiammachain.io"} fiammad query zkpverify get-da-submission-queue --node $NODE diff --git a/scripts/cli/query_dasubmission_result.sh b/scripts/cli/query_dasubmission_result.sh index 1972e66..530b10a 100755 --- a/scripts/cli/query_dasubmission_result.sh +++ b/scripts/cli/query_dasubmission_result.sh @@ -3,7 +3,7 @@ set -e : ${CHAIN_ID:="fiamma-testnet-1"} -: ${NODE:="http://127.0.0.1:26657"} +: ${NODE:="https://testnet-rpc.fiammachain.io"} : ${PROOF_FILE:=../../prover_examples/bitvm/proof.bitvm} : ${PUBLIC_INPUT_FILE:=../../prover_examples/bitvm/public_input.bitvm} : ${VK_FILE:=../../prover_examples/bitvm/vk.bitvm} diff --git a/scripts/cli/query_pending_proofs.sh b/scripts/cli/query_pending_proofs.sh index d72e420..1f9f115 100755 --- a/scripts/cli/query_pending_proofs.sh +++ b/scripts/cli/query_pending_proofs.sh @@ -4,6 +4,6 @@ set -e : ${CHAIN_ID:="fiamma-testnet-1"} -: ${NODE:="http://127.0.0.1:26657"} +: ${NODE:="https://testnet-rpc.fiammachain.io"} fiammad query zkpverify pending-proof --node $NODE diff --git a/scripts/cli/query_pending_proofs_by_namespace.sh b/scripts/cli/query_pending_proofs_by_namespace.sh index f1e12d5..543b73b 100755 --- a/scripts/cli/query_pending_proofs_by_namespace.sh +++ b/scripts/cli/query_pending_proofs_by_namespace.sh @@ -10,6 +10,6 @@ else NAMESPACE=$1 fi -: ${NODE:="http://127.0.0.1:26657"} +: ${NODE:="https://testnet-rpc.fiammachain.io"} fiammad query zkpverify pending-proof-by-namespace $NAMESPACE --node $NODE diff --git a/scripts/cli/query_proof_data_fiamma.sh b/scripts/cli/query_proof_data_fiamma.sh index f09c895..28c7ccd 100755 --- a/scripts/cli/query_proof_data_fiamma.sh +++ b/scripts/cli/query_proof_data_fiamma.sh @@ -4,7 +4,7 @@ set -e : ${CHAIN_ID:="fiamma-testnet-1"} -: ${NODE:="http://127.0.0.1:26657"} +: ${NODE:="https://testnet-rpc.fiammachain.io"} : ${PROOF_FILE:=../../prover_examples/bitvm/proof.bitvm} : ${PUBLIC_INPUT_FILE:=../../prover_examples/bitvm/public_input.bitvm} : ${VK_FILE:=../../prover_examples/bitvm/vk.bitvm} diff --git a/scripts/cli/query_verify_result.sh b/scripts/cli/query_verify_result.sh index 125e845..81765b8 100755 --- a/scripts/cli/query_verify_result.sh +++ b/scripts/cli/query_verify_result.sh @@ -4,7 +4,7 @@ set -e : ${CHAIN_ID:="fiamma-testnet-1"} -: ${NODE:="http://127.0.0.1:26657"} +: ${NODE:="https://testnet-rpc.fiammachain.io"} : ${PROOF_FILE:=../../prover_examples/bitvm/proof.bitvm} : ${PUBLIC_INPUT_FILE:=../../prover_examples/bitvm/public_input.bitvm} : ${VK_FILE:=../../prover_examples/bitvm/vk.bitvm} @@ -29,6 +29,5 @@ allDataHex="${NEW_NAMESPACE}${NEW_PROOF_SYSTEM}${NEW_PROOF}${NEW_PUBLIC_INPUT}${ proof_id=$(echo -n "$allDataHex" | xxd -r -p | sha256sum | awk '{print $1}') -echo $proof_id fiammad query zkpverify get-verify-result $proof_id --node $NODE diff --git a/scripts/cli/query_verify_results_by_namespace.sh b/scripts/cli/query_verify_results_by_namespace.sh index a3b3561..9a2e27f 100755 --- a/scripts/cli/query_verify_results_by_namespace.sh +++ b/scripts/cli/query_verify_results_by_namespace.sh @@ -11,7 +11,7 @@ else fi -: ${NODE:="http://127.0.0.1:26657"} +: ${NODE:="https://testnet-rpc.fiammachain.io"} fiammad query zkpverify get-verify-results-by-namespace $NAMESPACE --node $NODE diff --git a/scripts/cli/register_vk.sh b/scripts/cli/register_vk.sh index f34a5d9..34b3f6b 100755 --- a/scripts/cli/register_vk.sh +++ b/scripts/cli/register_vk.sh @@ -11,22 +11,25 @@ else fi : ${CHAIN_ID:="fiamma-testnet-1"} -: ${NODE:="http://127.0.0.1:26657"} +: ${NODE:="https://testnet-rpc.fiammachain.io"} -: ${GAS:=80000000} +: ${GAS:=70000} +: ${FEE:=140ufia} : ${VK_FILE:=../../prover_examples/bitvm/vk.bitvm} : ${VK_FILE_CHALLENGE:=../../prover_examples/bitvm_challenge/vk.bitvm} fiammad tx bitvmstaker register-vk \ - --from $ACCOUNT --chain-id $CHAIN_ID \ + --from $ACCOUNT --keyring-backend test --chain-id $CHAIN_ID \ --gas $GAS \ + --fees $FEE \ --node $NODE \ $VK_FILE sleep 2 fiammad tx bitvmstaker register-vk \ - --from $ACCOUNT --chain-id $CHAIN_ID \ + --from $ACCOUNT --keyring-backend test --chain-id $CHAIN_ID \ --gas $GAS \ + --fees $FEE \ --node $NODE \ $VK_FILE_CHALLENGE diff --git a/scripts/cli/stresser.sh b/scripts/cli/stresser.sh index 5dae91c..e10ed72 100755 --- a/scripts/cli/stresser.sh +++ b/scripts/cli/stresser.sh @@ -37,6 +37,8 @@ SEQUENCE=$(jq -r '.account.sequence' account_info.json) : ${PUBLIC_INPUT_FILE:=../../prover_examples/bitvm/public_input.bitvm} : ${VK_FILE:=../../prover_examples/bitvm/vk.bitvm} : ${PROOF_SYSTEM:="GROTH16_BN254_BITVM"} +: ${DATA_LOCATION:="FIAMMA"} +: ${NAMESPACE:="TEST"} rm account_info.json echo "Account: $ACCOUNT" @@ -50,15 +52,18 @@ do --chain-id $CHAIN_ID \ --fees 20ufia \ --offline \ - --gas 20000000 \ + --gas 60000000 \ + --fees 120000ufia \ --sequence $SEQUENCE \ --account-number $ACCOUNT_NUMBER \ --node $NODE_RPC \ --yes \ - "Fiamma" \ + $NAMESPACE \ $PROOF_SYSTEM \ $PROOF_FILE \ $PUBLIC_INPUT_FILE \ - $VK_FILE + $VK_FILE \ + $DATA_LOCATION + let SEQUENCE++ done diff --git a/scripts/cli/submit_community_verification.sh b/scripts/cli/submit_community_verification.sh index 91bb8b3..67fa371 100755 --- a/scripts/cli/submit_community_verification.sh +++ b/scripts/cli/submit_community_verification.sh @@ -11,11 +11,12 @@ else fi : ${CHAIN_ID:="fiamma-testnet-1"} -: ${NODE:="http://127.0.0.1:26657"} +: ${NODE:="https://testnet-rpc.fiammachain.io"} : ${PROOF_FILE:=../../prover_examples/bitvm/proof.bitvm} : ${PUBLIC_INPUT_FILE:=../../prover_examples/bitvm/public_input.bitvm} : ${VK_FILE:=../../prover_examples/bitvm/vk.bitvm} -: ${GAS:=80000000} +: ${GAS:=60000} +: ${FEE:=120ufia} : ${NAMESPACE:="TEST"} : ${PROOF_SYSTEM:="GROTH16_BN254_BITVM"} : ${DATA_LOCATION:="FIAMMA"} @@ -41,6 +42,7 @@ fiammad tx zkpverify submit-community-verification \ --from $ACCOUNT --chain-id $CHAIN_ID \ --gas $GAS \ --node $NODE \ + --fees $FEE \ --keyring-backend test \ $proof_id \ true \ diff --git a/scripts/cli/submit_proof.sh b/scripts/cli/submit_proof.sh index 1ceac7e..0eb03a2 100755 --- a/scripts/cli/submit_proof.sh +++ b/scripts/cli/submit_proof.sh @@ -11,8 +11,9 @@ else fi : ${CHAIN_ID:="fiamma-testnet-1"} -: ${NODE:="http://127.0.0.1:26657"} -: ${GAS:=80000000} +: ${NODE:="https://testnet-rpc.fiammachain.io"} +: ${GAS:=60000000} +: ${FEE:=120000ufia} : ${PROOF_FILE:=../../prover_examples/bitvm/proof.bitvm} : ${PUBLIC_INPUT_FILE:=../../prover_examples/bitvm/public_input.bitvm} : ${VK_FILE:=../../prover_examples/bitvm/vk.bitvm} @@ -26,6 +27,7 @@ fiammad tx zkpverify submit-proof \ --gas $GAS \ --node $NODE \ --keyring-backend test \ + --fees $FEE \ $NAMESPACE \ $PROOF_SYSTEM \ $PROOF_FILE \ diff --git a/scripts/cli/submit_proof_challenge.sh b/scripts/cli/submit_proof_challenge.sh index e6faafb..33abc11 100755 --- a/scripts/cli/submit_proof_challenge.sh +++ b/scripts/cli/submit_proof_challenge.sh @@ -11,8 +11,9 @@ else fi : ${CHAIN_ID:="fiamma-testnet-1"} -: ${NODE:="http://127.0.0.1:26657"} -: ${GAS:=80000000} +: ${NODE:="https://testnet-rpc.fiammachain.io"} +: ${GAS:=60000000} +: ${FEE:=120000ufia} : ${PROOF_FILE:=../../prover_examples/bitvm_challenge/proof.bitvm} : ${PUBLIC_INPUT_FILE:=../../prover_examples/bitvm_challenge/public_input.bitvm} : ${VK_FILE:=../../prover_examples/bitvm_challenge/vk.bitvm} @@ -25,6 +26,7 @@ fiammad tx zkpverify submit-proof \ --gas $GAS \ --node $NODE \ --keyring-backend test \ + --fees $FEE \ $NAMESPACE \ $PROOF_SYSTEM \ $PROOF_FILE \ diff --git a/scripts/setup_node.sh b/scripts/setup_node.sh index 4a05573..0401298 100755 --- a/scripts/setup_node.sh +++ b/scripts/setup_node.sh @@ -13,7 +13,7 @@ CHAIN_BINARY=fiammad : ${CHAIN_ID:="fiamma-testnet-1"} : ${MINIMUM_GAS_PRICES="0ufia"} -: ${PEER_ADDR="127.0.0.1"} +: ${PEER_ADDR="18.182.20.173, 35.73.202.182"} PEER_ARRAY=(${PEER_ADDR//,/ }) diff --git a/scripts/setup_validator.sh b/scripts/setup_validator.sh index 1463162..bcf4fcd 100755 --- a/scripts/setup_validator.sh +++ b/scripts/setup_validator.sh @@ -13,7 +13,7 @@ NODE_HOME=$HOME/.fiamma CHAIN_BINARY=fiammad : ${CHAIN_ID:="fiamma-testnet-1"} -: ${PEER_ADDR="127.0.0.1"} +: ${PEER_ADDR="18.182.20.173, 35.73.202.182"} VALIDATOR_KEY=$($CHAIN_BINARY tendermint show-validator) MONIKER=$($CHAIN_BINARY config get config moniker)