-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsubgraph.yaml
75 lines (75 loc) · 2.33 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
specVersion: 0.0.4
description: Integral is an AMM-based DEX that mirrors liquidity on other top exchanges.
repository: https://github.com/IntegralHQ/Integral-SIZE-TheGraph
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum
name: TwapFactory
network: mainnet
source:
abi: TwapFactory
address: '0xC480b33eE5229DE3FbDFAD1D2DCD3F3BAD0C56c6'
startBlock: 14422957
mapping:
kind: ethereum/events
apiVersion: 0.0.6
language: wasm/assemblyscript
file: ./src/pair.ts
entities:
- Pair
- Token
abis:
- name: ERC20
file: ./abis/ERC20.json
- name: ERC20SymbolBytes
file: ./abis/ERC20SymbolBytes.json
- name: ERC20NameBytes
file: ./abis/ERC20NameBytes.json
- name: TwapFactory
file: ./abis/TwapFactory.json
- name: TwapReader
file: ./abis/TwapReader.json
eventHandlers:
- event: PairCreated(indexed address,indexed address,address,uint256)
handler: handlePairCreated
templates:
- kind: ethereum/contract
name: Pair
network: mainnet
source:
abi: TwapPair
mapping:
kind: ethereum/events
apiVersion: 0.0.6
language: wasm/assemblyscript
file: ./src/pair.ts
entities:
- Pair
- Token
abis:
- name: TwapFactory
file: ./abis/TwapFactory.json
- name: TwapPair
file: ./abis/TwapPair.json
- name: TwapReader
file: ./abis/TwapReader.json
- name: UniswapFactoryV2
file: ./abis/UniswapFactoryV2.json
- name: UniswapPairV2
file: ./abis/UniswapPairV2.json
- name: UniswapFactoryV3
file: ./abis/UniswapV3Factory.json
- name: UniswapPoolV3
file: ./abis/UniswapV3Pool.json
eventHandlers:
- event: Mint(indexed address,uint256,uint256,uint256,indexed address)
handler: handleMint
- event: Burn(indexed address,uint256,uint256,uint256,indexed address)
handler: handleBurn
- event: Swap(indexed address,uint256,uint256,uint256,uint256,indexed address)
handler: handleSwap
- event: Transfer(indexed address,indexed address,uint256)
handler: handleTransfer
- event: SetSwapFee(uint256)
handler: handleSetSwapFeeEvent