-
Notifications
You must be signed in to change notification settings - Fork 3
/
project.yaml
51 lines (48 loc) · 1.42 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
specVersion: 1.0.0
name: subql-starter
version: 1.0.0
runner:
node:
name: '@subql/node'
version: '>=1.0.0'
query:
name: '@subql/query'
version: '*'
description: "subquery for phala-stakepool"
repository: 'https://github.com/Phala-Network/stakepool-subquery'
schema:
file: ./schema.graphql
network:
chainId: '0xd43540ba6d3eb4897c28a77d48cb5b729fea37603cbbfc7a86a73b72adb3be8d'
endpoint: 'wss://khala.api.onfinality.io/public-ws'
dictionary: 'https://api.subquery.network/sq/subquery/khala-dictionary'
dataSources:
- kind: substrate/Runtime
startBlock: 2486396
mapping:
file: ./dist/index.js
handlers:
- handler: handleContributionShareEvent
kind: substrate/EventHandler
filter:
module: phalaStakePool
method: Contribution
- handler: handleWithdrawalShareEvent
kind: substrate/EventHandler
filter:
module: phalaStakePool
method: Withdrawal
- handler: handleRewardReceivedEvent
kind: substrate/EventHandler
filter:
module: phalaStakePool
method: RewardReceived
- handler: handlePoolCreatedEvent
kind: substrate/EventHandler
filter:
module: phalaStakePool
method: PoolCreated
- handler: handleDumpDataOnce
kind: substrate/BlockHandler
filter:
modulo: 2486396