forked from LuckyDapp/subquery-lucky-old
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathproject-shiden.yaml
105 lines (104 loc) · 3.07 KB
/
project-shiden.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
specVersion: 1.0.0
name: lucky-subql
version: 0.0.5
runner:
node:
name: "@subql/node"
version: "*"
query:
name: "@subql/query"
version: "*"
description: This SubQuery project indexes data used by the dApp Lucky on Shiden network
repository: "https://github.com/LuckyDapp/subquery-lucky"
schema:
file: ./schema.graphql
network:
chainId: "0xf1cf9022c7ebb34b162d5b5e34e705a5a740b2d0ecc1009fb89023e62a488108"
endpoint:
- wss://rpc.shiden.astar.network
- wss://shiden-rpc.dwellir.com
dictionary: "https://api.subquery.network/sq/subquery/shiden-dictionary"
chaintypes:
file: ./dist/chaintypes.js
dataSources:
- kind: substrate/Runtime
startBlock: 3964500
mapping:
file: ./dist/indexShiden.js
handlers:
- handler: bondAndStake
kind: substrate/EventHandler
filter:
module: dappsStaking
method: BondAndStake
- handler: unbondAndUnstake
kind: substrate/EventHandler
filter:
module: dappsStaking
method: UnbondAndUnstake
- handler: nominationTransfer
kind: substrate/EventHandler
filter:
module: dappsStaking
method: NominationTransfer
- handler: reward
kind: substrate/EventHandler
filter:
module: dappsStaking
method: Reward
- handler: newDappStakingEra
kind: substrate/EventHandler
filter:
module: dappsStaking
method: NewDappStakingEra
- kind: substrate/Wasm
startBlock: 3964500
processor:
file: ./node_modules/@subql/substrate-wasm-processor/dist/bundle.js
options:
abi: luckyRaffle
contract: antwZPZH7fuhLwcjKQUT2cbpfjcKUJS1bt1Lnq2VxSszg8d
assets:
luckyRaffle:
file: ./metadata_shiden/lucky_raffle_metadata.json
mapping:
file: ./dist/indexShiden.js
handlers:
- handler: raffleDone
kind: substrate/WasmEvent
filter:
identifier: RaffleDone
- kind: substrate/Wasm
startBlock: 3964500
processor:
file: ./node_modules/@subql/substrate-wasm-processor/dist/bundle.js
options:
abi: rewardManager
contract: X6yBHZm9MGzedCVBn6nGHHUDxEnjUNzSoN4aqAP4qooQpEU
assets:
rewardManager:
file: ./metadata_shiden/reward_manager_metadata.json
mapping:
file: ./dist/indexShiden.js
handlers:
- handler: pendingReward
kind: substrate/WasmEvent
filter:
identifier: PendingReward
- kind: substrate/Wasm
startBlock: 3964500
processor:
file: ./node_modules/@subql/substrate-wasm-processor/dist/bundle.js
options:
abi: rewardManager
contract: X6yBHZm9MGzedCVBn6nGHHUDxEnjUNzSoN4aqAP4qooQpEU
assets:
rewardManager:
file: ./metadata_shiden/reward_manager_metadata.json
mapping:
file: ./dist/indexShiden.js
handlers:
- handler: rewardsClaimed
kind: substrate/WasmEvent
filter:
identifier: RewardsClaimed