mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-07-15 19:35:43 +00:00
b793666ca5
* Abstracts elections-phragmen pallet to use NposSolver * Update frame/elections-phragmen/src/lib.rs Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com> * Update frame/elections-phragmen/src/lib.rs Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com> * changes the name of the pallet; adds changelog * update changelog * Adds weight testing * Adds log macro_rules * renames elections-phragment dir to elections * weights rename * fixes typo in cargo toml * pre/post solve weight scafolding * refactor do_post_election * refactors into pre and post election solve for independent benchmarking * deconstructs PreElectionResults struct * updates benchmarking pre and post election solve; mock weights * Update frame/elections/src/lib.rs Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com> * Update frame/elections/src/lib.rs Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com> * addresses PR comments * adds pre_solve and post_sove weights * Adds comments on election pallet id param name change * ".git/.scripts/bench-bot.sh" pallet dev pallet_elections * Finishes pre-post solve weights * Update frame/elections/src/lib.rs Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com> * Update frame/elections/src/lib.rs Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com> * Addresses PR comments: no panic in on_init path; nits * Fixes node build * Implements approval voting to use as a `NposSolver` (#13367) * Implements the approval voting methods in sp_npos_elections * fmt * remove unecessary file * comment clarification * re-run weights * fix typo * updates MaxVoters in tests for integrity_tests to pass * Refactors election provider support benchmarks outside its own crate (#13431) * Refactors election provider support benchmarks outside its own crate --------- Co-authored-by: command-bot <> --------- Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com> Co-authored-by: parity-processbot <> Co-authored-by: Ross Bulat <ross@parity.io>
53 lines
2.0 KiB
TOML
53 lines
2.0 KiB
TOML
[package]
|
|
name = "frame-election-provider-support"
|
|
version = "4.0.0-dev"
|
|
authors = ["Parity Technologies <admin@parity.io>"]
|
|
edition = "2021"
|
|
license = "Apache-2.0"
|
|
homepage = "https://substrate.io"
|
|
repository = "https://github.com/paritytech/substrate/"
|
|
description = "election provider supporting traits"
|
|
|
|
[package.metadata.docs.rs]
|
|
targets = ["x86_64-unknown-linux-gnu"]
|
|
|
|
[dependencies]
|
|
codec = { package = "parity-scale-codec", version = "3.2.2", default-features = false, features = ["derive"] }
|
|
scale-info = { version = "2.1.1", default-features = false, features = ["derive"] }
|
|
frame-election-provider-solution-type = { version = "4.0.0-dev", path = "solution-type" }
|
|
frame-support = { version = "4.0.0-dev", default-features = false, path = "../support" }
|
|
frame-system = { version = "4.0.0-dev", default-features = false, path = "../system" }
|
|
sp-arithmetic = { version = "6.0.0", default-features = false, path = "../../primitives/arithmetic" }
|
|
sp-npos-elections = { version = "4.0.0-dev", default-features = false, path = "../../primitives/npos-elections" }
|
|
sp-runtime = { version = "7.0.0", default-features = false, path = "../../primitives/runtime" }
|
|
sp-std = { version = "5.0.0", default-features = false, path = "../../primitives/std" }
|
|
sp-core = { version = "7.0.0", default-features = false, path = "../../primitives/core" }
|
|
|
|
frame-benchmarking = { version = "4.0.0-dev", default-features = false, path = "../benchmarking", optional = true }
|
|
|
|
[dev-dependencies]
|
|
rand = { version = "0.8.5", features = ["small_rng"] }
|
|
sp-io = { version = "7.0.0", path = "../../primitives/io" }
|
|
sp-npos-elections = { version = "4.0.0-dev", path = "../../primitives/npos-elections" }
|
|
|
|
[features]
|
|
default = ["std"]
|
|
fuzz = ["default"]
|
|
std = [
|
|
"codec/std",
|
|
"frame-support/std",
|
|
"frame-system/std",
|
|
"scale-info/std",
|
|
"sp-arithmetic/std",
|
|
"sp-npos-elections/std",
|
|
"sp-core/std",
|
|
"sp-runtime/std",
|
|
"sp-std/std",
|
|
|
|
"frame-benchmarking?/std",
|
|
]
|
|
runtime-benchmarks = [
|
|
"frame-benchmarking/runtime-benchmarks",
|
|
]
|
|
try-runtime = []
|