Remove the staking pallet for validator-sets alone

The staking pallet is an indirection which offered no practical benefit yet
increased the overhead of every call.
This commit is contained in:
Luke Parker
2023-10-22 03:59:21 -04:00
parent a702d65c3d
commit d66a7ee43e
10 changed files with 193 additions and 434 deletions

18
Cargo.lock generated
View File

@@ -8567,7 +8567,6 @@ dependencies = [
"serai-in-instructions-pallet",
"serai-primitives",
"serai-signals-pallet",
"serai-staking-pallet",
"serai-validator-sets-pallet",
"sp-api",
"sp-authority-discovery",
@@ -8599,22 +8598,6 @@ dependencies = [
"sp-io",
]
[[package]]
name = "serai-staking-pallet"
version = "0.1.0"
dependencies = [
"frame-support",
"frame-system",
"pallet-session",
"parity-scale-codec",
"scale-info",
"serai-coins-pallet",
"serai-primitives",
"serai-validator-sets-pallet",
"sp-runtime",
"sp-std",
]
[[package]]
name = "serai-validator-sets-pallet"
version = "0.1.0"
@@ -8624,6 +8607,7 @@ dependencies = [
"pallet-session",
"parity-scale-codec",
"scale-info",
"serai-coins-pallet",
"serai-primitives",
"serai-validator-sets-primitives",
"sp-application-crypto",