-
Notifications
You must be signed in to change notification settings - Fork 2
/
project-vara.yaml
59 lines (54 loc) · 1.61 KB
/
project-vara.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
specVersion: 1.0.0
name: nova-wallet-staking
version: 0.0.1
runner:
node:
name: "@subql/node"
version: ">=1.0.0"
query:
name: "@subql/query"
version: "*"
description: >-
Project that provides up-to-date information about on-chain staking APY
repository: "[email protected]:nova-wallet/subquery-staking.git"
schema:
file: ./schema.graphql
network:
chainId: "0xfe1b4c55fd4d668101126434206571a7838a8b6b93a6d1b95d607e78e6c53763"
endpoint: "wss://vara-mainnet.public.blastapi.io"
dataSources:
- kind: substrate/Runtime
startBlock: 4545915 # first staking.rewarded https://vara.subscan.io/extrinsic/4545915-1?event=4545915-4
mapping:
file: ./dist/index.js
handlers:
- handler: handleVaraNewEra
kind: substrate/EventHandler
filter:
module: staking
method: StakersElected
- handler: handleVaraNewSession
kind: substrate/EventHandler
filter:
module: session
method: NewSession
- handler: handleVaraStakingReward
kind: substrate/EventHandler
filter:
module: staking
method: Reward
- handler: handleVaraStakingReward
kind: substrate/EventHandler
filter:
module: staking
method: Rewarded
- handler: handleVaraStakingSlash
kind: substrate/EventHandler
filter:
module: staking
method: Slash
- handler: handleVaraStakingSlash
kind: substrate/EventHandler
filter:
module: staking
method: Slashed