Skip to content

Commit ae1e4ab

Browse files
authored
Merge pull request #21 from balancer/sonic-stablesurge
add sonic stablesurge
2 parents e8cce80 + 5c8f539 commit ae1e4ab

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

networks.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,10 @@
133133
"StablePoolFactory": {
134134
"address": "0x815Ab57a5a2E4976cEC0b43C2D50CF26EF6F31Fd",
135135
"startBlock": 381473
136+
},
137+
"StableSurgeHook": {
138+
"address": "0x8A83Aa9bb7C4Cff14ae0aEcec0fB9ef234901c0C",
139+
"startBlock": 8689860
136140
}
137141
}
138142
}

subgraphs/v3-pools/subgraph.sonic.yaml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,3 +48,26 @@ dataSources:
4848
- event: PoolCreated(indexed address)
4949
handler: handleStablePoolCreated
5050
file: ./src/mappings/stable.ts
51+
- kind: ethereum
52+
name: StableSurgeHook
53+
network: sonic
54+
source:
55+
abi: StableSurgeHook
56+
address: "0x8A83Aa9bb7C4Cff14ae0aEcec0fB9ef234901c0C"
57+
startBlock: 8689860
58+
mapping:
59+
kind: ethereum/events
60+
apiVersion: 0.0.7
61+
language: wasm/assemblyscript
62+
entities:
63+
- Factory
64+
- Pool
65+
abis:
66+
- name: StablePool
67+
file: ./abis/StablePool.json
68+
- name: StableSurgeHook
69+
file: ./abis/StableSurgeHook.json
70+
eventHandlers:
71+
- event: StableSurgeHookRegistered(indexed address,indexed address)
72+
handler: handleStableSurgeHookRegistered
73+
file: ./src/mappings/surge.ts

0 commit comments

Comments
 (0)