-
Notifications
You must be signed in to change notification settings - Fork 1
/
project-astar.yaml
105 lines (104 loc) · 3.05 KB
/
project-astar.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: 1.0.0
runner:
node:
name: "@subql/node"
version: "*"
query:
name: "@subql/query"
version: "*"
description: This SubQuery project indexes data used by the dApp Lucky on Astar network
repository: "https://github.com/LuckyDapp/subquery-lucky"
schema:
file: ./schema.graphql
network:
chainId: "0x9eb76c5184c4ab8679d2d5d819fdf90b9c001403e9e17da2e14b6d8aec4029c6"
endpoint:
- wss://rpc.astar.network
- wss://astar-rpc.dwellir.com
dictionary: "https://api.subquery.network/sq/subquery/astar-dictionary"
chaintypes:
file: ./dist/chaintypes.js
dataSources:
- kind: substrate/Runtime
startBlock: 4668050
mapping:
file: ./dist/indexAstar.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: 4668050
processor:
file: ./node_modules/@subql/substrate-wasm-processor/dist/bundle.js
options:
abi: luckyRaffle
contract: XPC4BUeSHhTWqzUdUWtW1cTNHhktNPgenKZ4qq2FkKR2two
assets:
luckyRaffle:
file: ./metadata_astar/lucky_raffle_metadata.json
mapping:
file: ./dist/indexAstar.js
handlers:
- handler: raffleDone
kind: substrate/WasmEvent
filter:
identifier: RaffleDone
- kind: substrate/Wasm
startBlock: 4668050
processor:
file: ./node_modules/@subql/substrate-wasm-processor/dist/bundle.js
options:
abi: rewardManager
contract: ZSV1GVepvmWFdshMWgczS4zYvmmwEsBjWQjN4WDpUEFRRPy
assets:
rewardManager:
file: ./metadata_astar/reward_manager_metadata.json
mapping:
file: ./dist/indexAstar.js
handlers:
- handler: pendingReward
kind: substrate/WasmEvent
filter:
identifier: PendingReward
- kind: substrate/Wasm
startBlock: 4668050
processor:
file: ./node_modules/@subql/substrate-wasm-processor/dist/bundle.js
options:
abi: rewardManager
contract: ZSV1GVepvmWFdshMWgczS4zYvmmwEsBjWQjN4WDpUEFRRPy
assets:
rewardManager:
file: ./metadata_astar/reward_manager_metadata.json
mapping:
file: ./dist/indexAstar.js
handlers:
- handler: rewardsClaimed
kind: substrate/WasmEvent
filter:
identifier: RewardsClaimed