-
Notifications
You must be signed in to change notification settings - Fork 146
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #780 from graphprotocol/pcv/l2-linear-rewards-merg…
…e-dev-2 linear rewards: merge dev and fix goerli config
- Loading branch information
Showing
12 changed files
with
876 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
name: Verify deployed contracts | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
contracts: | ||
description: 'List of deployed contracts to verify (space delimited)' | ||
required: true | ||
type: string | ||
network: | ||
description: 'Network where the contracts are deployed' | ||
required: true | ||
type: choice | ||
default: mainnet | ||
options: | ||
- mainnet | ||
- arbitrum-one | ||
- goerli | ||
- arbitrum-goerli | ||
|
||
jobs: | ||
build: | ||
name: Compile contracts | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: '16' | ||
cache: 'yarn' | ||
- run: yarn install --non-interactive --frozen-lockfile | ||
|
||
- name: Compile contracts | ||
run: yarn build | ||
|
||
- name: Save build artifacts | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: contract-artifacts | ||
path: | | ||
build | ||
cache/*.json | ||
verify: | ||
name: Verify deployments | ||
runs-on: ubuntu-latest | ||
needs: build | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: '16' | ||
cache: 'yarn' | ||
- run: yarn install --non-interactive --frozen-lockfile | ||
- name: Get build artifacts | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: contract-artifacts | ||
|
||
- name: Verify contracts on Defender | ||
run: yarn hardhat --network ${{ inputs.network }} verify-defender ${{ inputs.contracts }} | ||
env: | ||
DEFENDER_API_KEY: "${{ secrets.DEFENDER_API_KEY }}" | ||
DEFENDER_API_SECRET: "${{ secrets.DEFENDER_API_SECRET }}" | ||
INFURA_KEY: "${{ secrets.INFURA_KEY }}" | ||
WORKFLOW_URL: "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.