Registry / crypto / sp-npos-elections

sp-npos-elections

JSON →
library42.0.0rscratesunverified

NPoS election algorithm primitives for Polkadot SDK.

# Cargo.toml [dependencies] sp-npos-elections = "42.0.0"
INSTALL
IMPORT
SIG · SP-NPOS-ELECTIONS
S
sp-npos-elections
cryptorustv42.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.

ElectionResult
use sp_npos_elections::ElectionResult;

Creates a default NPoS election result.

use sp_npos_elections::ElectionResult; fn main() { let result = ElectionResult::default(); println!("Election result created"); }
Debug
Known issues
gotchaRequires substrate runtime environment; not standalone
fix
Use within a Substrate-based chain runtime
affects: >=42.0.0
Upgrade
Version history
42.0.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
19 hits · last 30 days
node
16
Resources
sp-npos-elections — cargo add sp-npos-elections · libregistry