@solana/spl-token
Advanced tools
Comparing version 0.0.11 to 0.0.12
@@ -121,3 +121,3 @@ declare module '@solana/spl-token' { | ||
multiSigners: Array<Account>, | ||
amount: number, | ||
amount: number | u64, | ||
): Promise<void>; | ||
@@ -128,3 +128,3 @@ burn( | ||
multiSigners: Array<Account>, | ||
amount: number, | ||
amount: number | u64, | ||
): Promise<void>; | ||
@@ -185,3 +185,3 @@ closeAccount( | ||
multiSigners: Array<Account>, | ||
amount: number, | ||
amount: number | u64, | ||
): TransactionInstruction; | ||
@@ -194,3 +194,3 @@ static createBurnInstruction( | ||
multiSigners: Array<Account>, | ||
amount: number, | ||
amount: number | u64, | ||
): TransactionInstruction; | ||
@@ -197,0 +197,0 @@ static createCloseAccountInstruction( |
@@ -9,2 +9,3 @@ /** | ||
declare module '@solana/spl-token' { | ||
declare export var TOKEN_PROGRAM_ID; | ||
declare export class u64 extends BN { | ||
@@ -58,2 +59,5 @@ toBuffer(): Buffer; | ||
declare export class Token { | ||
publicKey: PublicKey; | ||
programId: PublicKey; | ||
payer: Account; | ||
constructor( | ||
@@ -116,3 +120,3 @@ connection: Connection, | ||
multiSigners: Array<Account>, | ||
amount: number, | ||
amount: number | u64, | ||
): Promise<void>; | ||
@@ -123,4 +127,14 @@ burn( | ||
multiSigners: Array<Account>, | ||
amount: number, | ||
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( | ||
@@ -180,3 +194,3 @@ account: PublicKey, | ||
multiSigners: Array<Account>, | ||
amount: number, | ||
amount: number | u64, | ||
): TransactionInstruction; | ||
@@ -189,3 +203,3 @@ static createBurnInstruction( | ||
multiSigners: Array<Account>, | ||
amount: number, | ||
amount: number | u64, | ||
): TransactionInstruction; | ||
@@ -192,0 +206,0 @@ static createCloseAccountInstruction( |
{ | ||
"name": "@solana/spl-token", | ||
"version": "0.0.11", | ||
"version": "0.0.12", | ||
"description": "SPL Token JavaScript API", | ||
@@ -25,3 +25,3 @@ "license": "MIT", | ||
], | ||
"testnetDefaultChannel": "v1.3.14", | ||
"testnetDefaultChannel": "v1.3.17", | ||
"scripts": { | ||
@@ -35,3 +35,3 @@ "build": "rollup -c", | ||
"lint:watch": "watch 'npm run lint:fix' . --wait=1", | ||
"build:program": "rm client/util/store/config.json; ../../do.sh build token", | ||
"build:program": "rm -f client/util/store/config.json; cargo build-bpf --manifest-path ../program/Cargo.toml", | ||
"cluster:localnet": "rm -f .env", | ||
@@ -42,3 +42,3 @@ "cluster:devnet": "cp cluster-devnet.env .env", | ||
"localnet:update": "solana-localnet update", | ||
"localnet:up": "rm client/util/store/config.json; set -x; solana-localnet down; set -e; solana-localnet up", | ||
"localnet:up": "rm -f client/util/store/config.json; set -x; solana-localnet down; set -e; solana-localnet up", | ||
"localnet:down": "solana-localnet down", | ||
@@ -51,3 +51,3 @@ "localnet:logs": "solana-localnet logs -f", | ||
"@babel/runtime": "^7.10.5", | ||
"@solana/web3.js": "^0.78.0", | ||
"@solana/web3.js": "^0.86.1", | ||
"bn.js": "^5.0.0", | ||
@@ -67,7 +67,7 @@ "buffer-layout": "^1.2.0", | ||
"@rollup/plugin-babel": "^5.1.0", | ||
"@rollup/plugin-commonjs": "^15.1.0", | ||
"@rollup/plugin-commonjs": "^16.0.0", | ||
"babel-eslint": "^10.1.0", | ||
"eslint": "^7.4.0", | ||
"eslint-plugin-import": "^2.22.0", | ||
"flow-bin": "0.135.0", | ||
"flow-bin": "0.136.0", | ||
"flow-typed": "^3.2.0", | ||
@@ -74,0 +74,0 @@ "mz": "^2.7.0", |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
307120
3207
0
+ Added@solana/web3.js@0.86.4(transitive)
+ Addedbn.js@4.12.0(transitive)
+ Addedbrorand@1.1.0(transitive)
+ Addedelliptic@6.5.7(transitive)
+ Addedhash.js@1.1.7(transitive)
+ Addedhmac-drbg@1.0.1(transitive)
+ Addedkeccak@3.0.4(transitive)
+ Addedminimalistic-assert@1.0.1(transitive)
+ Addedminimalistic-crypto-utils@1.0.1(transitive)
+ Addednode-addon-api@2.0.2(transitive)
+ Addedsecp256k1@4.0.3(transitive)
- Removed@solana/web3.js@0.78.4(transitive)
Updated@solana/web3.js@^0.86.1