Skip to content

Commit 2688df0

Browse files
committed
Merge branch 'devnet-ready' into remove-gov-done-migrations
2 parents 5e8b036 + 33bdf7b commit 2688df0

File tree

30 files changed

+3011
-148
lines changed

30 files changed

+3011
-148
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]

evm-tests/run-ci.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ if [ "$i" -eq 1000 ]; then
1919
exit 1
2020
fi
2121

22-
sleep 5
22+
sleep 10
2323

2424
if ! nc -z localhost 9944; then
2525
echo "node subtensor exit, port not available"

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/chain_spec/localnet.rs

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,11 @@ pub fn localnet_config(single_authority: bool) -> Result<ChainSpec, String> {
3434
// aura | grandpa
3535
if single_authority {
3636
// single authority allows you to run the network using a single node
37-
vec![authority_keys_from_seed("Alice")]
37+
vec![authority_keys_from_seed("One")]
3838
} else {
3939
vec![
40-
authority_keys_from_seed("Alice"),
41-
authority_keys_from_seed("Bob"),
40+
authority_keys_from_seed("One"),
41+
authority_keys_from_seed("Two"),
4242
]
4343
},
4444
// Pre-funded accounts
@@ -77,6 +77,14 @@ fn localnet_genesis(
7777
get_account_id_from_seed::<sr25519::Public>("Ferdie"),
7878
2000000000000u128,
7979
),
80+
(
81+
get_account_id_from_seed::<sr25519::Public>("One"),
82+
2000000000000u128,
83+
),
84+
(
85+
get_account_id_from_seed::<sr25519::Public>("Two"),
86+
2000000000000u128,
87+
),
8088
// ETH
8189
(
8290
// Alith - 0xf24FF3a9CF04c71Dbc94D0b566f7A27B94566cac

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)