Skip to content

Commit

Permalink
Merge pull request #703 from clrfund/feat/parameterize-finalize-job
Browse files Browse the repository at this point in the history
Parameterize the finalize job action
  • Loading branch information
yuetloo authored Jul 21, 2023
2 parents 50d93d4 + a4f3846 commit 2ba7b47
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
17 changes: 15 additions & 2 deletions .github/workflows/finalize-round.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,19 @@
name: Finalize a test round

on: workflow_dispatch
on:
workflow_dispatch:
inputs:
branch_name:
description: 'Clrfund branch name'
required: true
default: 'develop'
subgraph_name:
description: 'Clrfund subgraph name'
required: true
default: 'yuetloo/clrfund-dev'

env:
NODE_VERSION: 16.x
SUBGRPAH_URL: "https://api.thegraph.com/subgraphs/name/clrfund/clrfund-arbitrum-goerli"
NETWORK: "arbitrum-goerli"
COORDINATOR_ETH_PK: ${{ secrets.ARBITRUM_GOERLI_COORDINATOR_WALLET_PRIVATE_KEY }}
COORDINATOR_PK: ${{ secrets.ARBITRUM_GOERLI_COORDINATOR_MACI_PRIVATE_KEY }}
Expand Down Expand Up @@ -33,6 +42,8 @@ jobs:
cargo install zkutil --version 0.3.2
- name: Checkout source code
uses: actions/checkout@v3
with:
ref: ${{ github.event.inputs.branch_name }}
- name: Download batch 64 params
run: |
ls -la $GITHUB_WORKSPACE
Expand All @@ -42,6 +53,8 @@ jobs:
yarn && yarn build
- name: Run finalize scripts
run: |
export SUBGRPAH_URL="https://api.thegraph.com/subgraphs/name/${{ github.event.inputs.subgraph_name }}"
echo $SUBGRAPH_URL
export NODE_CONFIG=$(node -e "const snarkParamsPath=process.env.GITHUB_WORKSPACE + '/params'; console.log(JSON.stringify({ snarkParamsPath }));")
export ROUND=$(curl -X POST -d '{"query":"{fundingRoundFactories {id currentRound {id maci}}}"}' $SUBGRPAH_URL)
export FACTORY_ADDRESS=$(node -e 'console.log(JSON.parse(process.env.ROUND).data.fundingRoundFactories[0].id)')
Expand Down
3 changes: 2 additions & 1 deletion docs/tally-verify.md
Original file line number Diff line number Diff line change
Expand Up @@ -243,9 +243,10 @@ After finalizing the round, enable the leaderboard view in the vue-app by export
```sh
cd contracts

yarn hardhat fetch-round --output-dir ../vue-app/src/rounds --network xdai --round-address <round address>
yarn hardhat fetch-round --output-dir ../vue-app/src/rounds --network xdai --round-address <round address> --operator <operator>

```
3) Build and deploy the app



Expand Down

0 comments on commit 2ba7b47

Please sign in to comment.