@@ -506,6 +506,115 @@ module.exports.nockVetRecovery = function (bitgo, baseAddress) {
506506    } ) ; 
507507} ; 
508508
509+ module . exports . nockVetTokenRecovery  =  function  ( bitgo ,  baseAddress )  { 
510+   // nock for account balance 
511+   const  url  =  Environments [ bitgo . getEnv ( ) ] . vetNodeUrl ; 
512+   nock ( url ) 
513+     . post ( '/accounts/*' ,  { 
514+       clauses : [ 
515+         { 
516+           to : '0x0000000000000000000000000000456E65726779' , 
517+           value : '0x0' , 
518+           data : `0x70a08231000000000000000000000000${ baseAddress . slice ( 2 ) }  , 
519+         } , 
520+       ] , 
521+     } ) 
522+     . reply ( 200 ,  [ 
523+       { 
524+         data : '0x000000000000000000000000000000000000000000000000416003863bd917f8' , 
525+         events : [ ] , 
526+         transfers : [ ] , 
527+         gasUsed : 870 , 
528+         reverted : false , 
529+         vmError : '' , 
530+       } , 
531+     ] ) ; 
532+ 
533+   nock ( url ) . get ( '/blocks/best' ) . reply ( 200 ,  { 
534+     number : 23107826 , 
535+     id : '0x016098f2a6779c3ad2bb52ef0a3f57c770af55a77bfa1b2837266f752118ad8d' , 
536+     size : 368 , 
537+     parentID : '0x016098f1acffb0125ffeca9b3e2491d31574d14b55a15e912e45e8081e063e0e' , 
538+     timestamp : 1761116630 , 
539+     gasLimit : 40000000 , 
540+     beneficiary : '0xae99cb89767a09d53e589a40cb4016974aba4b94' , 
541+     gasUsed : 0 , 
542+     totalScore : 218523577 , 
543+     txsRoot : '0x45b0cfc220ceec5b7c1c62c4d4193d38e4eba48e8815729ce75f9c0ab0e4c1c0' , 
544+     txsFeatures : 1 , 
545+     stateRoot : '0x7a5e7b3b8b89958e7fdd5e14acbc79dbc419672e84d02376a43b3beebe555e33' , 
546+     receiptsRoot : '0x45b0cfc220ceec5b7c1c62c4d4193d38e4eba48e8815729ce75f9c0ab0e4c1c0' , 
547+     com : true , 
548+     signer : '0xae99cb89767a09d53e589a40cb4016974aba4b94' , 
549+     isTrunk : true , 
550+     isFinalized : false , 
551+     baseFeePerGas : '0x9184e72a000' , 
552+     transactions : [ ] , 
553+   } ) ; 
554+ 
555+   nock ( url ) 
556+     . post ( '/accounts/*' ,  { 
557+       clauses : [ 
558+         { 
559+           to : '0x0000000000000000000000000000456E65726779' , 
560+           value : '0x0' , 
561+           data : '0xa9059cbb000000000000000000000000ac05da78464520aa7c9d4c19bd7a440b111b305400000000000000000000000000000000000000000000000036a9d31575bcee8e' , 
562+         } , 
563+       ] , 
564+       caller : `${ baseAddress }  , 
565+     } ) 
566+     . reply ( 200 ,  [ 
567+       { 
568+         data : '0x0000000000000000000000000000000000000000000000000000000000000001' , 
569+         events : [ 
570+           { 
571+             address : '0x0000000000000000000000000000456e65726779' , 
572+             topics : [ 
573+               '0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef' , 
574+               '0x000000000000000000000000880ff4718587d678e78fc7803b3634bd12ecf019' , 
575+               '0x000000000000000000000000ac05da78464520aa7c9d4c19bd7a440b111b3054' , 
576+             ] , 
577+             data : '0x00000000000000000000000000000000000000000000000036a9d31575bcee8e' , 
578+           } , 
579+         ] , 
580+         transfers : [ ] , 
581+         gasUsed : 13326 , 
582+         reverted : false , 
583+         vmError : '' , 
584+       } , 
585+     ] ) ; 
586+   // nock for vtho balance for gas 
587+   nock ( url ) 
588+     . post ( '/accounts/*' ,  { 
589+       clauses : [ 
590+         { 
591+           to : '0x0000000000000000000000000000456E65726779' , 
592+           value : '0x0' , 
593+           data : `0x70a08231000000000000000000000000${ baseAddress . slice ( 2 ) }  , 
594+         } , 
595+       ] , 
596+     } ) 
597+     . reply ( 200 ,  [ 
598+       { 
599+         data : '0x000000000000000000000000000000000000000000000000416003863bd917f8' , 
600+         events : [ ] , 
601+         transfers : [ ] , 
602+         gasUsed : 870 , 
603+         reverted : false , 
604+         vmError : '' , 
605+       } , 
606+     ] ) ; 
607+ 
608+   nock ( url ) 
609+     . post ( '/transactions' ,  { 
610+       raw : / ^ 0 x [ 0 - 9 a - f ] + $ / i, 
611+     } ) 
612+     . reply ( 200 ,  { 
613+       id : '0x'  +  'a' . repeat ( 64 ) ,  // A fake transaction ID 
614+       reverted : false , 
615+     } ) ; 
616+ } ; 
617+ 
509618module . exports . nockEtherscanRateLimitError  =  function  ( )  { 
510619  const  response  =  { 
511620    status : '0' , 
0 commit comments