Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@saberhq/token-utils

Package Overview
Dependencies
Maintainers
2
Versions
209
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@saberhq/token-utils - npm Package Compare versions

Comparing version 1.13.15 to 1.13.16

2

dist/cjs/common.d.ts

@@ -12,3 +12,3 @@ /**

export * as token from "./token";
export { ProgramAccount } from "@saberhq/solana-contrib";
export type { ProgramAccount } from "@saberhq/solana-contrib";
/**

@@ -15,0 +15,0 @@ * Default number of decimals of a token.

@@ -11,5 +11,7 @@ export * from "./ata";

export * from "./tokenProvider";
export { BigintIsh, Fraction, IFormatUint, makeDecimalMultiplier, MAX_U64, MAX_U256, NumberFormat, ONE, parseBigintIsh, Percent, Rounding, TEN, validateU64, validateU256, ZERO, } from "@ubeswap/token-math";
export type { BigintIsh, IFormatUint, NumberFormat } from "@ubeswap/token-math";
export { Fraction, makeDecimalMultiplier, MAX_U64, MAX_U256, ONE, parseBigintIsh, Percent, Rounding, TEN, validateU64, validateU256, ZERO, } from "@ubeswap/token-math";
export * from "./common";
export { ASSOCIATED_TOKEN_PROGRAM_ID, AuthorityType, MintInfo as MintData, MultisigInfo, NATIVE_MINT, Token as SPLToken, TOKEN_PROGRAM_ID, u64, } from "@solana/spl-token";
export type { AuthorityType, MintInfo as MintData, MultisigInfo, } from "@solana/spl-token";
export { ASSOCIATED_TOKEN_PROGRAM_ID, NATIVE_MINT, Token as SPLToken, TOKEN_PROGRAM_ID, u64, } from "@solana/spl-token";
//# sourceMappingURL=index.d.ts.map

@@ -15,4 +15,2 @@ "use strict";

tslib_1.__exportStar(require("./tokenProvider"), exports);
// re-export token-math types
// so consumers don't need to use them
var token_math_1 = require("@ubeswap/token-math");

@@ -19,0 +17,0 @@ Object.defineProperty(exports, "Fraction", { enumerable: true, get: function () { return token_math_1.Fraction; } });

@@ -5,3 +5,3 @@ import { u64 } from "@solana/spl-token";

import type { Token } from "./token";
export { IFormatUint } from "@ubeswap/token-math";
export type { IFormatUint } from "@ubeswap/token-math";
export declare class TokenAmount extends UTokenAmount<Token> {

@@ -8,0 +8,0 @@ constructor(token: Token, amount: BigintIsh);

@@ -12,3 +12,3 @@ /**

export * as token from "./token";
export { ProgramAccount } from "@saberhq/solana-contrib";
export type { ProgramAccount } from "@saberhq/solana-contrib";
/**

@@ -15,0 +15,0 @@ * Default number of decimals of a token.

@@ -11,5 +11,7 @@ export * from "./ata";

export * from "./tokenProvider";
export { BigintIsh, Fraction, IFormatUint, makeDecimalMultiplier, MAX_U64, MAX_U256, NumberFormat, ONE, parseBigintIsh, Percent, Rounding, TEN, validateU64, validateU256, ZERO, } from "@ubeswap/token-math";
export type { BigintIsh, IFormatUint, NumberFormat } from "@ubeswap/token-math";
export { Fraction, makeDecimalMultiplier, MAX_U64, MAX_U256, ONE, parseBigintIsh, Percent, Rounding, TEN, validateU64, validateU256, ZERO, } from "@ubeswap/token-math";
export * from "./common";
export { ASSOCIATED_TOKEN_PROGRAM_ID, AuthorityType, MintInfo as MintData, MultisigInfo, NATIVE_MINT, Token as SPLToken, TOKEN_PROGRAM_ID, u64, } from "@solana/spl-token";
export type { AuthorityType, MintInfo as MintData, MultisigInfo, } from "@solana/spl-token";
export { ASSOCIATED_TOKEN_PROGRAM_ID, NATIVE_MINT, Token as SPLToken, TOKEN_PROGRAM_ID, u64, } from "@solana/spl-token";
//# sourceMappingURL=index.d.ts.map

@@ -11,4 +11,2 @@ export * from "./ata";

export * from "./tokenProvider";
// re-export token-math types
// so consumers don't need to use them
export { Fraction, makeDecimalMultiplier, MAX_U64, MAX_U256, ONE, parseBigintIsh, Percent, Rounding, TEN, validateU64, validateU256, ZERO, } from "@ubeswap/token-math";

@@ -15,0 +13,0 @@ // re-export SPL token types

@@ -5,3 +5,3 @@ import { u64 } from "@solana/spl-token";

import type { Token } from "./token";
export { IFormatUint } from "@ubeswap/token-math";
export type { IFormatUint } from "@ubeswap/token-math";
export declare class TokenAmount extends UTokenAmount<Token> {

@@ -8,0 +8,0 @@ constructor(token: Token, amount: BigintIsh);

{
"name": "@saberhq/token-utils",
"description": "Token-related math and transaction utilities for Solana.",
"version": "1.13.15",
"version": "1.13.16",
"repository": "git@github.com:saber-hq/solana-common.git",

@@ -18,3 +18,3 @@ "author": "Ian Macalinao <ian@saber.so>",

"dependencies": {
"@saberhq/solana-contrib": "^1.13.15",
"@saberhq/solana-contrib": "^1.13.16",
"@solana/buffer-layout": "^4.0.0",

@@ -33,3 +33,3 @@ "@solana/spl-token": "^0.1.8",

"devDependencies": {
"@saberhq/tsconfig": "^1.13.15",
"@saberhq/tsconfig": "^1.13.16",
"@solana/web3.js": "^1.43.1",

@@ -36,0 +36,0 @@ "@types/bn.js": "^5.1.0",

@@ -21,3 +21,3 @@ /**

export * as token from "./token";
export { ProgramAccount } from "@saberhq/solana-contrib";
export type { ProgramAccount } from "@saberhq/solana-contrib";

@@ -24,0 +24,0 @@ /**

@@ -14,10 +14,9 @@ export * from "./ata";

// so consumers don't need to use them
export type { BigintIsh, IFormatUint, NumberFormat } from "@ubeswap/token-math";
export {
BigintIsh,
Fraction,
IFormatUint,
makeDecimalMultiplier,
MAX_U64,
MAX_U256,
NumberFormat,
ONE,

@@ -35,7 +34,9 @@ parseBigintIsh,

export * from "./common";
export {
ASSOCIATED_TOKEN_PROGRAM_ID,
export type {
AuthorityType,
MintInfo as MintData,
MultisigInfo,
} from "@solana/spl-token";
export {
ASSOCIATED_TOKEN_PROGRAM_ID,
NATIVE_MINT,

@@ -42,0 +43,0 @@ Token as SPLToken,

@@ -13,3 +13,3 @@ import { u64 } from "@solana/spl-token";

export { IFormatUint } from "@ubeswap/token-math";
export type { IFormatUint } from "@ubeswap/token-math";

@@ -16,0 +16,0 @@ export class TokenAmount extends UTokenAmount<Token> {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc