mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-14 06:21:11 +00:00
* Remove now unneeded empty hooks and calls * fix pallet_ui tests
This commit is contained in:
@@ -59,9 +59,6 @@ pub mod pallet {
|
|||||||
StorageOverflow,
|
StorageOverflow,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[pallet::hooks]
|
|
||||||
impl<T: Config> Hooks<BlockNumberFor<T>> for Pallet<T> {}
|
|
||||||
|
|
||||||
// Dispatchable functions allows users to interact with the pallet and invoke state changes.
|
// Dispatchable functions allows users to interact with the pallet and invoke state changes.
|
||||||
// These functions materialize as "extrinsics", which are often compared to transactions.
|
// These functions materialize as "extrinsics", which are often compared to transactions.
|
||||||
// Dispatchable functions must be annotated with a weight and must return a DispatchResult.
|
// Dispatchable functions must be annotated with a weight and must return a DispatchResult.
|
||||||
|
|||||||
@@ -338,9 +338,6 @@ pub mod pallet {
|
|||||||
WouldDie,
|
WouldDie,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[pallet::hooks]
|
|
||||||
impl<T: Config<I>, I: 'static> Hooks<BlockNumberFor<T>> for Pallet<T, I> {}
|
|
||||||
|
|
||||||
#[pallet::call]
|
#[pallet::call]
|
||||||
impl<T: Config<I>, I: 'static> Pallet<T, I> {
|
impl<T: Config<I>, I: 'static> Pallet<T, I> {
|
||||||
/// Issue a new class of fungible assets from a public origin.
|
/// Issue a new class of fungible assets from a public origin.
|
||||||
|
|||||||
@@ -173,9 +173,6 @@ pub mod pallet {
|
|||||||
PendingSwap<T>,
|
PendingSwap<T>,
|
||||||
>;
|
>;
|
||||||
|
|
||||||
#[pallet::hooks]
|
|
||||||
impl<T: Config> Hooks<BlockNumberFor<T>> for Pallet<T> {}
|
|
||||||
|
|
||||||
#[pallet::error]
|
#[pallet::error]
|
||||||
pub enum Error<T> {
|
pub enum Error<T> {
|
||||||
/// Swap already exists.
|
/// Swap already exists.
|
||||||
|
|||||||
@@ -87,9 +87,6 @@ pub mod pallet {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[pallet::call]
|
|
||||||
impl<T: Config> Pallet<T> {}
|
|
||||||
|
|
||||||
/// The current authority set.
|
/// The current authority set.
|
||||||
#[pallet::storage]
|
#[pallet::storage]
|
||||||
#[pallet::getter(fn authorities)]
|
#[pallet::getter(fn authorities)]
|
||||||
|
|||||||
@@ -34,7 +34,6 @@ pub use pallet::*;
|
|||||||
#[frame_support::pallet]
|
#[frame_support::pallet]
|
||||||
pub mod pallet {
|
pub mod pallet {
|
||||||
use frame_support::pallet_prelude::*;
|
use frame_support::pallet_prelude::*;
|
||||||
use frame_system::pallet_prelude::*;
|
|
||||||
use super::*;
|
use super::*;
|
||||||
|
|
||||||
#[pallet::pallet]
|
#[pallet::pallet]
|
||||||
@@ -82,12 +81,6 @@ pub mod pallet {
|
|||||||
Pallet::<T>::initialize_keys(&self.keys)
|
Pallet::<T>::initialize_keys(&self.keys)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[pallet::hooks]
|
|
||||||
impl<T: Config> Hooks<BlockNumberFor<T>> for Pallet<T> {}
|
|
||||||
|
|
||||||
#[pallet::call]
|
|
||||||
impl<T: Config> Pallet<T> {}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<T: Config> Pallet<T> {
|
impl<T: Config> Pallet<T> {
|
||||||
|
|||||||
@@ -220,10 +220,6 @@ pub mod pallet {
|
|||||||
#[pallet::generate_store(pub(super) trait Store)]
|
#[pallet::generate_store(pub(super) trait Store)]
|
||||||
pub struct Pallet<T, I=()>(PhantomData<(T, I)>);
|
pub struct Pallet<T, I=()>(PhantomData<(T, I)>);
|
||||||
|
|
||||||
#[pallet::hooks]
|
|
||||||
impl<T: Config<I>, I: 'static> Hooks<BlockNumberFor<T>> for Pallet<T, I> {
|
|
||||||
}
|
|
||||||
|
|
||||||
#[pallet::call]
|
#[pallet::call]
|
||||||
impl<T: Config<I>, I: 'static> Pallet<T, I> {
|
impl<T: Config<I>, I: 'static> Pallet<T, I> {
|
||||||
/// Transfer some liquid free balance to another account.
|
/// Transfer some liquid free balance to another account.
|
||||||
|
|||||||
@@ -48,9 +48,6 @@ pub mod pallet {
|
|||||||
#[pallet::generate_store(pub(super) trait Store)]
|
#[pallet::generate_store(pub(super) trait Store)]
|
||||||
pub struct Pallet<T>(_);
|
pub struct Pallet<T>(_);
|
||||||
|
|
||||||
#[pallet::hooks]
|
|
||||||
impl<T: Config> Hooks<BlockNumberFor<T>> for Pallet<T> {}
|
|
||||||
|
|
||||||
/// A public part of the pallet.
|
/// A public part of the pallet.
|
||||||
#[pallet::call]
|
#[pallet::call]
|
||||||
impl<T: Config> Pallet<T> {
|
impl<T: Config> Pallet<T> {
|
||||||
|
|||||||
@@ -532,9 +532,6 @@ pub mod pallet {
|
|||||||
SubIdentityRevoked(T::AccountId, T::AccountId, BalanceOf<T>),
|
SubIdentityRevoked(T::AccountId, T::AccountId, BalanceOf<T>),
|
||||||
}
|
}
|
||||||
|
|
||||||
#[pallet::hooks]
|
|
||||||
impl<T: Config> Hooks<BlockNumberFor<T>> for Pallet<T> {}
|
|
||||||
|
|
||||||
#[pallet::call]
|
#[pallet::call]
|
||||||
/// Identity pallet declaration.
|
/// Identity pallet declaration.
|
||||||
impl<T: Config> Pallet<T> {
|
impl<T: Config> Pallet<T> {
|
||||||
|
|||||||
@@ -69,9 +69,6 @@ pub mod pallet {
|
|||||||
#[pallet::generate_store(pub(super) trait Store)]
|
#[pallet::generate_store(pub(super) trait Store)]
|
||||||
pub struct Pallet<T>(PhantomData<T>);
|
pub struct Pallet<T>(PhantomData<T>);
|
||||||
|
|
||||||
#[pallet::hooks]
|
|
||||||
impl<T: Config> Hooks<BlockNumberFor<T>> for Pallet<T> {}
|
|
||||||
|
|
||||||
#[pallet::call]
|
#[pallet::call]
|
||||||
impl<T: Config> Pallet<T> {
|
impl<T: Config> Pallet<T> {
|
||||||
/// Assign an previously unassigned index.
|
/// Assign an previously unassigned index.
|
||||||
|
|||||||
@@ -119,9 +119,6 @@ pub mod pallet {
|
|||||||
#[pallet::generate_store(pub(super) trait Store)]
|
#[pallet::generate_store(pub(super) trait Store)]
|
||||||
pub struct Pallet<T>(_);
|
pub struct Pallet<T>(_);
|
||||||
|
|
||||||
#[pallet::hooks]
|
|
||||||
impl<T: Config> Hooks<BlockNumberFor<T>> for Pallet<T> {}
|
|
||||||
|
|
||||||
#[pallet::call]
|
#[pallet::call]
|
||||||
impl<T: Config> Pallet<T> {
|
impl<T: Config> Pallet<T> {
|
||||||
/// Set an account's name. The name should be a UTF-8-encoded string by convention, though
|
/// Set an account's name. The name should be a UTF-8-encoded string by convention, though
|
||||||
|
|||||||
@@ -131,9 +131,6 @@ pub mod pallet {
|
|||||||
migration::remove_deferred_storage::<T>()
|
migration::remove_deferred_storage::<T>()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[pallet::call]
|
|
||||||
impl<T: Config> Pallet<T> {}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<T: Config, O: Offence<T::IdentificationTuple>>
|
impl<T: Config, O: Offence<T::IdentificationTuple>>
|
||||||
|
|||||||
@@ -154,9 +154,6 @@ pub mod pallet {
|
|||||||
type AnnouncementDepositFactor: Get<BalanceOf<Self>>;
|
type AnnouncementDepositFactor: Get<BalanceOf<Self>>;
|
||||||
}
|
}
|
||||||
|
|
||||||
#[pallet::hooks]
|
|
||||||
impl<T: Config> Hooks<BlockNumberFor<T>> for Pallet<T> {}
|
|
||||||
|
|
||||||
#[pallet::call]
|
#[pallet::call]
|
||||||
impl<T: Config> Pallet<T> {
|
impl<T: Config> Pallet<T> {
|
||||||
/// Dispatch the given `call` from an account that the sender is authorised for through
|
/// Dispatch the given `call` from an account that the sender is authorised for through
|
||||||
|
|||||||
@@ -337,9 +337,6 @@ pub mod pallet {
|
|||||||
#[pallet::getter(fn proxy)]
|
#[pallet::getter(fn proxy)]
|
||||||
pub type Proxy<T: Config> = StorageMap<_, Blake2_128Concat, T::AccountId, T::AccountId>;
|
pub type Proxy<T: Config> = StorageMap<_, Blake2_128Concat, T::AccountId, T::AccountId>;
|
||||||
|
|
||||||
#[pallet::hooks]
|
|
||||||
impl<T: Config> Hooks<BlockNumberFor<T>> for Pallet<T> {}
|
|
||||||
|
|
||||||
#[pallet::call]
|
#[pallet::call]
|
||||||
impl<T: Config> Pallet<T> {
|
impl<T: Config> Pallet<T> {
|
||||||
/// Send a call through a recovered account.
|
/// Send a call through a recovered account.
|
||||||
|
|||||||
@@ -65,9 +65,6 @@
|
|||||||
//! #[pallet::pallet]
|
//! #[pallet::pallet]
|
||||||
//! pub struct Pallet<T>(PhantomData<T>);
|
//! pub struct Pallet<T>(PhantomData<T>);
|
||||||
//!
|
//!
|
||||||
//! #[pallet::hooks]
|
|
||||||
//! impl<T: Config> Hooks<BlockNumberFor<T>> for Pallet<T> {}
|
|
||||||
//!
|
|
||||||
//! #[pallet::call]
|
//! #[pallet::call]
|
||||||
//! impl<T: Config> Pallet<T> {
|
//! impl<T: Config> Pallet<T> {
|
||||||
//! #[pallet::weight(0)]
|
//! #[pallet::weight(0)]
|
||||||
@@ -130,9 +127,6 @@ pub mod pallet {
|
|||||||
#[pallet::generate_store(pub(super) trait Store)]
|
#[pallet::generate_store(pub(super) trait Store)]
|
||||||
pub struct Pallet<T>(PhantomData<T>);
|
pub struct Pallet<T>(PhantomData<T>);
|
||||||
|
|
||||||
#[pallet::hooks]
|
|
||||||
impl<T: Config> Hooks<BlockNumberFor<T>> for Pallet<T> {}
|
|
||||||
|
|
||||||
#[pallet::call]
|
#[pallet::call]
|
||||||
impl<T: Config> Pallet<T> {
|
impl<T: Config> Pallet<T> {
|
||||||
/// Authenticates the sudo key and dispatches a function call with `Root` origin.
|
/// Authenticates the sudo key and dispatches a function call with `Root` origin.
|
||||||
|
|||||||
@@ -42,9 +42,6 @@ pub mod logger {
|
|||||||
#[pallet::generate_store(pub(super) trait Store)]
|
#[pallet::generate_store(pub(super) trait Store)]
|
||||||
pub struct Pallet<T>(PhantomData<T>);
|
pub struct Pallet<T>(PhantomData<T>);
|
||||||
|
|
||||||
#[pallet::hooks]
|
|
||||||
impl<T: Config> Hooks<BlockNumberFor<T>> for Pallet<T> {}
|
|
||||||
|
|
||||||
#[pallet::call]
|
#[pallet::call]
|
||||||
impl<T: Config> Pallet<T> {
|
impl<T: Config> Pallet<T> {
|
||||||
#[pallet::weight(*weight)]
|
#[pallet::weight(*weight)]
|
||||||
|
|||||||
@@ -107,9 +107,6 @@ pub mod pallet {
|
|||||||
BatchCompleted,
|
BatchCompleted,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[pallet::hooks]
|
|
||||||
impl<T: Config> Hooks<BlockNumberFor<T>> for Pallet<T> {}
|
|
||||||
|
|
||||||
#[pallet::call]
|
#[pallet::call]
|
||||||
impl<T: Config> Pallet<T> {
|
impl<T: Config> Pallet<T> {
|
||||||
/// Send a batch of dispatch calls.
|
/// Send a batch of dispatch calls.
|
||||||
|
|||||||
@@ -203,9 +203,6 @@ pub mod pallet {
|
|||||||
AmountLow,
|
AmountLow,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[pallet::hooks]
|
|
||||||
impl<T: Config> Hooks<BlockNumberFor<T>> for Pallet<T> {}
|
|
||||||
|
|
||||||
#[pallet::call]
|
#[pallet::call]
|
||||||
impl<T: Config> Pallet<T> {
|
impl<T: Config> Pallet<T> {
|
||||||
/// Unlock any vested funds of the sender account.
|
/// Unlock any vested funds of the sender account.
|
||||||
|
|||||||
Reference in New Issue
Block a user