@solana/spl-token
Advanced tools
Comparing version 0.0.12 to 0.0.13
@@ -40,2 +40,3 @@ 'use strict'; | ||
const TOKEN_PROGRAM_ID = new web3_js.PublicKey('TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA'); | ||
/** | ||
@@ -1600,4 +1601,5 @@ * 64-bit value | ||
exports.NATIVE_MINT = NATIVE_MINT; | ||
exports.TOKEN_PROGRAM_ID = TOKEN_PROGRAM_ID; | ||
exports.Token = Token; | ||
exports.u64 = u64; | ||
//# sourceMappingURL=index.cjs.js.map |
@@ -14,2 +14,4 @@ declare module '@solana/spl-token' { | ||
// === client/token.js === | ||
export const TOKEN_PROGRAM_ID: PublicKey; | ||
export class u64 extends BN { | ||
@@ -65,2 +67,5 @@ toBuffer(): Buffer; | ||
export class Token { | ||
publicKey: PublicKey; | ||
programId: PublicKey; | ||
payer: Account; | ||
constructor( | ||
@@ -131,2 +136,12 @@ connection: Connection, | ||
): Promise<void>; | ||
freezeAccount( | ||
account: PublicKey, | ||
authority: any, | ||
multiSigners: Array<Account>, | ||
): Promise<void>; | ||
thawAccount( | ||
account: PublicKey, | ||
authority: any, | ||
multiSigners: Array<Account>, | ||
): Promise<void>; | ||
closeAccount( | ||
@@ -133,0 +148,0 @@ account: PublicKey, |
@@ -30,2 +30,3 @@ import _defineProperty from '@babel/runtime/helpers/defineProperty'; | ||
const TOKEN_PROGRAM_ID = new PublicKey('TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA'); | ||
/** | ||
@@ -1587,3 +1588,3 @@ * 64-bit value | ||
export { AccountLayout, MintLayout, NATIVE_MINT, Token, u64 }; | ||
export { AccountLayout, MintLayout, NATIVE_MINT, TOKEN_PROGRAM_ID, Token, u64 }; | ||
//# sourceMappingURL=index.esm.js.map |
{ | ||
"name": "@solana/spl-token", | ||
"version": "0.0.12", | ||
"version": "0.0.13", | ||
"description": "SPL Token JavaScript API", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
310710
271998
3224