mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 07:01:03 +00:00
add query types to generate_storage_alias (#9659)
* add query types to generate_storage_alias * adjust comment * use ValueQuery explicitly for generate_storage_alias with generic value type * bump impl_version * adjust line width and add import * more compilation and formatting fixes * formatting
This commit is contained in:
@@ -19,6 +19,7 @@
|
||||
|
||||
use codec::{Decode, Encode, FullCodec};
|
||||
use frame_support::{
|
||||
pallet_prelude::ValueQuery,
|
||||
traits::{PalletInfoAccess, StorageVersion},
|
||||
weights::Weight,
|
||||
RuntimeDebug, Twox64Concat,
|
||||
@@ -52,13 +53,22 @@ pub trait V2ToV3 {
|
||||
}
|
||||
|
||||
frame_support::generate_storage_alias!(
|
||||
PhragmenElection, Candidates<T: V2ToV3> => Value<Vec<(T::AccountId, T::Balance)>>
|
||||
PhragmenElection, Candidates<T: V2ToV3> => Value<
|
||||
Vec<(T::AccountId, T::Balance)>,
|
||||
ValueQuery
|
||||
>
|
||||
);
|
||||
frame_support::generate_storage_alias!(
|
||||
PhragmenElection, Members<T: V2ToV3> => Value<Vec<SeatHolder<T::AccountId, T::Balance>>>
|
||||
PhragmenElection, Members<T: V2ToV3> => Value<
|
||||
Vec<SeatHolder<T::AccountId, T::Balance>>,
|
||||
ValueQuery
|
||||
>
|
||||
);
|
||||
frame_support::generate_storage_alias!(
|
||||
PhragmenElection, RunnersUp<T: V2ToV3> => Value<Vec<SeatHolder<T::AccountId, T::Balance>>>
|
||||
PhragmenElection, RunnersUp<T: V2ToV3> => Value<
|
||||
Vec<SeatHolder<T::AccountId, T::Balance>>,
|
||||
ValueQuery
|
||||
>
|
||||
);
|
||||
frame_support::generate_storage_alias!(
|
||||
PhragmenElection, Voting<T: V2ToV3> => Map<
|
||||
|
||||
Reference in New Issue
Block a user