mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-08 12:19:24 +00:00
Actually use the added `Allocations` abstraction Start using the sessions API in the validator-sets pallet Get a `substrate/validator-sets` approximate to compiling
85 lines
3.2 KiB
TOML
85 lines
3.2 KiB
TOML
[package]
|
|
name = "serai-validator-sets-pallet"
|
|
version = "0.1.0"
|
|
description = "Validator sets pallet"
|
|
license = "AGPL-3.0-only"
|
|
repository = "https://github.com/serai-dex/serai/tree/develop/substrate/validator-sets"
|
|
authors = ["Luke Parker <lukeparker5132@gmail.com>"]
|
|
edition = "2021"
|
|
rust-version = "1.85"
|
|
|
|
[package.metadata.docs.rs]
|
|
all-features = true
|
|
rustdoc-args = ["--cfg", "docsrs"]
|
|
|
|
[lints]
|
|
workspace = true
|
|
|
|
[dependencies]
|
|
bitvec = { version = "1", default-features = false, features = ["alloc", "serde"] }
|
|
|
|
scale = { package = "parity-scale-codec", version = "3", default-features = false, features = ["derive", "bit-vec"] }
|
|
scale-info = { version = "2", default-features = false, features = ["derive", "bit-vec"] }
|
|
|
|
sp-core = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "74839cba4a7f48023080215e5194fd6ab7e270e5", default-features = false }
|
|
sp-io = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "74839cba4a7f48023080215e5194fd6ab7e270e5", default-features = false }
|
|
sp-runtime = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "74839cba4a7f48023080215e5194fd6ab7e270e5", default-features = false }
|
|
sp-api = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "74839cba4a7f48023080215e5194fd6ab7e270e5", default-features = false }
|
|
|
|
frame-system = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "74839cba4a7f48023080215e5194fd6ab7e270e5", default-features = false }
|
|
frame-support = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "74839cba4a7f48023080215e5194fd6ab7e270e5", default-features = false }
|
|
|
|
serai-primitives = { path = "../primitives", default-features = false, features = ["non_canonical_scale_derivations"] }
|
|
|
|
coins-pallet = { package = "serai-coins-pallet", path = "../coins", default-features = false }
|
|
|
|
[dev-dependencies]
|
|
#pallet-timestamp = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "74839cba4a7f48023080215e5194fd6ab7e270e5", default-features = false }
|
|
|
|
#sp-consensus-babe = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "74839cba4a7f48023080215e5194fd6ab7e270e5", default-features = false }
|
|
|
|
#ciphersuite = { path = "../../../crypto/ciphersuite", default-features = false, features = ["std"] }
|
|
#dalek-ff-group = { path = "../../../crypto/dalek-ff-group", default-features = false, features = ["std"] }
|
|
#dkg-musig = { path = "../../../crypto/dkg/musig", default-features = false, features = ["std"] }
|
|
#frost = { package = "modular-frost", path = "../../../crypto/frost", features = ["tests"] }
|
|
#schnorrkel = { path = "../../../crypto/schnorrkel", package = "frost-schnorrkel" }
|
|
|
|
zeroize = "^1.5"
|
|
|
|
rand_core = "0.6"
|
|
borsh = { version = "1", default-features = false, features = ["derive", "de_strict_order"] }
|
|
|
|
[features]
|
|
std = [
|
|
"bitvec/std",
|
|
|
|
"scale/std",
|
|
"scale-info/std",
|
|
|
|
"sp-core/std",
|
|
"sp-io/std",
|
|
"sp-runtime/std",
|
|
"sp-api/std",
|
|
|
|
"frame-system/std",
|
|
"frame-support/std",
|
|
|
|
"serai-primitives/std",
|
|
|
|
"coins-pallet/std",
|
|
]
|
|
|
|
try-runtime = [
|
|
"frame-system/try-runtime",
|
|
"frame-support/try-runtime",
|
|
|
|
"sp-runtime/try-runtime",
|
|
]
|
|
|
|
runtime-benchmarks = [
|
|
"frame-system/runtime-benchmarks",
|
|
"frame-support/runtime-benchmarks",
|
|
]
|
|
|
|
default = ["std"]
|