-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsubgraph.yaml
38 lines (38 loc) · 1.04 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
specVersion: 0.0.2
description: Wrapped Ethereum
repository: https://github.com/Ryabina-io/weth-subgraph
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum/contract
name: WETH
network: mainnet
source:
address: "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2"
abi: WETH
startBlock: 4719568
mapping:
kind: ethereum/events
apiVersion: 0.0.4
language: wasm/assemblyscript
entities:
- Account
- Allowance
- Approve
- Status
- Transfer
- Deposit
- Withdrawal
abis:
- name: WETH
file: ./abis/WETH.json
eventHandlers:
- event: Approval(indexed address,indexed address,uint256)
handler: handleApproval
- event: Deposit(indexed address,uint256)
handler: handleDeposit
- event: Withdrawal(indexed address,uint256)
handler: handleWithdrawal
- event: Transfer(indexed address,indexed address,uint256)
handler: handleTransfer
file: ./src/mapping.ts