forked from Joystream/joystream
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
297 lines (278 loc) · 18.2 KB
/
Cargo.toml
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
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
[package]
authors = ['Joystream contributors']
edition = '2018'
name = 'joystream-node-runtime'
# Follow convention: https://github.com/Joystream/substrate-runtime-joystream/issues/1
# {Authoring}.{Spec}.{Impl} of the RuntimeVersion
version = '12.2004.0'
[dependencies]
# Third-party dependencies
serde = { version = "1.0.101", optional = true, features = ["derive"] }
lazy_static = { version = "1.4.0", features = ["spin_no_std"] }
getrandom = { version = "0.2", default-features = false, features = ["js"] }
lite-json = { version = '0.1.3', default-features = false }
codec = { package = 'parity-scale-codec', version = '3.1.2', default-features = false, features = [
'derive',
] }
scale-info = { version = "2.1.1", default-features = false, features = [
"derive",
] }
smallvec = "1.6.0"
log = { version = "0.4.17", default-features = false }
static_assertions = "1.1.0"
impl-serde = { version = "=0.3.1", optional = true }
# Substrate primitives
sp-std = { package = 'sp-std', default-features = false, git = 'https://github.com/joystream/substrate.git', rev = '1d0eefca86ef31b9e7727df01a6ed23ad65491e9' }
sp-arithmetic = { package = 'sp-arithmetic', default-features = false, git = 'https://github.com/joystream/substrate.git', rev = '1d0eefca86ef31b9e7727df01a6ed23ad65491e9' }
sp-runtime = { package = 'sp-runtime', default-features = false, git = 'https://github.com/joystream/substrate.git', rev = '1d0eefca86ef31b9e7727df01a6ed23ad65491e9' }
sp-offchain = { package = 'sp-offchain', default-features = false, git = 'https://github.com/joystream/substrate.git', rev = '1d0eefca86ef31b9e7727df01a6ed23ad65491e9' }
sp-core = { package = 'sp-core', default-features = false, git = 'https://github.com/joystream/substrate.git', rev = '1d0eefca86ef31b9e7727df01a6ed23ad65491e9' }
sp-authority-discovery = { package = 'sp-authority-discovery', default-features = false, git = 'https://github.com/joystream/substrate.git', rev = '1d0eefca86ef31b9e7727df01a6ed23ad65491e9' }
sp-consensus-babe = { package = 'sp-consensus-babe', default-features = false, git = 'https://github.com/joystream/substrate.git', rev = '1d0eefca86ef31b9e7727df01a6ed23ad65491e9' }
sp-transaction-pool = { package = 'sp-transaction-pool', default-features = false, git = 'https://github.com/joystream/substrate.git', rev = '1d0eefca86ef31b9e7727df01a6ed23ad65491e9' }
sp-session = { package = 'sp-session', default-features = false, git = 'https://github.com/joystream/substrate.git', rev = '1d0eefca86ef31b9e7727df01a6ed23ad65491e9' }
sp-block-builder = { package = 'sp-block-builder', default-features = false, git = 'https://github.com/joystream/substrate.git', rev = '1d0eefca86ef31b9e7727df01a6ed23ad65491e9' }
sp-api = { package = 'sp-api', default-features = false, git = 'https://github.com/joystream/substrate.git', rev = '1d0eefca86ef31b9e7727df01a6ed23ad65491e9' }
sp-version = { package = 'sp-version', default-features = false, git = 'https://github.com/joystream/substrate.git', rev = '1d0eefca86ef31b9e7727df01a6ed23ad65491e9' }
sp-staking = { package = 'sp-staking', default-features = false, git = 'https://github.com/joystream/substrate.git', rev = '1d0eefca86ef31b9e7727df01a6ed23ad65491e9' }
sp-application-crypto = { package = 'sp-application-crypto', default-features = false, git = 'https://github.com/joystream/substrate.git', rev = '1d0eefca86ef31b9e7727df01a6ed23ad65491e9' }
sp-io = { package = 'sp-io', default-features = false, git = 'https://github.com/joystream/substrate.git', rev = '1d0eefca86ef31b9e7727df01a6ed23ad65491e9' }
sp-weights = { package = 'sp-weights', default-features = false, git = 'https://github.com/joystream/substrate.git', rev = '1d0eefca86ef31b9e7727df01a6ed23ad65491e9' }
# Frame
frame-support = { package = 'frame-support', default-features = false, git = 'https://github.com/joystream/substrate.git', rev = '1d0eefca86ef31b9e7727df01a6ed23ad65491e9' }
frame-executive = { package = 'frame-executive', default-features = false, git = 'https://github.com/joystream/substrate.git', rev = '1d0eefca86ef31b9e7727df01a6ed23ad65491e9' }
frame-system-rpc-runtime-api = { package = 'frame-system-rpc-runtime-api', default-features = false, git = 'https://github.com/joystream/substrate.git', rev = '1d0eefca86ef31b9e7727df01a6ed23ad65491e9' }
frame-system = { package = 'frame-system', default-features = false, git = 'https://github.com/joystream/substrate.git', rev = '1d0eefca86ef31b9e7727df01a6ed23ad65491e9' }
frame-election-provider-support = { package = 'frame-election-provider-support', default-features = false, git = 'https://github.com/joystream/substrate.git', rev = '1d0eefca86ef31b9e7727df01a6ed23ad65491e9' }
pallet-election-provider-multi-phase = { package = 'pallet-election-provider-multi-phase', default-features = false, git = 'https://github.com/joystream/substrate.git', rev = '1d0eefca86ef31b9e7727df01a6ed23ad65491e9' }
pallet-bags-list = { package = 'pallet-bags-list', default-features = false, git = 'https://github.com/joystream/substrate.git', rev = '1d0eefca86ef31b9e7727df01a6ed23ad65491e9' }
frame-try-runtime = { package = 'frame-try-runtime', default-features = false, optional = true, git = 'https://github.com/joystream/substrate.git', rev = '1d0eefca86ef31b9e7727df01a6ed23ad65491e9' }
# Pallets
pallet-grandpa = { package = 'pallet-grandpa', default-features = false, git = 'https://github.com/joystream/substrate.git', rev = '1d0eefca86ef31b9e7727df01a6ed23ad65491e9' }
pallet-staking-reward-curve = { package = 'pallet-staking-reward-curve', default-features = false, git = 'https://github.com/joystream/substrate.git', rev = '1d0eefca86ef31b9e7727df01a6ed23ad65491e9' }
pallet-babe = { package = 'pallet-babe', default-features = false, git = 'https://github.com/joystream/substrate.git', rev = '1d0eefca86ef31b9e7727df01a6ed23ad65491e9' }
pallet-transaction-payment = { package = 'pallet-transaction-payment', default-features = false, git = 'https://github.com/joystream/substrate.git', rev = '1d0eefca86ef31b9e7727df01a6ed23ad65491e9' }
pallet-transaction-payment-rpc-runtime-api = { package = 'pallet-transaction-payment-rpc-runtime-api', default-features = false, git = 'https://github.com/joystream/substrate.git', rev = '1d0eefca86ef31b9e7727df01a6ed23ad65491e9' }
pallet-authorship = { package = 'pallet-authorship', default-features = false, git = 'https://github.com/joystream/substrate.git', rev = '1d0eefca86ef31b9e7727df01a6ed23ad65491e9' }
pallet-session = { package = 'pallet-session', features = [
"historical",
], default-features = false, git = 'https://github.com/joystream/substrate.git', rev = '1d0eefca86ef31b9e7727df01a6ed23ad65491e9' }
pallet-offences = { package = 'pallet-offences', default-features = false, git = 'https://github.com/joystream/substrate.git', rev = '1d0eefca86ef31b9e7727df01a6ed23ad65491e9' }
pallet-insecure-randomness-collective-flip = { package = 'pallet-insecure-randomness-collective-flip', default-features = false, git = 'https://github.com/joystream/substrate.git', rev = '1d0eefca86ef31b9e7727df01a6ed23ad65491e9' }
pallet-authority-discovery = { package = 'pallet-authority-discovery', default-features = false, git = 'https://github.com/joystream/substrate.git', rev = '1d0eefca86ef31b9e7727df01a6ed23ad65491e9' }
pallet-staking = { package = 'pallet-staking', default-features = false, git = 'https://github.com/joystream/substrate.git', rev = '1d0eefca86ef31b9e7727df01a6ed23ad65491e9' }
pallet-timestamp = { package = 'pallet-timestamp', default-features = false, git = 'https://github.com/joystream/substrate.git', rev = '1d0eefca86ef31b9e7727df01a6ed23ad65491e9' }
pallet-balances = { package = 'pallet-balances', default-features = false, git = 'https://github.com/joystream/substrate.git', rev = '1d0eefca86ef31b9e7727df01a6ed23ad65491e9' }
pallet-im-online = { package = 'pallet-im-online', default-features = false, git = 'https://github.com/joystream/substrate.git', rev = '1d0eefca86ef31b9e7727df01a6ed23ad65491e9' }
substrate-utility = { package = 'pallet-utility', default-features = false, git = 'https://github.com/joystream/substrate.git', rev = '1d0eefca86ef31b9e7727df01a6ed23ad65491e9' }
pallet-vesting = { package = 'pallet-vesting', default-features = false, git = 'https://github.com/joystream/substrate', rev = '1d0eefca86ef31b9e7727df01a6ed23ad65491e9' }
pallet-multisig = { package = 'pallet-multisig', default-features = false, git = 'https://github.com/joystream/substrate.git', rev = '1d0eefca86ef31b9e7727df01a6ed23ad65491e9' }
pallet-staking-runtime-api = { package = 'pallet-staking-runtime-api', default-features = false, git = 'https://github.com/joystream/substrate.git', rev = '1d0eefca86ef31b9e7727df01a6ed23ad65491e9' }
pallet-proxy = { package = 'pallet-proxy', default-features = false, git = 'https://github.com/joystream/substrate.git', rev = '1d0eefca86ef31b9e7727df01a6ed23ad65491e9' }
# Benchmarking
frame-benchmarking = { git = 'https://github.com/joystream/substrate.git', rev = '1d0eefca86ef31b9e7727df01a6ed23ad65491e9', default-features = false, optional = true }
frame-system-benchmarking = { git = 'https://github.com/joystream/substrate.git', rev = '1d0eefca86ef31b9e7727df01a6ed23ad65491e9', default-features = false, optional = true }
pallet-offences-benchmarking = { git = 'https://github.com/joystream/substrate.git', rev = '1d0eefca86ef31b9e7727df01a6ed23ad65491e9', default-features = false, optional = true }
pallet-session-benchmarking = { git = 'https://github.com/joystream/substrate.git', rev = '1d0eefca86ef31b9e7727df01a6ed23ad65491e9', default-features = false, optional = true }
hex-literal = { optional = true, version = '0.3.1' }
pallet-election-provider-support-benchmarking = { package = 'pallet-election-provider-support-benchmarking', default-features = false, optional = true, git = 'https://github.com/joystream/substrate.git', rev = '1d0eefca86ef31b9e7727df01a6ed23ad65491e9' }
# Joystream
common = { package = 'pallet-common', default-features = false, path = '../runtime-modules/common' }
forum = { package = 'pallet-forum', default-features = false, path = '../runtime-modules/forum' }
membership = { package = 'pallet-membership', default-features = false, path = '../runtime-modules/membership' }
referendum = { package = 'pallet-referendum', default-features = false, path = '../runtime-modules/referendum' }
council = { package = 'pallet-council', default-features = false, path = '../runtime-modules/council' }
working-group = { package = 'pallet-working-group', default-features = false, path = '../runtime-modules/working-group' }
storage = { package = 'pallet-storage', default-features = false, path = '../runtime-modules/storage' }
proposals-engine = { package = 'pallet-proposals-engine', default-features = false, path = '../runtime-modules/proposals/engine' }
proposals-discussion = { package = 'pallet-proposals-discussion', default-features = false, path = '../runtime-modules/proposals/discussion' }
proposals-codex = { package = 'pallet-proposals-codex', default-features = false, path = '../runtime-modules/proposals/codex' }
pallet-constitution = { package = 'pallet-constitution', default-features = false, path = '../runtime-modules/constitution' }
staking-handler = { package = 'pallet-staking-handler', default-features = false, path = '../runtime-modules/staking-handler' }
bounty = { package = 'pallet-bounty', default-features = false, path = '../runtime-modules/bounty' }
content = { package = 'pallet-content', default-features = false, path = '../runtime-modules/content' }
joystream-utility = { package = 'pallet-joystream-utility', default-features = false, path = '../runtime-modules/utility' }
project-token = { package = 'pallet-project-token', default-features = false, path = '../runtime-modules/project-token' }
argo-bridge = { package = 'pallet-argo-bridge', default-features = false, path = '../runtime-modules/argo-bridge' }
[dev-dependencies]
sp-io = { package = 'sp-io', default-features = false, git = 'https://github.com/joystream/substrate.git', rev = '1d0eefca86ef31b9e7727df01a6ed23ad65491e9' }
strum = { version = "0.19", default-features = false }
remote-externalities = { package = "frame-remote-externalities", git = 'https://github.com/joystream/substrate.git', rev = '1d0eefca86ef31b9e7727df01a6ed23ad65491e9' }
tokio = { version = "1.24.2", features = ["macros"] }
sp-tracing = { package = 'sp-tracing', git = 'https://github.com/joystream/substrate.git', rev = '1d0eefca86ef31b9e7727df01a6ed23ad65491e9' }
[build-dependencies]
substrate-wasm-builder = { git = "https://github.com/joystream/substrate", rev = '1d0eefca86ef31b9e7727df01a6ed23ad65491e9' }
[features]
default = ['std']
std = [
# Third-party dependencies
'serde',
'codec/std',
'scale-info/std',
'impl-serde/std',
# Substrate primitives
'sp-std/std',
'sp-core/std',
'sp-weights/std',
'sp-api/std',
'sp-version/std',
'sp-runtime/std',
'sp-arithmetic/std',
'sp-offchain/std',
'sp-authority-discovery/std',
'sp-consensus-babe/std',
'sp-transaction-pool/std',
'sp-block-builder/std',
'sp-session/std',
'sp-staking/std',
'sp-application-crypto/std',
'sp-io/std',
# Frame
'frame-support/std',
'frame-executive/std',
'frame-system-rpc-runtime-api/std',
'frame-system/std',
'frame-election-provider-support/std',
'frame-benchmarking/std',
'pallet-offences-benchmarking?/std',
'frame-system-benchmarking?/std',
'frame-try-runtime/std',
# Pallets
'pallet-timestamp/std',
'pallet-balances/std',
'pallet-transaction-payment/std',
'pallet-transaction-payment-rpc-runtime-api/std',
'pallet-grandpa/std',
'pallet-babe/std',
'pallet-session/std',
'pallet-session-benchmarking?/std',
'pallet-authority-discovery/std',
'pallet-authorship/std',
'pallet-insecure-randomness-collective-flip/std',
'pallet-staking/std',
'pallet-im-online/std',
'pallet-offences/std',
'pallet-vesting/std',
'pallet-multisig/std',
'substrate-utility/std',
'pallet-bags-list/std',
'pallet-election-provider-multi-phase/std',
'pallet-election-provider-support-benchmarking?/std',
'pallet-staking-runtime-api/std',
'pallet-proxy/std',
# Joystream
'common/std',
'forum/std',
'membership/std',
'council/std',
'referendum/std',
'working-group/std',
'storage/std',
'proposals-engine/std',
'proposals-discussion/std',
'proposals-codex/std',
'pallet-constitution/std',
'staking-handler/std',
'bounty/std',
'joystream-utility/std',
'content/std',
'project-token/std',
'argo-bridge/std',
'log/std',
]
runtime-benchmarks = [
"playground-runtime",
"hex-literal",
"frame-support/runtime-benchmarks",
"sp-runtime/runtime-benchmarks",
"frame-benchmarking/runtime-benchmarks",
"frame-system-benchmarking/runtime-benchmarks",
"frame-system/runtime-benchmarks",
# Substrate pallets
"pallet-offences-benchmarking/runtime-benchmarks",
"pallet-vesting/runtime-benchmarks",
"pallet-multisig/runtime-benchmarks",
"pallet-session-benchmarking/runtime-benchmarks",
"pallet-balances/runtime-benchmarks",
"pallet-im-online/runtime-benchmarks",
"pallet-staking/runtime-benchmarks",
"pallet-grandpa/runtime-benchmarks",
"pallet-babe/runtime-benchmarks",
"pallet-bags-list/runtime-benchmarks",
"pallet-timestamp/runtime-benchmarks",
"substrate-utility/runtime-benchmarks",
"pallet-election-provider-multi-phase/runtime-benchmarks",
"pallet-election-provider-support-benchmarking/runtime-benchmarks",
"pallet-proxy/runtime-benchmarks",
# Joystream
"common/runtime-benchmarks",
"proposals-discussion/runtime-benchmarks",
"proposals-engine/runtime-benchmarks",
"proposals-codex/runtime-benchmarks",
"joystream-utility/runtime-benchmarks",
"pallet-constitution/runtime-benchmarks",
"working-group/runtime-benchmarks",
"forum/runtime-benchmarks",
"membership/runtime-benchmarks",
"council/runtime-benchmarks",
"referendum/runtime-benchmarks",
"bounty/runtime-benchmarks",
'storage/runtime-benchmarks',
'content/runtime-benchmarks',
"project-token/runtime-benchmarks",
"argo-bridge/runtime-benchmarks",
]
# Configuration suitable for staging networks and playground
staging-runtime = []
playground-runtime = []
# Configuration suitable for automated integration testing only
testing-runtime = ["fast-block-production"]
# Default block production interval is 6s. Enabling this feature will configure chain for 1s interval instead.
fast-block-production = []
# Configures 1s block interval for the chain, but changes behaviour of `minutes!`, `hours!`, `days!` util macros
# to compute periods (in blocks) based on 6s block interval.
# This configuration is meant for QA (manual testing) of production runtime configuration.
# that has long time periods for things like council elections, proposals voting periods etc.
# Enabling warp-time with playground-runtime, staging-runtime or testing-runtime will most likely result in time periods to be too
# short (in real time sense) and beyond practicality.
warp-time = ["fast-block-production"]
try-runtime = [
"frame-try-runtime",
"frame-executive/try-runtime",
"frame-system/try-runtime",
"frame-support/try-runtime",
"pallet-authority-discovery/try-runtime",
"pallet-authorship/try-runtime",
"pallet-babe/try-runtime",
"pallet-bags-list/try-runtime",
"pallet-balances/try-runtime",
"pallet-election-provider-multi-phase/try-runtime",
"pallet-grandpa/try-runtime",
"pallet-im-online/try-runtime",
"pallet-multisig/try-runtime",
"pallet-offences/try-runtime",
"pallet-insecure-randomness-collective-flip/try-runtime",
"pallet-session/try-runtime",
"pallet-staking/try-runtime",
"pallet-timestamp/try-runtime",
"pallet-transaction-payment/try-runtime",
"pallet-vesting/try-runtime",
"substrate-utility/try-runtime",
"pallet-proxy/try-runtime",
# joystream
'forum/try-runtime',
'membership/try-runtime',
'council/try-runtime',
'referendum/try-runtime',
'working-group/try-runtime',
'storage/try-runtime',
'proposals-engine/try-runtime',
'proposals-discussion/try-runtime',
'proposals-codex/try-runtime',
'pallet-constitution/try-runtime',
'bounty/try-runtime',
'joystream-utility/try-runtime',
'content/try-runtime',
'project-token/try-runtime',
'argo-bridge/try-runtime',
]