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

@injectivelabs/utils

Package Overview
Dependencies
Maintainers
12
Versions
298
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@injectivelabs/utils - npm Package Compare versions

Comparing version 1.14.17-beta.2 to 1.14.17

4

dist/cjs/classes/BigNumber/BigNumberInBase.d.ts

@@ -1,3 +0,3 @@

import type BigNumberInWei from './BigNumberInWei';
import BigNumber from './BigNumber';
import type BigNumberInWei from './BigNumberInWei.js';
import BigNumber from './BigNumber.js';
export default class BigNumberInBase extends BigNumber {

@@ -4,0 +4,0 @@ static make(number: BigNumber.Value): BigNumberInBase;

@@ -6,5 +6,5 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
const BigNumber_1 = __importDefault(require("./BigNumber"));
const utils_1 = require("./utils");
class BigNumberInBase extends BigNumber_1.default {
const BigNumber_js_1 = __importDefault(require("./BigNumber.js"));
const utils_js_1 = require("./utils.js");
class BigNumberInBase extends BigNumber_js_1.default {
static make(number) {

@@ -35,3 +35,3 @@ return new BigNumberInBase(number);

toWei(decimals = 18) {
return (0, utils_1.bigNumberBaseToWei)(this, decimals);
return (0, utils_js_1.bigNumberBaseToWei)(this, decimals);
}

@@ -38,0 +38,0 @@ }

@@ -1,3 +0,3 @@

import type BigNumberInBase from './BigNumberInBase';
import BigNumber from './BigNumber';
import type BigNumberInBase from './BigNumberInBase.js';
import BigNumber from './BigNumber.js';
export default class BigNumberInWei extends BigNumber {

@@ -4,0 +4,0 @@ static make(number: BigNumber.Value): BigNumberInWei;

@@ -6,5 +6,5 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
const BigNumber_1 = __importDefault(require("./BigNumber"));
const utils_1 = require("./utils");
class BigNumberInWei extends BigNumber_1.default {
const BigNumber_js_1 = __importDefault(require("./BigNumber.js"));
const utils_js_1 = require("./utils.js");
class BigNumberInWei extends BigNumber_js_1.default {
static make(number) {

@@ -35,3 +35,3 @@ return new BigNumberInWei(number);

toBase(decimals = 18) {
return (0, utils_1.bigNumberWeiToBase)(this, decimals);
return (0, utils_js_1.bigNumberWeiToBase)(this, decimals);
}

@@ -38,0 +38,0 @@ }

import { AxiosRequestConfig } from 'axios';
import HttpClient from './HttpClient';
import HttpClient from './HttpClient.js';
/**

@@ -4,0 +4,0 @@ * @hidden

@@ -18,3 +18,3 @@ "use strict";

const http_status_codes_1 = require("http-status-codes");
const HttpClient_1 = __importDefault(require("./HttpClient"));
const HttpClient_js_1 = __importDefault(require("./HttpClient.js"));
const getErrorMessage = (error, endpoint) => {

@@ -33,3 +33,3 @@ if (!error.response) {

constructor(endpoint, options = {}) {
this.client = new HttpClient_1.default(endpoint, options);
this.client = new HttpClient_js_1.default(endpoint, options);
this.endpoint = endpoint;

@@ -36,0 +36,0 @@ }

@@ -1,10 +0,10 @@

import LocalStorage from './LocalStorage';
import BigNumberInBase from './BigNumber/BigNumberInBase';
import BigNumberInWei from './BigNumber/BigNumberInWei';
import BigNumber from './BigNumber/BigNumber';
import HttpClient from './HttpClient';
import HttpRestClient from './HttpRestClient';
import StreamManager from './StreamManager';
import Status, { StatusType } from './Status';
import LocalStorage from './LocalStorage.js';
import BigNumberInBase from './BigNumber/BigNumberInBase.js';
import BigNumberInWei from './BigNumber/BigNumberInWei.js';
import BigNumber from './BigNumber/BigNumber.js';
import HttpClient from './HttpClient.js';
import HttpRestClient from './HttpRestClient.js';
import StreamManager from './StreamManager.js';
import Status, { StatusType } from './Status.js';
export { Status, StatusType, LocalStorage, BigNumberInBase, BigNumberInWei, BigNumber, HttpClient, HttpRestClient, StreamManager, };
//# sourceMappingURL=index.d.ts.map

@@ -30,19 +30,19 @@ "use strict";

exports.StreamManager = exports.HttpRestClient = exports.HttpClient = exports.BigNumber = exports.BigNumberInWei = exports.BigNumberInBase = exports.LocalStorage = exports.StatusType = exports.Status = void 0;
const LocalStorage_1 = __importDefault(require("./LocalStorage"));
exports.LocalStorage = LocalStorage_1.default;
const BigNumberInBase_1 = __importDefault(require("./BigNumber/BigNumberInBase"));
exports.BigNumberInBase = BigNumberInBase_1.default;
const BigNumberInWei_1 = __importDefault(require("./BigNumber/BigNumberInWei"));
exports.BigNumberInWei = BigNumberInWei_1.default;
const BigNumber_1 = __importDefault(require("./BigNumber/BigNumber"));
exports.BigNumber = BigNumber_1.default;
const HttpClient_1 = __importDefault(require("./HttpClient"));
exports.HttpClient = HttpClient_1.default;
const HttpRestClient_1 = __importDefault(require("./HttpRestClient"));
exports.HttpRestClient = HttpRestClient_1.default;
const StreamManager_1 = __importDefault(require("./StreamManager"));
exports.StreamManager = StreamManager_1.default;
const Status_1 = __importStar(require("./Status"));
exports.Status = Status_1.default;
Object.defineProperty(exports, "StatusType", { enumerable: true, get: function () { return Status_1.StatusType; } });
const LocalStorage_js_1 = __importDefault(require("./LocalStorage.js"));
exports.LocalStorage = LocalStorage_js_1.default;
const BigNumberInBase_js_1 = __importDefault(require("./BigNumber/BigNumberInBase.js"));
exports.BigNumberInBase = BigNumberInBase_js_1.default;
const BigNumberInWei_js_1 = __importDefault(require("./BigNumber/BigNumberInWei.js"));
exports.BigNumberInWei = BigNumberInWei_js_1.default;
const BigNumber_js_1 = __importDefault(require("./BigNumber/BigNumber.js"));
exports.BigNumber = BigNumber_js_1.default;
const HttpClient_js_1 = __importDefault(require("./HttpClient.js"));
exports.HttpClient = HttpClient_js_1.default;
const HttpRestClient_js_1 = __importDefault(require("./HttpRestClient.js"));
exports.HttpRestClient = HttpRestClient_js_1.default;
const StreamManager_js_1 = __importDefault(require("./StreamManager.js"));
exports.StreamManager = StreamManager_js_1.default;
const Status_js_1 = __importStar(require("./Status.js"));
exports.Status = Status_js_1.default;
Object.defineProperty(exports, "StatusType", { enumerable: true, get: function () { return Status_js_1.StatusType; } });
//# sourceMappingURL=index.js.map

@@ -7,3 +7,3 @@ "use strict";

exports.DEFAULT_STD_FEE_BY_DENOM = exports.DEFAULT_STD_FEE = exports.DEFAULT_TIMESTAMP_TIMEOUT_MS = exports.DEFAULT_TX_BLOCK_INCLUSION_TIMEOUT_IN_MS = exports.DEFAULT_BLOCK_TIME_IN_SECONDS = exports.DEFAULT_BLOCK_TIMEOUT_HEIGHT = exports.DEFAULT_BRIDGE_FEE_AMOUNT = exports.DEFAULT_BRIDGE_FEE_PRICE = exports.DEFAULT_BRIDGE_FEE_DENOM = exports.DEFAULT_EXCHANGE_LIMIT = exports.DEFAULT_GAS_PRICE = exports.DEFAULT_IBC_GAS_LIMIT = exports.DEFAULT_GAS_LIMIT = exports.DEFAULT_FEE_DENOM = exports.INJECTIVE_DENOM = exports.INJ_DENOM = exports.ZERO_ADDRESS = void 0;
const BigNumber_1 = __importDefault(require("./classes/BigNumber/BigNumber"));
const BigNumber_js_1 = __importDefault(require("./classes/BigNumber/BigNumber.js"));
exports.ZERO_ADDRESS = '0x0000000000000000000000000000000000000000';

@@ -27,3 +27,3 @@ exports.INJ_DENOM = 'inj';

{
amount: new BigNumber_1.default(exports.DEFAULT_GAS_LIMIT)
amount: new BigNumber_js_1.default(exports.DEFAULT_GAS_LIMIT)
.times(exports.DEFAULT_GAS_PRICE)

@@ -43,3 +43,3 @@ .toString(),

denom,
amount: new BigNumber_1.default(exports.DEFAULT_GAS_LIMIT)
amount: new BigNumber_js_1.default(exports.DEFAULT_GAS_LIMIT)
.times(exports.DEFAULT_GAS_PRICE)

@@ -46,0 +46,0 @@ .toString(),

@@ -1,2 +0,2 @@

import { Awaited } from './types';
import { Awaited } from './types.js';
export declare const sleep: (timeout: number) => Promise<void>;

@@ -3,0 +3,0 @@ /**

@@ -17,5 +17,5 @@ "use strict";

const bignumber_js_1 = __importDefault(require("bignumber.js"));
const constants_1 = require("./constants");
const BigNumberInBase_1 = __importDefault(require("./classes/BigNumber/BigNumberInBase"));
const BigNumberInWei_1 = __importDefault(require("./classes/BigNumber/BigNumberInWei"));
const constants_js_1 = require("./constants.js");
const BigNumberInBase_js_1 = __importDefault(require("./classes/BigNumber/BigNumberInBase.js"));
const BigNumberInWei_js_1 = __importDefault(require("./classes/BigNumber/BigNumberInWei.js"));
const sleep = (timeout) => new Promise((resolve) => setTimeout(resolve, timeout));

@@ -60,7 +60,7 @@ exports.sleep = sleep;

const getStdFeeForToken = (token = { denom: 'inj', decimals: 18 }, gasPrice, gasLimit) => {
const gasPriceInBase = gasPrice || new BigNumberInWei_1.default(constants_1.DEFAULT_GAS_PRICE).toBase();
const gasPriceScaled = new BigNumberInBase_1.default(gasPriceInBase)
const gasPriceInBase = gasPrice || new BigNumberInWei_js_1.default(constants_js_1.DEFAULT_GAS_PRICE).toBase();
const gasPriceScaled = new BigNumberInBase_js_1.default(gasPriceInBase)
.toWei(token.decimals)
.toFixed(0);
const gasNormalized = new bignumber_js_1.default(gasLimit || constants_1.DEFAULT_GAS_LIMIT).toFixed(0);
const gasNormalized = new bignumber_js_1.default(gasLimit || constants_js_1.DEFAULT_GAS_LIMIT).toFixed(0);
return {

@@ -70,3 +70,3 @@ amount: [

denom: token.denom,
amount: new BigNumberInBase_1.default(gasPriceScaled)
amount: new BigNumberInBase_js_1.default(gasPriceScaled)
.times(gasNormalized)

@@ -82,5 +82,5 @@ .toFixed(),

if (!args) {
return constants_1.DEFAULT_STD_FEE;
return constants_js_1.DEFAULT_STD_FEE;
}
const { gas = constants_1.DEFAULT_GAS_LIMIT.toString(), gasPrice = constants_1.DEFAULT_GAS_PRICE, payer, granter, feePayer, } = args;
const { gas = constants_js_1.DEFAULT_GAS_LIMIT.toString(), gasPrice = constants_js_1.DEFAULT_GAS_PRICE, payer, granter, feePayer, } = args;
const gasNormalized = new bignumber_js_1.default(gas).toFixed(0);

@@ -104,3 +104,3 @@ const gasPriceNormalized = new bignumber_js_1.default(gasPrice).toFixed(0);

exports.getStdFeeFromObject = getStdFeeFromObject;
const getDefaultStdFee = () => constants_1.DEFAULT_STD_FEE;
const getDefaultStdFee = () => constants_js_1.DEFAULT_STD_FEE;
exports.getDefaultStdFee = getDefaultStdFee;

@@ -113,7 +113,7 @@ const getStdFeeFromString = (gasPrice) => {

const [_, amount] = matchResult;
const gas = new BigNumberInBase_1.default(amount)
const gas = new BigNumberInBase_js_1.default(amount)
.toWei()
.dividedBy(constants_1.DEFAULT_GAS_PRICE)
.dividedBy(constants_js_1.DEFAULT_GAS_PRICE)
.toFixed(0);
return (0, exports.getStdFeeFromObject)({ gas, gasPrice: constants_1.DEFAULT_GAS_PRICE });
return (0, exports.getStdFeeFromObject)({ gas, gasPrice: constants_js_1.DEFAULT_GAS_PRICE });
};

@@ -123,3 +123,3 @@ exports.getStdFeeFromString = getStdFeeFromString;

if (!args) {
return constants_1.DEFAULT_STD_FEE;
return constants_js_1.DEFAULT_STD_FEE;
}

@@ -126,0 +126,0 @@ if (typeof args === 'string') {

@@ -1,7 +0,7 @@

export * from './classes';
export * from './helpers';
export * from './formatters';
export * from './time';
export * from './numbers';
export * from './constants';
export * from './classes/index.js';
export * from './helpers.js';
export * from './formatters.js';
export * from './time.js';
export * from './numbers.js';
export * from './constants.js';
//# sourceMappingURL=index.d.ts.map

@@ -17,8 +17,8 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
__exportStar(require("./classes"), exports);
__exportStar(require("./helpers"), exports);
__exportStar(require("./formatters"), exports);
__exportStar(require("./time"), exports);
__exportStar(require("./numbers"), exports);
__exportStar(require("./constants"), exports);
__exportStar(require("./classes/index.js"), exports);
__exportStar(require("./helpers.js"), exports);
__exportStar(require("./formatters.js"), exports);
__exportStar(require("./time.js"), exports);
__exportStar(require("./numbers.js"), exports);
__exportStar(require("./constants.js"), exports);
//# sourceMappingURL=index.js.map

@@ -1,4 +0,4 @@

import { BigNumber } from './classes';
import BigNumber from './classes/BigNumber/BigNumber.js';
export declare const getSignificantDecimalsFromNumber: (number: BigNumber | number | string) => number;
export declare const getExactDecimalsFromNumber: (number: number | string) => number;
//# sourceMappingURL=numbers.d.ts.map
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.getExactDecimalsFromNumber = exports.getSignificantDecimalsFromNumber = void 0;
const classes_1 = require("./classes");
const $BigNumber = classes_1.BigNumber.clone({ ROUNDING_MODE: classes_1.BigNumber.ROUND_DOWN });
const BigNumber_js_1 = __importDefault(require("./classes/BigNumber/BigNumber.js"));
const $BigNumber = BigNumber_js_1.default.clone({ ROUNDING_MODE: BigNumber_js_1.default.ROUND_DOWN });
const getSignificantDecimalsFromNumber = (number) => {

@@ -7,0 +10,0 @@ if (Math.floor(new $BigNumber(number).toNumber()) === number) {

@@ -1,2 +0,2 @@

import { BigNumberInBase, BigNumber } from './classes';
import { BigNumberInBase, BigNumber } from './classes/index.js';
export declare const SECONDS_IN_A_DAY: BigNumber;

@@ -3,0 +3,0 @@ export declare const convertTimestampToMilliseconds: (timestamp: number | string) => number;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getEndDateStringFromTimeInSeconds = exports.pastDays = exports.past24Hours = exports.todayInSeconds = exports.tomorrow = exports.getUTCDateFromTimestamp = exports.convertTimestampToMilliseconds = exports.SECONDS_IN_A_DAY = void 0;
const classes_1 = require("./classes");
exports.SECONDS_IN_A_DAY = new classes_1.BigNumber(60 * 60 * 24);
const index_js_1 = require("./classes/index.js");
exports.SECONDS_IN_A_DAY = new index_js_1.BigNumber(60 * 60 * 24);
const convertTimestampToMilliseconds = (timestamp) => {
const timestampInBigNumber = new classes_1.BigNumberInBase(timestamp);
const timestampInBigNumber = new index_js_1.BigNumberInBase(timestamp);
if (timestamp.toString().length > 13) {
return timestampInBigNumber
.precision(13, classes_1.BigNumber.ROUND_HALF_UP)
.precision(13, index_js_1.BigNumber.ROUND_HALF_UP)
.toNumber();

@@ -25,9 +25,9 @@ }

exports.getUTCDateFromTimestamp = getUTCDateFromTimestamp;
const tomorrow = () => new classes_1.BigNumberInBase(Math.floor(new Date().valueOf() / 1000) + 3600 * 24);
const tomorrow = () => new index_js_1.BigNumberInBase(Math.floor(new Date().valueOf() / 1000) + 3600 * 24);
exports.tomorrow = tomorrow;
const todayInSeconds = () => Math.floor(Date.now() / 1000);
exports.todayInSeconds = todayInSeconds;
const past24Hours = () => new classes_1.BigNumberInBase((0, exports.todayInSeconds)()).minus(exports.SECONDS_IN_A_DAY).toNumber();
const past24Hours = () => new index_js_1.BigNumberInBase((0, exports.todayInSeconds)()).minus(exports.SECONDS_IN_A_DAY).toNumber();
exports.past24Hours = past24Hours;
const pastDays = (day = 1) => new classes_1.BigNumberInBase((0, exports.todayInSeconds)())
const pastDays = (day = 1) => new index_js_1.BigNumberInBase((0, exports.todayInSeconds)())
.minus(exports.SECONDS_IN_A_DAY.times(day))

@@ -34,0 +34,0 @@ .toNumber();

@@ -1,3 +0,3 @@

import type BigNumberInWei from './BigNumberInWei';
import BigNumber from './BigNumber';
import type BigNumberInWei from './BigNumberInWei.js';
import BigNumber from './BigNumber.js';
export default class BigNumberInBase extends BigNumber {

@@ -4,0 +4,0 @@ static make(number: BigNumber.Value): BigNumberInBase;

@@ -1,3 +0,3 @@

import BigNumber from './BigNumber';
import { bigNumberBaseToWei } from './utils';
import BigNumber from './BigNumber.js';
import { bigNumberBaseToWei } from './utils.js';
export default class BigNumberInBase extends BigNumber {

@@ -4,0 +4,0 @@ static make(number) {

@@ -1,3 +0,3 @@

import type BigNumberInBase from './BigNumberInBase';
import BigNumber from './BigNumber';
import type BigNumberInBase from './BigNumberInBase.js';
import BigNumber from './BigNumber.js';
export default class BigNumberInWei extends BigNumber {

@@ -4,0 +4,0 @@ static make(number: BigNumber.Value): BigNumberInWei;

@@ -1,3 +0,3 @@

import BigNumber from './BigNumber';
import { bigNumberWeiToBase } from './utils';
import BigNumber from './BigNumber.js';
import { bigNumberWeiToBase } from './utils.js';
export default class BigNumberInWei extends BigNumber {

@@ -4,0 +4,0 @@ static make(number) {

import { AxiosRequestConfig } from 'axios';
import HttpClient from './HttpClient';
import HttpClient from './HttpClient.js';
/**

@@ -4,0 +4,0 @@ * @hidden

import axios from 'axios';
import { HttpRequestException, UnspecifiedErrorCode, HttpRequestMethod, } from '@injectivelabs/exceptions';
import { StatusCodes } from 'http-status-codes';
import HttpClient from './HttpClient';
import HttpClient from './HttpClient.js';
const getErrorMessage = (error, endpoint) => {

@@ -6,0 +6,0 @@ if (!error.response) {

@@ -1,10 +0,10 @@

import LocalStorage from './LocalStorage';
import BigNumberInBase from './BigNumber/BigNumberInBase';
import BigNumberInWei from './BigNumber/BigNumberInWei';
import BigNumber from './BigNumber/BigNumber';
import HttpClient from './HttpClient';
import HttpRestClient from './HttpRestClient';
import StreamManager from './StreamManager';
import Status, { StatusType } from './Status';
import LocalStorage from './LocalStorage.js';
import BigNumberInBase from './BigNumber/BigNumberInBase.js';
import BigNumberInWei from './BigNumber/BigNumberInWei.js';
import BigNumber from './BigNumber/BigNumber.js';
import HttpClient from './HttpClient.js';
import HttpRestClient from './HttpRestClient.js';
import StreamManager from './StreamManager.js';
import Status, { StatusType } from './Status.js';
export { Status, StatusType, LocalStorage, BigNumberInBase, BigNumberInWei, BigNumber, HttpClient, HttpRestClient, StreamManager, };
//# sourceMappingURL=index.d.ts.map

@@ -1,10 +0,10 @@

import LocalStorage from './LocalStorage';
import BigNumberInBase from './BigNumber/BigNumberInBase';
import BigNumberInWei from './BigNumber/BigNumberInWei';
import BigNumber from './BigNumber/BigNumber';
import HttpClient from './HttpClient';
import HttpRestClient from './HttpRestClient';
import StreamManager from './StreamManager';
import Status, { StatusType } from './Status';
import LocalStorage from './LocalStorage.js';
import BigNumberInBase from './BigNumber/BigNumberInBase.js';
import BigNumberInWei from './BigNumber/BigNumberInWei.js';
import BigNumber from './BigNumber/BigNumber.js';
import HttpClient from './HttpClient.js';
import HttpRestClient from './HttpRestClient.js';
import StreamManager from './StreamManager.js';
import Status, { StatusType } from './Status.js';
export { Status, StatusType, LocalStorage, BigNumberInBase, BigNumberInWei, BigNumber, HttpClient, HttpRestClient, StreamManager, };
//# sourceMappingURL=index.js.map

@@ -1,2 +0,2 @@

import BigNumber from './classes/BigNumber/BigNumber';
import BigNumber from './classes/BigNumber/BigNumber.js';
export const ZERO_ADDRESS = '0x0000000000000000000000000000000000000000';

@@ -3,0 +3,0 @@ export const INJ_DENOM = 'inj';

@@ -1,2 +0,2 @@

import { Awaited } from './types';
import { Awaited } from './types.js';
export declare const sleep: (timeout: number) => Promise<void>;

@@ -3,0 +3,0 @@ /**

import BigNumber from 'bignumber.js';
import { DEFAULT_STD_FEE, DEFAULT_GAS_LIMIT, DEFAULT_GAS_PRICE, } from './constants';
import BigNumberInBase from './classes/BigNumber/BigNumberInBase';
import BigNumberInWei from './classes/BigNumber/BigNumberInWei';
import { DEFAULT_STD_FEE, DEFAULT_GAS_LIMIT, DEFAULT_GAS_PRICE, } from './constants.js';
import BigNumberInBase from './classes/BigNumber/BigNumberInBase.js';
import BigNumberInWei from './classes/BigNumber/BigNumberInWei.js';
export const sleep = (timeout) => new Promise((resolve) => setTimeout(resolve, timeout));

@@ -6,0 +6,0 @@ /**

@@ -1,7 +0,7 @@

export * from './classes';
export * from './helpers';
export * from './formatters';
export * from './time';
export * from './numbers';
export * from './constants';
export * from './classes/index.js';
export * from './helpers.js';
export * from './formatters.js';
export * from './time.js';
export * from './numbers.js';
export * from './constants.js';
//# sourceMappingURL=index.d.ts.map

@@ -1,7 +0,7 @@

export * from './classes';
export * from './helpers';
export * from './formatters';
export * from './time';
export * from './numbers';
export * from './constants';
export * from './classes/index.js';
export * from './helpers.js';
export * from './formatters.js';
export * from './time.js';
export * from './numbers.js';
export * from './constants.js';
//# sourceMappingURL=index.js.map

@@ -1,4 +0,4 @@

import { BigNumber } from './classes';
import BigNumber from './classes/BigNumber/BigNumber.js';
export declare const getSignificantDecimalsFromNumber: (number: BigNumber | number | string) => number;
export declare const getExactDecimalsFromNumber: (number: number | string) => number;
//# sourceMappingURL=numbers.d.ts.map

@@ -1,2 +0,2 @@

import { BigNumber } from './classes';
import BigNumber from './classes/BigNumber/BigNumber.js';
const $BigNumber = BigNumber.clone({ ROUNDING_MODE: BigNumber.ROUND_DOWN });

@@ -3,0 +3,0 @@ export const getSignificantDecimalsFromNumber = (number) => {

@@ -1,2 +0,2 @@

import { BigNumberInBase, BigNumber } from './classes';
import { BigNumberInBase, BigNumber } from './classes/index.js';
export declare const SECONDS_IN_A_DAY: BigNumber;

@@ -3,0 +3,0 @@ export declare const convertTimestampToMilliseconds: (timestamp: number | string) => number;

@@ -1,2 +0,2 @@

import { BigNumberInBase, BigNumber } from './classes';
import { BigNumberInBase, BigNumber } from './classes/index.js';
export const SECONDS_IN_A_DAY = new BigNumber(60 * 60 * 24);

@@ -3,0 +3,0 @@ export const convertTimestampToMilliseconds = (timestamp) => {

{
"name": "@injectivelabs/utils",
"description": "List of utils and helper functions that can be reused throughout Injective's projects.",
"version": "1.14.17-beta.2",
"version": "1.14.17",
"sideEffects": false,

@@ -21,3 +21,5 @@ "author": {

"scripts": {
"build": "tsc --build --force tsconfig.build.json && tsc --build --force tsconfig.build.esm.json && yarn build:post",
"build": "yarn build:cjs && yarn build:esm && yarn build:post",
"build:cjs": "tsc --build --force tsconfig.build.json",
"build:esm": "tsc --build --force tsconfig.build.esm.json",
"build:watch": "tsc --build -w tsconfig.build.json && tsc -w --build tsconfig.build.esm.json && yarn build:post",

@@ -35,4 +37,4 @@ "build:post": "shx cp ../../etc/stub/package.json.stub dist/cjs/package.json && shx cp ../../etc/stub/package.esm.json.stub dist/esm/package.json",

"dependencies": {
"@injectivelabs/exceptions": "^1.14.17-beta.2",
"@injectivelabs/ts-types": "^1.14.16",
"@injectivelabs/exceptions": "^1.14.17",
"@injectivelabs/ts-types": "^1.14.17",
"axios": "^1.6.4",

@@ -45,3 +47,3 @@ "bignumber.js": "^9.0.1",

},
"gitHead": "1b13f41772841d8cff637fa4c395bc7de4b9d97d"
"gitHead": "d3515dba70c4aa808d91302311d2f6d9f6f8af63"
}

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

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

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