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