@injectivelabs/utils 1.17.2-alpha.8 → 1.17.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -347,41 +347,6 @@ var LocalStorage = class {
347
347
  }
348
348
  };
349
349
 
350
- //#endregion
351
- //#region src/classes/StreamManager.ts
352
- var StreamManager = class {
353
- constructor() {
354
- _defineProperty(this, "streams", /* @__PURE__ */ new Map());
355
- }
356
- set(stream, streamKey) {
357
- if (this.streams.has(streamKey)) throw new Error(`Stream ${streamKey} already exists`);
358
- this.streams.set(streamKey, stream);
359
- }
360
- get(streamKey) {
361
- if (!this.streams.has(streamKey)) throw new Error(`Stream ${streamKey} is not found`);
362
- return this.streams.get(streamKey);
363
- }
364
- exists(streamKey) {
365
- return this.streams.has(streamKey);
366
- }
367
- cancelAll() {
368
- this.streams.forEach((stream) => {
369
- stream.cancel();
370
- });
371
- this.streams = /* @__PURE__ */ new Map();
372
- }
373
- cancel(streamKey) {
374
- if (!this.streams.has(streamKey)) throw new Error(`Stream ${streamKey} is not found`);
375
- this.streams.get(streamKey).cancel();
376
- this.streams.delete(streamKey);
377
- }
378
- cancelIfExists(streamKey) {
379
- if (!this.streams.has(streamKey)) return;
380
- this.streams.get(streamKey).cancel();
381
- this.streams.delete(streamKey);
382
- }
383
- };
384
-
385
350
  //#endregion
386
351
  //#region src/classes/BigNumberInWei.ts
387
352
  /**
@@ -558,7 +523,6 @@ exports.INJ_DENOM = require_constants.INJ_DENOM;
558
523
  exports.LocalStorage = LocalStorage;
559
524
  exports.Status = Status;
560
525
  exports.StatusType = StatusType;
561
- exports.StreamManager = StreamManager;
562
526
  exports.ZERO_ADDRESS = require_constants.ZERO_ADDRESS;
563
527
  exports.__toESM = __toESM;
564
528
  exports.awaitAll = awaitAll;
@@ -205,17 +205,6 @@ declare class LocalStorage {
205
205
  clear(): void;
206
206
  }
207
207
  //#endregion
208
- //#region src/classes/StreamManager.d.ts
209
- declare class StreamManager<T> {
210
- private streams;
211
- set(stream: any, streamKey: T): void;
212
- get(streamKey: T): any;
213
- exists(streamKey: T): boolean;
214
- cancelAll(): void;
215
- cancel(streamKey: T): void;
216
- cancelIfExists(streamKey: T): void;
217
- }
218
- //#endregion
219
208
  //#region src/classes/BigNumber.d.ts
220
209
  /**
221
210
  * Converts a value to BigNumber if it isn't already
@@ -276,4 +265,4 @@ declare class HttpRestClient {
276
265
  post<T>(endpoint: string, params?: Record<string, any>): Promise<T>;
277
266
  }
278
267
  //#endregion
279
- export { BigNumber$1 as BigNumber, BigNumberInBase, BigNumberInWei, DEFAULT_BLOCK_TIMEOUT_HEIGHT, DEFAULT_BLOCK_TIME_IN_SECONDS, DEFAULT_BRIDGE_FEE_AMOUNT, DEFAULT_BRIDGE_FEE_DENOM, DEFAULT_BRIDGE_FEE_PRICE, DEFAULT_EXCHANGE_LIMIT, DEFAULT_FEE_DENOM, DEFAULT_GAS_LIMIT, DEFAULT_GAS_PRICE, DEFAULT_IBC_GAS_LIMIT, DEFAULT_STD_FEE_BY_DENOM, DEFAULT_TIMESTAMP_TIMEOUT_MS, DEFAULT_TX_BLOCK_INCLUSION_TIMEOUT_IN_MS, HttpClient, HttpRestClient, INJECTIVE_DENOM, INJ_DENOM, LocalStorage, Status, StatusType, StreamManager, ZERO_ADDRESS, awaitAll, awaitForAll, capitalize, convertTimestampToMilliseconds, formatWalletAddress, getBigNumberWithRounding, getDefaultStdFee, getEndDateStringFromTimeInSeconds, getExactDecimalsFromNumber, getSecondsInDay, getSignificantDecimalsFromNumber, getStdFee, getStdFeeForToken, getStdFeeFromObject, getStdFeeFromString, getUTCDateFromTimestamp, past24Hours, pastDays, sleep, snakeToPascal, splitArrayToChunks, splitArrayToChunksThrow, toBigNumber, toChainFormat, toHumanReadable, toPascalCase, todayInSeconds, tomorrow };
268
+ export { BigNumber$1 as BigNumber, BigNumberInBase, BigNumberInWei, DEFAULT_BLOCK_TIMEOUT_HEIGHT, DEFAULT_BLOCK_TIME_IN_SECONDS, DEFAULT_BRIDGE_FEE_AMOUNT, DEFAULT_BRIDGE_FEE_DENOM, DEFAULT_BRIDGE_FEE_PRICE, DEFAULT_EXCHANGE_LIMIT, DEFAULT_FEE_DENOM, DEFAULT_GAS_LIMIT, DEFAULT_GAS_PRICE, DEFAULT_IBC_GAS_LIMIT, DEFAULT_STD_FEE_BY_DENOM, DEFAULT_TIMESTAMP_TIMEOUT_MS, DEFAULT_TX_BLOCK_INCLUSION_TIMEOUT_IN_MS, HttpClient, HttpRestClient, INJECTIVE_DENOM, INJ_DENOM, LocalStorage, Status, StatusType, ZERO_ADDRESS, awaitAll, awaitForAll, capitalize, convertTimestampToMilliseconds, formatWalletAddress, getBigNumberWithRounding, getDefaultStdFee, getEndDateStringFromTimeInSeconds, getExactDecimalsFromNumber, getSecondsInDay, getSignificantDecimalsFromNumber, getStdFee, getStdFeeForToken, getStdFeeFromObject, getStdFeeFromString, getUTCDateFromTimestamp, past24Hours, pastDays, sleep, snakeToPascal, splitArrayToChunks, splitArrayToChunksThrow, toBigNumber, toChainFormat, toHumanReadable, toPascalCase, todayInSeconds, tomorrow };
@@ -205,17 +205,6 @@ declare class LocalStorage {
205
205
  clear(): void;
206
206
  }
207
207
  //#endregion
208
- //#region src/classes/StreamManager.d.ts
209
- declare class StreamManager<T> {
210
- private streams;
211
- set(stream: any, streamKey: T): void;
212
- get(streamKey: T): any;
213
- exists(streamKey: T): boolean;
214
- cancelAll(): void;
215
- cancel(streamKey: T): void;
216
- cancelIfExists(streamKey: T): void;
217
- }
218
- //#endregion
219
208
  //#region src/classes/BigNumber.d.ts
220
209
  /**
221
210
  * Converts a value to BigNumber if it isn't already
@@ -276,4 +265,4 @@ declare class HttpRestClient {
276
265
  post<T>(endpoint: string, params?: Record<string, any>): Promise<T>;
277
266
  }
278
267
  //#endregion
279
- export { BigNumber$1 as BigNumber, BigNumberInBase, BigNumberInWei, DEFAULT_BLOCK_TIMEOUT_HEIGHT, DEFAULT_BLOCK_TIME_IN_SECONDS, DEFAULT_BRIDGE_FEE_AMOUNT, DEFAULT_BRIDGE_FEE_DENOM, DEFAULT_BRIDGE_FEE_PRICE, DEFAULT_EXCHANGE_LIMIT, DEFAULT_FEE_DENOM, DEFAULT_GAS_LIMIT, DEFAULT_GAS_PRICE, DEFAULT_IBC_GAS_LIMIT, DEFAULT_STD_FEE_BY_DENOM, DEFAULT_TIMESTAMP_TIMEOUT_MS, DEFAULT_TX_BLOCK_INCLUSION_TIMEOUT_IN_MS, HttpClient, HttpRestClient, INJECTIVE_DENOM, INJ_DENOM, LocalStorage, Status, StatusType, StreamManager, ZERO_ADDRESS, awaitAll, awaitForAll, capitalize, convertTimestampToMilliseconds, formatWalletAddress, getBigNumberWithRounding, getDefaultStdFee, getEndDateStringFromTimeInSeconds, getExactDecimalsFromNumber, getSecondsInDay, getSignificantDecimalsFromNumber, getStdFee, getStdFeeForToken, getStdFeeFromObject, getStdFeeFromString, getUTCDateFromTimestamp, past24Hours, pastDays, sleep, snakeToPascal, splitArrayToChunks, splitArrayToChunksThrow, toBigNumber, toChainFormat, toHumanReadable, toPascalCase, todayInSeconds, tomorrow };
268
+ export { BigNumber$1 as BigNumber, BigNumberInBase, BigNumberInWei, DEFAULT_BLOCK_TIMEOUT_HEIGHT, DEFAULT_BLOCK_TIME_IN_SECONDS, DEFAULT_BRIDGE_FEE_AMOUNT, DEFAULT_BRIDGE_FEE_DENOM, DEFAULT_BRIDGE_FEE_PRICE, DEFAULT_EXCHANGE_LIMIT, DEFAULT_FEE_DENOM, DEFAULT_GAS_LIMIT, DEFAULT_GAS_PRICE, DEFAULT_IBC_GAS_LIMIT, DEFAULT_STD_FEE_BY_DENOM, DEFAULT_TIMESTAMP_TIMEOUT_MS, DEFAULT_TX_BLOCK_INCLUSION_TIMEOUT_IN_MS, HttpClient, HttpRestClient, INJECTIVE_DENOM, INJ_DENOM, LocalStorage, Status, StatusType, ZERO_ADDRESS, awaitAll, awaitForAll, capitalize, convertTimestampToMilliseconds, formatWalletAddress, getBigNumberWithRounding, getDefaultStdFee, getEndDateStringFromTimeInSeconds, getExactDecimalsFromNumber, getSecondsInDay, getSignificantDecimalsFromNumber, getStdFee, getStdFeeForToken, getStdFeeFromObject, getStdFeeFromString, getUTCDateFromTimestamp, past24Hours, pastDays, sleep, snakeToPascal, splitArrayToChunks, splitArrayToChunksThrow, toBigNumber, toChainFormat, toHumanReadable, toPascalCase, todayInSeconds, tomorrow };
package/dist/esm/index.js CHANGED
@@ -318,41 +318,6 @@ var LocalStorage = class {
318
318
  }
319
319
  };
320
320
 
321
- //#endregion
322
- //#region src/classes/StreamManager.ts
323
- var StreamManager = class {
324
- constructor() {
325
- _defineProperty(this, "streams", /* @__PURE__ */ new Map());
326
- }
327
- set(stream, streamKey) {
328
- if (this.streams.has(streamKey)) throw new Error(`Stream ${streamKey} already exists`);
329
- this.streams.set(streamKey, stream);
330
- }
331
- get(streamKey) {
332
- if (!this.streams.has(streamKey)) throw new Error(`Stream ${streamKey} is not found`);
333
- return this.streams.get(streamKey);
334
- }
335
- exists(streamKey) {
336
- return this.streams.has(streamKey);
337
- }
338
- cancelAll() {
339
- this.streams.forEach((stream) => {
340
- stream.cancel();
341
- });
342
- this.streams = /* @__PURE__ */ new Map();
343
- }
344
- cancel(streamKey) {
345
- if (!this.streams.has(streamKey)) throw new Error(`Stream ${streamKey} is not found`);
346
- this.streams.get(streamKey).cancel();
347
- this.streams.delete(streamKey);
348
- }
349
- cancelIfExists(streamKey) {
350
- if (!this.streams.has(streamKey)) return;
351
- this.streams.get(streamKey).cancel();
352
- this.streams.delete(streamKey);
353
- }
354
- };
355
-
356
321
  //#endregion
357
322
  //#region src/classes/BigNumberInWei.ts
358
323
  /**
@@ -506,4 +471,4 @@ var BigNumberInBase = class BigNumberInBase extends BigNumber_default {
506
471
  };
507
472
 
508
473
  //#endregion
509
- export { BigNumber_default as BigNumber, BigNumberInBase, BigNumberInWei, DEFAULT_BLOCK_TIMEOUT_HEIGHT, DEFAULT_BLOCK_TIME_IN_SECONDS, DEFAULT_BRIDGE_FEE_AMOUNT, DEFAULT_BRIDGE_FEE_DENOM, DEFAULT_BRIDGE_FEE_PRICE, DEFAULT_EXCHANGE_LIMIT, DEFAULT_FEE_DENOM, DEFAULT_GAS_LIMIT, DEFAULT_GAS_PRICE, DEFAULT_IBC_GAS_LIMIT, DEFAULT_STD_FEE_BY_DENOM, DEFAULT_TIMESTAMP_TIMEOUT_MS, DEFAULT_TX_BLOCK_INCLUSION_TIMEOUT_IN_MS, HttpClient, HttpRestClient, INJECTIVE_DENOM, INJ_DENOM, LocalStorage, Status, StatusType, StreamManager, ZERO_ADDRESS, awaitAll, awaitForAll, capitalize, convertTimestampToMilliseconds, formatWalletAddress, getBigNumberWithRounding, getDefaultStdFee, getEndDateStringFromTimeInSeconds, getExactDecimalsFromNumber, getSecondsInDay, getSignificantDecimalsFromNumber, getStdFee, getStdFeeForToken, getStdFeeFromObject, getStdFeeFromString, getUTCDateFromTimestamp, past24Hours, pastDays, sleep, snakeToPascal, splitArrayToChunks, splitArrayToChunksThrow, toBigNumber, toChainFormat, toHumanReadable, toPascalCase, todayInSeconds, tomorrow };
474
+ export { BigNumber_default as BigNumber, BigNumberInBase, BigNumberInWei, DEFAULT_BLOCK_TIMEOUT_HEIGHT, DEFAULT_BLOCK_TIME_IN_SECONDS, DEFAULT_BRIDGE_FEE_AMOUNT, DEFAULT_BRIDGE_FEE_DENOM, DEFAULT_BRIDGE_FEE_PRICE, DEFAULT_EXCHANGE_LIMIT, DEFAULT_FEE_DENOM, DEFAULT_GAS_LIMIT, DEFAULT_GAS_PRICE, DEFAULT_IBC_GAS_LIMIT, DEFAULT_STD_FEE_BY_DENOM, DEFAULT_TIMESTAMP_TIMEOUT_MS, DEFAULT_TX_BLOCK_INCLUSION_TIMEOUT_IN_MS, HttpClient, HttpRestClient, INJECTIVE_DENOM, INJ_DENOM, LocalStorage, Status, StatusType, ZERO_ADDRESS, awaitAll, awaitForAll, capitalize, convertTimestampToMilliseconds, formatWalletAddress, getBigNumberWithRounding, getDefaultStdFee, getEndDateStringFromTimeInSeconds, getExactDecimalsFromNumber, getSecondsInDay, getSignificantDecimalsFromNumber, getStdFee, getStdFeeForToken, getStdFeeFromObject, getStdFeeFromString, getUTCDateFromTimestamp, past24Hours, pastDays, sleep, snakeToPascal, splitArrayToChunks, splitArrayToChunksThrow, toBigNumber, toChainFormat, toHumanReadable, toPascalCase, todayInSeconds, tomorrow };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@injectivelabs/utils",
3
- "version": "1.17.2-alpha.8",
3
+ "version": "1.17.2",
4
4
  "description": "List of utils and helper functions that can be reused throughout Injective's projects.",
5
5
  "license": "Apache-2.0",
6
6
  "author": {
@@ -66,9 +66,9 @@
66
66
  "bignumber.js": "^9.3.1",
67
67
  "http-status-codes": "^2.3.0",
68
68
  "store2": "^2.14.4",
69
- "@injectivelabs/networks": "1.17.2-alpha.8",
70
- "@injectivelabs/exceptions": "1.17.2-alpha.8",
71
- "@injectivelabs/ts-types": "1.17.2-alpha.8"
69
+ "@injectivelabs/networks": "1.17.2",
70
+ "@injectivelabs/ts-types": "1.17.2",
71
+ "@injectivelabs/exceptions": "1.17.2"
72
72
  },
73
73
  "publishConfig": {
74
74
  "access": "public"