-
Notifications
You must be signed in to change notification settings - Fork 6
/
subgraph.yaml
241 lines (241 loc) · 9.3 KB
/
subgraph.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
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
specVersion: 0.0.4
description: Swaps made on ParaSwap
repository: https://github.com/paraswap/paraswap-subgraph
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum/contract
name: AugustusSwapperV0_1_0
network: mainnet
source:
address: "0x6b158039b9678b7452f311deb12dd08c579dad26"
abi: AugustusSwapperV0_1_0
startBlock: 8650194
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- Swap
abis:
- name: AugustusSwapperV0_1_0
file: ./abis/AugustusSwapperV0_1_0.json
eventHandlers:
- event: Payed(indexed address,indexed address,indexed address,uint256,uint256)
handler: handlePayed
- event: Swapped(indexed address,indexed address,indexed address,uint256,uint256)
handler: handleSwapped
file: ./src/mappingV0_1_0.ts
- kind: ethereum/contract
name: AugustusSwapperV0_2_0
network: mainnet
source:
address: "0x72338b82800400f5488eca2b5a37270ba3b7a111"
abi: AugustusSwapperV0_2_0
startBlock: 8920121
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- Swap
abis:
- name: AugustusSwapperV0_2_0
file: ./abis/AugustusSwapperV0_2_0.json
eventHandlers:
- event: Payed(indexed address,indexed address,indexed address,uint256,uint256)
handler: handlePayed
- event: Swapped(indexed address,indexed address,indexed address,uint256,uint256)
handler: handleSwapped
file: ./src/mappingV0_2_0.ts
- kind: ethereum/contract
name: AugustusSwapperV0_3_0
network: mainnet
source:
address: "0xf92c1ad75005e6436b4ee84e88cb23ed8a290988"
abi: AugustusSwapperV0_3_0
startBlock: 9116915
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- Swap
abis:
- name: AugustusSwapperV0_3_0
file: ./abis/AugustusSwapperV0_3_0.json
eventHandlers:
- event: Payed(indexed address,indexed address,indexed address,uint256,uint256,string)
handler: handlePayed
- event: Swapped(indexed address,indexed address,indexed address,uint256,uint256,string)
handler: handleSwapped
file: ./src/mappingV0_3_0.ts
- kind: ethereum/contract
name: AugustusSwapperV1
network: mainnet
source:
address: "0x86969d29f5fd327e1009ba66072be22db6017cc6"
abi: AugustusSwapperV1
startBlock: 10161180
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- Swap
abis:
- name: AugustusSwapperV1
file: ./abis/AugustusSwapperV1.json
eventHandlers:
- event: Swapped(address,indexed address,indexed address,indexed address,uint256,uint256,uint256,string)
handler: handleSwapped
- event: FeeTaken(uint256,uint256,uint256)
handler: handleFeeTaken
file: ./src/mappingV1.ts
- kind: ethereum/contract
name: AugustusSwapperV2
network: mainnet
source:
address: "0x9509665d015Bfe3C77AA5ad6Ca20C8Afa1d98989"
abi: AugustusSwapperV2
startBlock: 10952443
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- Swap
abis:
- name: AugustusSwapperV2
file: ./abis/AugustusSwapperV2.json
eventHandlers:
- event: Bought(address,indexed address,indexed address,indexed address,uint256,uint256,uint256,string)
handler: handleBought
- event: Swapped(address,indexed address,indexed address,indexed address,uint256,uint256,uint256,string)
handler: handleSwapped
- event: FeeTaken(uint256,uint256,uint256)
handler: handleFeeTaken
file: ./src/mappingV2.ts
- kind: ethereum/contract
name: AugustusSwapperV3
network: mainnet
source:
address: "0xf90e98F3D8Dce44632E5020ABF2E122E0f99DFAb"
abi: AugustusSwapperV3
startBlock: 11707760
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- Swap
abis:
- name: AugustusSwapperV3
file: ./abis/AugustusSwapperV3.json
eventHandlers:
- event: Bought(address,indexed address,indexed address,indexed address,uint256,uint256,string)
handler: handleBought
- event: Swapped(address,indexed address,indexed address,indexed address,uint256,uint256,uint256,string)
handler: handleSwapped
- event: FeeTaken(uint256,uint256,uint256)
handler: handleFeeTaken
file: ./src/mappingV3.ts
- kind: ethereum/contract
name: AugustusSwapperV4
network: mainnet
source:
address: "0x1bD435F3C054b6e901B7b108a0ab7617C808677b"
abi: AugustusSwapperV4
startBlock: 12161435
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- Swap
abis:
- name: AugustusSwapperV4
file: ./abis/AugustusSwapperV4.json
eventHandlers:
- event: Bought(address,indexed address,indexed address,indexed address,uint256,uint256,string)
handler: handleBought
- event: Swapped(address,indexed address,indexed address,indexed address,uint256,uint256,uint256,string)
handler: handleSwapped
- event: FeeTaken(uint256,uint256,uint256)
handler: handleFeeTaken
callHandlers:
- function: swapOnUniswap(uint256,uint256,address[],uint8)
handler: handleSwapOnUniswap
- function: swapOnUniswapFork(address,bytes32,uint256,uint256,address[],uint8)
handler: handleSwapOnUniswapFork
- function: buyOnUniswap(uint256,uint256,address[],uint8)
handler: handleBuyOnUniswap
- function: buyOnUniswapFork(address,bytes32,uint256,uint256,address[],uint8)
handler: handleBuyOnUniswapFork
file: ./src/mappingV4.ts
- kind: ethereum/contract
name: AugustusSwapperV5
network: mainnet
source:
address: "0xDEF171Fe48CF0115B1d80b88dc8eAB59176FEe57"
abi: AugustusSwapperV5
startBlock: 13049291
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- Swap
- ReferrerFee
- PartnerFee
abis:
- name: AugustusSwapperV5
file: ./abis/AugustusSwapperV5.json
- name: UniswapV2Pair
file: ./abis/UniswapV2Pair.json
eventHandlers:
- event: Swapped(bytes16,address,indexed address,indexed address,indexed address,uint256,uint256,uint256)
handler: handleSwapped
- event: Bought(bytes16,address,indexed address,indexed address,indexed address,uint256,uint256)
handler: handleBought
- event: Swapped2(bytes16,address,uint256,address,indexed address,indexed address,indexed address,uint256,uint256,uint256)
handler: handleSwapped2
- event: Bought2(bytes16,address,uint256,address,indexed address,indexed address,indexed address,uint256,uint256)
handler: handleBought2
- event: SwappedV3(bytes16,address,uint256,address,indexed address,indexed address,indexed address,uint256,uint256,uint256)
handler: handleSwappedV3
- event: BoughtV3(bytes16,address,uint256,address,indexed address,indexed address,indexed address,uint256,uint256,uint256)
handler: handleBoughtV3
- event: SwappedDirect(bytes16,address,uint256,address,uint8,indexed address,indexed address,indexed address,uint256,uint256,uint256)
handler: handleSwappedDirect
callHandlers:
- function: swapOnUniswap(uint256,uint256,address[])
handler: handleSwapOnUniswap
- function: swapOnUniswapFork(address,bytes32,uint256,uint256,address[])
handler: handleSwapOnUniswapFork
- function: buyOnUniswap(uint256,uint256,address[])
handler: handleBuyOnUniswap
- function: buyOnUniswapFork(address,bytes32,uint256,uint256,address[])
handler: handleBuyOnUniswapFork
- function: swapOnUniswapV2Fork(address,uint256,uint256,address,uint256[])
handler: handleSwapOnUniswapV2Fork
- function: swapOnUniswapV2ForkWithPermit(address,uint256,uint256,address,uint256[],bytes)
handler: handleSwapOnUniswapV2ForkWithPermit
- function: buyOnUniswapV2Fork(address,uint256,uint256,address,uint256[])
handler: handleBuyOnUniswapV2Fork
- function: buyOnUniswapV2ForkWithPermit(address,uint256,uint256,address,uint256[],bytes)
handler: handleBuyOnUniswapV2ForkWithPermit
- function: swapOnZeroXv2(address,address,uint256,uint256,address,bytes)
handler: handleSwapOnZeroXv2
- function: swapOnZeroXv2WithPermit(address,address,uint256,uint256,address,bytes,bytes)
handler: handleSwapOnZeroXv2WithPermit
- function: swapOnZeroXv4(address,address,uint256,uint256,address,bytes)
handler: handleSwapOnZeroXv4
- function: swapOnZeroXv4WithPermit(address,address,uint256,uint256,address,bytes,bytes)
handler: handleSwapOnZeroXv4WithPermit
file: ./src/mappingV5.ts
features:
- grafting
graft:
base: QmdHs4YF6gnBWwfDmVDeYapTFrDY799vhRgTDqmo4MR3WR
block: 17472048