File tree 1 file changed +27
-0
lines changed
1 file changed +27
-0
lines changed Original file line number Diff line number Diff line change @@ -762,6 +762,33 @@ export namespace NTT {
762
762
. instruction ( ) ;
763
763
}
764
764
765
+ export async function createRevertTokenAuthorityInstruction (
766
+ program : Program < NttBindings . NativeTokenTransfer < IdlVersion > > ,
767
+ config : NttBindings . Config < IdlVersion > ,
768
+ args : {
769
+ rentPayer : PublicKey ;
770
+ owner : PublicKey ;
771
+ } ,
772
+ pdas ?: Pdas
773
+ ) {
774
+ pdas = pdas ?? NTT . pdas ( program . programId ) ;
775
+ return program . methods
776
+ . revertTokenAuthority ( )
777
+ . accountsStrict ( {
778
+ common : {
779
+ config : pdas . configAccount ( ) ,
780
+ mint : config . mint ,
781
+ tokenAuthority : pdas . tokenAuthority ( ) ,
782
+ tokenProgram : config . tokenProgram ,
783
+ systemProgram : SystemProgram . programId ,
784
+ rentPayer : args . rentPayer ,
785
+ pendingTokenAuthority : pdas . pendingTokenAuthority ( ) ,
786
+ } ,
787
+ owner : args . owner ,
788
+ } )
789
+ . instruction ( ) ;
790
+ }
791
+
765
792
export async function createSetPeerInstruction (
766
793
program : Program < NttBindings . NativeTokenTransfer < IdlVersion > > ,
767
794
args : {
You can’t perform that action at this time.
0 commit comments