mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 17:31:03 +00:00
Update to latest substrate master (#491)
* update to latest substrate master * Fix compilation
This commit is contained in:
@@ -24,6 +24,7 @@ use codec::{Encode, Decode};
|
||||
use srml_support::{decl_storage, decl_module, ensure, dispatch::Result, traits::Get};
|
||||
|
||||
use primitives::{Hash, parachain::{AttestedCandidate, CandidateReceipt, Id as ParaId}};
|
||||
use sr_primitives::RuntimeDebug;
|
||||
use sr_staking_primitives::SessionIndex;
|
||||
|
||||
use inherents::{ProvideInherent, InherentData, RuntimeString, MakeFatalError, InherentIdentifier};
|
||||
@@ -53,8 +54,7 @@ pub struct BlockAttestations<T: Trait> {
|
||||
}
|
||||
|
||||
/// Additional attestations on a parachain block, after it was included.
|
||||
#[derive(Encode, Decode, Clone, PartialEq)]
|
||||
#[cfg_attr(feature = "std", derive(Debug))]
|
||||
#[derive(Encode, Decode, Clone, PartialEq, RuntimeDebug)]
|
||||
pub struct MoreAttestations;
|
||||
|
||||
/// Something which processes rewards for received attestations.
|
||||
|
||||
@@ -86,11 +86,10 @@ impl PartialEq for EcdsaSignature {
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(feature = "std")]
|
||||
impl std::fmt::Debug for EcdsaSignature {
|
||||
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||
write!(f, "{:?}", &self.0[..])
|
||||
}
|
||||
impl rstd::fmt::Debug for EcdsaSignature {
|
||||
fn fmt(&self, f: &mut rstd::fmt::Formatter<'_>) -> rstd::fmt::Result {
|
||||
write!(f, "EcdsaSignature({:?})", &self.0[..])
|
||||
}
|
||||
}
|
||||
|
||||
decl_event!(
|
||||
|
||||
@@ -40,7 +40,8 @@ use client::{
|
||||
runtime_api as client_api, impl_runtime_apis,
|
||||
};
|
||||
use sr_primitives::{
|
||||
ApplyResult, generic, Permill, Perbill, impl_opaque_keys, create_runtime_str, key_types,
|
||||
create_runtime_str, generic, impl_opaque_keys, key_types,
|
||||
ApplyResult, Permill, Perbill, RuntimeDebug,
|
||||
transaction_validity::{TransactionValidity, InvalidTransaction, TransactionValidityError},
|
||||
weights::{Weight, DispatchInfo}, curve::PiecewiseLinear,
|
||||
traits::{BlakeTwo256, Block as BlockT, StaticLookup, SignedExtension},
|
||||
@@ -118,8 +119,7 @@ pub fn native_version() -> NativeVersion {
|
||||
///
|
||||
/// RELEASE: This is only relevant for the initial PoA run-in period and may be removed
|
||||
/// from the release runtime.
|
||||
#[derive(Default, Encode, Decode, Clone, Eq, PartialEq)]
|
||||
#[cfg_attr(feature = "std", derive(Debug))]
|
||||
#[derive(Default, Encode, Decode, Clone, Eq, PartialEq, RuntimeDebug)]
|
||||
pub struct OnlyStakingAndClaims;
|
||||
impl SignedExtension for OnlyStakingAndClaims {
|
||||
type AccountId = AccountId;
|
||||
|
||||
@@ -484,7 +484,6 @@ impl<T: Trait> ActiveParas for Module<T> {
|
||||
pub struct LimitParathreadCommits<T: Trait + Send + Sync>(rstd::marker::PhantomData<T>) where
|
||||
<T as system::Trait>::Call: IsSubType<Module<T>, T>;
|
||||
|
||||
#[cfg(feature = "std")]
|
||||
impl<T: Trait + Send + Sync> rstd::fmt::Debug for LimitParathreadCommits<T> where
|
||||
<T as system::Trait>::Call: IsSubType<Module<T>, T>
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user