Skip to content

Commit

Permalink
deploy pools subgraph
Browse files Browse the repository at this point in the history
  • Loading branch information
mendesfabio committed Dec 6, 2024
1 parent c4bca7c commit 4a823dd
Show file tree
Hide file tree
Showing 5 changed files with 204 additions and 7 deletions.
97 changes: 97 additions & 0 deletions .github/workflows/graph-pools.yml
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}
2 changes: 1 addition & 1 deletion .github/workflows/graph-vault.yml
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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ schema:
dataSources:
- kind: ethereum
name: WeightedPoolFactory
network: {{ network }}
network: gnosis
source:
abi: BasePoolFactory
address: "{{ WeightedPoolFactory.address }}"
startBlock: {{ WeightedPoolFactory.startBlock }}
address: "0xEB1eeaBF0126d813589C3D2CfeFFE410D9aE3863"
startBlock: 37371691
mapping:
kind: ethereum/events
apiVersion: 0.0.7
Expand All @@ -27,11 +27,11 @@ dataSources:
file: ./src/mappings/weighted.ts
- kind: ethereum
name: StablePoolFactory
network: {{ network }}
network: gnosis
source:
abi: BasePoolFactory
address: "{{ StablePoolFactory.address }}"
startBlock: {{ StablePoolFactory.startBlock }}
address: "0x22625eEDd92c81a219A83e1dc48f88d54786B017"
startBlock: 37371860
mapping:
kind: ethereum/events
apiVersion: 0.0.7
Expand Down
50 changes: 50 additions & 0 deletions subgraphs/v3-pools/subgraph.sepolia.yaml
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
50 changes: 50 additions & 0 deletions subgraphs/v3-pools/subgraph.yaml
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

0 comments on commit 4a823dd

Please sign in to comment.