Companion for Substrate#14373 (#7572)

* rename BEEFY `crypto` →`ecdsa_crypto`

* - bump up `BeefyApi` to version 3
- deal with `PeerId` error.

* update BEEFY dependency names for `fake-runtime` and `chain_spec`
revert Cargo.toml

* cargo fmt

* Use master Cargo.lock

* update lockfile for {"substrate"}

---------

Co-authored-by: Davide Galassi <davxy@datawok.net>
Co-authored-by: parity-processbot <>
This commit is contained in:
drskalman
2023-08-02 17:25:12 +02:00
committed by GitHub
parent 253c505edc
commit 2bbc7a73a3
9 changed files with 206 additions and 203 deletions
+1 -1
View File
@@ -16,7 +16,7 @@
//! Polkadot chain configurations.
use beefy_primitives::crypto::AuthorityId as BeefyId;
use beefy_primitives::ecdsa_crypto::AuthorityId as BeefyId;
use grandpa::AuthorityId as GrandpaId;
#[cfg(feature = "kusama-native")]
use kusama_runtime as kusama;
@@ -18,7 +18,7 @@
//!
//! These are used to provide a type that implements these runtime APIs without requiring to import the native runtimes.
use beefy_primitives::crypto::{AuthorityId as BeefyId, Signature as BeefySignature};
use beefy_primitives::ecdsa_crypto::{AuthorityId as BeefyId, Signature as BeefySignature};
use grandpa_primitives::AuthorityId as GrandpaId;
use pallet_transaction_payment::{FeeDetails, RuntimeDispatchInfo};
use polkadot_primitives::{
@@ -230,7 +230,7 @@ sp_api::impl_runtime_apis! {
}
}
impl beefy_primitives::BeefyApi<Block> for Runtime {
impl beefy_primitives::BeefyApi<Block, BeefyId> for Runtime {
fn beefy_genesis() -> Option<BlockNumber> {
unimplemented!()
}