-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindexer-project.yaml
52 lines (52 loc) · 1.89 KB
/
indexer-project.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
specVersion: 1.0.0
name: subql-starter
version: 1.0.0
runner:
node:
name: "@subql/node"
version: "*"
query:
name: "@subql/query"
version: "*"
description: "This project can be used as a starting point for developing your
SubQuery project. It aggregates attestations from the Kilt Spiritnet network"
repository: "https://github.com/subquery/subql-starter"
schema:
file: ./schema.graphql
network:
# The genesis hash of the network (hash of block 0)
chainId: "0x411f057b9107718c9624d6aa4a3f23c1653898297f3d4d529d9bb6511a39dd21"
# This endpoint must be a public non-pruned archive node
# Public nodes may be rate limited, which can affect indexing speed
# When developing your project we suggest getting a private API key
# You can get them from OnFinality for free https://app.onfinality.io
# https://documentation.onfinality.io/support/the-enhanced-api-service
endpoint:
- wss://spiritnet.api.onfinality.io/public-ws
- wss://spiritnet.kilt.io
# Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing
dictionary: "https://api.subquery.network/sq/subquery/kilt-spiritnet-dictionary"
chaintypes:
file: ./dist/chaintypes.js
dataSources:
- kind: substrate/Runtime
startBlock: 500000
mapping:
file: ./dist/index.js
handlers:
- handler: handleAttestationCreated
kind: substrate/EventHandler
filter:
module: attestation
method: AttestationCreated
- handler: handleAttestationRevoked
kind: substrate/EventHandler
filter:
module: attestation
method: AttestationRevoked
# We could not find any events for this module in the blocks explored
# - handler: handleAttestationRemoved
# kind: substrate/EventHandler
# filter:
# module: attestation
# method: AttestationRemoved