-
Notifications
You must be signed in to change notification settings - Fork 1
/
subgraph-bsc.yaml
executable file
·77 lines (77 loc) · 2.09 KB
/
subgraph-bsc.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
specVersion: 0.0.3
description: Liquidity Pool Balances for an Address
repository: https://github.com/apyvision/amm_lp_share_subgraph
schema:
file: schema.graphql
dataSources:
- kind: ethereum/contract
name: PancakeFactory
network: bsc
source:
address: '0xBCfCcbde45cE874adCB698cC183deBcF17952812'
abi: Factory
startBlock: 586851
mapping:
kind: ethereum/events
apiVersion: 0.0.4
language: wasm/assemblyscript
file: ./src/pancakeswap/factory.ts
entities:
- Pair
- Token
abis:
- name: Factory
file: ./abis/pancakeswap/factory.json
- name: ERC20
file: ./abis/ERC20.json
eventHandlers:
- event: PairCreated(indexed address,indexed address,address,uint256)
handler: handleNewPair
- kind: ethereum/contract
name: PancakeFactory2
network: bsc
source:
address: '0xcA143Ce32Fe78f1f7019d7d551a6402fC5350c73'
abi: Factory
startBlock: 6809737
mapping:
kind: ethereum/events
apiVersion: 0.0.4
language: wasm/assemblyscript
file: ./src/pancakeswap/factoryV2.ts
entities:
- Pair
- Token
abis:
- name: Factory
file: ./abis/pancakeswap/factory.json
- name: ERC20
file: ./abis/ERC20.json
eventHandlers:
- event: PairCreated(indexed address,indexed address,address,uint256)
handler: handleNewPair
templates:
- kind: ethereum/contract
name: PancakePair
network: bsc
source:
abi: Pair
mapping:
kind: ethereum/events
apiVersion: 0.0.4
language: wasm/assemblyscript
file: ./src/pancakeswap/mapping.ts
entities:
- User
- UserLPTransaction
- LiquidityPosition
abis:
- name: Pair
file: ./abis/pancakeswap/pair.json
- name: Factory
file: ./abis/pancakeswap/factory.json
- name: ERC20
file: ./abis/ERC20.json
eventHandlers:
- event: Transfer(indexed address,indexed address,uint256)
handler: handleTransfer