-
Notifications
You must be signed in to change notification settings - Fork 0
/
moonbeam.yaml
147 lines (130 loc) · 3.84 KB
/
moonbeam.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
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
specVersion: 1.0.0
name: subquery-governance-moonbeam
version: 1.0.0
runner:
node:
name: '@subql/node'
version: '*'
query:
name: '@subql/query'
version: "*"
description: Project for tracking direct and delegated votings gor OpenGov
repository: "https://github.com/nova-wallet/subquery-governance"
schema:
file: ./schema.graphql
network:
chainId: '0xfe58ea77779b7abda7da4ec526d14db9b1e9cd40a217c34892af80a9b332b76d'
endpoint: >-
wss://moonbeam-rpc.dwellir.com
dictionary: https://api.subquery.network/sq/subquery/moonbeam-dictionary
chaintypes:
file: ./dist/moonbeamChaintypes.js
dataSources:
- kind: substrate/Runtime
startBlock: 4163624
# first referendum https://moonbeam.subscan.io/extrinsic/4163624-4?event=4163624-8
mapping:
file: ./dist/index.js
handlers:
- handler: handleReferendumSubmission
kind: substrate/EventHandler
filter:
module: referenda
method: Submitted
- handler: handleVoteHandler
kind: substrate/CallHandler
filter:
module: convictionVoting
method: vote
success: true
- handler: handleRemoveVoteHandler
kind: substrate/CallHandler
filter:
module: convictionVoting
method: removeVote
success: true
- handler: handleDelegateHandler
kind: substrate/CallHandler
filter:
module: convictionVoting
method: delegate
success: true
- handler: handleUndelegateHandler
kind: substrate/CallHandler
filter:
module: convictionVoting
method: undelegate
success: true
- handler: handleTerminal
kind: substrate/EventHandler
filter:
module: referenda
method: Confirmed
- handler: handleTerminal
kind: substrate/EventHandler
filter:
module: referenda
method: Rejected
- handler: handleTerminal
kind: substrate/EventHandler
filter:
module: referenda
method: Killed
- handler: handleTerminal
kind: substrate/EventHandler
filter:
module: referenda
method: Cancelled
- handler: handleTerminal
kind: substrate/EventHandler
filter:
module: referenda
method: TimedOut
- handler: handleNestedCalls
kind: substrate/CallHandler
filter:
module: proxy
method: proxy
success: true
- handler: handleNestedCalls
kind: substrate/CallHandler
filter:
module: proxy
method: proxyAnnounced
success: true
- handler: handleNestedCalls
kind: substrate/CallHandler
filter:
module: utility
method: batch
success: true
- handler: handleNestedCalls
kind: substrate/CallHandler
filter:
module: utility
method: batchAll
success: true
- handler: handleNestedCalls
kind: substrate/CallHandler
filter:
module: utility
method: forceBatch
success: true
- handler: handleNestedCalls
kind: substrate/CallHandler
filter:
module: multisig
method: asMulti
success: true
- handler: handleNestedCalls
kind: substrate/CallHandler
filter:
module: multisig
method: asMultiThreshold1
success: true
- handler: handleNestedCalls
kind: substrate/CallHandler
filter:
module: utility
method: asDerivative
success: true