[js-token-library] add freeze and thaw ix builder functions to module declarations (#851)

This commit is contained in:
Paul 2020-11-16 18:49:15 +01:00 committed by GitHub
parent 90c0481051
commit 4394cb1ebb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 28 additions and 0 deletions

14
token/js/module.d.ts vendored
View File

@ -213,5 +213,19 @@ declare module '@solana/spl-token' {
authority: PublicKey,
multiSigners: Array<Account>,
): TransactionInstruction;
static createFreezeAccountInstruction(
programId: PublicKey,
account: PublicKey,
mint: PublicKey,
authority: PublicKey,
multiSigners: Array<Account>,
): TransactionInstruction;
static createThawAccountInstruction(
programId: PublicKey,
account: PublicKey,
mint: PublicKey,
authority: PublicKey,
multiSigners: Array<Account>,
): TransactionInstruction;
}
}

View File

@ -205,5 +205,19 @@ declare module '@solana/spl-token' {
authority: PublicKey,
multiSigners: Array<Account>,
): TransactionInstruction;
static createFreezeAccountInstruction(
programId: PublicKey,
account: PublicKey,
mint: PublicKey,
authority: PublicKey,
multiSigners: Array<Account>,
): TransactionInstruction;
static createThawAccountInstruction(
programId: PublicKey,
account: PublicKey,
mint: PublicKey,
authority: PublicKey,
multiSigners: Array<Account>,
): TransactionInstruction;
}
}