mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-20 00:01:03 +00:00
Update parity-scale-codec to 2.0 (#7994)
* update cargo.toml * use 2.0 in mmmr
This commit is contained in:
committed by
GitHub
parent
bea4a6524d
commit
f48296e9ad
@@ -14,7 +14,7 @@ targets = ["x86_64-unknown-linux-gnu"]
|
||||
|
||||
[dependencies]
|
||||
sp-application-crypto = { version = "2.0.0", default-features = false, path = "../../application-crypto" }
|
||||
codec = { package = "parity-scale-codec", version = "1.3.6", default-features = false }
|
||||
codec = { package = "parity-scale-codec", version = "2.0.0", default-features = false }
|
||||
sp-std = { version = "2.0.0", default-features = false, path = "../../std" }
|
||||
sp-api = { version = "2.0.0", default-features = false, path = "../../api" }
|
||||
sp-runtime = { version = "2.0.0", default-features = false, path = "../../runtime" }
|
||||
|
||||
@@ -71,10 +71,10 @@ pub type AuthorityIndex = u32;
|
||||
#[derive(Decode, Encode)]
|
||||
pub enum ConsensusLog<AuthorityId: Codec> {
|
||||
/// The authorities have changed.
|
||||
#[codec(index = "1")]
|
||||
#[codec(index = 1)]
|
||||
AuthoritiesChange(Vec<AuthorityId>),
|
||||
/// Disable the authority with given index.
|
||||
#[codec(index = "2")]
|
||||
#[codec(index = 2)]
|
||||
OnDisabled(AuthorityIndex),
|
||||
}
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ targets = ["x86_64-unknown-linux-gnu"]
|
||||
|
||||
[dependencies]
|
||||
sp-application-crypto = { version = "2.0.0", default-features = false, path = "../../application-crypto" }
|
||||
codec = { package = "parity-scale-codec", version = "1.3.6", default-features = false }
|
||||
codec = { package = "parity-scale-codec", version = "2.0.0", default-features = false }
|
||||
merlin = { version = "2.0", default-features = false }
|
||||
sp-std = { version = "2.0.0", default-features = false, path = "../../std" }
|
||||
sp-api = { version = "2.0.0", default-features = false, path = "../../api" }
|
||||
|
||||
@@ -73,13 +73,13 @@ pub struct SecondaryVRFPreDigest {
|
||||
#[derive(Clone, RuntimeDebug, Encode, Decode)]
|
||||
pub enum PreDigest {
|
||||
/// A primary VRF-based slot assignment.
|
||||
#[codec(index = "1")]
|
||||
#[codec(index = 1)]
|
||||
Primary(PrimaryPreDigest),
|
||||
/// A secondary deterministic slot assignment.
|
||||
#[codec(index = "2")]
|
||||
#[codec(index = 2)]
|
||||
SecondaryPlain(SecondaryPlainPreDigest),
|
||||
/// A secondary deterministic slot assignment with VRF outputs.
|
||||
#[codec(index = "3")]
|
||||
#[codec(index = 3)]
|
||||
SecondaryVRF(SecondaryVRFPreDigest),
|
||||
}
|
||||
|
||||
@@ -137,7 +137,7 @@ pub struct NextEpochDescriptor {
|
||||
#[derive(Decode, Encode, PartialEq, Eq, Clone, RuntimeDebug)]
|
||||
pub enum NextConfigDescriptor {
|
||||
/// Version 1.
|
||||
#[codec(index = "1")]
|
||||
#[codec(index = 1)]
|
||||
V1 {
|
||||
/// Value of `c` in `BabeEpochConfiguration`.
|
||||
c: (u64, u64),
|
||||
|
||||
@@ -125,14 +125,14 @@ pub enum ConsensusLog {
|
||||
/// The epoch has changed. This provides information about the _next_
|
||||
/// epoch - information about the _current_ epoch (i.e. the one we've just
|
||||
/// entered) should already be available earlier in the chain.
|
||||
#[codec(index = "1")]
|
||||
#[codec(index = 1)]
|
||||
NextEpochData(NextEpochDescriptor),
|
||||
/// Disable the authority with given index.
|
||||
#[codec(index = "2")]
|
||||
#[codec(index = 2)]
|
||||
OnDisabled(AuthorityIndex),
|
||||
/// The epoch has changed, and the epoch after the current one will
|
||||
/// enact different epoch configurations.
|
||||
#[codec(index = "3")]
|
||||
#[codec(index = 3)]
|
||||
NextConfigData(NextConfigDescriptor),
|
||||
}
|
||||
|
||||
|
||||
@@ -29,7 +29,7 @@ sp-runtime = { version = "2.0.0", path = "../../runtime" }
|
||||
sp-utils = { version = "2.0.0", path = "../../utils" }
|
||||
sp-trie = { version = "2.0.0", path = "../../trie" }
|
||||
sp-api = { version = "2.0.0", path = "../../api" }
|
||||
codec = { package = "parity-scale-codec", version = "1.3.6", features = ["derive"] }
|
||||
codec = { package = "parity-scale-codec", version = "2.0.0", features = ["derive"] }
|
||||
parking_lot = "0.11.1"
|
||||
serde = { version = "1.0", features = ["derive"] }
|
||||
prometheus-endpoint = { package = "substrate-prometheus-endpoint", path = "../../../utils/prometheus", version = "0.8.0"}
|
||||
|
||||
@@ -17,7 +17,7 @@ sp-api = { version = "2.0.0", default-features = false, path = "../../api" }
|
||||
sp-std = { version = "2.0.0", default-features = false, path = "../../std" }
|
||||
sp-runtime = { version = "2.0.0", default-features = false, path = "../../runtime" }
|
||||
sp-core = { version = "2.0.0", default-features = false, path = "../../core" }
|
||||
codec = { package = "parity-scale-codec", version = "1.3.6", default-features = false, features = ["derive"] }
|
||||
codec = { package = "parity-scale-codec", version = "2.0.0", default-features = false, features = ["derive"] }
|
||||
|
||||
[features]
|
||||
default = ["std"]
|
||||
|
||||
@@ -13,7 +13,7 @@ readme = "README.md"
|
||||
targets = ["x86_64-unknown-linux-gnu"]
|
||||
|
||||
[dependencies]
|
||||
codec = { package = "parity-scale-codec", version = "1.3.6", default-features = false, features = ["derive"] }
|
||||
codec = { package = "parity-scale-codec", version = "2.0.0", default-features = false, features = ["derive"] }
|
||||
sp-runtime = { version = "2.0.0", default-features = false, path = "../../runtime" }
|
||||
sp-arithmetic = { version = "2.0.0", default-features = false, path = "../../arithmetic" }
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@ readme = "README.md"
|
||||
targets = ["x86_64-unknown-linux-gnu"]
|
||||
|
||||
[dependencies]
|
||||
codec = { version = "1.0.0", package = "parity-scale-codec", default-features = false }
|
||||
codec = { version = "2.0.0", package = "parity-scale-codec", default-features = false }
|
||||
schnorrkel = { version = "0.9.1", features = ["preaudit_deprecated", "u64_backend"], default-features = false }
|
||||
sp-std = { version = "2.0.0", path = "../../std", default-features = false }
|
||||
sp-core = { version = "2.0.0", path = "../../core", default-features = false }
|
||||
|
||||
Reference in New Issue
Block a user