-
Notifications
You must be signed in to change notification settings - Fork 1
/
project-shibuya.yaml
126 lines (125 loc) · 3.78 KB
/
project-shibuya.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: 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 Shibuya network
repository: "https://github.com/LuckyDapp/subquery-lucky"
schema:
file: ./schema.graphql
network:
chainId: "0xddb89973361a170839f80f152d2e9e38a376a5a7eccefcade763f46a8e567019"
endpoint:
- wss://rpc.shibuya.astar.network
- wss://shibuya-rpc.dwellir.com
bypassBlocks: [3430238, 3636456]
dictionary: "https://api.subquery.network/sq/subquery/shiden-dictionary"
chaintypes:
file: ./dist/chaintypes.js
dataSources:
- kind: substrate/Runtime
startBlock: 3393298
mapping:
file: ./dist/indexShibuya.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
# PREVIOUS CONTRACT
# - kind: substrate/Wasm
# startBlock: 3393298
# processor:
# file: ./node_modules/@subql/substrate-wasm-processor/dist/bundle.js
# options:
# abi: luckyRaffle
# contract: YzxUd9jJ4L7JQZhYrRgwwbqpeSkc9DSUQGJtte4T8LdmQSS
# assets:
# luckyRaffle:
# file: ./metadata_shibuya/lucky_raffle_metadata.json
# mapping:
# file: ./dist/indexShibuya.js
# handlers:
# - handler: raffleDone
# kind: substrate/WasmEvent
# filter:
# identifier: RaffleDone
- kind: substrate/Wasm
startBlock: 3648370
processor:
file: ./node_modules/@subql/substrate-wasm-processor/dist/bundle.js
options:
abi: luckyRaffle
contract: Y4k5gyegtv3UuZBLFKVtfThoXvpSAPNeQeLutodrCukrpzy
assets:
luckyRaffle:
file: ./metadata_shibuya/lucky_raffle_metadata.json
mapping:
file: ./dist/indexShibuya.js
handlers:
- handler: raffleDone
kind: substrate/WasmEvent
filter:
identifier: RaffleDone
- kind: substrate/Wasm
startBlock: 3393298
processor:
file: ./node_modules/@subql/substrate-wasm-processor/dist/bundle.js
options:
abi: rewardManager
#contract: WDtNnQgygsCXKfjdvL5TgimewWhcBhJgSSCkb5u5pzZJTpR
contract: X8nqJsFQWBk137WxetcPdAGLwnJ8xpAQ5tXS1bNsHKaz1q6
assets:
rewardManager:
file: ./metadata_shibuya/reward_manager_metadata.json
mapping:
file: ./dist/indexShibuya.js
handlers:
- handler: pendingReward
kind: substrate/WasmEvent
filter:
identifier: PendingReward
- kind: substrate/Wasm
startBlock: 3393298
processor:
file: ./node_modules/@subql/substrate-wasm-processor/dist/bundle.js
options:
abi: rewardManager
#contract: WDtNnQgygsCXKfjdvL5TgimewWhcBhJgSSCkb5u5pzZJTpR
contract: X8nqJsFQWBk137WxetcPdAGLwnJ8xpAQ5tXS1bNsHKaz1q6
assets:
rewardManager:
file: ./metadata_shibuya/reward_manager_metadata.json
mapping:
file: ./dist/indexShibuya.js
handlers:
- handler: rewardsClaimed
kind: substrate/WasmEvent
filter:
identifier: RewardsClaimed