-
Notifications
You must be signed in to change notification settings - Fork 2
/
project-polkadex.yaml
62 lines (57 loc) · 1.54 KB
/
project-polkadex.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
specVersion: 1.0.0
name: subquery-nova-polkadex
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: '0x3920bcb4960a1eef5580cd5367ff3f430eef052774f78468852f7b9cb39f8a3c'
endpoint: >-
wss://fullnode.polkadex.trade
chaintypes:
file: ./dist/polkadexChaintypes.js
dataSources:
- name: main
kind: substrate/Runtime
startBlock: 1
mapping:
file: ./dist/index.js
handlers:
- handler: handlePolkadexNewEra
kind: substrate/EventHandler
filter:
module: staking
method: StakersElected
- handler: handlePolkadexNewSession
kind: substrate/EventHandler
filter:
module: session
method: NewSession
- handler: handlePolkadexStakingReward
kind: substrate/EventHandler
filter:
module: staking
method: Reward
- handler: handlePolkadexStakingReward
kind: substrate/EventHandler
filter:
module: staking
method: Rewarded
- handler: handlePolkadexStakingSlash
kind: substrate/EventHandler
filter:
module: staking
method: Slash
- handler: handlePolkadexStakingSlash
kind: substrate/EventHandler
filter:
module: staking
method: Slashed