mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-11 13:01:07 +00:00
rename fg-primitives to more verbose name (#1123)
This commit is contained in:
committed by
GitHub
parent
276ec5f85d
commit
5d5bbcccfb
@@ -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