Skip to content

Commit 8713d68

Browse files
committed
Merge branch 'devnet-ready' into clean-up-subnet-identities-storage
2 parents e3489c5 + f08b692 commit 8713d68

File tree

26 files changed

+2950
-108
lines changed

26 files changed

+2950
-108
lines changed

Cargo.lock

Lines changed: 66 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,9 @@ sha2 = { version = "0.10.8", default-features = false }
285285
rand_chacha = { version = "0.3.1", default-features = false }
286286
tle = { git = "https://github.com/ideal-lab5/timelock", rev = "5416406cfd32799e31e1795393d4916894de4468", default-features = false }
287287

288+
pallet-shield = { path = "pallets/shield", default-features = false }
289+
ml-kem = { version = "0.2.0", default-features = true }
290+
288291
# Primitives
289292

290293
[profile.release]

node/Cargo.toml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,13 +114,29 @@ fc-aura.workspace = true
114114
fp-consensus.workspace = true
115115
num-traits = { workspace = true, features = ["std"] }
116116

117+
# Mev Shield
118+
pallet-shield.workspace = true
119+
tokio = { version = "1.38", features = ["time"] }
120+
x25519-dalek = "2"
121+
hkdf = "0.12"
122+
chacha20poly1305 = { version = "0.10", features = ["std"] }
123+
codec.workspace = true
124+
rand.workspace = true
125+
sha2.workspace = true
126+
anyhow.workspace = true
127+
pallet-subtensor.workspace = true
128+
ml-kem.workspace = true
129+
rand_core = "0.9.3"
130+
blake2 = "0.10.6"
131+
117132
# Local Dependencies
118133
node-subtensor-runtime = { workspace = true, features = ["std"] }
119134
subtensor-runtime-common = { workspace = true, features = ["std"] }
120135
subtensor-custom-rpc = { workspace = true, features = ["std"] }
121136
subtensor-custom-rpc-runtime-api = { workspace = true, features = ["std"] }
122137
pallet-subtensor-swap-rpc = { workspace = true, features = ["std"] }
123138
pallet-subtensor-swap-runtime-api = { workspace = true, features = ["std"] }
139+
subtensor-macros.workspace = true
124140

125141
[build-dependencies]
126142
substrate-build-script-utils.workspace = true
@@ -138,6 +154,7 @@ default = ["rocksdb", "sql", "txpool"]
138154
fast-runtime = [
139155
"node-subtensor-runtime/fast-runtime",
140156
"subtensor-runtime-common/fast-runtime",
157+
"pallet-subtensor/fast-runtime",
141158
]
142159
sql = ["fc-db/sql", "fc-mapping-sync/sql"]
143160
txpool = ["fc-rpc/txpool", "fc-rpc-core/txpool"]
@@ -154,7 +171,10 @@ runtime-benchmarks = [
154171
"pallet-drand/runtime-benchmarks",
155172
"pallet-transaction-payment/runtime-benchmarks",
156173
"polkadot-sdk/runtime-benchmarks",
174+
"pallet-subtensor/runtime-benchmarks",
175+
"pallet-shield/runtime-benchmarks",
157176
]
177+
158178
pow-faucet = []
159179

160180
# Enable features that allow the runtime to be tried and debugged. Name might be subject to change
@@ -167,6 +187,8 @@ try-runtime = [
167187
"pallet-commitments/try-runtime",
168188
"pallet-drand/try-runtime",
169189
"polkadot-sdk/try-runtime",
190+
"pallet-shield/try-runtime",
191+
"pallet-subtensor/try-runtime",
170192
]
171193

172194
metadata-hash = ["node-subtensor-runtime/metadata-hash"]

node/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,6 @@ pub mod client;
44
pub mod conditional_evm_block_import;
55
pub mod consensus;
66
pub mod ethereum;
7+
pub mod mev_shield;
78
pub mod rpc;
89
pub mod service;

node/src/main.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ mod command;
1010
mod conditional_evm_block_import;
1111
mod consensus;
1212
mod ethereum;
13+
mod mev_shield;
1314
mod rpc;
1415
mod service;
1516

0 commit comments

Comments
 (0)