mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 09:21:04 +00:00
e2960c383e
* more clear randomness API for BABE * babe: move randomness utilities to its own file * node: use babe::RandomnessFromOneEpochAgo in random_seed implementation * frame-support: annotate randomness trait with block number * pallet-randomness-collective-flip: fix for new randomness trait * pallet-society: fix randomness usage * pallet-lottery: fix randomness usage * pallet-contracts: fix randomness usage * pallet-babe: fix randomness usage we need to track when the current and previous epoch started so that we know the block number by each existing on-chain was known * node: fix random_seed * node-template: fix random_seed * frame-support: extend docs * babe: add test for epoch starting block number tracking * babe: fix epoch randomness docs * frame: add todos for dealing with randomness api changes Co-authored-by: André Silva <andrerfosilva@gmail.com>
46 lines
1.5 KiB
TOML
46 lines
1.5 KiB
TOML
[package]
|
|
name = "pallet-lottery"
|
|
version = "3.0.0"
|
|
authors = ["Parity Technologies <admin@parity.io>"]
|
|
edition = "2018"
|
|
license = "Apache-2.0"
|
|
homepage = "https://substrate.dev"
|
|
repository = "https://github.com/paritytech/substrate/"
|
|
description = "FRAME Participation Lottery Pallet"
|
|
readme = "README.md"
|
|
|
|
[package.metadata.docs.rs]
|
|
targets = ["x86_64-unknown-linux-gnu"]
|
|
|
|
[dependencies]
|
|
codec = { package = "parity-scale-codec", version = "2.0.0", default-features = false, features = ["derive"] }
|
|
sp-std = { version = "3.0.0", default-features = false, path = "../../primitives/std" }
|
|
sp-runtime = { version = "3.0.0", default-features = false, path = "../../primitives/runtime" }
|
|
frame-support = { version = "3.0.0", default-features = false, path = "../support" }
|
|
frame-system = { version = "3.0.0", default-features = false, path = "../system" }
|
|
|
|
frame-benchmarking = { version = "3.1.0", default-features = false, path = "../benchmarking", optional = true }
|
|
|
|
[dev-dependencies]
|
|
frame-support-test = { version = "3.0.0", path = "../support/test" }
|
|
pallet-balances = { version = "3.0.0", path = "../balances" }
|
|
sp-core = { version = "3.0.0", path = "../../primitives/core" }
|
|
sp-io = { version = "3.0.0", path = "../../primitives/io" }
|
|
serde = { version = "1.0.101" }
|
|
|
|
[features]
|
|
default = ["std"]
|
|
std = [
|
|
"codec/std",
|
|
"sp-std/std",
|
|
"frame-support/std",
|
|
"sp-runtime/std",
|
|
"frame-system/std",
|
|
]
|
|
runtime-benchmarks = [
|
|
"frame-benchmarking",
|
|
"frame-system/runtime-benchmarks",
|
|
"frame-support/runtime-benchmarks",
|
|
]
|
|
try-runtime = ["frame-support/try-runtime"]
|