@@ -687,36 +687,6 @@ mod dispatches {
687687 Self :: do_swap_coldkey ( & old_coldkey, & new_coldkey)
688688 }
689689
690- /// Unstakes all tokens associated with a hotkey and transfers them to a new coldkey.
691- ///
692- /// # Arguments
693- ///
694- /// * `origin` - The origin of the call, must be signed by the current coldkey.
695- /// * `hotkey` - The hotkey associated with the stakes to be unstaked.
696- /// * `new_coldkey` - The new coldkey to receive the unstaked tokens.
697- ///
698- /// # Returns
699- ///
700- /// Returns a `DispatchResult` indicating success or failure of the operation.
701- ///
702- /// # Weight
703- ///
704- /// Weight is calculated based on the number of database reads and writes.
705- #[ cfg( test) ]
706- #[ pallet:: call_index( 72 ) ]
707- #[ pallet:: weight( ( Weight :: from_parts( 21_000_000 , 0 )
708- . saturating_add( T :: DbWeight :: get( ) . reads( 3 ) )
709- . saturating_add( T :: DbWeight :: get( ) . writes( 3 ) ) , DispatchClass :: Operational , Pays :: No ) ) ]
710- pub fn schedule_coldkey_swap (
711- _origin : OriginFor < T > ,
712- _new_coldkey : T :: AccountId ,
713- _work : Vec < u8 > ,
714- _block_number : u64 ,
715- _nonce : u64 ,
716- ) -> DispatchResult {
717- Ok ( ( ) )
718- }
719-
720690 // ---- SUDO ONLY FUNCTIONS ------------------------------------------------------------
721691
722692 // ==================================
@@ -1032,7 +1002,6 @@ mod dispatches {
10321002 )
10331003 . map_err ( |_| Error :: < T > :: FailedToSchedule ) ?;
10341004
1035- ColdkeySwapScheduled :: < T > :: insert ( & who, ( ) ) ;
10361005 // Emit the SwapScheduled event
10371006 Self :: deposit_event ( Event :: DissolveNetworkScheduled {
10381007 account : who. clone ( ) ,
0 commit comments