@leather.io/utils 0.23.4 → 0.25.0

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.
@@ -1,5 +1,5 @@
1
1
 
2
- > @leather.io/utils@0.23.4 build /home/runner/work/mono/mono/packages/utils
2
+ > @leather.io/utils@0.25.0 build /home/runner/work/mono/mono/packages/utils
3
3
  > tsup
4
4
 
5
5
  CLI Building entry: src/index.ts
@@ -8,9 +8,9 @@ CLI tsup v8.1.0
8
8
  CLI Using tsup config: /home/runner/work/mono/mono/packages/utils/tsup.config.ts
9
9
  CLI Target: es2022
10
10
  ESM Build start
11
- ESM dist/index.js 19.75 KB
12
- ESM dist/index.js.map 37.74 KB
13
- ESM ⚡️ Build success in 23ms
11
+ ESM dist/index.js 36.66 KB
12
+ ESM dist/index.js.map 70.66 KB
13
+ ESM ⚡️ Build success in 24ms
14
14
  DTS Build start
15
- DTS ⚡️ Build success in 1823ms
16
- DTS dist/index.d.ts 9.52 KB
15
+ DTS ⚡️ Build success in 1798ms
16
+ DTS dist/index.d.ts 9.68 KB
package/CHANGELOG.md CHANGED
@@ -233,6 +233,29 @@
233
233
  * dependencies
234
234
  * @leather.io/rpc bumped to 2.5.3
235
235
 
236
+ ## [0.25.0](https://github.com/leather-io/mono/compare/@leather.io/utils-v0.24.0...@leather.io/utils-v0.25.0) (2025-01-23)
237
+
238
+
239
+ ### Features
240
+
241
+ * change spam filter logic, LEA-2072 ([cf7cfbc](https://github.com/leather-io/mono/commit/cf7cfbc0d113277dae4f3674d5ed23daad88365f))
242
+
243
+ ## [0.24.0](https://github.com/leather-io/mono/compare/@leather.io/utils-v0.23.4...@leather.io/utils-v0.24.0) (2025-01-15)
244
+
245
+
246
+ ### Features
247
+
248
+ * utxos service ([1216c4b](https://github.com/leather-io/mono/commit/1216c4bfd34bb50bac4287320a51005215c3dea4))
249
+
250
+
251
+ ### Dependencies
252
+
253
+ * The following workspace dependencies were updated
254
+ * dependencies
255
+ * @leather.io/constants bumped to 0.15.4
256
+ * @leather.io/models bumped to 0.25.0
257
+ * @leather.io/rpc bumped to 2.5.4
258
+
236
259
  ## [0.23.0](https://github.com/leather-io/mono/compare/@leather.io/utils-v0.22.6...@leather.io/utils-v0.23.0) (2025-01-08)
237
260
 
238
261
 
package/dist/index.d.ts CHANGED
@@ -65,9 +65,10 @@ declare function migratePositiveAssetBalancesToTop<T extends {
65
65
  declare function getAssetDisplayName(asset: CryptoAssetInfo): string;
66
66
 
67
67
  declare function createBaseCryptoAssetBalance(totalBalance: Money, inboundBal?: Money, outboundBal?: Money): BaseCryptoAssetBalance;
68
- declare function createBtcCryptoAssetBalance(totalBalance: Money, inboundBal?: Money, outboundBal?: Money, protectedBal?: Money, uneconomicalBal?: Money): BtcCryptoAssetBalance;
68
+ declare function createBtcCryptoAssetBalance(totalBalance: Money, inboundBal?: Money, outboundBal?: Money, protectedBal?: Money, uneconomicalBal?: Money, unspendableBal?: Money): BtcCryptoAssetBalance;
69
69
  declare function createStxCryptoAssetBalance(totalBalance: Money, inboundBal?: Money, outboundBal?: Money, lockedBal?: Money): StxCryptoAssetBalance;
70
70
  declare function aggregateBaseCryptoAssetBalances(balances: BaseCryptoAssetBalance[]): BaseCryptoAssetBalance;
71
+ declare function aggregateBtcCryptoAssetBalances(balances: BtcCryptoAssetBalance[]): BtcCryptoAssetBalance;
71
72
  declare function aggregateStxCryptoAssetBalances(balances: StxCryptoAssetBalance[]): StxCryptoAssetBalance;
72
73
 
73
74
  declare function truncateMiddle(input: string, offset?: number): string;
@@ -150,4 +151,4 @@ declare function uniqueArray<T>(arr: T[]): T[];
150
151
  declare function match<Variant extends string | number>(): <T>(variant: Variant, match: Record<Variant, T>) => Record<Variant, T>[Variant];
151
152
  declare function removeTrailingNullCharacters(s: string): string;
152
153
 
153
- export { abbreviateNumber, aggregateBaseCryptoAssetBalances, aggregateStxCryptoAssetBalances, assertIsTruthy, assertUnreachable, baseCurrencyAmountInQuote, baseCurrencyAmountInQuoteWithFallback, btcToSat, calculateMeanAverage, capitalize, convertAmountToBaseUnit, convertAmountToFractionalUnit, convertToMoneyTypeWithDefaultOfZero, countDecimals, createBaseCryptoAssetBalance, createBtcCryptoAssetBalance, createCounter, createMoney, createMoneyFromDecimal, createNullArrayOfLength, createNumArrayOfRange, createStxCryptoAssetBalance, defaultWalletKeyId, delay, ensureArray, extractPhraseFromString, fibonacciGenerator, fiveMinInMs, formatBalance, formatContractId, formatDustUsdAmounts, formatMoney, formatMoneyPadded, formatMoneyToFixedDecimal, formatMoneyToFixedDecimalWithoutSymbol, formatMoneyWithoutSymbol, getAssetDisplayName, getPrincipalFromContractId, getTicker, hexToNumber, i18nFormatCurrency, increaseValueByOneMicroStx, initBigNumber, isBigInt, isBoolean, isDefined, isEmpty, isEmptyArray, isEmptyString, isError, isEven, isFulfilled, isFunction, isHexString, isMoney, isMoneyGreaterThanZero, isNumber, isObject, isRejected, isString, isTypedArray, isUndefined, makeNumberRange, mapObject, match, microStxToStx, migratePositiveAssetBalancesToTop, moneyToBaseUnit, noop, oneDayInMs, oneMinInMs, oneWeekInMs, propIfDefined, pxStringToNumber, removeTrailingNullCharacters, reverseBytes, safelyFormatHexTxid, satToBtc, sortAssetsByName, spamFilter, stxToMicroStx, subtractMoney, sumMoney, sumNumbers, toHexString, truncateMiddle, undefinedIfLengthZero, uniqueArray, unitToFractionalUnit, whenNetwork };
154
+ export { abbreviateNumber, aggregateBaseCryptoAssetBalances, aggregateBtcCryptoAssetBalances, aggregateStxCryptoAssetBalances, assertIsTruthy, assertUnreachable, baseCurrencyAmountInQuote, baseCurrencyAmountInQuoteWithFallback, btcToSat, calculateMeanAverage, capitalize, convertAmountToBaseUnit, convertAmountToFractionalUnit, convertToMoneyTypeWithDefaultOfZero, countDecimals, createBaseCryptoAssetBalance, createBtcCryptoAssetBalance, createCounter, createMoney, createMoneyFromDecimal, createNullArrayOfLength, createNumArrayOfRange, createStxCryptoAssetBalance, defaultWalletKeyId, delay, ensureArray, extractPhraseFromString, fibonacciGenerator, fiveMinInMs, formatBalance, formatContractId, formatDustUsdAmounts, formatMoney, formatMoneyPadded, formatMoneyToFixedDecimal, formatMoneyToFixedDecimalWithoutSymbol, formatMoneyWithoutSymbol, getAssetDisplayName, getPrincipalFromContractId, getTicker, hexToNumber, i18nFormatCurrency, increaseValueByOneMicroStx, initBigNumber, isBigInt, isBoolean, isDefined, isEmpty, isEmptyArray, isEmptyString, isError, isEven, isFulfilled, isFunction, isHexString, isMoney, isMoneyGreaterThanZero, isNumber, isObject, isRejected, isString, isTypedArray, isUndefined, makeNumberRange, mapObject, match, microStxToStx, migratePositiveAssetBalancesToTop, moneyToBaseUnit, noop, oneDayInMs, oneMinInMs, oneWeekInMs, propIfDefined, pxStringToNumber, removeTrailingNullCharacters, reverseBytes, safelyFormatHexTxid, satToBtc, sortAssetsByName, spamFilter, stxToMicroStx, subtractMoney, sumMoney, sumNumbers, toHexString, truncateMiddle, undefinedIfLengthZero, uniqueArray, unitToFractionalUnit, whenNetwork };