forked from zkVerify/zkVerify
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
336 lines (302 loc) · 15.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
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
[workspace.package]
authors = ["Horizen Labs <[email protected]>"]
edition = "2021"
repository = "https://github.com/HorizenLabs/zkVerify"
homepage = "https://horizenlabs.io"
[workspace]
resolver = "2"
members = [
"node",
"runtime",
"pallets/proof_of_existence",
"primitives/hp-proof-of-existence",
"native",
"pallets/verifiers",
"pallets/verifiers/macros",
"primitives/hp-verifiers",
"primitives/hp-groth16",
"verifiers/fflonk",
"verifiers/zksync",
"verifiers/groth16",
"verifiers/risc0",
"verifiers/ultraplonk",
"verifiers/proofofsql",
"utils/native-cache",
"relay-node",
"relay-node/cli",
"relay-node/service",
"relay-node/test/client",
"relay-node/test/service",
"relay-node/test/runtime",
"relay-node/test/runtime/constants",
"relay-node/test/subsystem-helpers",
"relay-node/test/substrate/client",
"paratest/runtime",
"paratest/node",
"paratest/pallets/template",
]
exclude = [
"utils/generate-bags/node-runtime",
]
# default-members = ["node"]
[workspace.dependencies]
clap = { version = "4.4.10", features = ["derive"] }
futures = { version = "0.3.21", features = ["thread-pool"] }
jsonrpsee = { version = "0.22.5", features = ["server"] }
binary-merkle-tree = { default-features = false, version = "15.0.0" }
snafu = { version = "0.8.0", default-features = false }
async-trait = { version = "0.1.57" }
serde = { version = "1.0.197" }
rstest = { version = "0.19.0" }
rstest_reuse = { version = "0.7.0" }
hex-literal = { version = "0.4.1" }
sc-cli = { version = "0.40.0" }
sc-executor = { version = "0.36.0" }
sc-network = { version = "0.38.0", default-features = false }
sc-service = { version = "0.39.0", default-features = false }
sc-telemetry = { version = "18.0.0" }
sc-transaction-pool = { version = "32.0.0" }
sc-transaction-pool-api = { version = "32.0.0" }
sc-offchain = { version = "33.0.0" }
sc-consensus-babe = { version = "0.38.0" }
sc-consensus-babe-rpc = { version = "0.38.0" }
sc-consensus = { version = "0.37.0" }
sc-consensus-grandpa = { version = "0.23.0" }
sc-consensus-grandpa-rpc = { version = "0.23.0" }
sc-client-api = { version = "32.0.0" }
sc-sysinfo = { version = "31.0.0" }
pallet-transaction-payment = { default-features = false, version = "32.0.0" }
sp-io = { default-features = false, version = "34.0.0" }
sp-timestamp = { default-features = false, version = "30.0.0" }
sp-keyring = { version = "35.0.0" }
sp-keystore = { version = "0.38.0" }
native = { default-features = false, path = "native" }
pallet-poe = { path = "pallets/proof_of_existence", default-features = false }
pallet-verifiers = { path = "pallets/verifiers", default-features = false }
pallet-verifiers-macros = { path = "pallets/verifiers/macros" }
hp-verifiers = { path = "primitives/hp-verifiers", default-features = false }
hp-groth16 = { path = "primitives/hp-groth16", default-features = false }
pallet-fflonk-verifier = { path = "verifiers/fflonk", default-features = false }
pallet-zksync-verifier = { path = "verifiers/zksync", default-features = false }
pallet-groth16-verifier = { path = "verifiers/groth16", default-features = false }
pallet-risc0-verifier = { path = "verifiers/risc0", default-features = false }
pallet-ultraplonk-verifier = { path = "verifiers/ultraplonk", default-features = false }
pallet-proofofsql-verifier = { path = "verifiers/proofofsql", default-features = false }
native-cache = { path = "utils/native-cache" }
zkv-runtime = { path = "runtime", default-features = false }
# These dependencies are used for the node template's RPCs
sc-rpc = { version = "33.0.0" }
sc-rpc-api = { version = "0.37.0" }
sp-blockchain = { version = "32.0.0" }
sc-basic-authorship = { version = "0.38.0" }
substrate-frame-rpc-system = { version = "32.0.0" }
frame-election-provider-support = { version = "32.0.0", default-features = false }
pallet-election-provider-support-benchmarking = { version = "31.0.0", default-features = false }
pallet-session-benchmarking = { version = "32.0.0", default-features = false }
pallet-transaction-payment-rpc = { version = "34.0.0" }
frame-benchmarking-cli = { version = "36.0.0" }
# CLI-specific dependencies
try-runtime-cli = { version = "0.42.0" }
codec = { package = "parity-scale-codec", version = "3.6.12", default-features = false, features = [
"derive",
] }
scale-info = { version = "2.10.0", default-features = false, features = [
"derive",
"serde",
] }
pallet-offences = { default-features = false, version = "31.0.0" }
pallet-im-online = { default-features = false, version = "31.0.0" }
pallet-authorship = { default-features = false, version = "32.0.0" }
pallet-bags-list = { default-features = false, version = "31.0.0" }
pallet-session = { default-features = false, version = "32.0.0" }
pallet-staking = { default-features = false, version = "32.0.0" }
pallet-staking-reward-curve = { default-features = false, version = "11.0.0" }
pallet-babe = { default-features = false, version = "32.0.0" }
pallet-balances = { default-features = false, version = "33.0.0" }
frame-support = { default-features = false, version = "32.0.0" }
pallet-grandpa = { default-features = false, version = "32.0.0" }
pallet-sudo = { default-features = false, version = "32.0.0" }
pallet-multisig = { default-features = false, version = "32.0.0" }
pallet-scheduler = { default-features = false, version = "33.0.0" }
pallet-preimage = { default-features = false, version = "32.0.0" }
pallet-referenda = { default-features = false, version = "32.0.0" }
pallet-utility = { default-features = false, version = "32.0.0" }
pallet-vesting = { default-features = false, version = "32.0.0" }
pallet-whitelist = { default-features = false, version = "31.0.0" }
pallet-conviction-voting = { default-features = false, version = "32.0.0" }
pallet-treasury = { default-features = false, version = "31.0.0" }
pallet-bounties = { default-features = false, version = "31.0.0" }
pallet-child-bounties = { default-features = false, version = "31.0.0" }
pallet-proxy = { default-features = false, version = "32.0.0" }
frame-system = { default-features = false, version = "32.0.0" }
frame-try-runtime = { default-features = false, version = "0.38.0" }
pallet-timestamp = { default-features = false, version = "31.0.0" }
frame-executive = { default-features = false, version = "32.0.0" }
sp-api = { default-features = false, version = "30.0.0" }
sp-block-builder = { default-features = false, version = "30.0.0" }
sp-consensus = { default-features = false, version = "0.36.0" }
sp-consensus-babe = { default-features = false, features = [
"serde",
], version = "0.36.0" }
finality-grandpa = { default-features = false, version = "0.16.2" }
sp-consensus-grandpa = { default-features = false, features = [
"serde",
], version = "17.0.0" }
sp-core = { default-features = false, features = ["serde"], version = "32.0.0" }
sp-inherents = { default-features = false, version = "30.0.0" }
sp-offchain = { default-features = false, version = "30.0.0" }
sp-runtime = { default-features = false, features = [
"serde",
], version = "35.0.0" }
sp-runtime-interface = { version = "27.0.0", default-features = false }
sp-session = { default-features = false, version = "31.0.0" }
sp-staking = { default-features = false, version = "30.0.0" }
sp-std = { default-features = false, version = "14.0.0" }
sp-storage = { default-features = false, version = "21.0.0" }
sp-transaction-pool = { default-features = false, version = "30.0.0" }
sp-version = { default-features = false, features = [
"serde",
], version = "33.0.0" }
serde_json = { version = "1.0.108", default-features = false, features = [
"alloc",
] }
sp-weights = { default-features = false, version = "31.0.0" }
sp-genesis-builder = { default-features = false, version = "0.11.0" }
sp-npos-elections = { default-features = false, version = "30.0.0" }
hp-poe = { default-features = false, path = "primitives/hp-proof-of-existence" }
proof-of-existence-rpc = { default-features = false, path = "rpc/proof_of_existence" }
proof-of-existence-rpc-runtime-api = { default-features = false, path = "rpc/proof_of_existence/runtime-api" }
# Used for the node template's RPCs
frame-system-rpc-runtime-api = { default-features = false, version = "30.0.0" }
pallet-transaction-payment-rpc-runtime-api = { default-features = false, version = "32.0.0" }
# Used for runtime benchmarking
frame-benchmarking = { default-features = false, version = "32.0.0" }
frame-system-benchmarking = { default-features = false, version = "32.0.0" }
substrate-wasm-builder = { version = "21.0.0" }
substrate-build-script-utils = { version = "11.0.0" }
polkadot-service = { version = "11.0.0" }
# Used for relay chain
zkv-relay = { path = "relay-node" }
zkv-cli = { path = "relay-node/cli" }
service = { package = "zkv-service", path = "relay-node/service" }
polkadot-node-core-pvf = { version = "11.0.0" }
polkadot-node-core-pvf-prepare-worker = { version = "11.0.0" }
polkadot-overseer = { version = "11.0.0" }
polkadot-node-core-pvf-common = { version = "11.0.0" }
polkadot-node-core-pvf-execute-worker = { version = "11.0.0" }
sc-authority-discovery = { version = "0.38.0" }
sc-block-builder = { version = "0.37.0" }
sc-chain-spec = { version = "31.0.0" }
sc-client-db = { version = "0.39.0" }
sc-consensus-slots = { version = "0.37.0" }
sc-network-common = { version = "0.37.0" }
sc-network-sync = { version = "0.37.0" }
sc-sync-state-rpc = { version = "0.38.0" }
sc-keystore = { version = "29.0.0" }
telemetry = { package = "sc-telemetry", version = "18.0.0" }
sp-authority-discovery = { version = "30.0.0", default-features = false }
consensus_common = { package = "sp-consensus", version = "0.36.0" }
sp-state-machine = { version = "0.39.0" }
prometheus-endpoint = { package = "substrate-prometheus-endpoint", version = "0.17.0" }
substrate-state-trie-migration-rpc = { version = "31.0.0" }
polkadot-node-metrics = { version = "11.0.0" } # Our own
polkadot-node-primitives = { version = "11.0.0" }
sc-storage-monitor = { version = "0.20.0" }
sc-tracing = { version = "32.0.0" }
sp-maybe-compressed-blob = { version = "11.0.0" }
gum = { package = "tracing-gum", version = "11.0.0" }
polkadot-approval-distribution = { version = "11.0.0" }
polkadot-availability-bitfield-distribution = { version = "11.0.0" }
polkadot-availability-distribution = { version = "11.0.0" }
polkadot-availability-recovery = { version = "11.0.0" }
polkadot-collator-protocol = { version = "11.0.0" }
polkadot-dispute-distribution = { version = "11.0.0" }
polkadot-gossip-support = { version = "11.0.0" }
polkadot-network-bridge = { version = "11.0.0" }
polkadot-node-collation-generation = { version = "11.0.0" }
polkadot-node-core-approval-voting = { version = "11.0.0" }
polkadot-node-core-av-store = { version = "11.0.0" }
polkadot-node-core-backing = { version = "11.0.0" }
polkadot-node-core-bitfield-signing = { version = "11.0.0" }
polkadot-node-core-candidate-validation = { version = "11.0.0" }
polkadot-node-core-chain-api = { version = "11.0.0" }
polkadot-node-core-chain-selection = { version = "11.0.0" }
polkadot-node-core-dispute-coordinator = { version = "11.0.0" }
polkadot-node-core-prospective-parachains = { version = "10.0.0" }
polkadot-node-core-provisioner = { version = "11.0.0" }
polkadot-node-core-pvf-checker = { version = "11.0.0" }
polkadot-node-core-runtime-api = { version = "11.0.0" }
polkadot-statement-distribution = { version = "11.0.0" }
polkadot-core-primitives = { version = "11.0.0" }
polkadot-node-core-parachains-inherent = { version = "11.0.0" }
polkadot-parachain-primitives = { version = "10.0.0", default-features = false }
polkadot-primitives = { version = "11.0.0", default-features = false }
polkadot-rpc = { version = "11.0.0" }
polkadot-node-subsystem = { version = "11.0.0" }
polkadot-node-subsystem-util = { version = "11.0.0" }
polkadot-node-subsystem-types = { version = "11.0.0" }
polkadot-runtime-parachains = { version = "11.0.0", default-features = false }
polkadot-node-network-protocol = { version = "11.0.0" }
authority-discovery-primitives = { package = "sp-authority-discovery", version = "30.0.0", default-features = false }
pallet-authority-discovery = { default-features = false, version = "32.0.0" }
polkadot-runtime-common = { default-features = false, version = "11.0.0" }
sc-rpc-spec-v2 = { version = "0.38.0" }
# TEST
substrate-test-client = { path = "relay-node/test/substrate/client" }
sp-trie = { version = "33.0.0" }
sp-arithmetic = { version = "26.0.0" }
substrate-test-utils = { version = "3.0.0", git = "https://github.com/paritytech/polkadot-sdk", branch = "release-crates-io-v1.10.0" }
sc-utils = { version = "17.0.0" }
sp-application-crypto = { version = "34.0.0", default-features = false }
pallet-indices = { version = "32.0.0", default-features = false }
pallet-xcm = { version = "11.0.0", default-features = false }
pallet-xcm-benchmarks = { version = "11.0.0", default-features = false }
xcm-builder = { package = "staging-xcm-builder", version = "11.0.0", default-features = false }
xcm-executor = { package = "staging-xcm-executor", version = "11.0.0", default-features = false }
xcm = { package = "staging-xcm", version = "11.0.0", default-features = false }
pallet-aura = { default-features = false, version = "31.0.0" }
sp-consensus-aura = { default-features = false, version = "0.36.0" }
# Cumulus
cumulus-client-cli = { version = "0.11.0" }
cumulus-client-collator = { version = "0.11.0" }
cumulus-client-consensus-aura = { version = "0.11.0" }
cumulus-client-consensus-common = { version = "0.11.0" }
cumulus-client-consensus-proposer = { version = "0.11.0" }
cumulus-client-service = { version = "0.11.0" }
cumulus-primitives-parachain-inherent = { version = "0.11.0" }
cumulus-relay-chain-interface = { version = "0.11.0" }
cumulus-primitives-aura = { default-features = false, version = "0.11.0" }
cumulus-pallet-aura-ext = { default-features = false, version = "0.11.0" }
cumulus-pallet-dmp-queue = { default-features = false, version = "0.11.0" }
cumulus-pallet-parachain-system = { default-features = false, version = "0.11.0" }
cumulus-pallet-session-benchmarking = { default-features = false, version = "13.0.0" }
cumulus-pallet-xcm = { default-features = false, version = "0.11.0" }
cumulus-pallet-xcmp-queue = { default-features = false, version = "0.11.0" }
cumulus-primitives-core = { default-features = false, version = "0.11.0" }
cumulus-primitives-utility = { default-features = false, version = "0.11.0" }
pallet-message-queue = { default-features = false, version = "35.0.0" }
pallet-collator-selection = { default-features = false, version = "13.0.1" }
parachains-common = { default-features = false, version = "11.0.0" }
parachain-info = { package = "staging-parachain-info", default-features = false, version = "0.11.0" }
cumulus-relay-chain-rpc-interface = { version = "0.11.0" }
substrate-rpc-client = { version = "0.37.0" }
[patch.crates-io]
cumulus-relay-chain-inprocess-interface = { path = "patches/cumulus/client/relay-chain-inprocess-interface" }
cumulus-relay-chain-minimal-node = { path = "patches/cumulus/client/relay-chain-minimal-node" }
[profile.release]
# Polkadot runtime requires unwinding.
panic = "unwind"
opt-level = 3
# make sure dev builds with backtrace do
# not slow us down
[profile.dev.package.backtrace]
inherits = "release"
[profile.production]
inherits = "release"
lto = true
codegen-units = 1
[profile.testnet]
inherits = "release"
debug = 1 # debug symbols are useful for profilers
debug-assertions = true
overflow-checks = true