The crate rename (#4223)

* Adding script for rename, could be applicable for nodes on top of it, too

* add stderr and gitlab ci features

* apply script

* fix now minor details in expected stderr

* Update the Cargo.lock

* fix name: sc-transaction -> sc-tracing

* fix rename in script, too
This commit is contained in:
Benjamin Kampmann
2019-12-02 11:23:53 +01:00
committed by GitHub
parent 40f6d05a4c
commit 927e13c13a
468 changed files with 3383 additions and 3271 deletions
+5 -5
View File
@@ -1,17 +1,17 @@
[package]
name = "substrate-phragmen"
name = "sp-phragmen"
version = "2.0.0"
authors = ["Parity Technologies <admin@parity.io>"]
edition = "2018"
[dependencies]
serde = { version = "1.0.101", optional = true, features = ["derive"] }
rstd = { package = "sr-std", path = "../sr-std", default-features = false }
sr-primitives = { path = "../../primitives/sr-primitives", default-features = false }
rstd = { package = "sp-std", path = "../sr-std", default-features = false }
sp-runtime = { path = "../../primitives/sr-primitives", default-features = false }
[dev-dependencies]
substrate-test-utils = { path = "../../test/utils" }
runtime-io ={ package = "sr-io", path = "../../primitives/sr-io" }
runtime-io ={ package = "sp-io", path = "../../primitives/sr-io" }
rand = "0.7.2"
[features]
@@ -19,5 +19,5 @@ default = ["std"]
std = [
"serde",
"rstd/std",
"sr-primitives/std",
"sp-runtime/std",
]
@@ -23,11 +23,11 @@ extern crate test;
use test::Bencher;
use rand::{self, Rng};
extern crate substrate_phragmen as phragmen;
extern crate sp_phragmen as phragmen;
use phragmen::{Support, SupportMap, PhragmenStakedAssignment};
use std::collections::BTreeMap;
use sr_primitives::traits::{Convert, SaturatedConversion};
use sp_runtime::traits::{Convert, SaturatedConversion};
const VALIDATORS: u64 = 1000;
const NOMINATORS: u64 = 10_000;
+3 -3
View File
@@ -34,9 +34,9 @@
#![cfg_attr(not(feature = "std"), no_std)]
use rstd::{prelude::*, collections::btree_map::BTreeMap};
use sr_primitives::RuntimeDebug;
use sr_primitives::{helpers_128bit::multiply_by_rational, Perbill, Rational128};
use sr_primitives::traits::{Zero, Convert, Member, SimpleArithmetic, Saturating, Bounded};
use sp_runtime::RuntimeDebug;
use sp_runtime::{helpers_128bit::multiply_by_rational, Perbill, Rational128};
use sp_runtime::traits::{Zero, Convert, Member, SimpleArithmetic, Saturating, Bounded};
#[cfg(test)]
mod mock;
+1 -1
View File
@@ -19,7 +19,7 @@
#![cfg(test)]
use crate::{elect, PhragmenResult, PhragmenAssignment};
use sr_primitives::{
use sp_runtime::{
assert_eq_error_rate, Perbill,
traits::{Convert, Member, SaturatedConversion}
};
+1 -1
View File
@@ -21,7 +21,7 @@
use crate::mock::*;
use crate::{elect, PhragmenResult};
use substrate_test_utils::assert_eq_uvec;
use sr_primitives::Perbill;
use sp_runtime::Perbill;
#[test]
fn float_phragmen_poc_works() {