add freeze and thaw account methods to module declaration in spl token library (#730)

This commit is contained in:
Paul 2020-10-27 14:15:52 +01:00 committed by GitHub
parent 46500ad5c0
commit cb9a94142a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 20 additions and 0 deletions

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

@ -131,6 +131,16 @@ declare module '@solana/spl-token' {
multiSigners: Array<Account>,
amount: number | u64,
): Promise<void>;
freezeAccount(
account: PublicKey,
authority: any,
multiSigners: Array<Account>,
): Promise<void>;
thawAccount(
account: PublicKey,
authority: any,
multiSigners: Array<Account>,
): Promise<void>;
closeAccount(
account: PublicKey,
dest: PublicKey,

View File

@ -123,6 +123,16 @@ declare module '@solana/spl-token' {
multiSigners: Array<Account>,
amount: number | u64,
): Promise<void>;
freezeAccount(
account: PublicKey,
authority: any,
multiSigners: Array<Account>,
): Promise<void>;
thawAccount(
account: PublicKey,
authority: any,
multiSigners: Array<Account>,
): Promise<void>;
closeAccount(
account: PublicKey,
dest: PublicKey,