forked from mpokrass/usdc-subgraph-1
-
Notifications
You must be signed in to change notification settings - Fork 4
/
subgraph.yaml
34 lines (34 loc) · 907 Bytes
/
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
specVersion: 0.0.1
description: USDC
repository: https://github.com/centrehq/usdc-subgraph
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum/contract
name: FiatTokenV1
network: mainnet
source:
address: '0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48'
abi: FiatTokenV1
mapping:
kind: ethereum/events
apiVersion: 0.0.2
language: wasm/assemblyscript
entities:
- User
- Minter
- UserCounter
- MinterCounter
- TransferCounter
- TotalSupply
abis:
- name: FiatTokenV1
file: ./abis/FiatTokenV1.json
eventHandlers:
- event: Burn(address,uint256)
handler: handleBurn
- event: Mint(address,address,uint256)
handler: handleMint
- event: Transfer(address,address,uint256)
handler: handleTransfer
file: ./src/mapping.ts