forked from bombastictranz/subquery-staking
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
project-westend.yaml
79 lines (71 loc) · 2.09 KB
/
project-westend.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
71
72
73
74
75
76
77
78
79
specVersion: 1.0.0
name: subquery-nova-wallet
version: 1.0.0
runner:
node:
name: '@subql/node'
version: '*'
query:
name: '@subql/query'
version: v1.5.0
description: Nova SubQuery project
repository: https://github.com/nova-wallet/subquery-nova
schema:
file: ./schema.graphql
network:
chainId: '0xe143f23803ac50e8f6f8e62695d1ce9e4e1d68aa36c1cd2cfd15340213f3423e'
endpoint: >-
wss://westend-rpc.polkadot.io
dictionary: https://api.subquery.network/sq/subquery/westend-dictionary
dataSources:
- name: main
kind: substrate/Runtime
startBlock: 1
mapping:
file: ./dist/index.js
handlers:
- handler: handleWestendNewEra
kind: substrate/EventHandler
filter:
module: staking
method: StakersElected
- handler: handleWestendNewSession
kind: substrate/EventHandler
filter:
module: session
method: NewSession
- handler: handleWestendStakingReward
kind: substrate/EventHandler
filter:
module: staking
method: Reward
- handler: handleWestendStakingReward
kind: substrate/EventHandler
filter:
module: staking
method: Rewarded
- handler: handleWestendPoolStakingReward
kind: substrate/EventHandler
filter:
module: nominationPools
method: PaidOut
- handler: handleWestendStakingSlash
kind: substrate/EventHandler
filter:
module: staking
method: Slash
- handler: handleWestendStakingSlash
kind: substrate/EventHandler
filter:
module: staking
method: Slashed
- handler: handleWestendPoolStakingBondedSlash
kind: substrate/EventHandler
filter:
module: nominationPools
method: PoolSlashed
- handler: handleWestendPoolStakingUnbondingSlash
kind: substrate/EventHandler
filter:
module: nominationPools
method: UnbondingPoolSlashed