Registry / crypto / sp-staking

sp-staking

JSON →
library44.0.0rscratesunverified

Primitives for staking implementations in Substrate-based blockchains, including sessions and slashing definitions.

# Cargo.toml [dependencies] sp-staking = "44.0.0"
INSTALL
IMPORT
SIG · SP-STAKING
S
sp-staking
cryptorustv44.0.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

StakingInterface
use sp_staking::StakingInterface;

Demonstrates using the StakingInterface trait in a generic function.

use sp_staking::StakingInterface; // This trait is implemented by runtime staking pallets. fn process_staking<T: StakingInterface>() { let _ = T::current_era(); }
Debug
Known issues
gotchaRequires Substrate runtime environment and specific feature flags.
fix
Enable `std` feature and ensure compatibility with your Substrate version.
affects: >=44.0.0
Upgrade
Version history
44.0.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
14 hits · last 30 days
node
12
Amazon
1
Resources
sp-staking — cargo add sp-staking · libregistry