File tree 1 file changed +22
-0
lines changed
1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -759,6 +759,28 @@ export class SolanaNtt<N extends Network, C extends SolanaChains>
759
759
. instruction ( ) ;
760
760
}
761
761
762
+ async createDeregisterTransceiverIx (
763
+ ix : number ,
764
+ owner : web3 . PublicKey
765
+ ) : Promise < web3 . TransactionInstruction > {
766
+ const transceiver = await this . getTransceiver ( ix ) ;
767
+ if ( ! transceiver ) {
768
+ throw new Error ( `Transceiver not found` ) ;
769
+ }
770
+ const transceiverProgramId = transceiver . programId ;
771
+
772
+ return this . program . methods
773
+ . deregisterTransceiver ( )
774
+ . accountsStrict ( {
775
+ owner,
776
+ config : this . pdas . configAccount ( ) ,
777
+ transceiver : transceiverProgramId ,
778
+ registeredTransceiver :
779
+ this . pdas . registeredTransceiver ( transceiverProgramId ) ,
780
+ } )
781
+ . instruction ( ) ;
782
+ }
783
+
762
784
async * setWormholeTransceiverPeer (
763
785
peer : ChainAddress ,
764
786
payer : AccountAddress < C >
You can’t perform that action at this time.
0 commit comments