-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsubgraph.yaml
More file actions
56 lines (56 loc) · 1.48 KB
/
subgraph.yaml
File metadata and controls
56 lines (56 loc) · 1.48 KB
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
specVersion: 0.0.5
schema:
file: ./schema.graphql
features:
- fullTextSearch
dataSources:
- kind: ethereum/contract
name: Factory
network: goerli
source:
address: '0x580b57db55a0636B53Cb09BbA4aE8CbB765D72bA'
abi: Factory
startBlock: 8403815
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
file: ./src/factory.ts
entities:
- Registry
abis:
- name: Factory
file: ./abis/Factory.json
eventHandlers:
- event: RegistryCreated(string,indexed address,uint256)
handler: handleNewRegistry
templates:
- kind: ethereum
name: GravatarRegistry
network: goerli
source:
abi: GravatarRegistry
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- Gravatar
- Transaction
- Block
abis:
- name: GravatarRegistry
file: ./abis/GravatarRegistry.json
eventHandlers:
- event: NewGravatar(string,uint256,address,string,string)
handler: handleNewGravatar
- event: UpdatedGravatar(string,uint256,address,string,string)
handler: handleUpdatedGravatar
callHandlers:
- function: createGravatar(string,string)
handler: handleCreateGravatar
blockHandlers:
- handler: handleBlockWithCallToContract
filter:
kind: call
file: ./src/gravatar-registry.ts