-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c4bca7c
commit 4a823dd
Showing
5 changed files
with
204 additions
and
7 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,97 @@ | ||
name: Deploy Pools Subgraphs | ||
on: | ||
push: | ||
branches: main | ||
|
||
jobs: | ||
deploy-mainnet: | ||
runs-on: ubuntu-latest | ||
environment: graph | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Install node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
- name: Install pnpm | ||
uses: pnpm/action-setup@v2 | ||
with: | ||
version: 8 | ||
- name: Install dependencies | ||
run: pnpm install | ||
- name: Graph Codegen | ||
working-directory: subgraphs/v3-pools | ||
run: pnpm codegen subgraph.yaml | ||
- name: Graph Build | ||
working-directory: subgraphs/v3-pools | ||
run: pnpm build subgraph.yaml | ||
- name: Graph Deploy | ||
working-directory: subgraphs/v3-pools | ||
run: > | ||
pnpm graph deploy | ||
--deploy-key ${{secrets.GRAPH_DEPLOY_KEY}} | ||
balancer-pools-v3 | ||
subgraph.yaml | ||
--version-label ${GITHUB_SHA::8} | ||
deploy-gnosis: | ||
runs-on: ubuntu-latest | ||
environment: graph | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Install node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
- name: Install pnpm | ||
uses: pnpm/action-setup@v2 | ||
with: | ||
version: 8 | ||
- name: Install dependencies | ||
run: pnpm install | ||
- name: Graph Codegen | ||
working-directory: subgraphs/v3-pools | ||
run: pnpm codegen subgraph.gnosis.yaml | ||
- name: Graph Build | ||
working-directory: subgraphs/v3-pools | ||
run: pnpm build subgraph.gnosis.yaml | ||
- name: Graph Deploy | ||
working-directory: subgraphs/v3-pools | ||
run: > | ||
pnpm graph deploy | ||
--deploy-key ${{secrets.GRAPH_DEPLOY_KEY}} | ||
balancer-pools-v3-gnosis | ||
subgraph.gnosis.yaml | ||
--version-label ${GITHUB_SHA::8} | ||
deploy-sepolia: | ||
runs-on: ubuntu-latest | ||
environment: graph | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Install node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
- name: Install pnpm | ||
uses: pnpm/action-setup@v2 | ||
with: | ||
version: 8 | ||
- name: Install dependencies | ||
run: pnpm install | ||
- name: Generate manifests | ||
run: pnpm generate-manifests | ||
- name: Graph Codegen | ||
working-directory: subgraphs/v3-pools | ||
run: pnpm codegen subgraph.sepolia.yaml | ||
- name: Graph Build | ||
working-directory: subgraphs/v3-pools | ||
run: pnpm build subgraph.sepolia.yaml | ||
- name: Graph Deploy | ||
working-directory: subgraphs/v3-pools | ||
run: > | ||
pnpm graph deploy | ||
--deploy-key ${{secrets.GRAPH_DEPLOY_KEY}} | ||
balancer-pools-v3-sepolia | ||
subgraph.sepolia.yaml | ||
--version-label ${GITHUB_SHA::8} |
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: Deploy Graph Studio Prod | ||
name: Deploy Vault Subgraphs | ||
on: | ||
push: | ||
branches: main | ||
|
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 |
---|---|---|
@@ -0,0 +1,50 @@ | ||
specVersion: 1.0.0 | ||
schema: | ||
file: ./schema.graphql | ||
dataSources: | ||
- kind: ethereum | ||
name: WeightedPoolFactory | ||
network: sepolia | ||
source: | ||
abi: BasePoolFactory | ||
address: "0x7532d5a3bE916e4a4D900240F49F0BABd4FD855C" | ||
startBlock: 7216947 | ||
mapping: | ||
kind: ethereum/events | ||
apiVersion: 0.0.7 | ||
language: wasm/assemblyscript | ||
entities: | ||
- Factory | ||
- Pool | ||
abis: | ||
- name: WeightedPool | ||
file: ./abis/WeightedPool.json | ||
- name: BasePoolFactory | ||
file: ./abis/BasePoolFactory.json | ||
eventHandlers: | ||
- event: PoolCreated(indexed address) | ||
handler: handleWeightedPoolCreated | ||
file: ./src/mappings/weighted.ts | ||
- kind: ethereum | ||
name: StablePoolFactory | ||
network: sepolia | ||
source: | ||
abi: BasePoolFactory | ||
address: "0xd67F485C07D258B3e93835a3799d862ffcB55923" | ||
startBlock: 7217020 | ||
mapping: | ||
kind: ethereum/events | ||
apiVersion: 0.0.7 | ||
language: wasm/assemblyscript | ||
entities: | ||
- Factory | ||
- Pool | ||
abis: | ||
- name: StablePool | ||
file: ./abis/StablePool.json | ||
- name: BasePoolFactory | ||
file: ./abis/BasePoolFactory.json | ||
eventHandlers: | ||
- event: PoolCreated(indexed address) | ||
handler: handleStablePoolCreated | ||
file: ./src/mappings/stable.ts |
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,50 @@ | ||
specVersion: 1.0.0 | ||
schema: | ||
file: ./schema.graphql | ||
dataSources: | ||
- kind: ethereum | ||
name: WeightedPoolFactory | ||
network: mainnet | ||
source: | ||
abi: BasePoolFactory | ||
address: "0x201efd508c8DfE9DE1a13c2452863A78CB2a86Cc" | ||
startBlock: 21336937 | ||
mapping: | ||
kind: ethereum/events | ||
apiVersion: 0.0.7 | ||
language: wasm/assemblyscript | ||
entities: | ||
- Factory | ||
- Pool | ||
abis: | ||
- name: WeightedPool | ||
file: ./abis/WeightedPool.json | ||
- name: BasePoolFactory | ||
file: ./abis/BasePoolFactory.json | ||
eventHandlers: | ||
- event: PoolCreated(indexed address) | ||
handler: handleWeightedPoolCreated | ||
file: ./src/mappings/weighted.ts | ||
- kind: ethereum | ||
name: StablePoolFactory | ||
network: mainnet | ||
source: | ||
abi: BasePoolFactory | ||
address: "0xB9d01CA61b9C181dA1051bFDd28e1097e920AB14" | ||
startBlock: 21337005 | ||
mapping: | ||
kind: ethereum/events | ||
apiVersion: 0.0.7 | ||
language: wasm/assemblyscript | ||
entities: | ||
- Factory | ||
- Pool | ||
abis: | ||
- name: StablePool | ||
file: ./abis/StablePool.json | ||
- name: BasePoolFactory | ||
file: ./abis/BasePoolFactory.json | ||
eventHandlers: | ||
- event: PoolCreated(indexed address) | ||
handler: handleStablePoolCreated | ||
file: ./src/mappings/stable.ts |