-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsubgraph.yaml
More file actions
33 lines (33 loc) · 912 Bytes
/
subgraph.yaml
File metadata and controls
33 lines (33 loc) · 912 Bytes
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
specVersion: 0.0.2
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum/contract
name: DSToken
network: mainnet
source:
address: "0xF03f8D65BaFA598611C3495124093c56e8F638f0"
abi: DSToken
startBlock: 4337961
mapping:
kind: ethereum/events
apiVersion: 0.0.4
language: wasm/assemblyscript
entities:
- Mint
- Burn
- Transfer
- Approval
abis:
- name: DSToken
file: ./abis/DSToken.json
eventHandlers:
- event: Mint(indexed address,uint256)
handler: handleMint
- event: Burn(indexed address,uint256)
handler: handleBurn
- event: Transfer(indexed address,indexed address,uint256)
handler: handleTransfer
- event: Approval(indexed address,indexed address,uint256)
handler: handleApproval
file: ./src/mapping.ts