We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 285ca66 commit d8aea51Copy full SHA for d8aea51
solana/ts/lib/ntt.ts
@@ -969,6 +969,24 @@ export namespace NTT {
969
.instruction();
970
}
971
972
+ export async function createSetThresholdInstruction(
973
+ program: Program<NttBindings.NativeTokenTransfer<IdlVersion>>,
974
+ args: {
975
+ owner: PublicKey;
976
+ threshold: number;
977
+ },
978
+ pdas?: Pdas
979
+ ) {
980
+ pdas = pdas ?? NTT.pdas(program.programId);
981
+ return program.methods
982
+ .setThreshold(args.threshold)
983
+ .accountsStrict({
984
+ owner: args.owner,
985
+ config: pdas.configAccount(),
986
+ })
987
+ .instruction();
988
+ }
989
+
990
export async function createSetOutboundLimitInstruction(
991
program: Program<NttBindings.NativeTokenTransfer<IdlVersion>>,
992
args: {
0 commit comments