This repository has been archived by the owner on Jan 25, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
/
project.yaml
60 lines (57 loc) · 1.68 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
specVersion: "0.0.1"
description: "This subquery indexes bond,reward and slash of each block, summarize total earning of an account"
repository: "https://github.com/subquery/subql-examples"
schema: "./schema.graphql"
network:
endpoint: "wss://polkadot.api.onfinality.io/public-ws"
dataSources:
- name: runtime
kind: substrate/Runtime
startBlock: 1
mapping:
handlers:
- handler: handleBond
kind: substrate/EventHandler
filter:
module: staking
method: Bonded
- handler: handleReward
kind: substrate/EventHandler
filter:
module: staking
method: Reward
- handler: handleRewarded
kind: substrate/EventHandler
filter:
module: staking
method: Rewarded
- handler: handleSlash
kind: substrate/EventHandler
filter:
module: staking
method: Slash
- handler: handleSlashed
kind: substrate/EventHandler
filter:
module: staking
method: Slashed
- handler: handleStakingReward
kind: substrate/EventHandler
filter:
module: staking
method: Reward
- handler: handleStakingRewarded
kind: substrate/EventHandler
filter:
module: staking
method: Rewarded
- handler: handleStakingSlash
kind: substrate/EventHandler
filter:
module: staking
method: Slash
- handler: handleStakingSlashed
kind: substrate/EventHandler
filter:
module: staking
method: Slashed