-
Notifications
You must be signed in to change notification settings - Fork 39
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 #3017 from humanprotocol/develop
Release 2025-02-05
- Loading branch information
Showing
605 changed files
with
5,912 additions
and
5,127 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,24 @@ | ||
# Common file for apps that rely on root context | ||
.git | ||
.github | ||
.husky | ||
audits | ||
docs | ||
scripts | ||
**/node_modules | ||
**/build | ||
**/dist | ||
|
||
# Core package artifacts | ||
# Hardhat files | ||
**/abis | ||
**/artifacts | ||
**/cache | ||
**/.deps | ||
# TypeScript bindings output directory | ||
**/typechain-types | ||
|
||
# Docker-related | ||
.dockerignore | ||
**/Dockerfile* | ||
**/docker-compose* |
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
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
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 |
---|---|---|
|
@@ -6,6 +6,9 @@ on: | |
label: | ||
description: 'New version label' | ||
required: true | ||
networks: | ||
description: 'Comma-separated list of networks to deploy' | ||
required: true | ||
|
||
jobs: | ||
subgraph: | ||
|
@@ -15,41 +18,59 @@ jobs: | |
matrix: | ||
network: | ||
- name: amoy | ||
- name: avalanche | ||
- name: bsc-testnet | ||
- name: bsc | ||
- name: celo-alfajores | ||
- name: celo | ||
- name: ethereum | ||
- name: fuji | ||
- name: moonbase-alpha | ||
- name: moonbeam | ||
- name: polygon | ||
- name: sepolia | ||
- name: xlayer-testnet | ||
- name: xlayer | ||
fail-fast: true | ||
max-parallel: 3 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- run: npm install --global yarn && yarn --ignore-scripts | ||
- name: Set up Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: '18.20.1' | ||
- name: Filter Networks | ||
id: filter_networks | ||
run: | | ||
INPUT_NETWORKS="${{ github.event.inputs.networks }}" | ||
IFS=',' read -ra NETWORK_LIST <<< "$INPUT_NETWORKS" | ||
echo "Input networks: $INPUT_NETWORKS" | ||
echo "Current matrix network: ${{ matrix.network.name }}" | ||
MATCH=false | ||
for network in "${NETWORK_LIST[@]}"; do | ||
if [[ "${network}" == "${{ matrix.network.name }}" ]]; then | ||
MATCH=true | ||
break | ||
fi | ||
done | ||
echo "Match found: $MATCH" | ||
echo "::set-output name=continue::$MATCH" | ||
- run: npm install --global yarn && yarn | ||
name: Install dependencies | ||
if: steps.filter_networks.outputs.continue == 'true' | ||
- run: yarn build | ||
name: Build core package | ||
working-directory: ./packages/core | ||
- run: yarn global add @graphprotocol/graph-cli | ||
if: steps.filter_networks.outputs.continue == 'true' | ||
- run: yarn global add @graphprotocol/[email protected] | ||
name: Install Graph CLI | ||
if: steps.filter_networks.outputs.continue == 'true' | ||
- run: graph auth --studio ${API_KEY} | ||
name: Authenticate Graph CLI | ||
env: | ||
API_KEY: ${{ secrets.HP_GRAPH_API_KEY }} | ||
if: steps.filter_networks.outputs.continue == 'true' | ||
- run: yarn generate && yarn build | ||
name: Generate and build Subgraph | ||
working-directory: ./packages/sdk/typescript/subgraph | ||
env: | ||
NETWORK: ${{ matrix.network.name }} | ||
if: steps.filter_networks.outputs.continue == 'true' | ||
- run: graph deploy --studio ${NETWORK} -l ${{ github.event.inputs.label }} | ||
name: Deploy Subgraph | ||
working-directory: ./packages/sdk/typescript/subgraph | ||
env: | ||
NETWORK: ${{ matrix.network.name }} | ||
if: steps.filter_networks.outputs.continue == 'true' |
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
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
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
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
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
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
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.