forked from opentensor/subtensor
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
194 lines (176 loc) · 5.84 KB
/
Cargo.toml
File metadata and controls
194 lines (176 loc) · 5.84 KB
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
[package]
name = "node-subtensor"
version = "4.0.0-dev"
description = "A fresh FRAME-based Substrate node, ready for hacking."
authors = ["Substrate DevHub <https://github.com/substrate-developer-hub>"]
homepage = "https://substrate.io/"
edition.workspace = true
license = "Unlicense"
publish = false
repository = "https://github.com/opentensor/subtensor"
build = "build.rs"
[lints]
workspace = true
[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"]
[[bin]]
name = "node-subtensor"
[dependencies]
log.workspace = true
async-trait.workspace = true
clap = { workspace = true, features = ["derive"] }
futures = { workspace = true, features = ["thread-pool"] }
serde = { workspace = true, features = ["derive"] }
hex.workspace = true
# Storage import
memmap2.workspace = true
serde_json.workspace = true
sc-chain-spec-derive.workspace = true
sc-cli.workspace = true
sc-consensus-babe.workspace = true
sc-consensus-epochs.workspace = true
sp-consensus.workspace = true
sp-consensus-slots.workspace = true
sp-core.workspace = true
sc-executor.workspace = true
sc-service.workspace = true
sc-telemetry.workspace = true
sc-keystore.workspace = true
sc-transaction-pool.workspace = true
sc-transaction-pool-api.workspace = true
sc-offchain.workspace = true
sc-network.workspace = true
sc-consensus-aura.workspace = true
sp-consensus-aura.workspace = true
sp-consensus-babe.workspace = true
sc-consensus-babe-rpc.workspace = true
sc-consensus.workspace = true
sc-consensus-grandpa.workspace = true
sc-consensus-grandpa-rpc.workspace = true
sp-consensus-grandpa.workspace = true
sc-chain-spec.workspace = true
sc-consensus-slots.workspace = true
sc-client-api.workspace = true
sp-runtime.workspace = true
sp-io.workspace = true
sp-timestamp.workspace = true
sp-transaction-pool = { workspace = true, features = ["default"] }
sp-inherents.workspace = true
sp-keyring.workspace = true
sp-offchain.workspace = true
sp-session.workspace = true
frame-metadata-hash-extension.workspace = true
frame-system.workspace = true
pallet-transaction-payment.workspace = true
pallet-commitments.workspace = true
pallet-drand.workspace = true
sp-crypto-ec-utils = { workspace = true, default-features = true, features = [
"bls12-381",
] }
sp-keystore.workspace = true
polkadot-sdk = { workspace = true, features = [
"cumulus-primitives-proof-size-hostfunction",
] }
# These dependencies are used for the subtensor's RPCs
jsonrpsee = { workspace = true, features = ["server"] }
sc-rpc.workspace = true
sp-api.workspace = true
sc-rpc-api.workspace = true
sp-blockchain.workspace = true
sp-block-builder.workspace = true
sc-basic-authorship.workspace = true
substrate-frame-rpc-system.workspace = true
pallet-transaction-payment-rpc.workspace = true
frame-system-rpc-runtime-api.workspace = true
pallet-transaction-payment-rpc-runtime-api.workspace = true
# These dependencies are used for runtime benchmarking
frame-benchmarking.workspace = true
frame-benchmarking-cli.workspace = true
# Needed for Frontier
fc-mapping-sync.workspace = true
fc-storage.workspace = true
fc-babe.workspace = true
sc-consensus-manual-seal.workspace = true
sc-network-sync.workspace = true
substrate-prometheus-endpoint.workspace = true
# Frontier
fc-db.workspace = true
fc-consensus.workspace = true
fc-api.workspace = true
fc-rpc = { workspace = true, features = ["rpc-binary-search-estimate"] }
fc-rpc-core.workspace = true
fp-rpc.workspace = true
fc-aura.workspace = true
fp-consensus.workspace = true
num-traits = { workspace = true, features = ["std"] }
# Mev Shield
pallet-shield.workspace = true
tokio = { version = "1.38", features = ["time"] }
x25519-dalek = "2"
hkdf = "0.12"
chacha20poly1305 = { version = "0.10", features = ["std"] }
codec.workspace = true
rand.workspace = true
sha2.workspace = true
anyhow.workspace = true
pallet-subtensor.workspace = true
ml-kem.workspace = true
rand_core = "0.9.3"
blake2 = "0.10.6"
# Local Dependencies
node-subtensor-runtime = { workspace = true, features = ["std"] }
subtensor-runtime-common = { workspace = true, features = ["std"] }
subtensor-custom-rpc = { workspace = true, features = ["std"] }
subtensor-custom-rpc-runtime-api = { workspace = true, features = ["std"] }
pallet-subtensor-swap-rpc = { workspace = true, features = ["std"] }
pallet-subtensor-swap-runtime-api = { workspace = true, features = ["std"] }
subtensor-macros.workspace = true
[build-dependencies]
substrate-build-script-utils.workspace = true
[features]
rocksdb = [
"sc-service/rocksdb",
"fc-db/rocksdb",
"fc-mapping-sync/rocksdb",
"fc-rpc/rocksdb",
"frame-benchmarking-cli/rocksdb",
"sc-cli/rocksdb",
]
default = ["rocksdb", "sql", "txpool"]
fast-runtime = [
"node-subtensor-runtime/fast-runtime",
"subtensor-runtime-common/fast-runtime",
"pallet-subtensor/fast-runtime",
]
sql = ["fc-db/sql", "fc-mapping-sync/sql"]
txpool = ["fc-rpc/txpool", "fc-rpc-core/txpool"]
# Dependencies that are only required if runtime benchmarking should be build.
runtime-benchmarks = [
"node-subtensor-runtime/runtime-benchmarks",
"frame-benchmarking/runtime-benchmarks",
"frame-benchmarking-cli/runtime-benchmarks",
"frame-system/runtime-benchmarks",
"sc-service/runtime-benchmarks",
"sp-runtime/runtime-benchmarks",
"pallet-commitments/runtime-benchmarks",
"pallet-drand/runtime-benchmarks",
"pallet-transaction-payment/runtime-benchmarks",
"polkadot-sdk/runtime-benchmarks",
"pallet-subtensor/runtime-benchmarks",
"pallet-shield/runtime-benchmarks",
]
pow-faucet = []
# Enable features that allow the runtime to be tried and debugged. Name might be subject to change
# in the near future.
try-runtime = [
"node-subtensor-runtime/try-runtime",
"frame-system/try-runtime",
"pallet-transaction-payment/try-runtime",
"sp-runtime/try-runtime",
"pallet-commitments/try-runtime",
"pallet-drand/try-runtime",
"polkadot-sdk/try-runtime",
"pallet-shield/try-runtime",
"pallet-subtensor/try-runtime",
]
metadata-hash = ["node-subtensor-runtime/metadata-hash"]