Skip to content

Commit f8ffba1

Browse files
authored
Merge pull request #34 from balancer/deploy-avax
deploy to avax
2 parents 0cabd9c + 6f56557 commit f8ffba1

File tree

4 files changed

+66
-0
lines changed

4 files changed

+66
-0
lines changed

.github/workflows/deploy-v3-pools.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,3 +58,12 @@ jobs:
5858
manifest-file: subgraph.sonic.yaml
5959
secrets:
6060
GRAPH_DEPLOY_KEY: ${{ secrets.GRAPH_DEPLOY_KEY }}
61+
62+
deploy-avalanche:
63+
uses: ./.github/workflows/deploy-subgraph.yml
64+
with:
65+
working-directory: subgraphs/v3-pools
66+
subgraph-name: balancer-pools-v3-avalanche
67+
manifest-file: subgraph.avalanche.yaml
68+
secrets:
69+
GRAPH_DEPLOY_KEY: ${{ secrets.GRAPH_DEPLOY_KEY }}

.github/workflows/deploy-v3-vault.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,5 +56,14 @@ jobs:
5656
working-directory: subgraphs/v3-vault
5757
subgraph-name: balancer-v3-sonic
5858
manifest-file: subgraph.sonic.yaml
59+
secrets:
60+
GRAPH_DEPLOY_KEY: ${{ secrets.GRAPH_DEPLOY_KEY }}
61+
62+
deploy-avalanche:
63+
uses: ./.github/workflows/deploy-subgraph.yml
64+
with:
65+
working-directory: subgraphs/v3-vault
66+
subgraph-name: balancer-v3-avalanche
67+
manifest-file: subgraph.avalanche.yaml
5968
secrets:
6069
GRAPH_DEPLOY_KEY: ${{ secrets.GRAPH_DEPLOY_KEY }}

subgraphs/v3-pools/subgraph.avalanche.yaml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,29 @@ dataSources:
2525
- event: PoolCreated(indexed address)
2626
handler: handleWeightedPoolCreated
2727
file: ./src/mappings/weighted.ts
28+
- kind: ethereum
29+
name: StablePoolV2Factory
30+
network: avalanche
31+
source:
32+
abi: BasePoolFactory
33+
address: "0x1702067424096F07A60e62cceE3dE9420068492D"
34+
startBlock: 59395784
35+
mapping:
36+
kind: ethereum/events
37+
apiVersion: 0.0.7
38+
language: wasm/assemblyscript
39+
entities:
40+
- Factory
41+
- Pool
42+
abis:
43+
- name: StablePool
44+
file: ./abis/StablePool.json
45+
- name: BasePoolFactory
46+
file: ./abis/BasePoolFactory.json
47+
eventHandlers:
48+
- event: PoolCreated(indexed address)
49+
handler: handleStablePoolCreated
50+
file: ./src/mappings/stable.ts
2851
- kind: ethereum
2952
name: GyroECLPPoolFactory
3053
network: avalanche

subgraphs/v3-pools/template.yaml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,31 @@ dataSources:
5252
handler: handleStablePoolCreated
5353
file: ./src/mappings/stable.ts
5454
{{/if}}
55+
{{#if StablePoolV2Factory}}
56+
- kind: ethereum
57+
name: StablePoolV2Factory
58+
network: {{ network }}
59+
source:
60+
abi: BasePoolFactory
61+
address: "{{ StablePoolV2Factory.address }}"
62+
startBlock: {{ StablePoolV2Factory.startBlock }}
63+
mapping:
64+
kind: ethereum/events
65+
apiVersion: 0.0.7
66+
language: wasm/assemblyscript
67+
entities:
68+
- Factory
69+
- Pool
70+
abis:
71+
- name: StablePool
72+
file: ./abis/StablePool.json
73+
- name: BasePoolFactory
74+
file: ./abis/BasePoolFactory.json
75+
eventHandlers:
76+
- event: PoolCreated(indexed address)
77+
handler: handleStablePoolCreated
78+
file: ./src/mappings/stable.ts
79+
{{/if}}
5580
{{#if Gyro2CLPPoolFactory}}
5681
- kind: ethereum
5782
name: Gyro2CLPPoolFactory

0 commit comments

Comments
 (0)