This repository has been archived by the owner on Jul 28, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathproject.yaml
70 lines (67 loc) · 1.98 KB
/
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
specVersion: '0.0.1'
description: 'The project goal is to allow users to query the history of staking amount in Kusama/Polkadot.'
repository: ''
schema: './schema.graphql'
network:
# endpoint: 'wss://polkadot.api.onfinality.io/public-ws'
endpoint: wss://kusama.api.onfinality.io/public-ws
# dictionary: https://api.subquery.network/sq/subquery/dictionary-kusama
dataSources:
- name: runtime
kind: substrate/Runtime
filter:
specName: kusama
startBlock: 10397236 # 10396975
mapping:
handlers:
- handler: handleBlock
kind: substrate/BlockHandler
- handler: handleNewSession
kind: substrate/EventHandler
filter:
module: session
method: NewSession
- handler: handleValidators
kind: substrate/EventHandler
filter:
module: session
method: NewSession
- handler: handleEraPaid
kind: substrate/EventHandler
filter:
module: staking
method: EraPaid
- handler: handleValidatorPayout
kind: substrate/EventHandler
filter:
module: staking
method: PayoutStarted
- name: runtime
kind: substrate/Runtime
filter:
specName: polkadot
startBlock: 8009772
mapping:
handlers:
- handler: handleBlock
kind: substrate/BlockHandler
- handler: handleNewSession
kind: substrate/EventHandler
filter:
module: session
method: NewSession
- handler: handleValidators
kind: substrate/EventHandler
filter:
module: session
method: NewSession
- handler: handleEraPaid
kind: substrate/EventHandler
filter:
module: staking
method: EraPaid
- handler: handleValidatorPayout
kind: substrate/EventHandler
filter:
module: staking
method: PayoutStarted