-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdexcandles-v2.eth.yaml
64 lines (63 loc) · 1.85 KB
/
dexcandles-v2.eth.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
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: mainnet
source:
address: "0xDC8d77b69155c7E68A95a4fb0f06a71FF90B943a"
abi: LBFactoryV21
startBlock: 17821282
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: mainnet
source:
abi: LBPairV21
startBlock: 17821282
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