-
Notifications
You must be signed in to change notification settings - Fork 0
/
polkadot.yaml
145 lines (128 loc) · 3.87 KB
/
polkadot.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
specVersion: 1.0.0
name: nova-governance-polkadot
version: 0.0.1
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: "0x91b171bb158e2d3848fa23a9f1c25182fb8e20313b2c1eb49219da7a70ce90c3"
endpoint: "wss://polkadot.api.onfinality.io/public-ws"
dictionary: "https://api.subquery.network/sq/subquery/dictionary-polkadot"
dataSources:
- kind: substrate/Runtime
startBlock: 15978410
# first delegation at 15978410 https://polkadot.subscan.io/extrinsic/15978410-2
# first referendum 15978430 https://polkadot.subscan.io/extrinsic/15978430-3
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