Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Commit d102bc5

Browse files
authored
Bump substrate, versions. (#538)
* Bump substrate, versions. * Build fix * Bump rpc deps (#537) * Update to latest sub * Revert branch update * Update. * Update tests. * Ignore warnings in tests.
1 parent 7c334e2 commit d102bc5

File tree

19 files changed

+222
-208
lines changed

19 files changed

+222
-208
lines changed

Diff for: Cargo.lock

+193-188
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ path = "src/main.rs"
44

55
[package]
66
name = "polkadot"
7-
version = "0.6.7"
7+
version = "0.6.8"
88
authors = ["Parity Technologies <[email protected]>"]
99
build = "build.rs"
1010
edition = "2018"

Diff for: availability-store/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "polkadot-availability-store"
33
description = "Persistent database for parachain data"
4-
version = "0.6.7"
4+
version = "0.6.8"
55
authors = ["Parity Technologies <[email protected]>"]
66
edition = "2018"
77

Diff for: cli/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "polkadot-cli"
3-
version = "0.6.7"
3+
version = "0.6.8"
44
authors = ["Parity Technologies <[email protected]>"]
55
description = "Polkadot node implementation in Rust."
66
edition = "2018"

Diff for: collator/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "polkadot-collator"
3-
version = "0.6.7"
3+
version = "0.6.8"
44
authors = ["Parity Technologies <[email protected]>"]
55
description = "Collator node implementation"
66
edition = "2018"

Diff for: erasure-coding/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "polkadot-erasure-coding"
3-
version = "0.6.7"
3+
version = "0.6.8"
44
authors = ["Parity Technologies <[email protected]>"]
55
edition = "2018"
66

Diff for: executor/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "polkadot-executor"
3-
version = "0.6.7"
3+
version = "0.6.8"
44
authors = ["Parity Technologies <[email protected]>"]
55
description = "Polkadot node implementation in Rust."
66
edition = "2018"

Diff for: network/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "polkadot-network"
3-
version = "0.6.7"
3+
version = "0.6.8"
44
authors = ["Parity Technologies <[email protected]>"]
55
description = "Polkadot-specific networking protocol"
66
edition = "2018"

Diff for: parachain/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "polkadot-parachain"
3-
version = "0.6.7"
3+
version = "0.6.8"
44
authors = ["Parity Technologies <[email protected]>"]
55
description = "Types and utilities for creating and working with parachains"
66
edition = "2018"

Diff for: primitives/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "polkadot-primitives"
3-
version = "0.6.7"
3+
version = "0.6.8"
44
authors = ["Parity Technologies <[email protected]>"]
55
edition = "2018"
66

Diff for: rpc/Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
[package]
22
name = "polkadot-rpc"
3-
version = "0.6.7"
3+
version = "0.6.8"
44
authors = ["Parity Technologies <[email protected]>"]
55
edition = "2018"
66

77
[dependencies]
88
client = { package = "substrate-client", git = "https://github.com/paritytech/substrate", branch = "polkadot-master" }
9-
jsonrpc-core = "13.2.0"
9+
jsonrpc-core = "14.0.3"
1010
polkadot-primitives = { path = "../primitives" }
1111
sr-primitives = { git = "https://github.com/paritytech/substrate", branch = "polkadot-master" }
1212
substrate-rpc = { git = "https://github.com/paritytech/substrate", branch = "polkadot-master" }

Diff for: runtime/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "polkadot-runtime"
3-
version = "0.6.7"
3+
version = "0.6.8"
44
authors = ["Parity Technologies <[email protected]>"]
55
edition = "2018"
66
build = "build.rs"

Diff for: runtime/src/claims.rs

+6-2
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ use serde::{self, Serialize, Deserialize, Serializer, Deserializer};
2727
#[cfg(feature = "std")]
2828
use sr_primitives::traits::Zero;
2929
use sr_primitives::{
30-
weights::SimpleDispatchInfo, traits::ValidateUnsigned,
30+
weights::SimpleDispatchInfo,
3131
transaction_validity::{
3232
TransactionLongevity, TransactionValidity, ValidTransaction, InvalidTransaction
3333
},
@@ -191,7 +191,8 @@ impl<T: Trait> Module<T> {
191191
}
192192
}
193193

194-
impl<T: Trait> ValidateUnsigned for Module<T> {
194+
#[allow(deprecated)] // Allow `ValidateUnsigned`
195+
impl<T: Trait> sr_primitives::traits::ValidateUnsigned for Module<T> {
195196
type Call = Call<T>;
196197

197198
fn validate_unsigned(call: &Self::Call) -> TransactionValidity {
@@ -425,6 +426,9 @@ mod tests {
425426

426427
#[test]
427428
fn validate_unsigned_works() {
429+
#![allow(deprecated)] // Allow `ValidateUnsigned`
430+
use sr_primitives::traits::ValidateUnsigned;
431+
428432
new_test_ext().execute_with(|| {
429433
assert_eq!(
430434
<Module<Test>>::validate_unsigned(&Call::claim(1, alice_sig(&1u64.encode()))),

Diff for: runtime/src/lib.rs

+6-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
9999
spec_name: create_runtime_str!("kusama"),
100100
impl_name: create_runtime_str!("parity-kusama"),
101101
authoring_version: 1,
102-
spec_version: 1013,
102+
spec_version: 1014,
103103
impl_version: 0,
104104
apis: RUNTIME_API_VERSIONS,
105105
};
@@ -431,12 +431,17 @@ impl offences::Trait for Runtime {
431431

432432
type SubmitTransaction = TransactionSubmitter<ImOnlineId, Runtime, UncheckedExtrinsic>;
433433

434+
parameter_types! {
435+
pub const SessionDuration: BlockNumber = EPOCH_DURATION_IN_BLOCKS as _;
436+
}
437+
434438
impl im_online::Trait for Runtime {
435439
type AuthorityId = ImOnlineId;
436440
type Event = Event;
437441
type Call = Call;
438442
type SubmitTransaction = SubmitTransaction;
439443
type ReportUnresponsiveness = Offences;
444+
type SessionDuration = SessionDuration;
440445
}
441446

442447
impl grandpa::Trait for Runtime {

Diff for: service/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "polkadot-service"
3-
version = "0.6.7"
3+
version = "0.6.8"
44
authors = ["Parity Technologies <[email protected]>"]
55
edition = "2018"
66

Diff for: statement-table/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "polkadot-statement-table"
3-
version = "0.6.7"
3+
version = "0.6.8"
44
authors = ["Parity Technologies <[email protected]>"]
55
edition = "2018"
66

Diff for: test-parachains/adder/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "adder"
3-
version = "0.6.7"
3+
version = "0.6.8"
44
authors = ["Parity Technologies <[email protected]>"]
55
description = "Test parachain which adds to a number as its state transition"
66
edition = "2018"

Diff for: test-parachains/halt/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "halt"
3-
version = "0.6.7"
3+
version = "0.6.8"
44
authors = ["Parity Technologies <[email protected]>"]
55
description = "Test parachain which executes forever"
66
edition = "2018"

Diff for: validation/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "polkadot-validation"
3-
version = "0.6.7"
3+
version = "0.6.8"
44
authors = ["Parity Technologies <[email protected]>"]
55
edition = "2018"
66

0 commit comments

Comments
 (0)