Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
8e14188
initial impl
JohnReedV Nov 14, 2025
acdb631
finish pallet impl
JohnReedV Nov 18, 2025
83e040d
fix comments & add freeze_struct
JohnReedV Nov 18, 2025
a6a3817
fix imports
JohnReedV Nov 18, 2025
0fca3db
rename pallet
JohnReedV Nov 18, 2025
0f711d0
use saturating math
JohnReedV Nov 18, 2025
680880f
fix logs
JohnReedV Nov 18, 2025
c327692
fmt
JohnReedV Nov 18, 2025
27bc798
fix localnet script
JohnReedV Nov 18, 2025
6bf5072
remove unused params
JohnReedV Nov 19, 2025
1911158
add weights
JohnReedV Nov 19, 2025
db695a3
restrict execute_revealed source to local/inblock
JohnReedV Nov 19, 2025
1db33f8
remove more unused
JohnReedV Nov 19, 2025
754d508
remove key_epoch param
JohnReedV Nov 19, 2025
0b64fc1
use Pays::Yes
JohnReedV Nov 19, 2025
8036d0a
auto-update benchmark weights
github-actions[bot] Nov 19, 2025
7f4553b
Merge branch 'pallet-shield' of github.com:opentensor/subtensor into …
JohnReedV Nov 19, 2025
b177620
add benchmarks for pallet-shield
JohnReedV Nov 20, 2025
b8b20c7
fix typo
JohnReedV Nov 20, 2025
fb9d941
fix typo again
JohnReedV Nov 23, 2025
3c096d6
auto-update benchmark weights
github-actions[bot] Nov 24, 2025
0a4845c
finalize weights
JohnReedV Nov 24, 2025
f1ce2fe
zepter
JohnReedV Nov 24, 2025
11d2281
Merge branch 'devnet-ready' into pallet-shield
JohnReedV Nov 24, 2025
7a572dc
bump spec
JohnReedV Nov 24, 2025
db44756
add unit tests
JohnReedV Nov 24, 2025
d8fe74b
remove epoch
JohnReedV Nov 25, 2025
1999fbf
remove epoch in benchmarks
JohnReedV Nov 25, 2025
5f68f45
add fast-runtime compatibility
JohnReedV Nov 25, 2025
6ea7c54
fmt
JohnReedV Nov 25, 2025
e99df02
more timing
JohnReedV Nov 25, 2025
c153a37
clippy
JohnReedV Nov 25, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
66 changes: 66 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,9 @@ sha2 = { version = "0.10.8", default-features = false }
rand_chacha = { version = "0.3.1", default-features = false }
tle = { git = "https://github.com/ideal-lab5/timelock", rev = "5416406cfd32799e31e1795393d4916894de4468", default-features = false }

pallet-shield = { path = "pallets/shield", default-features = false }
ml-kem = { version = "0.2.0", default-features = true }

# Primitives

[profile.release]
Expand Down
22 changes: 22 additions & 0 deletions node/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -114,13 +114,29 @@ 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
Expand All @@ -138,6 +154,7 @@ 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"]
Expand All @@ -154,7 +171,10 @@ 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
Expand All @@ -167,6 +187,8 @@ 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"]
1 change: 1 addition & 0 deletions node/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@ pub mod client;
pub mod conditional_evm_block_import;
pub mod consensus;
pub mod ethereum;
pub mod mev_shield;
pub mod rpc;
pub mod service;
1 change: 1 addition & 0 deletions node/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ mod command;
mod conditional_evm_block_import;
mod consensus;
mod ethereum;
mod mev_shield;
mod rpc;
mod service;

Expand Down
Loading
Loading