mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-10 13:09:24 +00:00
Update patch-polkadot-sdk to remove scale_info
This commit is contained in:
@@ -17,7 +17,6 @@ use sessions::{*, GenesisValidators as GenesisValidatorsContainer};
|
||||
use core::marker::PhantomData;
|
||||
|
||||
use scale::{Encode, Decode};
|
||||
use scale_info::TypeInfo;
|
||||
|
||||
use sp_std::{vec, vec::Vec};
|
||||
use sp_core::sr25519::{Public, Signature};
|
||||
@@ -49,7 +48,7 @@ use pallet_grandpa::{
|
||||
EquivocationOffence as GrandpaEquivocationOffence,
|
||||
};
|
||||
|
||||
#[derive(Debug, Encode, Decode, TypeInfo, PartialEq, Eq, Clone)]
|
||||
#[derive(Debug, Encode, Decode, PartialEq, Eq, Clone)]
|
||||
pub struct MembershipProof<T: pallet::Config>(pub Public, pub PhantomData<T>);
|
||||
impl<T: pallet::Config> GetSessionNumber for MembershipProof<T> {
|
||||
fn session(&self) -> u32 {
|
||||
|
||||
@@ -94,11 +94,7 @@ fn clear_selected_validators<Storage: StoragePrefixedMap<u64>>(set: ValidatorSet
|
||||
|
||||
/// An error when allocating.
|
||||
#[derive(
|
||||
scale::Encode,
|
||||
scale::Decode,
|
||||
scale::DecodeWithMemTracking,
|
||||
scale_info::TypeInfo,
|
||||
frame_support::PalletError,
|
||||
scale::Encode, scale::Decode, scale::DecodeWithMemTracking, frame_support::PalletError,
|
||||
)]
|
||||
pub enum AllocationError {
|
||||
/// The validator set didn't define an allocation requirement for a key share.
|
||||
@@ -118,11 +114,7 @@ pub(crate) enum DeallocationTimeline {
|
||||
|
||||
/// An error when deallocating.
|
||||
#[derive(
|
||||
scale::Encode,
|
||||
scale::Decode,
|
||||
scale::DecodeWithMemTracking,
|
||||
scale_info::TypeInfo,
|
||||
frame_support::PalletError,
|
||||
scale::Encode, scale::Decode, scale::DecodeWithMemTracking, frame_support::PalletError,
|
||||
)]
|
||||
pub enum DeallocationError {
|
||||
/// The validator set didn't define an allocation requirement for a key share.
|
||||
|
||||
Reference in New Issue
Block a user