prepping for releasing rc6 (#6922)

* Bump version

* update test-utils crates to be ready for publishing

* adding changelog

* Adding automaticly generated READMEs

* fixing versions

* another version mishap
This commit is contained in:
Benjamin Kampmann
2020-08-20 17:04:42 +02:00
committed by GitHub
parent 6f59c95c89
commit 2416aa7999
335 changed files with 5490 additions and 1879 deletions
@@ -1,6 +1,6 @@
[package]
name = "pallet-randomness-collective-flip"
version = "2.0.0-rc5"
version = "2.0.0-rc6"
authors = ["Parity Technologies <admin@parity.io>"]
edition = "2018"
license = "Apache-2.0"
@@ -14,14 +14,14 @@ targets = ["x86_64-unknown-linux-gnu"]
[dependencies]
safe-mix = { version = "1.0", default-features = false }
codec = { package = "parity-scale-codec", version = "1.3.4", default-features = false, features = ["derive"] }
sp-runtime = { version = "2.0.0-rc5", default-features = false, path = "../../primitives/runtime" }
frame-support = { version = "2.0.0-rc5", default-features = false, path = "../support" }
frame-system = { version = "2.0.0-rc5", default-features = false, path = "../system" }
sp-std = { version = "2.0.0-rc5", default-features = false, path = "../../primitives/std" }
sp-runtime = { version = "2.0.0-rc6", default-features = false, path = "../../primitives/runtime" }
frame-support = { version = "2.0.0-rc6", default-features = false, path = "../support" }
frame-system = { version = "2.0.0-rc6", default-features = false, path = "../system" }
sp-std = { version = "2.0.0-rc6", default-features = false, path = "../../primitives/std" }
[dev-dependencies]
sp-core = { version = "2.0.0-rc5", path = "../../primitives/core" }
sp-io = { version = "2.0.0-rc5", path = "../../primitives/io" }
sp-core = { version = "2.0.0-rc6", path = "../../primitives/core" }
sp-io = { version = "2.0.0-rc6", path = "../../primitives/io" }
[features]
default = ["std"]
@@ -0,0 +1,38 @@
# Randomness Module
The Randomness Collective Flip module provides a [`random`](./struct.Module.html#method.random)
function that generates low-influence random values based on the block hashes from the previous
`81` blocks. Low-influence randomness can be useful when defending against relatively weak
adversaries. Using this pallet as a randomness source is advisable primarily in low-security
situations like testing.
## Public Functions
See the [`Module`](./struct.Module.html) struct for details of publicly available functions.
## Usage
### Prerequisites
Import the Randomness Collective Flip module and derive your module's configuration trait from
the system trait.
### Example - Get random seed for the current block
```rust
use frame_support::{decl_module, dispatch, traits::Randomness};
pub trait Trait: frame_system::Trait {}
decl_module! {
pub struct Module<T: Trait> for enum Call where origin: T::Origin {
#[weight = 0]
pub fn random_module_example(origin) -> dispatch::DispatchResult {
let _random_value = <pallet_randomness_collective_flip::Module<T>>::random(&b"my context"[..]);
Ok(())
}
}
}
```
License: Apache-2.0