-
Notifications
You must be signed in to change notification settings - Fork 2
/
dexcandles-v2.bsc.yaml
181 lines (176 loc) · 5.02 KB
/
dexcandles-v2.bsc.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
specVersion: 0.0.4
description: Joe-v2 trades candles (5m/15m/1h/4h/1d/1w)
repository: https://github.com/traderjoe-xyz/dexcandles-v2
schema:
file: ./dexcandles-v2.graphql
dataSources:
# V2.1 data sources
- kind: ethereum/contract
name: LBFactoryV21 # v2.1 factory
network: bsc
source:
address: "0x8e42f2F4101563bF679975178e880FD87d3eFd4e"
abi: LBFactoryV21
startBlock: 27099340
mapping:
kind: ethereum/events
apiVersion: 0.0.6
language: wasm/assemblyscript
entities:
- LBPairV21
- Token
abis:
- name: LBFactoryV21
file: ./abis/LBFactoryV21.json
- name: LBPairV21
file: ./abis/LBPairV21.json
- name: ERC20
file: ./abis/ERC20.json
- name: ERC20SymbolBytes
file: ./abis/ERC20SymbolBytes.json
- name: ERC20NameBytes
file: ./abis/ERC20NameBytes.json
eventHandlers:
- event: LBPairCreated(indexed address,indexed address,indexed uint256,address,uint256)
handler: handleLBPairCreatedV21
file: ./src/factory.ts
- kind: ethereum
name: LBPairV21 # v2.1 exchange
network: bsc
source:
abi: LBPairV21
startBlock: 27099340
mapping:
kind: ethereum/events
apiVersion: 0.0.6
language: wasm/assemblyscript
entities:
- Candle
- LBPairV21
- Token
abis:
- name: LBPairV21
file: ./abis/LBPairV21.json
- name: ERC20
file: ./abis/ERC20.json
- name: ERC20SymbolBytes
file: ./abis/ERC20SymbolBytes.json
- name: ERC20NameBytes
file: ./abis/ERC20NameBytes.json
eventHandlers:
- event: Swap(indexed address,indexed address,uint24,bytes32,bytes32,uint24,bytes32,bytes32)
handler: handleSwapV21
file: ./src/dexcandles-v2.ts
# V2 data sources
- kind: ethereum/contract
name: LBFactory # v2 factory
network: bsc
source:
address: "0x43646A8e839B2f2766392C1BF8f60F6e587B6960"
abi: LBFactory
startBlock: 26153438
mapping:
kind: ethereum/events
apiVersion: 0.0.6
language: wasm/assemblyscript
entities:
- LBPair
- Token
abis:
- name: LBFactory
file: ./abis/LBFactory.json
- name: LBPair
file: ./abis/LBPair.json
- name: ERC20
file: ./abis/ERC20.json
- name: ERC20SymbolBytes
file: ./abis/ERC20SymbolBytes.json
- name: ERC20NameBytes
file: ./abis/ERC20NameBytes.json
eventHandlers:
- event: LBPairCreated(indexed address,indexed address,indexed uint256,address,uint256)
handler: handleLBPairCreated
file: ./src/factory.ts
- kind: ethereum
name: LBPair # v2 exchange
network: bsc
source:
abi: LBPair
startBlock: 26153438
mapping:
kind: ethereum/events
apiVersion: 0.0.6
language: wasm/assemblyscript
entities:
- Candle
- LBPair
- Token
abis:
- name: LBPair
file: ./abis/LBPair.json
- name: ERC20
file: ./abis/ERC20.json
- name: ERC20SymbolBytes
file: ./abis/ERC20SymbolBytes.json
- name: ERC20NameBytes
file: ./abis/ERC20NameBytes.json
eventHandlers:
- event: Swap(indexed address,indexed address,indexed uint256,bool,uint256,uint256,uint256,uint256)
handler: handleSwapV2
file: ./src/dexcandles-v2.ts
# V1 data sources
- kind: ethereum/contract
name: Factory # v1 factory
network: bsc
source:
address: "0x4f8bdc85E3eec5b9dE67097c3f59B6Db025d9986"
abi: Factory
startBlock: 26142762
mapping:
kind: ethereum/events
apiVersion: 0.0.6
language: wasm/assemblyscript
entities:
- Pair
abis:
- name: Factory
file: ./abis/JoeFactory.json
- name: Pair
file: ./abis/JoePair.json
- name: ERC20
file: ./abis/ERC20.json
- name: ERC20SymbolBytes
file: ./abis/ERC20SymbolBytes.json
- name: ERC20NameBytes
file: ./abis/ERC20NameBytes.json
eventHandlers:
- event: PairCreated(indexed address,indexed address,address,uint256)
handler: handleV1PairCreated
file: ./src/factory.ts
- kind: ethereum
name: Pair # v1 exchange
network: bsc
source:
abi: Pair
startBlock: 26142762
mapping:
kind: ethereum/events
apiVersion: 0.0.6
language: wasm/assemblyscript
entities:
- Candle
- Pair
- Token
abis:
- name: Pair
file: ./abis/JoePair.json
- name: ERC20
file: ./abis/ERC20.json
- name: ERC20SymbolBytes
file: ./abis/ERC20SymbolBytes.json
- name: ERC20NameBytes
file: ./abis/ERC20NameBytes.json
eventHandlers:
- event: Swap(indexed address,uint256,uint256,uint256,uint256,indexed address)
handler: handleSwapV1
file: ./src/dexcandles-v2.ts