-
Notifications
You must be signed in to change notification settings - Fork 1
/
project.yaml
126 lines (126 loc) · 3.81 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
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
specVersion: 1.0.0
name: dapps-staking-indexer
version: 0.0.1
runner:
node:
name: '@subql/node'
version: '*'
query:
name: '@subql/query'
version: '*'
description: Astar Network dapps staking indexing service.
repository: 'https://github.com/AstarNetwork/dapps-staking-idnexer'
schema:
file: ./schema.graphql
# Astar
network:
chainId: '0x9eb76c5184c4ab8679d2d5d819fdf90b9c001403e9e17da2e14b6d8aec4029c6'
endpoint: 'wss://rpc.astar.network'
# dictionary: 'https://api.subquery.network/sq/subquery/astar-dictionary'
chaintypes:
file: ./dist/chaintypes.js
# Shiden
# network:
# chainId: '0xf1cf9022c7ebb34b162d5b5e34e705a5a740b2d0ecc1009fb89023e62a488108'
# endpoint: 'wss://rpc.shiden.astar.network'
# dictionary: 'https://api.subquery.network/sq/subquery/shiden-dictionary'
# chaintypes:
# file: ./dist/chaintypes.js
# Local
# network:
# chainId: '0x920f5ae6aa81de5f183eb5b9f6a56120c8cf759e4af7bcbe8ac919409d75fcf1'
# endpoint: 'ws://host.docker.internal:9944'
# chaintypes:
# file: ./dist/chaintypes.js
dataSources:
- kind: substrate/FrontierEvm
# startBlock: 1
startBlock: 815708 #The first era start
processor:
file: ./node_modules/@subql/frontier-evm-processor/dist/bundle.js
mapping:
file: ./dist/index.js
handlers:
- handler: handleFrontierEvmCall
kind: substrate/FrontierEvmCall
- kind: substrate/Wasm
startBlock: 815708
# startBlock: 1
processor:
file: ./node_modules/@subql/substrate-wasm-processor/dist/bundle.js
mapping:
file: ./dist/index.js
handlers:
- handler: handleWasmCall
kind: substrate/WasmCall
- kind: substrate/Runtime
startBlock: 815708 #The first era start.
# startBlock: 1
mapping:
file: ./dist/index.js
handlers:
- handler: handleNewContract
kind: substrate/EventHandler
filter:
module: dappsStaking
method: NewContract
- handler: handleContractRemoved
kind: substrate/EventHandler
filter:
module: dappsStaking
method: ContractRemoved
- handler: handleNewDappStakingEra
kind: substrate/EventHandler
filter:
module: dappsStaking
method: NewDappStakingEra
# - handler: handleBondAndStake
# kind: substrate/EventHandler
# filter:
# module: dappsStaking
# method: BondAndStake
# - handler: handleUnbondAndUnstake
# kind: substrate/EventHandler
# filter:
# module: dappsStaking
# method: UnbondAndUnstake
# - handler: handleWithdrawal
# kind: substrate/EventHandler
# filter:
# module: dappsStaking
# method: Withdrawn
# - handler: handleWithdrawalFromUnregistered
# kind: substrate/EventHandler
# filter:
# module: dappsStaking
# method: WithdrawFromUnregistered
# - handler: handleNominationTransfer
# kind: substrate/EventHandler
# filter:
# module: dappsStaking
# method: NominationTransfer
- handler: handleBondAndStakeCall
kind: substrate/CallHandler
filter:
module: dappsStaking
method: bondAndStake
- handler: handleUnbondAndUnstakeCall
kind: substrate/CallHandler
filter:
module: dappsStaking
method: unbondAndUnstake
- handler: handleWithdrawCall
kind: substrate/CallHandler
filter:
module: dappsStaking
method: withdrawUnbonded
- handler: handleWithdrawFromUnregisteredCall
kind: substrate/CallHandler
filter:
module: dappsStaking
method: withdrawFromUnregistered
- handler: handleNominationTransferCall
kind: substrate/CallHandler
filter:
module: dappsStaking
method: nominationTransfer