mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 22:11:02 +00:00
* Remove old calls Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * update lockfile for {"substrate", "polkadot"} * Ignore warning in pallet ping Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Ignore more warnings... Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * ... Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> --------- Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> Co-authored-by: parity-processbot <>
This commit is contained in:
committed by
GitHub
parent
88ead41f9d
commit
2cbaa3910d
Generated
+268
-256
File diff suppressed because it is too large
Load Diff
@@ -492,7 +492,7 @@ pub mod pallet {
|
|||||||
///
|
///
|
||||||
/// All origins are allowed.
|
/// All origins are allowed.
|
||||||
#[pallet::call_index(3)]
|
#[pallet::call_index(3)]
|
||||||
#[pallet::weight(1_000_000)]
|
#[pallet::weight({1_000_000})]
|
||||||
pub fn enact_authorized_upgrade(
|
pub fn enact_authorized_upgrade(
|
||||||
_: OriginFor<T>,
|
_: OriginFor<T>,
|
||||||
code: Vec<u8>,
|
code: Vec<u8>,
|
||||||
|
|||||||
@@ -61,7 +61,7 @@ pub mod pallet {
|
|||||||
#[pallet::call]
|
#[pallet::call]
|
||||||
impl<T: Config> Pallet<T> {
|
impl<T: Config> Pallet<T> {
|
||||||
#[pallet::call_index(0)]
|
#[pallet::call_index(0)]
|
||||||
#[pallet::weight(0)]
|
#[pallet::weight({0})]
|
||||||
pub fn schedule_migration(
|
pub fn schedule_migration(
|
||||||
origin: OriginFor<T>,
|
origin: OriginFor<T>,
|
||||||
code: Vec<u8>,
|
code: Vec<u8>,
|
||||||
|
|||||||
@@ -141,7 +141,7 @@ pub mod pallet {
|
|||||||
#[pallet::call]
|
#[pallet::call]
|
||||||
impl<T: Config> Pallet<T> {
|
impl<T: Config> Pallet<T> {
|
||||||
#[pallet::call_index(0)]
|
#[pallet::call_index(0)]
|
||||||
#[pallet::weight(0)]
|
#[pallet::weight({0})]
|
||||||
pub fn start(origin: OriginFor<T>, para: ParaId, payload: Vec<u8>) -> DispatchResult {
|
pub fn start(origin: OriginFor<T>, para: ParaId, payload: Vec<u8>) -> DispatchResult {
|
||||||
ensure_root(origin)?;
|
ensure_root(origin)?;
|
||||||
let payload = BoundedVec::<u8, MaxPayloadSize>::try_from(payload)
|
let payload = BoundedVec::<u8, MaxPayloadSize>::try_from(payload)
|
||||||
@@ -153,7 +153,7 @@ pub mod pallet {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[pallet::call_index(1)]
|
#[pallet::call_index(1)]
|
||||||
#[pallet::weight(0)]
|
#[pallet::weight({0})]
|
||||||
pub fn start_many(
|
pub fn start_many(
|
||||||
origin: OriginFor<T>,
|
origin: OriginFor<T>,
|
||||||
para: ParaId,
|
para: ParaId,
|
||||||
@@ -173,7 +173,7 @@ pub mod pallet {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[pallet::call_index(2)]
|
#[pallet::call_index(2)]
|
||||||
#[pallet::weight(0)]
|
#[pallet::weight({0})]
|
||||||
pub fn stop(origin: OriginFor<T>, para: ParaId) -> DispatchResult {
|
pub fn stop(origin: OriginFor<T>, para: ParaId) -> DispatchResult {
|
||||||
ensure_root(origin)?;
|
ensure_root(origin)?;
|
||||||
Targets::<T>::mutate(|t| {
|
Targets::<T>::mutate(|t| {
|
||||||
@@ -185,7 +185,7 @@ pub mod pallet {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[pallet::call_index(3)]
|
#[pallet::call_index(3)]
|
||||||
#[pallet::weight(0)]
|
#[pallet::weight({0})]
|
||||||
pub fn stop_all(origin: OriginFor<T>, maybe_para: Option<ParaId>) -> DispatchResult {
|
pub fn stop_all(origin: OriginFor<T>, maybe_para: Option<ParaId>) -> DispatchResult {
|
||||||
ensure_root(origin)?;
|
ensure_root(origin)?;
|
||||||
if let Some(para) = maybe_para {
|
if let Some(para) = maybe_para {
|
||||||
@@ -197,7 +197,7 @@ pub mod pallet {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[pallet::call_index(4)]
|
#[pallet::call_index(4)]
|
||||||
#[pallet::weight(0)]
|
#[pallet::weight({0})]
|
||||||
pub fn ping(origin: OriginFor<T>, seq: u32, payload: Vec<u8>) -> DispatchResult {
|
pub fn ping(origin: OriginFor<T>, seq: u32, payload: Vec<u8>) -> DispatchResult {
|
||||||
// Only accept pings from other chains.
|
// Only accept pings from other chains.
|
||||||
let para = ensure_sibling_para(<T as Config>::RuntimeOrigin::from(origin))?;
|
let para = ensure_sibling_para(<T as Config>::RuntimeOrigin::from(origin))?;
|
||||||
@@ -224,7 +224,7 @@ pub mod pallet {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[pallet::call_index(5)]
|
#[pallet::call_index(5)]
|
||||||
#[pallet::weight(0)]
|
#[pallet::weight({0})]
|
||||||
pub fn pong(origin: OriginFor<T>, seq: u32, payload: Vec<u8>) -> DispatchResult {
|
pub fn pong(origin: OriginFor<T>, seq: u32, payload: Vec<u8>) -> DispatchResult {
|
||||||
// Only accept pings from other chains.
|
// Only accept pings from other chains.
|
||||||
let para = ensure_sibling_para(<T as Config>::RuntimeOrigin::from(origin))?;
|
let para = ensure_sibling_para(<T as Config>::RuntimeOrigin::from(origin))?;
|
||||||
|
|||||||
@@ -163,7 +163,6 @@ impl Contains<RuntimeCall> for SafeCallFilter {
|
|||||||
// but the call can be initiated only by root origin.
|
// but the call can be initiated only by root origin.
|
||||||
pallet_alliance::Call::init_members { .. } |
|
pallet_alliance::Call::init_members { .. } |
|
||||||
pallet_alliance::Call::vote { .. } |
|
pallet_alliance::Call::vote { .. } |
|
||||||
pallet_alliance::Call::close_old_weight { .. } |
|
|
||||||
pallet_alliance::Call::disband { .. } |
|
pallet_alliance::Call::disband { .. } |
|
||||||
pallet_alliance::Call::set_rule { .. } |
|
pallet_alliance::Call::set_rule { .. } |
|
||||||
pallet_alliance::Call::announce { .. } |
|
pallet_alliance::Call::announce { .. } |
|
||||||
@@ -179,7 +178,6 @@ impl Contains<RuntimeCall> for SafeCallFilter {
|
|||||||
) |
|
) |
|
||||||
RuntimeCall::AllianceMotion(
|
RuntimeCall::AllianceMotion(
|
||||||
pallet_collective::Call::vote { .. } |
|
pallet_collective::Call::vote { .. } |
|
||||||
pallet_collective::Call::close_old_weight { .. } |
|
|
||||||
pallet_collective::Call::disapprove_proposal { .. } |
|
pallet_collective::Call::disapprove_proposal { .. } |
|
||||||
pallet_collective::Call::close { .. },
|
pallet_collective::Call::close { .. },
|
||||||
) |
|
) |
|
||||||
|
|||||||
Reference in New Issue
Block a user