referrerpolicy=no-referrer-when-downgrade

Trait polkadot_runtime_common::traits::OnSwap

source ·
pub trait OnSwap {
    // Required method
    fn on_swap(one: ParaId, other: ParaId);
}
Expand description

Runtime hook for when we swap a lease holding parachain and an on-demand parachain.

Required Methods§

source

fn on_swap(one: ParaId, other: ParaId)

Updates any needed state/references to enact a logical swap of two parachains. Identity, code and head_data remain equivalent for all parachains/threads, however other properties such as leases, deposits held and thread/chain nature are swapped.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl OnSwap for ()
where Id: Clone,

source§

fn on_swap(one: ParaId, other: ParaId)

Updates any needed state/references to enact a logical swap of two parachains. Identity, code and head_data remain equivalent for all parachains/threads, however other properties such as leases, deposits held and thread/chain nature are swapped.

source§

impl<TupleElement0: OnSwap> OnSwap for (TupleElement0,)
where Id: Clone,

source§

fn on_swap(one: ParaId, other: ParaId)

Updates any needed state/references to enact a logical swap of two parachains. Identity, code and head_data remain equivalent for all parachains/threads, however other properties such as leases, deposits held and thread/chain nature are swapped.

source§

impl<TupleElement0: OnSwap, TupleElement1: OnSwap> OnSwap for (TupleElement0, TupleElement1)
where Id: Clone,

source§

fn on_swap(one: ParaId, other: ParaId)

Updates any needed state/references to enact a logical swap of two parachains. Identity, code and head_data remain equivalent for all parachains/threads, however other properties such as leases, deposits held and thread/chain nature are swapped.

source§

impl<TupleElement0: OnSwap, TupleElement1: OnSwap, TupleElement2: OnSwap> OnSwap for (TupleElement0, TupleElement1, TupleElement2)
where Id: Clone,

source§

fn on_swap(one: ParaId, other: ParaId)

Updates any needed state/references to enact a logical swap of two parachains. Identity, code and head_data remain equivalent for all parachains/threads, however other properties such as leases, deposits held and thread/chain nature are swapped.

source§

impl<TupleElement0: OnSwap, TupleElement1: OnSwap, TupleElement2: OnSwap, TupleElement3: OnSwap> OnSwap for (TupleElement0, TupleElement1, TupleElement2, TupleElement3)
where Id: Clone,

source§

fn on_swap(one: ParaId, other: ParaId)

Updates any needed state/references to enact a logical swap of two parachains. Identity, code and head_data remain equivalent for all parachains/threads, however other properties such as leases, deposits held and thread/chain nature are swapped.

source§

impl<TupleElement0: OnSwap, TupleElement1: OnSwap, TupleElement2: OnSwap, TupleElement3: OnSwap, TupleElement4: OnSwap> OnSwap for (TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4)
where Id: Clone,

source§

fn on_swap(one: ParaId, other: ParaId)

Updates any needed state/references to enact a logical swap of two parachains. Identity, code and head_data remain equivalent for all parachains/threads, however other properties such as leases, deposits held and thread/chain nature are swapped.

source§

impl<TupleElement0: OnSwap, TupleElement1: OnSwap, TupleElement2: OnSwap, TupleElement3: OnSwap, TupleElement4: OnSwap, TupleElement5: OnSwap> OnSwap for (TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4, TupleElement5)
where Id: Clone,

source§

fn on_swap(one: ParaId, other: ParaId)

Updates any needed state/references to enact a logical swap of two parachains. Identity, code and head_data remain equivalent for all parachains/threads, however other properties such as leases, deposits held and thread/chain nature are swapped.

source§

impl<TupleElement0: OnSwap, TupleElement1: OnSwap, TupleElement2: OnSwap, TupleElement3: OnSwap, TupleElement4: OnSwap, TupleElement5: OnSwap, TupleElement6: OnSwap> OnSwap for (TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4, TupleElement5, TupleElement6)
where Id: Clone,

source§

fn on_swap(one: ParaId, other: ParaId)

Updates any needed state/references to enact a logical swap of two parachains. Identity, code and head_data remain equivalent for all parachains/threads, however other properties such as leases, deposits held and thread/chain nature are swapped.

source§

impl<TupleElement0: OnSwap, TupleElement1: OnSwap, TupleElement2: OnSwap, TupleElement3: OnSwap, TupleElement4: OnSwap, TupleElement5: OnSwap, TupleElement6: OnSwap, TupleElement7: OnSwap> OnSwap for (TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4, TupleElement5, TupleElement6, TupleElement7)
where Id: Clone,

source§

fn on_swap(one: ParaId, other: ParaId)

Updates any needed state/references to enact a logical swap of two parachains. Identity, code and head_data remain equivalent for all parachains/threads, however other properties such as leases, deposits held and thread/chain nature are swapped.

source§

impl<TupleElement0: OnSwap, TupleElement1: OnSwap, TupleElement2: OnSwap, TupleElement3: OnSwap, TupleElement4: OnSwap, TupleElement5: OnSwap, TupleElement6: OnSwap, TupleElement7: OnSwap, TupleElement8: OnSwap> OnSwap for (TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4, TupleElement5, TupleElement6, TupleElement7, TupleElement8)
where Id: Clone,

source§

fn on_swap(one: ParaId, other: ParaId)

Updates any needed state/references to enact a logical swap of two parachains. Identity, code and head_data remain equivalent for all parachains/threads, however other properties such as leases, deposits held and thread/chain nature are swapped.

source§

impl<TupleElement0: OnSwap, TupleElement1: OnSwap, TupleElement2: OnSwap, TupleElement3: OnSwap, TupleElement4: OnSwap, TupleElement5: OnSwap, TupleElement6: OnSwap, TupleElement7: OnSwap, TupleElement8: OnSwap, TupleElement9: OnSwap> OnSwap for (TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4, TupleElement5, TupleElement6, TupleElement7, TupleElement8, TupleElement9)
where Id: Clone,

source§

fn on_swap(one: ParaId, other: ParaId)

Updates any needed state/references to enact a logical swap of two parachains. Identity, code and head_data remain equivalent for all parachains/threads, however other properties such as leases, deposits held and thread/chain nature are swapped.

source§

impl<TupleElement0: OnSwap, TupleElement1: OnSwap, TupleElement2: OnSwap, TupleElement3: OnSwap, TupleElement4: OnSwap, TupleElement5: OnSwap, TupleElement6: OnSwap, TupleElement7: OnSwap, TupleElement8: OnSwap, TupleElement9: OnSwap, TupleElement10: OnSwap> OnSwap for (TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4, TupleElement5, TupleElement6, TupleElement7, TupleElement8, TupleElement9, TupleElement10)
where Id: Clone,

source§

fn on_swap(one: ParaId, other: ParaId)

Updates any needed state/references to enact a logical swap of two parachains. Identity, code and head_data remain equivalent for all parachains/threads, however other properties such as leases, deposits held and thread/chain nature are swapped.

source§

impl<TupleElement0: OnSwap, TupleElement1: OnSwap, TupleElement2: OnSwap, TupleElement3: OnSwap, TupleElement4: OnSwap, TupleElement5: OnSwap, TupleElement6: OnSwap, TupleElement7: OnSwap, TupleElement8: OnSwap, TupleElement9: OnSwap, TupleElement10: OnSwap, TupleElement11: OnSwap> OnSwap for (TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4, TupleElement5, TupleElement6, TupleElement7, TupleElement8, TupleElement9, TupleElement10, TupleElement11)
where Id: Clone,

source§

fn on_swap(one: ParaId, other: ParaId)

Updates any needed state/references to enact a logical swap of two parachains. Identity, code and head_data remain equivalent for all parachains/threads, however other properties such as leases, deposits held and thread/chain nature are swapped.

source§

impl<TupleElement0: OnSwap, TupleElement1: OnSwap, TupleElement2: OnSwap, TupleElement3: OnSwap, TupleElement4: OnSwap, TupleElement5: OnSwap, TupleElement6: OnSwap, TupleElement7: OnSwap, TupleElement8: OnSwap, TupleElement9: OnSwap, TupleElement10: OnSwap, TupleElement11: OnSwap, TupleElement12: OnSwap> OnSwap for (TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4, TupleElement5, TupleElement6, TupleElement7, TupleElement8, TupleElement9, TupleElement10, TupleElement11, TupleElement12)
where Id: Clone,

source§

fn on_swap(one: ParaId, other: ParaId)

Updates any needed state/references to enact a logical swap of two parachains. Identity, code and head_data remain equivalent for all parachains/threads, however other properties such as leases, deposits held and thread/chain nature are swapped.

source§

impl<TupleElement0: OnSwap, TupleElement1: OnSwap, TupleElement2: OnSwap, TupleElement3: OnSwap, TupleElement4: OnSwap, TupleElement5: OnSwap, TupleElement6: OnSwap, TupleElement7: OnSwap, TupleElement8: OnSwap, TupleElement9: OnSwap, TupleElement10: OnSwap, TupleElement11: OnSwap, TupleElement12: OnSwap, TupleElement13: OnSwap> OnSwap for (TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4, TupleElement5, TupleElement6, TupleElement7, TupleElement8, TupleElement9, TupleElement10, TupleElement11, TupleElement12, TupleElement13)
where Id: Clone,

source§

fn on_swap(one: ParaId, other: ParaId)

Updates any needed state/references to enact a logical swap of two parachains. Identity, code and head_data remain equivalent for all parachains/threads, however other properties such as leases, deposits held and thread/chain nature are swapped.

source§

impl<TupleElement0: OnSwap, TupleElement1: OnSwap, TupleElement2: OnSwap, TupleElement3: OnSwap, TupleElement4: OnSwap, TupleElement5: OnSwap, TupleElement6: OnSwap, TupleElement7: OnSwap, TupleElement8: OnSwap, TupleElement9: OnSwap, TupleElement10: OnSwap, TupleElement11: OnSwap, TupleElement12: OnSwap, TupleElement13: OnSwap, TupleElement14: OnSwap> OnSwap for (TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4, TupleElement5, TupleElement6, TupleElement7, TupleElement8, TupleElement9, TupleElement10, TupleElement11, TupleElement12, TupleElement13, TupleElement14)
where Id: Clone,

source§

fn on_swap(one: ParaId, other: ParaId)

Updates any needed state/references to enact a logical swap of two parachains. Identity, code and head_data remain equivalent for all parachains/threads, however other properties such as leases, deposits held and thread/chain nature are swapped.

source§

impl<TupleElement0: OnSwap, TupleElement1: OnSwap, TupleElement2: OnSwap, TupleElement3: OnSwap, TupleElement4: OnSwap, TupleElement5: OnSwap, TupleElement6: OnSwap, TupleElement7: OnSwap, TupleElement8: OnSwap, TupleElement9: OnSwap, TupleElement10: OnSwap, TupleElement11: OnSwap, TupleElement12: OnSwap, TupleElement13: OnSwap, TupleElement14: OnSwap, TupleElement15: OnSwap> OnSwap for (TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4, TupleElement5, TupleElement6, TupleElement7, TupleElement8, TupleElement9, TupleElement10, TupleElement11, TupleElement12, TupleElement13, TupleElement14, TupleElement15)
where Id: Clone,

source§

fn on_swap(one: ParaId, other: ParaId)

Updates any needed state/references to enact a logical swap of two parachains. Identity, code and head_data remain equivalent for all parachains/threads, however other properties such as leases, deposits held and thread/chain nature are swapped.

source§

impl<TupleElement0: OnSwap, TupleElement1: OnSwap, TupleElement2: OnSwap, TupleElement3: OnSwap, TupleElement4: OnSwap, TupleElement5: OnSwap, TupleElement6: OnSwap, TupleElement7: OnSwap, TupleElement8: OnSwap, TupleElement9: OnSwap, TupleElement10: OnSwap, TupleElement11: OnSwap, TupleElement12: OnSwap, TupleElement13: OnSwap, TupleElement14: OnSwap, TupleElement15: OnSwap, TupleElement16: OnSwap> OnSwap for (TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4, TupleElement5, TupleElement6, TupleElement7, TupleElement8, TupleElement9, TupleElement10, TupleElement11, TupleElement12, TupleElement13, TupleElement14, TupleElement15, TupleElement16)
where Id: Clone,

source§

fn on_swap(one: ParaId, other: ParaId)

Updates any needed state/references to enact a logical swap of two parachains. Identity, code and head_data remain equivalent for all parachains/threads, however other properties such as leases, deposits held and thread/chain nature are swapped.

source§

impl<TupleElement0: OnSwap, TupleElement1: OnSwap, TupleElement2: OnSwap, TupleElement3: OnSwap, TupleElement4: OnSwap, TupleElement5: OnSwap, TupleElement6: OnSwap, TupleElement7: OnSwap, TupleElement8: OnSwap, TupleElement9: OnSwap, TupleElement10: OnSwap, TupleElement11: OnSwap, TupleElement12: OnSwap, TupleElement13: OnSwap, TupleElement14: OnSwap, TupleElement15: OnSwap, TupleElement16: OnSwap, TupleElement17: OnSwap> OnSwap for (TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4, TupleElement5, TupleElement6, TupleElement7, TupleElement8, TupleElement9, TupleElement10, TupleElement11, TupleElement12, TupleElement13, TupleElement14, TupleElement15, TupleElement16, TupleElement17)
where Id: Clone,

source§

fn on_swap(one: ParaId, other: ParaId)

Updates any needed state/references to enact a logical swap of two parachains. Identity, code and head_data remain equivalent for all parachains/threads, however other properties such as leases, deposits held and thread/chain nature are swapped.

source§

impl<TupleElement0: OnSwap, TupleElement1: OnSwap, TupleElement2: OnSwap, TupleElement3: OnSwap, TupleElement4: OnSwap, TupleElement5: OnSwap, TupleElement6: OnSwap, TupleElement7: OnSwap, TupleElement8: OnSwap, TupleElement9: OnSwap, TupleElement10: OnSwap, TupleElement11: OnSwap, TupleElement12: OnSwap, TupleElement13: OnSwap, TupleElement14: OnSwap, TupleElement15: OnSwap, TupleElement16: OnSwap, TupleElement17: OnSwap, TupleElement18: OnSwap> OnSwap for (TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4, TupleElement5, TupleElement6, TupleElement7, TupleElement8, TupleElement9, TupleElement10, TupleElement11, TupleElement12, TupleElement13, TupleElement14, TupleElement15, TupleElement16, TupleElement17, TupleElement18)
where Id: Clone,

source§

fn on_swap(one: ParaId, other: ParaId)

Updates any needed state/references to enact a logical swap of two parachains. Identity, code and head_data remain equivalent for all parachains/threads, however other properties such as leases, deposits held and thread/chain nature are swapped.

source§

impl<TupleElement0: OnSwap, TupleElement1: OnSwap, TupleElement2: OnSwap, TupleElement3: OnSwap, TupleElement4: OnSwap, TupleElement5: OnSwap, TupleElement6: OnSwap, TupleElement7: OnSwap, TupleElement8: OnSwap, TupleElement9: OnSwap, TupleElement10: OnSwap, TupleElement11: OnSwap, TupleElement12: OnSwap, TupleElement13: OnSwap, TupleElement14: OnSwap, TupleElement15: OnSwap, TupleElement16: OnSwap, TupleElement17: OnSwap, TupleElement18: OnSwap, TupleElement19: OnSwap> OnSwap for (TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4, TupleElement5, TupleElement6, TupleElement7, TupleElement8, TupleElement9, TupleElement10, TupleElement11, TupleElement12, TupleElement13, TupleElement14, TupleElement15, TupleElement16, TupleElement17, TupleElement18, TupleElement19)
where Id: Clone,

source§

fn on_swap(one: ParaId, other: ParaId)

Updates any needed state/references to enact a logical swap of two parachains. Identity, code and head_data remain equivalent for all parachains/threads, however other properties such as leases, deposits held and thread/chain nature are swapped.

source§

impl<TupleElement0: OnSwap, TupleElement1: OnSwap, TupleElement2: OnSwap, TupleElement3: OnSwap, TupleElement4: OnSwap, TupleElement5: OnSwap, TupleElement6: OnSwap, TupleElement7: OnSwap, TupleElement8: OnSwap, TupleElement9: OnSwap, TupleElement10: OnSwap, TupleElement11: OnSwap, TupleElement12: OnSwap, TupleElement13: OnSwap, TupleElement14: OnSwap, TupleElement15: OnSwap, TupleElement16: OnSwap, TupleElement17: OnSwap, TupleElement18: OnSwap, TupleElement19: OnSwap, TupleElement20: OnSwap> OnSwap for (TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4, TupleElement5, TupleElement6, TupleElement7, TupleElement8, TupleElement9, TupleElement10, TupleElement11, TupleElement12, TupleElement13, TupleElement14, TupleElement15, TupleElement16, TupleElement17, TupleElement18, TupleElement19, TupleElement20)
where Id: Clone,

source§

fn on_swap(one: ParaId, other: ParaId)

Updates any needed state/references to enact a logical swap of two parachains. Identity, code and head_data remain equivalent for all parachains/threads, however other properties such as leases, deposits held and thread/chain nature are swapped.

source§

impl<TupleElement0: OnSwap, TupleElement1: OnSwap, TupleElement2: OnSwap, TupleElement3: OnSwap, TupleElement4: OnSwap, TupleElement5: OnSwap, TupleElement6: OnSwap, TupleElement7: OnSwap, TupleElement8: OnSwap, TupleElement9: OnSwap, TupleElement10: OnSwap, TupleElement11: OnSwap, TupleElement12: OnSwap, TupleElement13: OnSwap, TupleElement14: OnSwap, TupleElement15: OnSwap, TupleElement16: OnSwap, TupleElement17: OnSwap, TupleElement18: OnSwap, TupleElement19: OnSwap, TupleElement20: OnSwap, TupleElement21: OnSwap> OnSwap for (TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4, TupleElement5, TupleElement6, TupleElement7, TupleElement8, TupleElement9, TupleElement10, TupleElement11, TupleElement12, TupleElement13, TupleElement14, TupleElement15, TupleElement16, TupleElement17, TupleElement18, TupleElement19, TupleElement20, TupleElement21)
where Id: Clone,

source§

fn on_swap(one: ParaId, other: ParaId)

Updates any needed state/references to enact a logical swap of two parachains. Identity, code and head_data remain equivalent for all parachains/threads, however other properties such as leases, deposits held and thread/chain nature are swapped.

source§

impl<TupleElement0: OnSwap, TupleElement1: OnSwap, TupleElement2: OnSwap, TupleElement3: OnSwap, TupleElement4: OnSwap, TupleElement5: OnSwap, TupleElement6: OnSwap, TupleElement7: OnSwap, TupleElement8: OnSwap, TupleElement9: OnSwap, TupleElement10: OnSwap, TupleElement11: OnSwap, TupleElement12: OnSwap, TupleElement13: OnSwap, TupleElement14: OnSwap, TupleElement15: OnSwap, TupleElement16: OnSwap, TupleElement17: OnSwap, TupleElement18: OnSwap, TupleElement19: OnSwap, TupleElement20: OnSwap, TupleElement21: OnSwap, TupleElement22: OnSwap> OnSwap for (TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4, TupleElement5, TupleElement6, TupleElement7, TupleElement8, TupleElement9, TupleElement10, TupleElement11, TupleElement12, TupleElement13, TupleElement14, TupleElement15, TupleElement16, TupleElement17, TupleElement18, TupleElement19, TupleElement20, TupleElement21, TupleElement22)
where Id: Clone,

source§

fn on_swap(one: ParaId, other: ParaId)

Updates any needed state/references to enact a logical swap of two parachains. Identity, code and head_data remain equivalent for all parachains/threads, however other properties such as leases, deposits held and thread/chain nature are swapped.

source§

impl<TupleElement0: OnSwap, TupleElement1: OnSwap, TupleElement2: OnSwap, TupleElement3: OnSwap, TupleElement4: OnSwap, TupleElement5: OnSwap, TupleElement6: OnSwap, TupleElement7: OnSwap, TupleElement8: OnSwap, TupleElement9: OnSwap, TupleElement10: OnSwap, TupleElement11: OnSwap, TupleElement12: OnSwap, TupleElement13: OnSwap, TupleElement14: OnSwap, TupleElement15: OnSwap, TupleElement16: OnSwap, TupleElement17: OnSwap, TupleElement18: OnSwap, TupleElement19: OnSwap, TupleElement20: OnSwap, TupleElement21: OnSwap, TupleElement22: OnSwap, TupleElement23: OnSwap> OnSwap for (TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4, TupleElement5, TupleElement6, TupleElement7, TupleElement8, TupleElement9, TupleElement10, TupleElement11, TupleElement12, TupleElement13, TupleElement14, TupleElement15, TupleElement16, TupleElement17, TupleElement18, TupleElement19, TupleElement20, TupleElement21, TupleElement22, TupleElement23)
where Id: Clone,

source§

fn on_swap(one: ParaId, other: ParaId)

Updates any needed state/references to enact a logical swap of two parachains. Identity, code and head_data remain equivalent for all parachains/threads, however other properties such as leases, deposits held and thread/chain nature are swapped.

source§

impl<TupleElement0: OnSwap, TupleElement1: OnSwap, TupleElement2: OnSwap, TupleElement3: OnSwap, TupleElement4: OnSwap, TupleElement5: OnSwap, TupleElement6: OnSwap, TupleElement7: OnSwap, TupleElement8: OnSwap, TupleElement9: OnSwap, TupleElement10: OnSwap, TupleElement11: OnSwap, TupleElement12: OnSwap, TupleElement13: OnSwap, TupleElement14: OnSwap, TupleElement15: OnSwap, TupleElement16: OnSwap, TupleElement17: OnSwap, TupleElement18: OnSwap, TupleElement19: OnSwap, TupleElement20: OnSwap, TupleElement21: OnSwap, TupleElement22: OnSwap, TupleElement23: OnSwap, TupleElement24: OnSwap> OnSwap for (TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4, TupleElement5, TupleElement6, TupleElement7, TupleElement8, TupleElement9, TupleElement10, TupleElement11, TupleElement12, TupleElement13, TupleElement14, TupleElement15, TupleElement16, TupleElement17, TupleElement18, TupleElement19, TupleElement20, TupleElement21, TupleElement22, TupleElement23, TupleElement24)
where Id: Clone,

source§

fn on_swap(one: ParaId, other: ParaId)

Updates any needed state/references to enact a logical swap of two parachains. Identity, code and head_data remain equivalent for all parachains/threads, however other properties such as leases, deposits held and thread/chain nature are swapped.

source§

impl<TupleElement0: OnSwap, TupleElement1: OnSwap, TupleElement2: OnSwap, TupleElement3: OnSwap, TupleElement4: OnSwap, TupleElement5: OnSwap, TupleElement6: OnSwap, TupleElement7: OnSwap, TupleElement8: OnSwap, TupleElement9: OnSwap, TupleElement10: OnSwap, TupleElement11: OnSwap, TupleElement12: OnSwap, TupleElement13: OnSwap, TupleElement14: OnSwap, TupleElement15: OnSwap, TupleElement16: OnSwap, TupleElement17: OnSwap, TupleElement18: OnSwap, TupleElement19: OnSwap, TupleElement20: OnSwap, TupleElement21: OnSwap, TupleElement22: OnSwap, TupleElement23: OnSwap, TupleElement24: OnSwap, TupleElement25: OnSwap> OnSwap for (TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4, TupleElement5, TupleElement6, TupleElement7, TupleElement8, TupleElement9, TupleElement10, TupleElement11, TupleElement12, TupleElement13, TupleElement14, TupleElement15, TupleElement16, TupleElement17, TupleElement18, TupleElement19, TupleElement20, TupleElement21, TupleElement22, TupleElement23, TupleElement24, TupleElement25)
where Id: Clone,

source§

fn on_swap(one: ParaId, other: ParaId)

Updates any needed state/references to enact a logical swap of two parachains. Identity, code and head_data remain equivalent for all parachains/threads, however other properties such as leases, deposits held and thread/chain nature are swapped.

source§

impl<TupleElement0: OnSwap, TupleElement1: OnSwap, TupleElement2: OnSwap, TupleElement3: OnSwap, TupleElement4: OnSwap, TupleElement5: OnSwap, TupleElement6: OnSwap, TupleElement7: OnSwap, TupleElement8: OnSwap, TupleElement9: OnSwap, TupleElement10: OnSwap, TupleElement11: OnSwap, TupleElement12: OnSwap, TupleElement13: OnSwap, TupleElement14: OnSwap, TupleElement15: OnSwap, TupleElement16: OnSwap, TupleElement17: OnSwap, TupleElement18: OnSwap, TupleElement19: OnSwap, TupleElement20: OnSwap, TupleElement21: OnSwap, TupleElement22: OnSwap, TupleElement23: OnSwap, TupleElement24: OnSwap, TupleElement25: OnSwap, TupleElement26: OnSwap> OnSwap for (TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4, TupleElement5, TupleElement6, TupleElement7, TupleElement8, TupleElement9, TupleElement10, TupleElement11, TupleElement12, TupleElement13, TupleElement14, TupleElement15, TupleElement16, TupleElement17, TupleElement18, TupleElement19, TupleElement20, TupleElement21, TupleElement22, TupleElement23, TupleElement24, TupleElement25, TupleElement26)
where Id: Clone,

source§

fn on_swap(one: ParaId, other: ParaId)

Updates any needed state/references to enact a logical swap of two parachains. Identity, code and head_data remain equivalent for all parachains/threads, however other properties such as leases, deposits held and thread/chain nature are swapped.

source§

impl<TupleElement0: OnSwap, TupleElement1: OnSwap, TupleElement2: OnSwap, TupleElement3: OnSwap, TupleElement4: OnSwap, TupleElement5: OnSwap, TupleElement6: OnSwap, TupleElement7: OnSwap, TupleElement8: OnSwap, TupleElement9: OnSwap, TupleElement10: OnSwap, TupleElement11: OnSwap, TupleElement12: OnSwap, TupleElement13: OnSwap, TupleElement14: OnSwap, TupleElement15: OnSwap, TupleElement16: OnSwap, TupleElement17: OnSwap, TupleElement18: OnSwap, TupleElement19: OnSwap, TupleElement20: OnSwap, TupleElement21: OnSwap, TupleElement22: OnSwap, TupleElement23: OnSwap, TupleElement24: OnSwap, TupleElement25: OnSwap, TupleElement26: OnSwap, TupleElement27: OnSwap> OnSwap for (TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4, TupleElement5, TupleElement6, TupleElement7, TupleElement8, TupleElement9, TupleElement10, TupleElement11, TupleElement12, TupleElement13, TupleElement14, TupleElement15, TupleElement16, TupleElement17, TupleElement18, TupleElement19, TupleElement20, TupleElement21, TupleElement22, TupleElement23, TupleElement24, TupleElement25, TupleElement26, TupleElement27)
where Id: Clone,

source§

fn on_swap(one: ParaId, other: ParaId)

Updates any needed state/references to enact a logical swap of two parachains. Identity, code and head_data remain equivalent for all parachains/threads, however other properties such as leases, deposits held and thread/chain nature are swapped.

source§

impl<TupleElement0: OnSwap, TupleElement1: OnSwap, TupleElement2: OnSwap, TupleElement3: OnSwap, TupleElement4: OnSwap, TupleElement5: OnSwap, TupleElement6: OnSwap, TupleElement7: OnSwap, TupleElement8: OnSwap, TupleElement9: OnSwap, TupleElement10: OnSwap, TupleElement11: OnSwap, TupleElement12: OnSwap, TupleElement13: OnSwap, TupleElement14: OnSwap, TupleElement15: OnSwap, TupleElement16: OnSwap, TupleElement17: OnSwap, TupleElement18: OnSwap, TupleElement19: OnSwap, TupleElement20: OnSwap, TupleElement21: OnSwap, TupleElement22: OnSwap, TupleElement23: OnSwap, TupleElement24: OnSwap, TupleElement25: OnSwap, TupleElement26: OnSwap, TupleElement27: OnSwap, TupleElement28: OnSwap> OnSwap for (TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4, TupleElement5, TupleElement6, TupleElement7, TupleElement8, TupleElement9, TupleElement10, TupleElement11, TupleElement12, TupleElement13, TupleElement14, TupleElement15, TupleElement16, TupleElement17, TupleElement18, TupleElement19, TupleElement20, TupleElement21, TupleElement22, TupleElement23, TupleElement24, TupleElement25, TupleElement26, TupleElement27, TupleElement28)
where Id: Clone,

source§

fn on_swap(one: ParaId, other: ParaId)

Updates any needed state/references to enact a logical swap of two parachains. Identity, code and head_data remain equivalent for all parachains/threads, however other properties such as leases, deposits held and thread/chain nature are swapped.

source§

impl<TupleElement0: OnSwap, TupleElement1: OnSwap, TupleElement2: OnSwap, TupleElement3: OnSwap, TupleElement4: OnSwap, TupleElement5: OnSwap, TupleElement6: OnSwap, TupleElement7: OnSwap, TupleElement8: OnSwap, TupleElement9: OnSwap, TupleElement10: OnSwap, TupleElement11: OnSwap, TupleElement12: OnSwap, TupleElement13: OnSwap, TupleElement14: OnSwap, TupleElement15: OnSwap, TupleElement16: OnSwap, TupleElement17: OnSwap, TupleElement18: OnSwap, TupleElement19: OnSwap, TupleElement20: OnSwap, TupleElement21: OnSwap, TupleElement22: OnSwap, TupleElement23: OnSwap, TupleElement24: OnSwap, TupleElement25: OnSwap, TupleElement26: OnSwap, TupleElement27: OnSwap, TupleElement28: OnSwap, TupleElement29: OnSwap> OnSwap for (TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4, TupleElement5, TupleElement6, TupleElement7, TupleElement8, TupleElement9, TupleElement10, TupleElement11, TupleElement12, TupleElement13, TupleElement14, TupleElement15, TupleElement16, TupleElement17, TupleElement18, TupleElement19, TupleElement20, TupleElement21, TupleElement22, TupleElement23, TupleElement24, TupleElement25, TupleElement26, TupleElement27, TupleElement28, TupleElement29)
where Id: Clone,

source§

fn on_swap(one: ParaId, other: ParaId)

Updates any needed state/references to enact a logical swap of two parachains. Identity, code and head_data remain equivalent for all parachains/threads, however other properties such as leases, deposits held and thread/chain nature are swapped.

Implementors§

source§

impl<T: Config> OnSwap for polkadot_runtime_common::crowdloan::pallet::Pallet<T>

source§

impl<T: Config> OnSwap for polkadot_runtime_common::slots::pallet::Pallet<T>