-
Notifications
You must be signed in to change notification settings - Fork 3
/
subgraph.avax.yaml
105 lines (104 loc) · 3.55 KB
/
subgraph.avax.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
specVersion: 0.0.4
description: Joe-v2 Liquidity Book subgraph
repository: https://github.com/traderjoe-xyz/joe-subgraph-v2
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum/contract
name: LBFactory
network: avalanche
source:
address: "0x6E77932A92582f504FF6c4BdbCef7Da6c198aEEf"
abi: LBFactory
startBlock: 22426953
mapping:
kind: ethereum/events
apiVersion: 0.0.6
language: wasm/assemblyscript
entities:
- LBFactory
- LBPair
- Token
- Bundle
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
- name: DexLens
file: ./abis/DexLens.json
eventHandlers:
- event: FlashLoanFeeSet(uint256,uint256)
handler: handleFlashLoanFeeSet
- event: LBPairCreated(indexed address,indexed address,indexed uint256,address,uint256)
handler: handleLBPairCreated
- event: LBPairIgnoredStateChanged(indexed address,bool)
handler: handleLBPairIgnoredStateChanged
- event: FeeParametersSet(indexed address,indexed address,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256)
handler: handleFeeParametersSet
file: ./src/lbFactory.ts
- kind: ethereum/contract
name: LBPair
network: avalanche
source:
abi: LBPair
startBlock: 22426953
mapping:
kind: ethereum/events
apiVersion: 0.0.6
language: wasm/assemblyscript
entities:
- Bundle
- Bin
- LBFactory
- HourData
- DayData
- LBPair
- LBPairHourData
- LBPairDayData
- Token
- TokenHourData
- TokenDayData
- User
- LiquidityPosition
- UserBinLiquidity
- Transaction
- Mint
- Burn
- Swap
- Candle
abis:
- name: LBFactory
file: ./abis/LBFactory.json
- name: LBPair
file: ./abis/LBPair.json
- name: ERC20
file: ./abis/ERC20.json
- name: DexLens
file: ./abis/DexLens.json
eventHandlers:
- event: Swap(indexed address,indexed address,indexed uint256,bool,uint256,uint256,uint256,uint256)
handler: handleSwap
- event: FlashLoan(indexed address,indexed address,address,uint256,uint256)
handler: handleFlashLoan
- event: CompositionFee(indexed address,indexed address,indexed uint256,uint256,uint256)
handler: handleCompositionFee
- event: DepositedToBin(indexed address,indexed address,indexed uint256,uint256,uint256)
handler: handleLiquidityAdded
- event: WithdrawnFromBin(indexed address,indexed address,indexed uint256,uint256,uint256)
handler: handleLiquidityRemoved
- event: FeesCollected(indexed address,indexed address,uint256,uint256)
handler: handleFeesCollected
- event: ProtocolFeesCollected(indexed address,indexed address,uint256,uint256)
handler: handleProtocolFeesCollected
- event: TransferSingle(indexed address,indexed address,indexed address,uint256,uint256)
handler: handleTransferSingle
- event: TransferBatch(indexed address,indexed address,indexed address,uint256[],uint256[])
handler: handleTransferBatch
file: ./src/lbPair.ts