-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsubgraph.template.yaml
38 lines (38 loc) · 1.11 KB
/
subgraph.template.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
35
36
37
38
specVersion: 0.0.5
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum
name: SP
network: {{network}}
source:
address: "{{address}}"
abi: SP
startBlock: {{startBlock}}
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- AttestationMade
- AttestationRevoked
- OffchainAttestationMade
- OffchainAttestationRevoked
- SchemaRegistered
abis:
- name: SP
file: ./abis/ISP.json
eventHandlers:
- event: AttestationMade(uint64,string)
handler: handleAttestationMade
- event: AttestationRevoked(uint64,string)
handler: handleAttestationRevoked
- event: OffchainAttestationMade(string)
handler: handleOffchainAttestationMade
- event: OffchainAttestationRevoked(string,string)
handler: handleOffchainAttestationRevoked
- event: SchemaRegistered(uint64)
handler: handleSchemaRegistered
- event: Initialized(uint64)
handler: handleInitialized
file: ./src/sp.ts