-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathsubgraph.yaml
More file actions
27 lines (27 loc) · 860 Bytes
/
subgraph.yaml
File metadata and controls
27 lines (27 loc) · 860 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
specVersion: 1.3.0
description: Gravatar for Ethereum
repository: https://www.github.com/graphprotocol/examples/tree/main/subgraphs/basic-examples/init-subgraph
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum/contract
name: Gravity
network: mainnet
source:
address: '0x2E645469f354BB4F5c8a05B3b30A929361cf77eC'
abi: Gravity
mapping:
kind: ethereum/events
apiVersion: 0.0.6
language: wasm/assemblyscript
entities:
- Gravatar
abis:
- name: Gravity
file: ./artifacts/contracts/Gravity.sol/GravatarRegistry.json
eventHandlers:
- event: NewGravatar(uint256,address,string,string)
handler: handleNewGravatar
- event: UpdatedGravatar(uint256,address,string,string)
handler: handleUpdatedGravatar
file: ./src/mapping.ts