mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-18 16:31:03 +00:00
5595f10245
* Ranked Collective pallet * Fixes * benchmarks * Weights * Allow class voting in rank Use bare ayes for calculating support. Allow only promotion/demotion by one rank only. Allow removal of member with rank zero only. Use new Tally API * Index by rank, still O(1). * Custom vote weights * Formatting * Update frame/ranked-collective/src/lib.rs * Broken :( * origin guard; cleanup uses new API * Formatting * Promote/demote by rank * Formatting * Use new API * Remove code in another PR * Remove code in another PR * Formatting * Remove code in another PR * Docs * Docs * Bump * Fixes * Formatting * Fixes
50 lines
1.9 KiB
TOML
50 lines
1.9 KiB
TOML
[package]
|
|
name = "pallet-ranked-collective"
|
|
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 = "Ranked collective system: Members of a set of account IDs can make their collective feelings known through dispatched calls from one of two specialized origins."
|
|
readme = "README.md"
|
|
|
|
[package.metadata.docs.rs]
|
|
targets = ["x86_64-unknown-linux-gnu"]
|
|
|
|
[dependencies]
|
|
codec = { package = "parity-scale-codec", version = "3.0.0", default-features = false, features = ["derive"] }
|
|
log = { version = "0.4.16", default-features = false }
|
|
scale-info = { version = "2.0.1", default-features = false, features = ["derive"] }
|
|
frame-benchmarking = { version = "4.0.0-dev", default-features = false, optional = true, path = "../benchmarking" }
|
|
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 = "5.0.0", default-features = false, path = "../../primitives/arithmetic" }
|
|
sp-core = { version = "6.0.0", default-features = false, path = "../../primitives/core" }
|
|
sp-io = { version = "6.0.0", default-features = false, path = "../../primitives/io" }
|
|
sp-runtime = { version = "6.0.0", default-features = false, path = "../../primitives/runtime" }
|
|
sp-std = { version = "4.0.0", default-features = false, path = "../../primitives/std" }
|
|
|
|
[features]
|
|
default = ["std"]
|
|
std = [
|
|
"codec/std",
|
|
"frame-benchmarking/std",
|
|
"frame-support/std",
|
|
"frame-system/std",
|
|
"log/std",
|
|
"scale-info/std",
|
|
"sp-arithmetic/std",
|
|
"sp-core/std",
|
|
"sp-io/std",
|
|
"sp-runtime/std",
|
|
"sp-std/std",
|
|
]
|
|
runtime-benchmarks = [
|
|
"frame-benchmarking/runtime-benchmarks",
|
|
"frame-support/runtime-benchmarks",
|
|
"frame-system/runtime-benchmarks",
|
|
"sp-runtime/runtime-benchmarks",
|
|
]
|
|
try-runtime = ["frame-support/try-runtime"]
|