Skip to content

Commit

Permalink
fix: remove da submission check
Browse files Browse the repository at this point in the history
  • Loading branch information
fiamma-builder committed Oct 30, 2024
1 parent f0ccaf4 commit 5d7cd34
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 23 deletions.
6 changes: 3 additions & 3 deletions scripts/cli/register_vk.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,21 @@ fi

: ${CHAIN_ID:="fiamma-testnet-1"}
: ${NODE:="http://127.0.0.1:26657"}
: ${FEES:=2000ufia}

: ${GAS:=80000000}
: ${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 \
--gas $GAS --fees $FEES \
--gas $GAS \
--node $NODE \
$VK_FILE

sleep 2

fiammad tx bitvmstaker register-vk \
--from $ACCOUNT --chain-id $CHAIN_ID \
--gas $GAS --fees $FEES \
--gas $GAS \
--node $NODE \
$VK_FILE_CHALLENGE
3 changes: 1 addition & 2 deletions scripts/cli/submit_community_verification.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ fi
: ${PROOF_FILE:=../../prover_examples/bitvm/proof.bitvm}
: ${PUBLIC_INPUT_FILE:=../../prover_examples/bitvm/public_input.bitvm}
: ${VK_FILE:=../../prover_examples/bitvm/vk.bitvm}
: ${FEES:=2000ufia}
: ${GAS:=80000000}
: ${NAMESPACE:="TEST"}
: ${PROOF_SYSTEM:="GROTH16_BN254_BITVM"}
Expand All @@ -40,7 +39,7 @@ proof_id=$(echo -n "$allDataHex" | xxd -r -p | sha256sum | awk '{print $1}')

fiammad tx zkpverify submit-community-verification \
--from $ACCOUNT --chain-id $CHAIN_ID \
--gas $GAS --fees $FEES \
--gas $GAS \
--node $NODE \
--keyring-backend test \
$proof_id \
Expand Down
5 changes: 2 additions & 3 deletions scripts/cli/submit_proof.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,18 @@ fi

: ${CHAIN_ID:="fiamma-testnet-1"}
: ${NODE:="http://127.0.0.1:26657"}
: ${FEES:=2000ufia}
: ${GAS:=80000000}
: ${PROOF_FILE:=../../prover_examples/bitvm/proof.bitvm}
: ${PUBLIC_INPUT_FILE:=../../prover_examples/bitvm/public_input.bitvm}
: ${VK_FILE:=../../prover_examples/bitvm/vk.bitvm}
: ${PROOF_SYSTEM:="GROTH16_BN254_BITVM"}
: ${NAMESPACE:="TEST"}
: ${DATA_LOCATION:="CELESTIA"}
: ${DATA_LOCATION:="FIAMMA"}


fiammad tx zkpverify submit-proof \
--from $ACCOUNT --chain-id $CHAIN_ID \
--gas $GAS --fees $FEES \
--gas $GAS \
--node $NODE \
--keyring-backend test \
$NAMESPACE \
Expand Down
5 changes: 2 additions & 3 deletions scripts/cli/submit_proof_challenge.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,17 @@ fi

: ${CHAIN_ID:="fiamma-testnet-1"}
: ${NODE:="http://127.0.0.1:26657"}
: ${FEES:=2000ufia}
: ${GAS:=80000000}
: ${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}
: ${NAMESPACE:="TEST"}
: ${PROOF_SYSTEM:="GROTH16_BN254_BITVM"}
: ${DATA_LOCATION:="FIAMMA"}
: ${DATA_LOCATION:="CELESTIA"}

fiammad tx zkpverify submit-proof \
--from $ACCOUNT --chain-id $CHAIN_ID \
--gas $GAS --fees $FEES \
--gas $GAS \
--node $NODE \
--keyring-backend test \
$NAMESPACE \
Expand Down
12 changes: 0 additions & 12 deletions x/zkpverify/types/msg_dasubmission_results.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,6 @@ func (msg *MsgUpdateDASubmissionResults) ValidateBasic() error {
if result.ProofId == "" {
return ErrInvalidProofId
}
if result.BlockHash == "" {
return ErrInvalidBlockHash
}
if result.BlockHeight == 0 {
return ErrInvalidBlockHeight
}
if result.Namespace == "" {
return ErrInvalidNamespace
}
if result.TxHash == "" {
return ErrInvalidTxHash
}
}
return nil
}

0 comments on commit 5d7cd34

Please sign in to comment.