Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to plonk 0.8.2 #6

Merged
merged 4 commits into from
Nov 25, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2,387 changes: 1,275 additions & 1,112 deletions Cargo.lock

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,9 @@ members = [
"utils/wasm-builder",
]

[patch.crates-io]
dusk-plonk = { git = "https://github.com/maticnetwork/plonk.git", tag = "v0.8.2-polygon-1" }

# The list of dependencies below (which can be both direct and indirect dependencies) are crates
# that are suspected to be CPU-intensive, and that are unlikely to require debugging (as some of
# their debug info might be missing) or to require to be frequently recompiled. We compile these
Expand All @@ -210,8 +213,6 @@ members = [
#
# This list is ordered alphabetically.
[profile.dev.package]
aes-soft = { opt-level = 3 }
aesni = { opt-level = 3 }
blake2 = { opt-level = 3 }
blake2-rfc = { opt-level = 3 }
blake2b_simd = { opt-level = 3 }
Expand Down
7 changes: 4 additions & 3 deletions bin/node-template/node/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ name = "node-template"

[dependencies]
structopt = "0.3.8"
rand = "0.8.2"
rand = "0.8.4"
hex-literal = "0.3.1"
futures = { version = "0.3.9", features = ["compat"] }
sc-cli = { version = "0.9.0", path = "../../../client/cli", features = ["wasmtime"] }
Expand Down Expand Up @@ -51,12 +51,13 @@ sc-network = { version = "0.9.0", path = "../../../client/network" }
sc-sync-state-rpc = { version = "0.9.0", path = "../../../client/sync-state-rpc" }
sp-keystore = { version = "0.9.0", path = "../../../primitives/keystore" }

dusk-plonk = { path = "../../../client/plonk" }
# dusk-plonk = { path = "../../../client/plonk" }
dusk-plonk = { version = "0.8.2", default-features = false }
kate = { path = "../../../client/kate", default-features = false }
log = "0.4.8"
lru = { version = "0.6.4"}
codec = { package = "parity-scale-codec", version = "2.0.0" }
serde = { version = "1.0.102", features = ["derive"] }
serde = { version = "1.0.121", features = ["derive"] }
frame-system = { package = "frame-system", path = "../../../frame/system"}
frame-support = { package = "frame-support", path = "../../../frame/support"}

Expand Down
2 changes: 1 addition & 1 deletion bin/node-template/pallets/template/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ version = "3.0.0"
path = "../../../../frame/system"

[dev-dependencies]
serde = { version = "1.0.101" }
serde = { version = "1.0.121" }

[dependencies.sp-core]
default-features = false
Expand Down
10 changes: 9 additions & 1 deletion bin/node-template/runtime/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ pallet-bounties = { version = "3.0.0", default-features = false, path = "../../.

pallet-tips = { version = "3.0.0", default-features = false, path = "../../../frame/tips" }
pallet-scheduler = { version = "3.0.0", default-features = false, path = "../../../frame/scheduler" }
serde = { version = "1.0.101", optional = true, features = ["derive"] }
serde = { version = "1.0.121", optional = true, features = ["derive"] }
sp-api = { version = "3.0.0", default-features = false, path = "../../../primitives/api" }
sp-block-builder = { path = "../../../primitives/block-builder", default-features = false, version = "3.0.0"}
sp-consensus-babe = { version = "0.9.0", default-features = false, path = "../../../primitives/consensus/babe" }
Expand All @@ -67,6 +67,7 @@ pallet-transaction-payment-rpc-runtime-api = { version = "3.0.0", default-featur
# Used for runtime benchmarking
frame-benchmarking = { version = "3.0.0", default-features = false, path = "../../../frame/benchmarking", optional = true }
frame-system-benchmarking = { version = "3.0.0", default-features = false, path = "../../../frame/system/benchmarking", optional = true }
pallet-session-benchmarking = { version = "3.0.0", default-features = false, path = "../../../frame/session/benchmarking", optional = true }
hex-literal = { version = "0.3.1", optional = true }

da = { version = "2.0.0", default-features = false, path = "../pallets/template", package = "polygon-data-availability" }
Expand Down Expand Up @@ -129,8 +130,15 @@ runtime-benchmarks = [
"frame-benchmarking",
"frame-support/runtime-benchmarks",
"frame-system-benchmarking",
"pallet-session-benchmarking",
"hex-literal",
"frame-system/runtime-benchmarks",
"pallet-balances/runtime-benchmarks",
"pallet-timestamp/runtime-benchmarks",
"pallet-collective/runtime-benchmarks",
"pallet-babe/runtime-benchmarks",
"pallet-elections-phragmen/runtime-benchmarks",
"pallet-grandpa/runtime-benchmarks",
"pallet-im-online/runtime-benchmarks",
"pallet-treasury/runtime-benchmarks",
]
3 changes: 3 additions & 0 deletions bin/node-template/runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1011,7 +1011,10 @@ impl_runtime_apis! {
use frame_benchmarking::{Benchmarking, BenchmarkBatch, add_benchmark, TrackedStorageKey};

use frame_system_benchmarking::Module as SystemBench;
use pallet_session_benchmarking::Module as SessionBench;

impl frame_system_benchmarking::Config for Runtime {}
impl pallet_session_benchmarking::Config for Runtime {}

let whitelist: Vec<TrackedStorageKey> = vec![
// Block Number
Expand Down
4 changes: 2 additions & 2 deletions bin/node/bench/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ sc-cli = { version = "0.9.0", path = "../../../client/cli" }
sc-client-api = { version = "3.0.0", path = "../../../client/api/" }
sp-runtime = { version = "3.0.0", path = "../../../primitives/runtime" }
sp-state-machine = { version = "0.9.0", path = "../../../primitives/state-machine" }
serde = "1.0.101"
serde = "1.0.121"
serde_json = "1.0.41"
structopt = "0.3"
derive_more = "0.99.2"
Expand All @@ -35,7 +35,7 @@ hash-db = "0.15.2"
tempfile = "3.1.0"
fs_extra = "1"
hex = "0.4.0"
rand = { version = "0.7.2", features = ["small_rng"] }
rand = { version = "0.8.4", features = ["small_rng"] }
lazy_static = "1.4.0"
parity-util-mem = { version = "0.9.0", default-features = false, features = ["primitive-types"] }
parity-db = { version = "0.2.2" }
Expand Down
4 changes: 2 additions & 2 deletions bin/node/browser-testing/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ license = "Apache-2.0"

[dependencies]
futures-timer = "3.0.2"
libp2p = { version = "0.34.0", default-features = false }
libp2p = { version = "0.36.0", default-features = false }
jsonrpc-core = "15.0.0"
serde = "1.0.106"
serde = "1.0.121"
serde_json = "1.0.48"
wasm-bindgen = { version = "=0.2.69", features = ["serde-serialize"] }
wasm-bindgen-futures = "0.4.18"
Expand Down
4 changes: 2 additions & 2 deletions bin/node/cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@ crate-type = ["cdylib", "rlib"]
[dependencies]
# third-party dependencies
codec = { package = "parity-scale-codec", version = "2.0.0" }
serde = { version = "1.0.102", features = ["derive"] }
serde = { version = "1.0.121", features = ["derive"] }
futures = { version = "0.3.9", features = ["compat"] }
hex-literal = "0.3.1"
log = "0.4.8"
rand = "0.7.2"
rand = "0.8.4"
structopt = { version = "0.3.8", optional = true }
parking_lot = "0.11.1"
kate = { path = "../../../client/kate", default-features = false }
Expand Down
8 changes: 4 additions & 4 deletions bin/node/executor/tests/basic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@ fn full_native_block_import_works() {
});
}

/// TODO - Disabled until wasm be fixed.
/// TODO @polygon Disabled until wasm be fixed.
#[ignore]
#[test]
fn full_wasm_block_import_works() {
Expand Down Expand Up @@ -579,7 +579,7 @@ const CODE_TRANSFER: &str = r#"
)
"#;

/// TODO - Disabled until wasm be fixed.
/// TODO @polygon - Disabled until wasm be fixed.
#[ignore]
#[test]
fn deploying_wasm_contract_should_work() {
Expand Down Expand Up @@ -651,7 +651,7 @@ fn deploying_wasm_contract_should_work() {
});
}

/// TODO - Disabled until wasm be fixed.
/// TODO @polygon - Disabled until wasm be fixed.
#[ignore]
#[test]
fn wasm_big_block_import_fails() {
Expand Down Expand Up @@ -793,7 +793,7 @@ fn full_native_block_import_works_with_changes_trie() {
assert!(t.ext().storage_changes_root(&GENESIS_HASH).unwrap().is_some());
}

/// TODO - Disabled until wasm be fixed.
/// TODO @polygon - Disabled until wasm be fixed.
#[ignore]
#[test]
fn full_wasm_block_import_works_with_changes_trie() {
Expand Down
2 changes: 1 addition & 1 deletion bin/node/runtime/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ targets = ["x86_64-unknown-linux-gnu"]

# third-party dependencies
codec = { package = "parity-scale-codec", version = "2.0.0", default-features = false, features = ["derive"] }
serde = { version = "1.0.102", optional = true }
serde = { version = "1.0.121", optional = true }
static_assertions = "1.1.0"
hex-literal = { version = "0.3.1", optional = true }

Expand Down
2 changes: 1 addition & 1 deletion bin/utils/chain-spec-builder/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@ sc-chain-spec = { version = "3.0.0", path = "../../../client/chain-spec" }
node-cli = { version = "2.0.0", path = "../../node/cli" }
sp-core = { version = "3.0.0", path = "../../../primitives/core" }
sp-keystore = { version = "0.9.0", path = "../../../primitives/keystore" }
rand = "0.7.2"
rand = "0.8.4"
structopt = "0.3.8"
5 changes: 3 additions & 2 deletions bin/utils/chain-spec-builder/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -233,10 +233,11 @@ fn main() -> Result<(), String> {
let (authority_seeds, endowed_accounts, sudo_account) = match builder {
ChainSpecBuilder::Generate { authorities, endowed, keystore_path, .. } => {
let authorities = authorities.max(1);
let rand_str = || -> String {
let rand_str = || {
OsRng.sample_iter(&Alphanumeric)
.take(32)
.collect()
.map(char::from)
.collect::<String>()
};

let authority_seeds = (0..authorities).map(|_| rand_str()).collect::<Vec<_>>();
Expand Down
4 changes: 2 additions & 2 deletions client/authority-discovery/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ derive_more = "0.99.2"
either = "1.5.3"
futures = "0.3.9"
futures-timer = "3.0.1"
libp2p = { version = "0.34.0", default-features = false, features = ["kad"] }
libp2p = { version = "0.36.0", default-features = false, features = ["kad"] }
log = "0.4.8"
prometheus-endpoint = { package = "substrate-prometheus-endpoint", path = "../../utils/prometheus", version = "0.9.0"}
prost = "0.8"
rand = "0.7.2"
rand = "0.8.4"
sc-client-api = { version = "3.0.0", path = "../api" }
sc-network = { version = "0.9.0", path = "../network" }
serde_json = "1.0.41"
Expand Down
2 changes: 1 addition & 1 deletion client/chain-spec/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ sc-chain-spec-derive = { version = "3.0.0", path = "./derive" }
impl-trait-for-tuples = "0.2.1"
sc-network = { version = "0.9.0", path = "../network" }
sp-core = { version = "3.0.0", path = "../../primitives/core" }
serde = { version = "1.0.101", features = ["derive"] }
serde = { version = "1.0.121", features = ["derive"] }
serde_json = "1.0.41"
sp-runtime = { version = "3.0.0", path = "../../primitives/runtime" }
sp-chain-spec = { version = "3.0.0", path = "../../primitives/chain-spec" }
Expand Down
6 changes: 3 additions & 3 deletions client/cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ regex = "1.4.2"
tokio = { version = "0.2.21", features = [ "signal", "rt-core", "rt-threaded", "blocking" ] }
futures = "0.3.9"
fdlimit = "0.2.1"
libp2p = "0.34.0"
libp2p = "0.36.0"
parity-scale-codec = "2.0.0"
hex = "0.4.2"
rand = "0.7.3"
rand = "0.8.4"
tiny-bip39 = "0.8.0"
serde_json = "1.0.41"
sc-keystore = { version = "3.0.0", path = "../keystore" }
Expand All @@ -41,7 +41,7 @@ names = "0.11.0"
structopt = "0.3.8"
sc-tracing = { version = "3.0.0", path = "../tracing" }
chrono = "0.4.10"
serde = "1.0.111"
serde = "1.0.121"
thiserror = "1.0.21"

[target.'cfg(not(target_os = "unknown"))'.dependencies]
Expand Down
4 changes: 2 additions & 2 deletions client/consensus/babe/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ sp-keystore = { version = "0.9.0", path = "../../../primitives/keystore" }
num-bigint = "0.2.3"
num-rational = "0.2.2"
num-traits = "0.2.8"
serde = { version = "1.0.104", features = ["derive"] }
serde = { version = "1.0.121", features = ["derive"] }
sp-version = { version = "3.0.0", path = "../../../primitives/version" }
sp-io = { version = "3.0.0", path = "../../../primitives/io" }
sp-inherents = { version = "3.0.0", path = "../../../primitives/inherents" }
Expand All @@ -48,7 +48,7 @@ futures-timer = "3.0.1"
parking_lot = "0.11.1"
log = "0.4.8"
schnorrkel = { version = "0.9.1", features = ["preaudit_deprecated"] }
rand = "0.7.2"
rand = "0.8.4"
merlin = "2.0"
pdqselect = "0.1.0"
derive_more = "0.99.2"
Expand Down
2 changes: 1 addition & 1 deletion client/consensus/babe/rpc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jsonrpc-core = "15.1.0"
jsonrpc-core-client = "15.1.0"
jsonrpc-derive = "15.1.0"
sp-consensus-babe = { version = "0.9.0", path = "../../../../primitives/consensus/babe" }
serde = { version = "1.0.104", features=["derive"] }
serde = { version = "1.0.121", features=["derive"] }
sp-blockchain = { version = "3.0.0", path = "../../../../primitives/blockchain" }
sp-runtime = { version = "3.0.0", path = "../../../../primitives/runtime" }
sc-consensus-epochs = { version = "0.9.0", path = "../../epochs" }
Expand Down
3 changes: 1 addition & 2 deletions client/consensus/babe/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,8 @@ use sp_runtime::{generic::DigestItem, traits::{Block as BlockT, DigestFor}};
use sc_client_api::{BlockchainEvents, backend::TransactionFor};
use log::debug;
use std::{time::Duration, cell::RefCell, task::Poll};
use rand::RngCore;
use rand_chacha::{
rand_core::SeedableRng,
rand_core::{SeedableRng,RngCore},
ChaChaRng,
};
use sc_keystore::LocalKeystore;
Expand Down
2 changes: 1 addition & 1 deletion client/finality-grandpa/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ futures = "0.3.9"
futures-timer = "3.0.1"
log = "0.4.8"
parking_lot = "0.11.1"
rand = "0.7.2"
rand = "0.8.4"
parity-scale-codec = { version = "2.0.0", features = ["derive"] }
sp-application-crypto = { version = "3.0.0", path = "../../primitives/application-crypto" }
sp-arithmetic = { version = "3.0.0", path = "../../primitives/arithmetic" }
Expand Down
2 changes: 1 addition & 1 deletion client/finality-grandpa/rpc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jsonrpc-core-client = "15.1.0"
jsonrpc-derive = "15.1.0"
jsonrpc-pubsub = "15.1.0"
futures = { version = "0.3.4", features = ["compat"] }
serde = { version = "1.0.105", features = ["derive"] }
serde = { version = "1.0.121", features = ["derive"] }
serde_json = "1.0.50"
log = "0.4.8"
derive_more = "0.99.2"
Expand Down
Loading