Skip to content

Commit

Permalink
remove tally script
Browse files Browse the repository at this point in the history
  • Loading branch information
yuetloo committed Apr 4, 2024
1 parent e7df7a8 commit 3df43e0
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 361 deletions.
18 changes: 13 additions & 5 deletions .github/workflows/finalize-round.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,14 +79,22 @@ jobs:
export BLOCKS_PER_BATCH=${{ github.event.inputs.blocks_per_batch }}
export RAPID_SNARK="$GITHUB_WORKSPACE/rapidsnark/package/bin/prover"
export CIRCUIT_DIRECTORY=$GITHUB_WORKSPACE/params
export PROOF_OUTPUT_DIR=./proof_output
# tally and finalize
cd monorepo/contracts
mkdir -p proof_output
yarn hardhat tally --clrfund "${CLRFUND_ADDRESS}" --network "${NETWORK}" \
--rapidsnark ${RAPID_SNARK} \
--circuit-directory ${CIRCUIT_DIRECTORY} \
mkdir -p ${PROOF_OUTPUT_DIR}
yarn gen-proofs --clrfund "${CLRFUND_ADDRESS}" \
--blocks-per-batch ${BLOCKS_PER_BATCH} \
--maci-tx-hash "${MACI_TX_HASH}" --output-dir "./proof_output"
--rapidsnark ${RAPID_SNARK} \
--maci-tx-hash "${MACI_TX_HASH}" \
--proof-dir ${PROOF_OUTPUT_DIR} \
--network "${NETWORK}"
yarn hardhat prove-on-chain --clrfund "${CLRFUND_ADDRESS}" \
--proof-dir ${PROOF_OUTPUT_DIR} \
--network "${NETWORK}"
yarn hardhat publish-tally-results --clrfund "${CLRFUND_ADDRESS}" \
--proof-dir ${PROOF_OUTPUT_DIR} \
--network "${NETWORK}"
curl --location --request POST 'https://api.pinata.cloud/pinning/pinFileToIPFS' \
--header "Authorization: Bearer ${{ secrets.PINATA_JWT }}" \
--form 'file=@"./proof_output/tally.json"'
Expand Down
2 changes: 1 addition & 1 deletion contracts/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ JSONRPC_HTTP_URL=https://eth-goerli.alchemyapi.io/v2/ADD_API_KEY
WALLET_MNEMONIC=
WALLET_PRIVATE_KEY=

# The coordinator MACI private key, required by the tally script
# The coordinator MACI private key, required by the gen-proofs script
COORDINATOR_MACISK=

# API key used to verify contracts on arbitrum chain (including testnet)
Expand Down
1 change: 0 additions & 1 deletion contracts/tasks/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import './runners/setMaciParameters'
import './runners/setToken'
import './runners/setUserRegistry'
import './runners/setStorageRoot'
import './runners/tally'
import './runners/finalize'
import './runners/claim'
import './runners/cancel'
Expand Down
353 changes: 0 additions & 353 deletions contracts/tasks/runners/tally.ts

This file was deleted.

Loading

0 comments on commit 3df43e0

Please sign in to comment.