-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathproject.yaml
37 lines (36 loc) · 1.3 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
specVersion: 0.2.0
name: staking-rewards
version: 1.0.0
description: SubQuery Hero Course Module 4
repository: https://github.com/jim-counter/SubQueryHeroCourseModule4.git
schema:
file: ./schema.graphql
network:
endpoint: wss://polkadot.api.onfinality.io/public-ws
genesisHash: '0x91b171bb158e2d3848fa23a9f1c25182fb8e20313b2c1eb49219da7a70ce90c3'
dataSources:
- kind: substrate/Runtime
startBlock: 6000000
mapping:
file: ./dist/index.js
handlers:
- handler: handleSumRewarded
kind: substrate/EventHandler
filter:
module: staking
method: Rewarded # NOTE: This method was called Reward before ~block 6,700,000
- handler: handleStakingRewarded
kind: substrate/EventHandler
filter:
module: staking
method: Rewarded # NOTE: This method was called Reward before ~block 6,700,000
- handler: handleSumReward
kind: substrate/EventHandler
filter:
module: staking
method: Reward # NOTE: This method was called Rewarded after ~block 6,700,000
- handler: handleStakingReward
kind: substrate/EventHandler
filter:
module: staking
method: Reward # NOTE: This method was called Rewarded after ~block 6,700,000