mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-09 16:27:58 +00:00
rename fg-primitives to more verbose name (#1123)
This commit is contained in:
committed by
GitHub
parent
276ec5f85d
commit
5d5bbcccfb
Generated
+14
-14
@@ -1804,7 +1804,7 @@ dependencies = [
|
||||
"srml-treasury 0.1.0",
|
||||
"srml-upgrade-key 0.1.0",
|
||||
"substrate-client 0.1.0",
|
||||
"substrate-fg-primitives 0.1.0",
|
||||
"substrate-finality-grandpa-primitives 0.1.0",
|
||||
"substrate-keyring 0.1.0",
|
||||
"substrate-primitives 0.1.0",
|
||||
]
|
||||
@@ -3180,18 +3180,6 @@ dependencies = [
|
||||
"wasmi 0.4.1 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "substrate-fg-primitives"
|
||||
version = "0.1.0"
|
||||
dependencies = [
|
||||
"parity-codec 2.1.5 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"parity-codec-derive 2.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"sr-primitives 0.1.0",
|
||||
"sr-std 0.1.0",
|
||||
"substrate-client 0.1.0",
|
||||
"substrate-primitives 0.1.0",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "substrate-finality-grandpa"
|
||||
version = "0.1.0"
|
||||
@@ -3206,7 +3194,7 @@ dependencies = [
|
||||
"sr-primitives 0.1.0",
|
||||
"substrate-client 0.1.0",
|
||||
"substrate-consensus-common 0.1.0",
|
||||
"substrate-fg-primitives 0.1.0",
|
||||
"substrate-finality-grandpa-primitives 0.1.0",
|
||||
"substrate-keyring 0.1.0",
|
||||
"substrate-network 0.1.0",
|
||||
"substrate-primitives 0.1.0",
|
||||
@@ -3214,6 +3202,18 @@ dependencies = [
|
||||
"tokio 0.1.11 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "substrate-finality-grandpa-primitives"
|
||||
version = "0.1.0"
|
||||
dependencies = [
|
||||
"parity-codec 2.1.5 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"parity-codec-derive 2.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"sr-primitives 0.1.0",
|
||||
"sr-std 0.1.0",
|
||||
"substrate-client 0.1.0",
|
||||
"substrate-primitives 0.1.0",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "substrate-keyring"
|
||||
version = "0.1.0"
|
||||
|
||||
@@ -14,7 +14,7 @@ substrate-client = { path = "../client" }
|
||||
log = "0.4"
|
||||
parking_lot = "0.4"
|
||||
tokio = "0.1.7"
|
||||
substrate-fg-primitives = { path = "primitives" }
|
||||
substrate-finality-grandpa-primitives = { path = "primitives" }
|
||||
|
||||
[dependencies.finality-grandpa]
|
||||
version = "0.3.0"
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
[package]
|
||||
name = "substrate-fg-primitives"
|
||||
name = "substrate-finality-grandpa-primitives"
|
||||
version = "0.1.0"
|
||||
authors = ["Parity Technologies <admin@parity.io>"]
|
||||
|
||||
|
||||
@@ -59,7 +59,7 @@ extern crate substrate_primitives;
|
||||
extern crate tokio;
|
||||
extern crate parking_lot;
|
||||
extern crate parity_codec as codec;
|
||||
extern crate substrate_fg_primitives as fg_primitives;
|
||||
extern crate substrate_finality_grandpa_primitives as fg_primitives;
|
||||
|
||||
#[macro_use]
|
||||
extern crate log;
|
||||
|
||||
@@ -14,7 +14,7 @@ parity-codec-derive = "2.1"
|
||||
sr-std = { path = "../../core/sr-std" }
|
||||
srml-support = { path = "../../srml/support" }
|
||||
substrate-primitives = { path = "../../core/primitives" }
|
||||
substrate-fg-primitives = { path = "../../core/finality-grandpa/primitives" }
|
||||
substrate-finality-grandpa-primitives = { path = "../../core/finality-grandpa/primitives" }
|
||||
substrate-client = { path = "../../core/client" }
|
||||
substrate-keyring = { path = "../../core/keyring" }
|
||||
srml-balances = { path = "../../srml/balances" }
|
||||
@@ -59,5 +59,5 @@ std = [
|
||||
"serde/std",
|
||||
"safe-mix/std",
|
||||
"substrate-client/std",
|
||||
"substrate-fg-primitives/std",
|
||||
"substrate-finality-grandpa-primitives/std",
|
||||
]
|
||||
|
||||
@@ -56,7 +56,7 @@ extern crate srml_upgrade_key as upgrade_key;
|
||||
#[macro_use]
|
||||
extern crate sr_version as version;
|
||||
extern crate node_primitives;
|
||||
extern crate substrate_fg_primitives;
|
||||
extern crate substrate_finality_grandpa_primitives;
|
||||
|
||||
#[cfg(feature = "std")]
|
||||
use codec::{Encode, Decode};
|
||||
@@ -85,7 +85,7 @@ use council::seats as council_seats;
|
||||
#[cfg(any(feature = "std", test))]
|
||||
use version::NativeVersion;
|
||||
use substrate_primitives::OpaqueMetadata;
|
||||
use substrate_fg_primitives::{runtime::GrandpaApi, ScheduledChange};
|
||||
use substrate_finality_grandpa_primitives::{runtime::GrandpaApi, ScheduledChange};
|
||||
|
||||
#[cfg(any(feature = "std", test))]
|
||||
pub use runtime_primitives::BuildStorage;
|
||||
@@ -398,7 +398,7 @@ impl client::runtime_api::Metadata<GBlock> for ClientWithApi {
|
||||
}
|
||||
|
||||
#[cfg(feature = "std")]
|
||||
impl substrate_fg_primitives::GrandpaApi<GBlock> for ClientWithApi {
|
||||
impl substrate_finality_grandpa_primitives::GrandpaApi<GBlock> for ClientWithApi {
|
||||
fn grandpa_pending_change(&self, at: &GBlockId, digest: &DigestFor<GBlock>)
|
||||
-> Result<Option<ScheduledChange<NumberFor<GBlock>>>, client::error::Error> {
|
||||
self.call_api_at(at, "grandpa_pending_change", digest)
|
||||
|
||||
Generated
+2
-2
@@ -526,7 +526,7 @@ dependencies = [
|
||||
"srml-treasury 0.1.0",
|
||||
"srml-upgrade-key 0.1.0",
|
||||
"substrate-client 0.1.0",
|
||||
"substrate-fg-primitives 0.1.0",
|
||||
"substrate-finality-grandpa-primitives 0.1.0",
|
||||
"substrate-primitives 0.1.0",
|
||||
]
|
||||
|
||||
@@ -1274,7 +1274,7 @@ dependencies = [
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "substrate-fg-primitives"
|
||||
name = "substrate-finality-grandpa-primitives"
|
||||
version = "0.1.0"
|
||||
dependencies = [
|
||||
"parity-codec 2.1.5 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
|
||||
@@ -12,7 +12,7 @@ safe-mix = { version = "1.0", default-features = false }
|
||||
parity-codec-derive = { version = "2.1" }
|
||||
parity-codec = { version = "2.1", default-features = false }
|
||||
substrate-primitives = { path = "../../../core/primitives", default-features = false }
|
||||
substrate-fg-primitives = { path = "../../../core/finality-grandpa/primitives", default-features = false }
|
||||
substrate-finality-grandpa-primitives = { path = "../../../core/finality-grandpa/primitives", default-features = false }
|
||||
substrate-client = { path = "../../../core/client", default-features = false }
|
||||
sr-std = { path = "../../../core/sr-std", default-features = false }
|
||||
srml-support = { path = "../../../srml/support", default-features = false }
|
||||
@@ -39,7 +39,7 @@ std = [
|
||||
"parity-codec/std",
|
||||
"substrate-primitives/std",
|
||||
"substrate-client/std",
|
||||
"substrate-fg-primitives/std",
|
||||
"substrate-finality-grandpa-primitives/std",
|
||||
"sr-std/std",
|
||||
"srml-support/std",
|
||||
"srml-balances/std",
|
||||
|
||||
Reference in New Issue
Block a user