-
Notifications
You must be signed in to change notification settings - Fork 2
/
subgraph.template.yaml
188 lines (187 loc) · 5.22 KB
/
subgraph.template.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
specVersion: 0.0.5
description: BOB Ambient Subgraph
repository: https://github.com/DistributedCollective/bob-ambient-subgraph
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum
name: SdexSwapDex
network: {{network}}
source:
abi: SdexSwapDex
address: '{{SdexSwapDex.address}}'
startBlock: {{SdexSwapDex.startBlock}}
mapping:
kind: ethereum/events
apiVersion: 0.0.6
language: wasm/assemblyscript
entities:
- Swap
- Pool
- Position
- LiquidityChange
- KnockoutCross
abis:
- name: SdexSwapDex
file: ./abi/SdexSwapDex.json
eventHandlers:
- event: SdexSwap(indexed address,indexed address,uint256,bool,bool,uint128,uint16,uint128,uint128,uint8,int128,int128)
handler: handleDirectSwapEvent
file: ./src/mapping.ts
- kind: ethereum
name: HotProxy
network: {{network}}
source:
abi: HotProxy
address: '{{SdexSwapDex.address}}'
startBlock: {{SdexSwapDex.startBlock}}
mapping:
kind: ethereum/events
apiVersion: 0.0.6
language: wasm/assemblyscript
entities:
- Swap
abis:
- name: HotProxy
file: ./abi/HotProxy.json
eventHandlers:
- event: SdexHotCmd(bytes,int128,int128)
handler: handleHotProxyEvent
file: ./src/mapping.ts
- kind: ethereum
name: ColdPath
network: {{network}}
source:
abi: ColdPath
address: '{{SdexSwapDex.address}}'
startBlock: {{SdexSwapDex.startBlock}}
mapping:
kind: ethereum/events
apiVersion: 0.0.6
language: wasm/assemblyscript
entities:
- Pool
abis:
- name: ColdPath
file: ./abi/ColdPath.json
eventHandlers:
- event: SdexColdCmd(bytes)
handler: handleColdPathEvent
- event: SdexColdProtocolCmd(bytes)
handler: handleColdPathProtocolCmdEvent
file: ./src/mapping.ts
- kind: ethereum
name: WarmPath
network: {{network}}
source:
abi: WarmPath
address: '{{SdexSwapDex.address}}'
startBlock: {{SdexSwapDex.startBlock}}
mapping:
kind: ethereum/events
apiVersion: 0.0.6
language: wasm/assemblyscript
entities:
- Position
- LiquidityChange
abis:
- name: WarmPath
file: ./abi/WarmPath.json
eventHandlers:
- event: SdexWarmCmd(bytes,int128,int128)
handler: handleWarmPathEvent
file: ./src/mapping.ts
- kind: ethereum
name: WarmPathWithSender
network: {{network}}
source:
abi: WarmPathWithSender
address: '{{SdexSwapDex.address}}'
startBlock: {{SdexSwapDex.startBlock}}
mapping:
kind: ethereum/events
apiVersion: 0.0.6
language: wasm/assemblyscript
entities:
- Position
- LiquidityChange
abis:
- name: WarmPathWithSender
file: ./abi/WarmPathWithSender.json
eventHandlers:
- event: SdexWarmCmd(address,bytes,int128,int128)
handler: handleWarmPathEventWithSender
file: ./src/mapping.ts
- kind: ethereum
name: MicroPaths
network: {{network}}
source:
abi: MicroPaths
address: '{{SdexSwapDex.address}}'
startBlock: {{SdexSwapDex.startBlock}}
mapping:
kind: ethereum/events
apiVersion: 0.0.6
language: wasm/assemblyscript
entities:
- Swap
- Position
- LiquidityChange
abis:
- name: MicroPaths
file: ./abi/MicroPaths.json
eventHandlers:
- event: SdexMicroMintAmbient(bytes,bytes)
handler: handleMintAmbientEvent
- event: SdexMicroMintRange(bytes,bytes)
handler: handleMintRangeEvent
- event: SdexMicroBurnAmbient(bytes,bytes)
handler: handleBurnAmbientEvent
- event: SdexMicroBurnRange(bytes,bytes)
handler: handleBurnRangeEvent
- event: SdexMicroSwap(bytes,bytes)
handler: handleSweepSwapEvent
file: ./src/mapping.ts
- kind: ethereum
name: KnockoutLiqPath
network: {{network}}
source:
abi: KnockoutLiqPath
address: '{{SdexSwapDex.address}}'
startBlock: {{SdexSwapDex.startBlock}}
mapping:
kind: ethereum/events
apiVersion: 0.0.6
language: wasm/assemblyscript
entities:
- Position
- LiquidityChange
abis:
- name: KnockoutLiqPath
file: ./abi/KnockoutLiqPath.json
eventHandlers:
- event: SdexKnockoutCmd(bytes,int128,int128)
handler: handleKnockoutCmdEvent
file: ./src/mapping.ts
- kind: ethereum
name: KnockoutCounter
network: {{network}}
source:
abi: KnockoutCounter
address: '{{SdexSwapDex.address}}'
startBlock: {{SdexSwapDex.startBlock}}
mapping:
kind: ethereum/events
apiVersion: 0.0.6
language: wasm/assemblyscript
entities:
- KnockoutCross
- Position
- LiquidityChange
abis:
- name: KnockoutCounter
file: ./abi/KnockoutCounter.json
eventHandlers:
- event: SdexKnockoutCross(indexed bytes32,indexed int24,bool,uint32,uint64,uint160)
handler: handleKnockoutCross
file: ./src/mapping.ts