-
Notifications
You must be signed in to change notification settings - Fork 0
/
subgraph.yaml
55 lines (55 loc) · 1.47 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
specVersion: 0.0.4
description: An ecosystem for the next generation of decentralized applications to power Web3 and DeFi.
repository: https://github.com/unchase-subgraphs/just-money-polygon-subgraph
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum
name: Factory
network: matic
source:
address: "0xd36Aba9Ec96523b0A89886c76065852aDFE2Eb39"
abi: Factory
startBlock: 22056827
mapping:
kind: ethereum/events
apiVersion: 0.0.6
language: wasm/assemblyscript
entities:
- Pair
- Token
abis:
- name: Factory
file: ./abis/Factory.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: handlePairCreated
file: ./src/factory.ts
templates:
- kind: ethereum/contract
name: Pair
network: matic
source:
abi: Pair
mapping:
kind: ethereum/events
apiVersion: 0.0.6
language: wasm/assemblyscript
file: ./src/core.ts
entities:
- Pair
- Token
abis:
- name: Pair
file: ./abis/pair.json
- name: Factory
file: ./abis/factory.json
eventHandlers:
- event: Sync(uint112,uint112)
handler: handleSync