forked from raydex-org/raydex-subgraph-dexcandles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
subgraph.yaml
47 lines (47 loc) · 1.24 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
specVersion: 0.0.2
description: DEX trades candles (5m/15m/1h/4h/1d/1w)
repository: https://github.com/raydex-org/raydex-subgraph-dexcandles
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum/contract
name: Factory
network: pulsechain
source:
address: '0xbCE2a0193F4B445e2068Ea675aF2edECF6Bd69D1'
abi: Factory
startBlock: 14648946
mapping:
kind: ethereum/events
apiVersion: 0.0.4
language: wasm/assemblyscript
file: ./src/dexcandles.ts
entities:
- Pair
abis:
- name: Factory
file: ./abis/factory.json
eventHandlers:
- event: PairCreated(indexed address,indexed address,address,uint256)
handler: handleNewPair
templates:
- kind: ethereum/contract
name: Pair
network: pulsechain
source:
abi: Pair
mapping:
kind: ethereum/events
apiVersion: 0.0.4
language: wasm/assemblyscript
file: ./src/dexcandles.ts
entities:
- Pair
abis:
- name: Pair
file: ./abis/pair.json
- name: ERC20
file: ./abis/ERC20.json
eventHandlers:
- event: Swap(indexed address,uint256,uint256,uint256,uint256,indexed address)
handler: handleSwap