-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsubgraph.yaml
75 lines (74 loc) · 1.85 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: 1.0.0
indexerHints:
prune: auto
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum
name: WETH
network: linea
source:
address: "0xe5d7c2a44ffddf6b295a15c148167daaaf5cf34f"
abi: WETH
startBlock: 758366
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- Deposit
- Withdrawal
abis:
- name: WETH
file: ./abis/WETH.json
eventHandlers:
- event: Deposit(indexed address,uint256)
handler: handleDeposit
- event: Withdrawal(indexed address,uint256)
handler: handleWithdrawal
file: ./src/weth.ts
- kind: ethereum
name: USDC
network: linea
source:
address: "0x176211869ca2b568f2a7d4ee941e073a821ee1ff"
abi: USDC
startBlock: 758366
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- Transfer
abis:
- name: USDC
file: ./abis/USDC.json
eventHandlers:
- event: Transfer(indexed address,indexed address,uint256)
handler: handleTransfer
file: ./src/usdc.ts
- kind: ethereum
name: ZUSD
network: linea
source:
address: "0x2167C4D5FE05A1250588F0B8AA83A599e7732eae"
abi: ZUSD
startBlock: 5904318
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- Transfer
abis:
- name: ZUSD
file: ./abis/ZUSD.json
eventHandlers:
- event: Transfer(indexed address,indexed address,uint256)
handler: handleTransfer
file: ./src/zusd.ts
features:
- grafting # feature name
graft:
base: QmQeDcberV9syyf2sme5MWXBWQ8Bf228whMoSB9Nh5CdfY # subgraph ID of base subgraph
block: 5904318 # block number