@bze/bze-ui-kit 0.2.0 → 0.2.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.
package/dist/index.d.mts CHANGED
@@ -42,7 +42,6 @@ import { ParamsSDKType } from '@bze/bzejs/bze/burner/params';
42
42
  import { QueryAllBurnedCoinsResponseSDKType } from '@bze/bzejs/bze/burner/query';
43
43
  import * as _bze_bzejs_cosmos_bank_v1beta1_bank from '@bze/bzejs/cosmos/bank/v1beta1/bank';
44
44
  import { QueryEpochsInfoResponseSDKType } from '@bze/bzejs/bze/epochs/query';
45
- import * as _bze_bzejs_bze_epochs_epoch from '@bze/bzejs/bze/epochs/epoch';
46
45
  import { EpochInfoSDKType } from '@bze/bzejs/bze/epochs/epoch';
47
46
  import { QueryUserMarketOrdersResponseSDKType, QueryMarketAggregatedOrdersResponseSDKType, QueryMarketHistoryResponseSDKType, QueryMarketOrderResponseSDKType } from '@bze/bzejs/bze/tradebin/query';
48
47
  import { QueryAllPendingUnlockParticipantsResponseSDKType, QueryStakingRewardParticipantResponseSDKType, QueryAllStakingRewardsResponseSDKType } from '@bze/bzejs/bze/rewards/query';
@@ -1025,12 +1024,24 @@ declare function useBalance(denom: string): {
1025
1024
  };
1026
1025
 
1027
1026
  declare function useEpochs(): {
1028
- epochs: Map<string, _bze_bzejs_bze_epochs_epoch.EpochInfoSDKType>;
1029
- hourEpochInfo: _bze_bzejs_bze_epochs_epoch.EpochInfoSDKType | undefined;
1030
- dayEpochInfo: _bze_bzejs_bze_epochs_epoch.EpochInfoSDKType | undefined;
1031
- weekEpochInfo: _bze_bzejs_bze_epochs_epoch.EpochInfoSDKType | undefined;
1027
+ epochs: EpochInfoSDKType[];
1028
+ epochsMap: Map<string, EpochInfoSDKType>;
1029
+ hourEpochInfo: EpochInfoSDKType | undefined;
1030
+ dayEpochInfo: EpochInfoSDKType | undefined;
1031
+ weekEpochInfo: EpochInfoSDKType | undefined;
1032
1032
  isLoading: boolean;
1033
1033
  updateEpochs: () => void;
1034
+ getCurrentEpoch: (identifier: string) => EpochInfoSDKType | undefined;
1035
+ getHourEpochInfo: () => EpochInfoSDKType | undefined;
1036
+ getDayEpochInfo: () => EpochInfoSDKType | undefined;
1037
+ getWeekEpochInfo: () => EpochInfoSDKType | undefined;
1038
+ getCurrentWeekEpochEndTime: () => Date | undefined;
1039
+ getPeriodicWeekEpochEndTime: (modWeek?: number) => Date | undefined;
1040
+ getPeriodicEpochEndTime: (identifier: string, modWeek?: number) => Date | undefined;
1041
+ };
1042
+ declare function useEpochsManager(): {
1043
+ updateEpochs: () => void;
1044
+ isLoading: boolean;
1034
1045
  };
1035
1046
 
1036
1047
  declare function useLiquidityPools(): {
@@ -1065,7 +1076,8 @@ declare function useLiquidityPool(poolId: string): {
1065
1076
  };
1066
1077
 
1067
1078
  declare function useAssetsValue(): {
1068
- totalUsdValue: BigNumber;
1079
+ totalUsdValue: (prettyBalances: PrettyBalance[]) => BigNumber;
1080
+ walletTotalUsdValue: BigNumber;
1069
1081
  denomUsdValue: (denom: string, uAmount: BigNumber) => BigNumber;
1070
1082
  compareValues: (a: PrettyBalance, b: PrettyBalance) => 0 | 1 | -1;
1071
1083
  isLoading: boolean;
@@ -1202,4 +1214,4 @@ interface SettingsToggleProps {
1202
1214
  }
1203
1215
  declare function SettingsToggle({ accentColor }: SettingsToggleProps): react_jsx_runtime.JSX.Element;
1204
1216
 
1205
- export { ASSET_TYPE_FACTORY, ASSET_TYPE_IBC, ASSET_TYPE_LP, ASSET_TYPE_NATIVE, type ActiveOrders, type AddressRewardsStaking, type AddressValidationResult, type AppSettings, type Asset, type AssetBalance, AssetsContext, type AssetsContextType, type Attribute, BZE_CIRCLE_LOGO, BZE_TESTNET_2_SUGGEST_CHAIN, BZE_TESTNET_NETWORK, type Balance, type BeeZeeEndpoints, CHART_1D, CHART_1Y, CHART_30D, CHART_4H, CHART_7D, CONNECTION_TYPE_NONE, CONNECTION_TYPE_POLLING, CONNECTION_TYPE_WS, CURRENT_WALLET_BALANCE_EVENT, type ChainAssets, type ConnectionType, type CounterpartyChainForChannel, DEFAULT_SETTINGS, DEFAULT_TX_MEMO, type DenomTrace, ECOSYSTEM_MENU_LABEL, EPOCH_START_EVENT, EXCLUDED_ASSETS, EXCLUDED_MARKETS, type EcosystemApp, type EndpointValidationResults, type EventCallback, type ExtendedPendingUnlockParticipantSDKType, HighlightText, type HistoryOrder, type IBCCounterparty, type IBCData, type IbcTransitionMock, type InternalEvent, LOCK_CHANGED_EVENT, LP_ASSETS_DECIMALS, type LiquidityPoolData, MAINNET_CHAIN_INFO_FALLBACK, type Market, type MarketData, NEXT_BURN_CHANGED_EVENT, type NativeStakingData, type NativeUnbondingSummary, ORDER_BOOK_CHANGED_EVENT, ORDER_EXECUTED_EVENT, ORDER_TYPE_BUY, ORDER_TYPE_SELL, type PrettyBalance, type PriceApiResponse, RAFFLE_CHANGED_EVENT, SETTINGS_STORAGE_KEY, STABLE_COINS, SUPPLY_CHANGED_EVENT, SWAP_EXECUTED_EVENT, SettingsSidebarContent, SettingsToggle, Sidebar, type SwapHistory, type SwapRouteResult, TESTNET_CHAIN_INFO_FALLBACK, TOKEN_LOGO_PLACEHOLDER, TTL_NO_EXPIRY, type TendermintEvent, Toaster, type TradeViewChart, type TxOptions, TxStatus, type UserNativeStakingData, type UserNativeStakingRewards, type UserPoolData, VALIDATION_ERRORS, VERIFIED_ASSETS, type ValidationResult, WalletSidebarContent, addDebounce, addMultipleDebounce, ammRouter, amountToBigNumberUAmount, amountToUAmount, blockchainEventManager, calcNativeStakingApr, calculateAmountFromPrice, calculatePoolOppositeAmount, calculatePoolPrice, calculatePricePerUnit, calculateRewardsStakingApr, calculateRewardsStakingPendingRewards, calculateTotalAmount, calculateUserPoolData, canDepositFromIBC, canSendToIBC, cancelDebounce, convertToWebSocketUrl, counterpartyChainForChannel, createMarketId, createPoolId, createRestClient, denomOnFirstHopChainFromTrace, formatDate, formatTimeRemaining, formatTimeRemainingFromEpochs, formatUsdAmount, getAddressBalances, getAddressDelegations, getAddressFullMarketOrders, getAddressHistory, getAddressMarketOrders, getAddressNativeDelegatedBalance, getAddressNativeTotalRewards, getAddressPendingUnlock, getAddressRewards, getAddressStakingRewards, getAddressSwapHistory, getAddressUnbondingDelegations, getAddressUnbondingDelegationsSummary, getAggregatorHost, getAllBurnedCoins, getAllSupply, getAllSupplyMetadata, getAllTickers, getAnnualProvisions, getAppName, getArchwayRestURL, getArchwayRpcURL, getAssetLists, getAtomOneRestURL, getAtomOneRpcUrl, getBZEUSDPrice, getBurnerParams, getBurnerParamsWithClient, getChainAddressPrefix, getChainAssets, getChainByChainId, getChainByName, getChainExplorerURL, getChainId, getChainName, getChainNativeAssetDenom, getChains, getChartIntervalsLimit, getChartMinutes, getCurrentEpoch, getCurrentWeekEpochEndTime, getDefaultTxMemo, getDenomType, getDistributionParams, getEcosystemApps, getEpochDurationByIdentifier, getEpochsInfo, getFactoryDenomAdminAddress, getFromLocalStorage, getHashIBCTrace, getHourEpochInfo, getIBCAssetList, getIBCTraces, getIbcTransferTimeout, getJackalRestURL, getJackalRpcUrl, getKeyExpiry, getLiquidityPool, getLiquidityPools, getLockedBalances, getLockerAddress, getMarketBuyOrders, getMarketEventKey, getMarketHistory, getMarketOrder, getMarketOrderBookChangedEvent, getMarketOrders, getMarketOrdersHistory, getMarketSellOrders, getMarkets, getMinAmount, getNoOfIntervalsNeeded, getNobleRestURL, getNobleRpcUrl, getOmniFlixRestURL, getOmniFlixRpcUrl, getOsmosisRestURL, getOsmosisRpcUrl, getPageRequestWithLimit, getPendingUnlockParticipants, getPeriodicEpochEndTime, getPeriodicWeekEpochEndTime, getRestClient, getRestURL, getRpcURL, getSettings, getStakingParams, getStakingPool, getStakingRewardParticipantByAddress, getStakingRewards, getTradingViewIntervals, getUSDCDenom, getValidatorPageUrl, getValidatorSupportedDenoms, getWalletChainsNames, getWeekEpochInfo, intlDateFormat, isFactoryDenom, isIbcAsset, isIbcDenom, isLpDenom, isNativeDenom, isPoolSupportedByValidator, isTestnetChain, keplrSuggestChain, mapEventAttributes, openExternalLink, parseUnbondingDays, poolIdFromPoolDenom, prettyAmount, prettyError, priceToBigNumberUPrice, priceToUPrice, removeFromLocalStorage, removeLeadingZeros, sanitizeIntegerInput, sanitizeNumberInput, setDefaultTxMemo, setInLocalStorage, setKeyExpiry, setSettings, setStorageKeyVersion, shortNumberFormat, sleep, stringTruncateFromCenter, toBigNumber, toPercentage, truncateAddress, truncateDenom, uAmountToAmount, uAmountToBigNumberAmount, uPriceToBigNumberPrice, uPriceToPrice, useAsset, useAssetLiquidityPools, useAssetMarkets, useAssetPrice, useAssets, useAssetsContext, useAssetsManager, useAssetsValue, useBZETx, useBalance, useBalances, useConnectionType, useEpochs, useFeeTokens, useIBCChains, useIBCTx, useLiquidityPool, useLiquidityPools, useMarket, useMarkets, useMarketsManager, useSDKTx, useSettings, useSigningClient, useToast, validateBZEBech32Address, validateBech32Address, validateEndpoints, validateRestEndpoint, validateRpcEndpoint };
1217
+ export { ASSET_TYPE_FACTORY, ASSET_TYPE_IBC, ASSET_TYPE_LP, ASSET_TYPE_NATIVE, type ActiveOrders, type AddressRewardsStaking, type AddressValidationResult, type AppSettings, type Asset, type AssetBalance, AssetsContext, type AssetsContextType, type Attribute, BZE_CIRCLE_LOGO, BZE_TESTNET_2_SUGGEST_CHAIN, BZE_TESTNET_NETWORK, type Balance, type BeeZeeEndpoints, CHART_1D, CHART_1Y, CHART_30D, CHART_4H, CHART_7D, CONNECTION_TYPE_NONE, CONNECTION_TYPE_POLLING, CONNECTION_TYPE_WS, CURRENT_WALLET_BALANCE_EVENT, type ChainAssets, type ConnectionType, type CounterpartyChainForChannel, DEFAULT_SETTINGS, DEFAULT_TX_MEMO, type DenomTrace, ECOSYSTEM_MENU_LABEL, EPOCH_START_EVENT, EXCLUDED_ASSETS, EXCLUDED_MARKETS, type EcosystemApp, type EndpointValidationResults, type EventCallback, type ExtendedPendingUnlockParticipantSDKType, HighlightText, type HistoryOrder, type IBCCounterparty, type IBCData, type IbcTransitionMock, type InternalEvent, LOCK_CHANGED_EVENT, LP_ASSETS_DECIMALS, type LiquidityPoolData, MAINNET_CHAIN_INFO_FALLBACK, type Market, type MarketData, NEXT_BURN_CHANGED_EVENT, type NativeStakingData, type NativeUnbondingSummary, ORDER_BOOK_CHANGED_EVENT, ORDER_EXECUTED_EVENT, ORDER_TYPE_BUY, ORDER_TYPE_SELL, type PrettyBalance, type PriceApiResponse, RAFFLE_CHANGED_EVENT, SETTINGS_STORAGE_KEY, STABLE_COINS, SUPPLY_CHANGED_EVENT, SWAP_EXECUTED_EVENT, SettingsSidebarContent, SettingsToggle, Sidebar, type SwapHistory, type SwapRouteResult, TESTNET_CHAIN_INFO_FALLBACK, TOKEN_LOGO_PLACEHOLDER, TTL_NO_EXPIRY, type TendermintEvent, Toaster, type TradeViewChart, type TxOptions, TxStatus, type UserNativeStakingData, type UserNativeStakingRewards, type UserPoolData, VALIDATION_ERRORS, VERIFIED_ASSETS, type ValidationResult, WalletSidebarContent, addDebounce, addMultipleDebounce, ammRouter, amountToBigNumberUAmount, amountToUAmount, blockchainEventManager, calcNativeStakingApr, calculateAmountFromPrice, calculatePoolOppositeAmount, calculatePoolPrice, calculatePricePerUnit, calculateRewardsStakingApr, calculateRewardsStakingPendingRewards, calculateTotalAmount, calculateUserPoolData, canDepositFromIBC, canSendToIBC, cancelDebounce, convertToWebSocketUrl, counterpartyChainForChannel, createMarketId, createPoolId, createRestClient, denomOnFirstHopChainFromTrace, formatDate, formatTimeRemaining, formatTimeRemainingFromEpochs, formatUsdAmount, getAddressBalances, getAddressDelegations, getAddressFullMarketOrders, getAddressHistory, getAddressMarketOrders, getAddressNativeDelegatedBalance, getAddressNativeTotalRewards, getAddressPendingUnlock, getAddressRewards, getAddressStakingRewards, getAddressSwapHistory, getAddressUnbondingDelegations, getAddressUnbondingDelegationsSummary, getAggregatorHost, getAllBurnedCoins, getAllSupply, getAllSupplyMetadata, getAllTickers, getAnnualProvisions, getAppName, getArchwayRestURL, getArchwayRpcURL, getAssetLists, getAtomOneRestURL, getAtomOneRpcUrl, getBZEUSDPrice, getBurnerParams, getBurnerParamsWithClient, getChainAddressPrefix, getChainAssets, getChainByChainId, getChainByName, getChainExplorerURL, getChainId, getChainName, getChainNativeAssetDenom, getChains, getChartIntervalsLimit, getChartMinutes, getCurrentEpoch, getCurrentWeekEpochEndTime, getDefaultTxMemo, getDenomType, getDistributionParams, getEcosystemApps, getEpochDurationByIdentifier, getEpochsInfo, getFactoryDenomAdminAddress, getFromLocalStorage, getHashIBCTrace, getHourEpochInfo, getIBCAssetList, getIBCTraces, getIbcTransferTimeout, getJackalRestURL, getJackalRpcUrl, getKeyExpiry, getLiquidityPool, getLiquidityPools, getLockedBalances, getLockerAddress, getMarketBuyOrders, getMarketEventKey, getMarketHistory, getMarketOrder, getMarketOrderBookChangedEvent, getMarketOrders, getMarketOrdersHistory, getMarketSellOrders, getMarkets, getMinAmount, getNoOfIntervalsNeeded, getNobleRestURL, getNobleRpcUrl, getOmniFlixRestURL, getOmniFlixRpcUrl, getOsmosisRestURL, getOsmosisRpcUrl, getPageRequestWithLimit, getPendingUnlockParticipants, getPeriodicEpochEndTime, getPeriodicWeekEpochEndTime, getRestClient, getRestURL, getRpcURL, getSettings, getStakingParams, getStakingPool, getStakingRewardParticipantByAddress, getStakingRewards, getTradingViewIntervals, getUSDCDenom, getValidatorPageUrl, getValidatorSupportedDenoms, getWalletChainsNames, getWeekEpochInfo, intlDateFormat, isFactoryDenom, isIbcAsset, isIbcDenom, isLpDenom, isNativeDenom, isPoolSupportedByValidator, isTestnetChain, keplrSuggestChain, mapEventAttributes, openExternalLink, parseUnbondingDays, poolIdFromPoolDenom, prettyAmount, prettyError, priceToBigNumberUPrice, priceToUPrice, removeFromLocalStorage, removeLeadingZeros, sanitizeIntegerInput, sanitizeNumberInput, setDefaultTxMemo, setInLocalStorage, setKeyExpiry, setSettings, setStorageKeyVersion, shortNumberFormat, sleep, stringTruncateFromCenter, toBigNumber, toPercentage, truncateAddress, truncateDenom, uAmountToAmount, uAmountToBigNumberAmount, uPriceToBigNumberPrice, uPriceToPrice, useAsset, useAssetLiquidityPools, useAssetMarkets, useAssetPrice, useAssets, useAssetsContext, useAssetsManager, useAssetsValue, useBZETx, useBalance, useBalances, useConnectionType, useEpochs, useEpochsManager, useFeeTokens, useIBCChains, useIBCTx, useLiquidityPool, useLiquidityPools, useMarket, useMarkets, useMarketsManager, useSDKTx, useSettings, useSigningClient, useToast, validateBZEBech32Address, validateBech32Address, validateEndpoints, validateRestEndpoint, validateRpcEndpoint };
package/dist/index.d.ts CHANGED
@@ -42,7 +42,6 @@ import { ParamsSDKType } from '@bze/bzejs/bze/burner/params';
42
42
  import { QueryAllBurnedCoinsResponseSDKType } from '@bze/bzejs/bze/burner/query';
43
43
  import * as _bze_bzejs_cosmos_bank_v1beta1_bank from '@bze/bzejs/cosmos/bank/v1beta1/bank';
44
44
  import { QueryEpochsInfoResponseSDKType } from '@bze/bzejs/bze/epochs/query';
45
- import * as _bze_bzejs_bze_epochs_epoch from '@bze/bzejs/bze/epochs/epoch';
46
45
  import { EpochInfoSDKType } from '@bze/bzejs/bze/epochs/epoch';
47
46
  import { QueryUserMarketOrdersResponseSDKType, QueryMarketAggregatedOrdersResponseSDKType, QueryMarketHistoryResponseSDKType, QueryMarketOrderResponseSDKType } from '@bze/bzejs/bze/tradebin/query';
48
47
  import { QueryAllPendingUnlockParticipantsResponseSDKType, QueryStakingRewardParticipantResponseSDKType, QueryAllStakingRewardsResponseSDKType } from '@bze/bzejs/bze/rewards/query';
@@ -1025,12 +1024,24 @@ declare function useBalance(denom: string): {
1025
1024
  };
1026
1025
 
1027
1026
  declare function useEpochs(): {
1028
- epochs: Map<string, _bze_bzejs_bze_epochs_epoch.EpochInfoSDKType>;
1029
- hourEpochInfo: _bze_bzejs_bze_epochs_epoch.EpochInfoSDKType | undefined;
1030
- dayEpochInfo: _bze_bzejs_bze_epochs_epoch.EpochInfoSDKType | undefined;
1031
- weekEpochInfo: _bze_bzejs_bze_epochs_epoch.EpochInfoSDKType | undefined;
1027
+ epochs: EpochInfoSDKType[];
1028
+ epochsMap: Map<string, EpochInfoSDKType>;
1029
+ hourEpochInfo: EpochInfoSDKType | undefined;
1030
+ dayEpochInfo: EpochInfoSDKType | undefined;
1031
+ weekEpochInfo: EpochInfoSDKType | undefined;
1032
1032
  isLoading: boolean;
1033
1033
  updateEpochs: () => void;
1034
+ getCurrentEpoch: (identifier: string) => EpochInfoSDKType | undefined;
1035
+ getHourEpochInfo: () => EpochInfoSDKType | undefined;
1036
+ getDayEpochInfo: () => EpochInfoSDKType | undefined;
1037
+ getWeekEpochInfo: () => EpochInfoSDKType | undefined;
1038
+ getCurrentWeekEpochEndTime: () => Date | undefined;
1039
+ getPeriodicWeekEpochEndTime: (modWeek?: number) => Date | undefined;
1040
+ getPeriodicEpochEndTime: (identifier: string, modWeek?: number) => Date | undefined;
1041
+ };
1042
+ declare function useEpochsManager(): {
1043
+ updateEpochs: () => void;
1044
+ isLoading: boolean;
1034
1045
  };
1035
1046
 
1036
1047
  declare function useLiquidityPools(): {
@@ -1065,7 +1076,8 @@ declare function useLiquidityPool(poolId: string): {
1065
1076
  };
1066
1077
 
1067
1078
  declare function useAssetsValue(): {
1068
- totalUsdValue: BigNumber;
1079
+ totalUsdValue: (prettyBalances: PrettyBalance[]) => BigNumber;
1080
+ walletTotalUsdValue: BigNumber;
1069
1081
  denomUsdValue: (denom: string, uAmount: BigNumber) => BigNumber;
1070
1082
  compareValues: (a: PrettyBalance, b: PrettyBalance) => 0 | 1 | -1;
1071
1083
  isLoading: boolean;
@@ -1202,4 +1214,4 @@ interface SettingsToggleProps {
1202
1214
  }
1203
1215
  declare function SettingsToggle({ accentColor }: SettingsToggleProps): react_jsx_runtime.JSX.Element;
1204
1216
 
1205
- export { ASSET_TYPE_FACTORY, ASSET_TYPE_IBC, ASSET_TYPE_LP, ASSET_TYPE_NATIVE, type ActiveOrders, type AddressRewardsStaking, type AddressValidationResult, type AppSettings, type Asset, type AssetBalance, AssetsContext, type AssetsContextType, type Attribute, BZE_CIRCLE_LOGO, BZE_TESTNET_2_SUGGEST_CHAIN, BZE_TESTNET_NETWORK, type Balance, type BeeZeeEndpoints, CHART_1D, CHART_1Y, CHART_30D, CHART_4H, CHART_7D, CONNECTION_TYPE_NONE, CONNECTION_TYPE_POLLING, CONNECTION_TYPE_WS, CURRENT_WALLET_BALANCE_EVENT, type ChainAssets, type ConnectionType, type CounterpartyChainForChannel, DEFAULT_SETTINGS, DEFAULT_TX_MEMO, type DenomTrace, ECOSYSTEM_MENU_LABEL, EPOCH_START_EVENT, EXCLUDED_ASSETS, EXCLUDED_MARKETS, type EcosystemApp, type EndpointValidationResults, type EventCallback, type ExtendedPendingUnlockParticipantSDKType, HighlightText, type HistoryOrder, type IBCCounterparty, type IBCData, type IbcTransitionMock, type InternalEvent, LOCK_CHANGED_EVENT, LP_ASSETS_DECIMALS, type LiquidityPoolData, MAINNET_CHAIN_INFO_FALLBACK, type Market, type MarketData, NEXT_BURN_CHANGED_EVENT, type NativeStakingData, type NativeUnbondingSummary, ORDER_BOOK_CHANGED_EVENT, ORDER_EXECUTED_EVENT, ORDER_TYPE_BUY, ORDER_TYPE_SELL, type PrettyBalance, type PriceApiResponse, RAFFLE_CHANGED_EVENT, SETTINGS_STORAGE_KEY, STABLE_COINS, SUPPLY_CHANGED_EVENT, SWAP_EXECUTED_EVENT, SettingsSidebarContent, SettingsToggle, Sidebar, type SwapHistory, type SwapRouteResult, TESTNET_CHAIN_INFO_FALLBACK, TOKEN_LOGO_PLACEHOLDER, TTL_NO_EXPIRY, type TendermintEvent, Toaster, type TradeViewChart, type TxOptions, TxStatus, type UserNativeStakingData, type UserNativeStakingRewards, type UserPoolData, VALIDATION_ERRORS, VERIFIED_ASSETS, type ValidationResult, WalletSidebarContent, addDebounce, addMultipleDebounce, ammRouter, amountToBigNumberUAmount, amountToUAmount, blockchainEventManager, calcNativeStakingApr, calculateAmountFromPrice, calculatePoolOppositeAmount, calculatePoolPrice, calculatePricePerUnit, calculateRewardsStakingApr, calculateRewardsStakingPendingRewards, calculateTotalAmount, calculateUserPoolData, canDepositFromIBC, canSendToIBC, cancelDebounce, convertToWebSocketUrl, counterpartyChainForChannel, createMarketId, createPoolId, createRestClient, denomOnFirstHopChainFromTrace, formatDate, formatTimeRemaining, formatTimeRemainingFromEpochs, formatUsdAmount, getAddressBalances, getAddressDelegations, getAddressFullMarketOrders, getAddressHistory, getAddressMarketOrders, getAddressNativeDelegatedBalance, getAddressNativeTotalRewards, getAddressPendingUnlock, getAddressRewards, getAddressStakingRewards, getAddressSwapHistory, getAddressUnbondingDelegations, getAddressUnbondingDelegationsSummary, getAggregatorHost, getAllBurnedCoins, getAllSupply, getAllSupplyMetadata, getAllTickers, getAnnualProvisions, getAppName, getArchwayRestURL, getArchwayRpcURL, getAssetLists, getAtomOneRestURL, getAtomOneRpcUrl, getBZEUSDPrice, getBurnerParams, getBurnerParamsWithClient, getChainAddressPrefix, getChainAssets, getChainByChainId, getChainByName, getChainExplorerURL, getChainId, getChainName, getChainNativeAssetDenom, getChains, getChartIntervalsLimit, getChartMinutes, getCurrentEpoch, getCurrentWeekEpochEndTime, getDefaultTxMemo, getDenomType, getDistributionParams, getEcosystemApps, getEpochDurationByIdentifier, getEpochsInfo, getFactoryDenomAdminAddress, getFromLocalStorage, getHashIBCTrace, getHourEpochInfo, getIBCAssetList, getIBCTraces, getIbcTransferTimeout, getJackalRestURL, getJackalRpcUrl, getKeyExpiry, getLiquidityPool, getLiquidityPools, getLockedBalances, getLockerAddress, getMarketBuyOrders, getMarketEventKey, getMarketHistory, getMarketOrder, getMarketOrderBookChangedEvent, getMarketOrders, getMarketOrdersHistory, getMarketSellOrders, getMarkets, getMinAmount, getNoOfIntervalsNeeded, getNobleRestURL, getNobleRpcUrl, getOmniFlixRestURL, getOmniFlixRpcUrl, getOsmosisRestURL, getOsmosisRpcUrl, getPageRequestWithLimit, getPendingUnlockParticipants, getPeriodicEpochEndTime, getPeriodicWeekEpochEndTime, getRestClient, getRestURL, getRpcURL, getSettings, getStakingParams, getStakingPool, getStakingRewardParticipantByAddress, getStakingRewards, getTradingViewIntervals, getUSDCDenom, getValidatorPageUrl, getValidatorSupportedDenoms, getWalletChainsNames, getWeekEpochInfo, intlDateFormat, isFactoryDenom, isIbcAsset, isIbcDenom, isLpDenom, isNativeDenom, isPoolSupportedByValidator, isTestnetChain, keplrSuggestChain, mapEventAttributes, openExternalLink, parseUnbondingDays, poolIdFromPoolDenom, prettyAmount, prettyError, priceToBigNumberUPrice, priceToUPrice, removeFromLocalStorage, removeLeadingZeros, sanitizeIntegerInput, sanitizeNumberInput, setDefaultTxMemo, setInLocalStorage, setKeyExpiry, setSettings, setStorageKeyVersion, shortNumberFormat, sleep, stringTruncateFromCenter, toBigNumber, toPercentage, truncateAddress, truncateDenom, uAmountToAmount, uAmountToBigNumberAmount, uPriceToBigNumberPrice, uPriceToPrice, useAsset, useAssetLiquidityPools, useAssetMarkets, useAssetPrice, useAssets, useAssetsContext, useAssetsManager, useAssetsValue, useBZETx, useBalance, useBalances, useConnectionType, useEpochs, useFeeTokens, useIBCChains, useIBCTx, useLiquidityPool, useLiquidityPools, useMarket, useMarkets, useMarketsManager, useSDKTx, useSettings, useSigningClient, useToast, validateBZEBech32Address, validateBech32Address, validateEndpoints, validateRestEndpoint, validateRpcEndpoint };
1217
+ export { ASSET_TYPE_FACTORY, ASSET_TYPE_IBC, ASSET_TYPE_LP, ASSET_TYPE_NATIVE, type ActiveOrders, type AddressRewardsStaking, type AddressValidationResult, type AppSettings, type Asset, type AssetBalance, AssetsContext, type AssetsContextType, type Attribute, BZE_CIRCLE_LOGO, BZE_TESTNET_2_SUGGEST_CHAIN, BZE_TESTNET_NETWORK, type Balance, type BeeZeeEndpoints, CHART_1D, CHART_1Y, CHART_30D, CHART_4H, CHART_7D, CONNECTION_TYPE_NONE, CONNECTION_TYPE_POLLING, CONNECTION_TYPE_WS, CURRENT_WALLET_BALANCE_EVENT, type ChainAssets, type ConnectionType, type CounterpartyChainForChannel, DEFAULT_SETTINGS, DEFAULT_TX_MEMO, type DenomTrace, ECOSYSTEM_MENU_LABEL, EPOCH_START_EVENT, EXCLUDED_ASSETS, EXCLUDED_MARKETS, type EcosystemApp, type EndpointValidationResults, type EventCallback, type ExtendedPendingUnlockParticipantSDKType, HighlightText, type HistoryOrder, type IBCCounterparty, type IBCData, type IbcTransitionMock, type InternalEvent, LOCK_CHANGED_EVENT, LP_ASSETS_DECIMALS, type LiquidityPoolData, MAINNET_CHAIN_INFO_FALLBACK, type Market, type MarketData, NEXT_BURN_CHANGED_EVENT, type NativeStakingData, type NativeUnbondingSummary, ORDER_BOOK_CHANGED_EVENT, ORDER_EXECUTED_EVENT, ORDER_TYPE_BUY, ORDER_TYPE_SELL, type PrettyBalance, type PriceApiResponse, RAFFLE_CHANGED_EVENT, SETTINGS_STORAGE_KEY, STABLE_COINS, SUPPLY_CHANGED_EVENT, SWAP_EXECUTED_EVENT, SettingsSidebarContent, SettingsToggle, Sidebar, type SwapHistory, type SwapRouteResult, TESTNET_CHAIN_INFO_FALLBACK, TOKEN_LOGO_PLACEHOLDER, TTL_NO_EXPIRY, type TendermintEvent, Toaster, type TradeViewChart, type TxOptions, TxStatus, type UserNativeStakingData, type UserNativeStakingRewards, type UserPoolData, VALIDATION_ERRORS, VERIFIED_ASSETS, type ValidationResult, WalletSidebarContent, addDebounce, addMultipleDebounce, ammRouter, amountToBigNumberUAmount, amountToUAmount, blockchainEventManager, calcNativeStakingApr, calculateAmountFromPrice, calculatePoolOppositeAmount, calculatePoolPrice, calculatePricePerUnit, calculateRewardsStakingApr, calculateRewardsStakingPendingRewards, calculateTotalAmount, calculateUserPoolData, canDepositFromIBC, canSendToIBC, cancelDebounce, convertToWebSocketUrl, counterpartyChainForChannel, createMarketId, createPoolId, createRestClient, denomOnFirstHopChainFromTrace, formatDate, formatTimeRemaining, formatTimeRemainingFromEpochs, formatUsdAmount, getAddressBalances, getAddressDelegations, getAddressFullMarketOrders, getAddressHistory, getAddressMarketOrders, getAddressNativeDelegatedBalance, getAddressNativeTotalRewards, getAddressPendingUnlock, getAddressRewards, getAddressStakingRewards, getAddressSwapHistory, getAddressUnbondingDelegations, getAddressUnbondingDelegationsSummary, getAggregatorHost, getAllBurnedCoins, getAllSupply, getAllSupplyMetadata, getAllTickers, getAnnualProvisions, getAppName, getArchwayRestURL, getArchwayRpcURL, getAssetLists, getAtomOneRestURL, getAtomOneRpcUrl, getBZEUSDPrice, getBurnerParams, getBurnerParamsWithClient, getChainAddressPrefix, getChainAssets, getChainByChainId, getChainByName, getChainExplorerURL, getChainId, getChainName, getChainNativeAssetDenom, getChains, getChartIntervalsLimit, getChartMinutes, getCurrentEpoch, getCurrentWeekEpochEndTime, getDefaultTxMemo, getDenomType, getDistributionParams, getEcosystemApps, getEpochDurationByIdentifier, getEpochsInfo, getFactoryDenomAdminAddress, getFromLocalStorage, getHashIBCTrace, getHourEpochInfo, getIBCAssetList, getIBCTraces, getIbcTransferTimeout, getJackalRestURL, getJackalRpcUrl, getKeyExpiry, getLiquidityPool, getLiquidityPools, getLockedBalances, getLockerAddress, getMarketBuyOrders, getMarketEventKey, getMarketHistory, getMarketOrder, getMarketOrderBookChangedEvent, getMarketOrders, getMarketOrdersHistory, getMarketSellOrders, getMarkets, getMinAmount, getNoOfIntervalsNeeded, getNobleRestURL, getNobleRpcUrl, getOmniFlixRestURL, getOmniFlixRpcUrl, getOsmosisRestURL, getOsmosisRpcUrl, getPageRequestWithLimit, getPendingUnlockParticipants, getPeriodicEpochEndTime, getPeriodicWeekEpochEndTime, getRestClient, getRestURL, getRpcURL, getSettings, getStakingParams, getStakingPool, getStakingRewardParticipantByAddress, getStakingRewards, getTradingViewIntervals, getUSDCDenom, getValidatorPageUrl, getValidatorSupportedDenoms, getWalletChainsNames, getWeekEpochInfo, intlDateFormat, isFactoryDenom, isIbcAsset, isIbcDenom, isLpDenom, isNativeDenom, isPoolSupportedByValidator, isTestnetChain, keplrSuggestChain, mapEventAttributes, openExternalLink, parseUnbondingDays, poolIdFromPoolDenom, prettyAmount, prettyError, priceToBigNumberUPrice, priceToUPrice, removeFromLocalStorage, removeLeadingZeros, sanitizeIntegerInput, sanitizeNumberInput, setDefaultTxMemo, setInLocalStorage, setKeyExpiry, setSettings, setStorageKeyVersion, shortNumberFormat, sleep, stringTruncateFromCenter, toBigNumber, toPercentage, truncateAddress, truncateDenom, uAmountToAmount, uAmountToBigNumberAmount, uPriceToBigNumberPrice, uPriceToPrice, useAsset, useAssetLiquidityPools, useAssetMarkets, useAssetPrice, useAssets, useAssetsContext, useAssetsManager, useAssetsValue, useBZETx, useBalance, useBalances, useConnectionType, useEpochs, useEpochsManager, useFeeTokens, useIBCChains, useIBCTx, useLiquidityPool, useLiquidityPools, useMarket, useMarkets, useMarketsManager, useSDKTx, useSettings, useSigningClient, useToast, validateBZEBech32Address, validateBech32Address, validateEndpoints, validateRestEndpoint, validateRpcEndpoint };
package/dist/index.js CHANGED
@@ -281,6 +281,7 @@ __export(index_exports, {
281
281
  useBalances: () => useBalances,
282
282
  useConnectionType: () => useConnectionType,
283
283
  useEpochs: () => useEpochs,
284
+ useEpochsManager: () => useEpochsManager,
284
285
  useFeeTokens: () => useFeeTokens,
285
286
  useIBCChains: () => useIBCChains,
286
287
  useIBCTx: () => useIBCTx,
@@ -3211,11 +3212,28 @@ function useBalance(denom) {
3211
3212
 
3212
3213
  // src/hooks/useEpochs.ts
3213
3214
  var import_react8 = require("react");
3215
+ var import_bignumber9 = __toESM(require("bignumber.js"));
3214
3216
  var EPOCH_HOUR2 = "hour";
3215
3217
  var EPOCH_DAY2 = "day";
3216
3218
  var EPOCH_WEEK2 = "week";
3219
+ function getEpochDurationByIdentifier2(identifier) {
3220
+ const hourMs = 60 * 60 * 1e3;
3221
+ switch (identifier) {
3222
+ case EPOCH_HOUR2:
3223
+ return hourMs;
3224
+ case EPOCH_DAY2:
3225
+ return hourMs * 24;
3226
+ case EPOCH_WEEK2:
3227
+ return hourMs * 24 * 7;
3228
+ default:
3229
+ return hourMs;
3230
+ }
3231
+ }
3217
3232
  function useEpochs() {
3218
3233
  const { epochs, isLoading, updateEpochs } = useAssetsContext();
3234
+ const getCurrentEpoch2 = (0, import_react8.useCallback)((identifier) => {
3235
+ return epochs.get(identifier);
3236
+ }, [epochs]);
3219
3237
  const hourEpochInfo = (0, import_react8.useMemo)(() => {
3220
3238
  return epochs.get(EPOCH_HOUR2);
3221
3239
  }, [epochs]);
@@ -3225,19 +3243,65 @@ function useEpochs() {
3225
3243
  const weekEpochInfo = (0, import_react8.useMemo)(() => {
3226
3244
  return epochs.get(EPOCH_WEEK2);
3227
3245
  }, [epochs]);
3246
+ const getHourEpochInfo2 = (0, import_react8.useCallback)(() => {
3247
+ return epochs.get(EPOCH_HOUR2);
3248
+ }, [epochs]);
3249
+ const getDayEpochInfo = (0, import_react8.useCallback)(() => {
3250
+ return epochs.get(EPOCH_DAY2);
3251
+ }, [epochs]);
3252
+ const getWeekEpochInfo2 = (0, import_react8.useCallback)(() => {
3253
+ return epochs.get(EPOCH_WEEK2);
3254
+ }, [epochs]);
3255
+ const getPeriodicEpochEndTime2 = (0, import_react8.useCallback)((identifier, modWeek = 1) => {
3256
+ const epoch = epochs.get(identifier);
3257
+ if (!epoch || !epoch.current_epoch_start_time) {
3258
+ return void 0;
3259
+ }
3260
+ const current = new import_bignumber9.default(epoch.current_epoch);
3261
+ let remainingEpochs = modWeek - current.toNumber() % modWeek;
3262
+ if (remainingEpochs === modWeek) {
3263
+ remainingEpochs = 0;
3264
+ }
3265
+ const startAt = new Date(epoch.current_epoch_start_time);
3266
+ const duration = getEpochDurationByIdentifier2(identifier);
3267
+ startAt.setTime(startAt.getTime() + duration + duration * remainingEpochs);
3268
+ return startAt;
3269
+ }, [epochs]);
3270
+ const getCurrentWeekEpochEndTime2 = (0, import_react8.useCallback)(() => {
3271
+ return getPeriodicEpochEndTime2(EPOCH_WEEK2);
3272
+ }, [getPeriodicEpochEndTime2]);
3273
+ const getPeriodicWeekEpochEndTime2 = (0, import_react8.useCallback)((modWeek = 1) => {
3274
+ return getPeriodicEpochEndTime2(EPOCH_WEEK2, modWeek);
3275
+ }, [getPeriodicEpochEndTime2]);
3276
+ const epochsList = (0, import_react8.useMemo)(() => Array.from(epochs.values()), [epochs]);
3228
3277
  return {
3229
- epochs,
3278
+ epochs: epochsList,
3279
+ epochsMap: epochs,
3230
3280
  hourEpochInfo,
3231
3281
  dayEpochInfo,
3232
3282
  weekEpochInfo,
3233
3283
  isLoading,
3234
- updateEpochs
3284
+ updateEpochs,
3285
+ getCurrentEpoch: getCurrentEpoch2,
3286
+ getHourEpochInfo: getHourEpochInfo2,
3287
+ getDayEpochInfo,
3288
+ getWeekEpochInfo: getWeekEpochInfo2,
3289
+ getCurrentWeekEpochEndTime: getCurrentWeekEpochEndTime2,
3290
+ getPeriodicWeekEpochEndTime: getPeriodicWeekEpochEndTime2,
3291
+ getPeriodicEpochEndTime: getPeriodicEpochEndTime2
3292
+ };
3293
+ }
3294
+ function useEpochsManager() {
3295
+ const { updateEpochs, isLoading } = useAssetsContext();
3296
+ return {
3297
+ updateEpochs,
3298
+ isLoading
3235
3299
  };
3236
3300
  }
3237
3301
 
3238
3302
  // src/hooks/useLiquidityPools.ts
3239
3303
  var import_react9 = require("react");
3240
- var import_bignumber9 = __toESM(require("bignumber.js"));
3304
+ var import_bignumber10 = __toESM(require("bignumber.js"));
3241
3305
  function useLiquidityPools() {
3242
3306
  const { poolsMap, poolsDataMap, updateLiquidityPools, isLoading, assetsMap } = useAssetsContext();
3243
3307
  const pools = (0, import_react9.useMemo)(() => {
@@ -3291,7 +3355,7 @@ function useAssetLiquidityPools(denom) {
3291
3355
  return newMap;
3292
3356
  }, [assetPools, poolsDataMap, isLoading, denom]);
3293
3357
  const asset24HoursVolume = (0, import_react9.useMemo)(() => {
3294
- let volume = (0, import_bignumber9.default)(0);
3358
+ let volume = (0, import_bignumber10.default)(0);
3295
3359
  if (isLoading || denom === "") return volume;
3296
3360
  assetPoolsData.forEach((poolData) => {
3297
3361
  if (poolData.base === denom) {
@@ -3368,9 +3432,9 @@ function useLiquidityPool(poolId) {
3368
3432
  }
3369
3433
  const baseRatio = baseAmountBN.dividedBy(reserveBase);
3370
3434
  const quoteRatio = quoteAmountBN.dividedBy(reserveQuote);
3371
- const mintRatio = import_bignumber9.default.minimum(baseRatio, quoteRatio);
3435
+ const mintRatio = import_bignumber10.default.minimum(baseRatio, quoteRatio);
3372
3436
  const tokensToMint = mintRatio.multipliedBy(totalShares);
3373
- return tokensToMint.integerValue(import_bignumber9.default.ROUND_DOWN);
3437
+ return tokensToMint.integerValue(import_bignumber10.default.ROUND_DOWN);
3374
3438
  }, [pool, totalShares]);
3375
3439
  return {
3376
3440
  isLoading,
@@ -3388,10 +3452,20 @@ function useLiquidityPool(poolId) {
3388
3452
 
3389
3453
  // src/hooks/useAssetsValue.ts
3390
3454
  var import_react10 = require("react");
3391
- var import_bignumber10 = __toESM(require("bignumber.js"));
3455
+ var import_bignumber11 = __toESM(require("bignumber.js"));
3392
3456
  function useAssetsValue() {
3393
3457
  const { assetsMap, usdPricesMap, balancesMap, isLoading: isLoadingPrices } = useAssetsContext();
3394
- const totalUsdValue = (0, import_react10.useMemo)(() => {
3458
+ const totalUsdValue = (0, import_react10.useCallback)((prettyBalances) => {
3459
+ let usdValue = (0, import_bignumber11.default)(0);
3460
+ prettyBalances.map((denomBalance) => {
3461
+ const assetPrice = usdPricesMap.get(denomBalance.denom);
3462
+ if (assetPrice && assetPrice.gt(0)) {
3463
+ usdValue = usdValue.plus(assetPrice.multipliedBy(denomBalance.amount));
3464
+ }
3465
+ });
3466
+ return usdValue;
3467
+ }, [usdPricesMap]);
3468
+ const walletTotalUsdValue = (0, import_react10.useMemo)(() => {
3395
3469
  let total = toBigNumber(0);
3396
3470
  balancesMap.forEach((balance, denom) => {
3397
3471
  const price = usdPricesMap.get(denom);
@@ -3411,12 +3485,12 @@ function useAssetsValue() {
3411
3485
  }, [usdPricesMap, assetsMap]);
3412
3486
  const compareValues = (0, import_react10.useCallback)((a, b) => {
3413
3487
  var _a2;
3414
- let aValue = (0, import_bignumber10.default)(0);
3488
+ let aValue = (0, import_bignumber11.default)(0);
3415
3489
  const aPrice = usdPricesMap.get(a.denom);
3416
3490
  if (aPrice) {
3417
3491
  aValue = aPrice.multipliedBy(a.amount);
3418
3492
  }
3419
- let bValue = (0, import_bignumber10.default)(0);
3493
+ let bValue = (0, import_bignumber11.default)(0);
3420
3494
  const bPrice = usdPricesMap.get(b.denom);
3421
3495
  if (bPrice) {
3422
3496
  bValue = bPrice.multipliedBy(b.amount);
@@ -3425,6 +3499,7 @@ function useAssetsValue() {
3425
3499
  }, [usdPricesMap]);
3426
3500
  return {
3427
3501
  totalUsdValue,
3502
+ walletTotalUsdValue,
3428
3503
  denomUsdValue,
3429
3504
  compareValues,
3430
3505
  isLoading: isLoadingPrices
@@ -3469,7 +3544,7 @@ function useFeeTokens() {
3469
3544
 
3470
3545
  // src/hooks/useMarkets.ts
3471
3546
  var import_react12 = require("react");
3472
- var import_bignumber11 = __toESM(require("bignumber.js"));
3547
+ var import_bignumber12 = __toESM(require("bignumber.js"));
3473
3548
  function useMarkets() {
3474
3549
  const { marketsMap, marketsDataMap, updateMarkets, isLoading } = useAssetsContext();
3475
3550
  const markets = (0, import_react12.useMemo)(() => {
@@ -3521,7 +3596,7 @@ function useAssetMarkets(denom) {
3521
3596
  return acc.plus(market.quote_volume || 0);
3522
3597
  }
3523
3598
  return acc;
3524
- }, new import_bignumber11.default(0));
3599
+ }, new import_bignumber12.default(0));
3525
3600
  }, [assetMarketsData, denom]);
3526
3601
  return {
3527
3602
  isLoading,
@@ -3672,7 +3747,7 @@ var useToast = () => {
3672
3747
  // src/hooks/useTx.tsx
3673
3748
  var import_stargate = require("@cosmjs/stargate");
3674
3749
  var import_react15 = require("@interchain-kit/react");
3675
- var import_bignumber12 = __toESM(require("bignumber.js"));
3750
+ var import_bignumber13 = __toESM(require("bignumber.js"));
3676
3751
  var import_react16 = require("react");
3677
3752
  var TxStatus = /* @__PURE__ */ ((TxStatus2) => {
3678
3753
  TxStatus2["Failed"] = "Transaction Failed";
@@ -3724,7 +3799,7 @@ var useTx = (chainName, isCosmos, isIBC) => {
3724
3799
  const gasPrice = 0.02;
3725
3800
  const nativeDenom = getChainNativeAssetDenom();
3726
3801
  const gasEstimated = await signingClient.simulate(address, messages, memo);
3727
- const gasAmount = (0, import_bignumber12.default)(gasEstimated).multipliedBy(1.5);
3802
+ const gasAmount = (0, import_bignumber13.default)(gasEstimated).multipliedBy(1.5);
3728
3803
  const gasPayment = gasAmount.multipliedBy(gasPrice);
3729
3804
  const nativeFee = {
3730
3805
  amount: (0, import_stargate.coins)(gasPayment.toFixed(0).toString(), nativeDenom),
@@ -3741,9 +3816,9 @@ var useTx = (chainName, isCosmos, isIBC) => {
3741
3816
  if (!expectedAmount.isPositive()) {
3742
3817
  return nativeFee;
3743
3818
  }
3744
- expectedAmount = expectedAmount.multipliedBy(1.5).integerValue(import_bignumber12.default.ROUND_FLOOR);
3819
+ expectedAmount = expectedAmount.multipliedBy(1.5).integerValue(import_bignumber13.default.ROUND_FLOOR);
3745
3820
  if (expectedAmount.multipliedBy(pool.fee).lt(1)) {
3746
- expectedAmount = toBigNumber(1).dividedBy(pool.fee).integerValue(import_bignumber12.default.ROUND_CEIL);
3821
+ expectedAmount = toBigNumber(1).dividedBy(pool.fee).integerValue(import_bignumber13.default.ROUND_CEIL);
3747
3822
  }
3748
3823
  return {
3749
3824
  amount: (0, import_stargate.coins)(expectedAmount.toFixed(0).toString(), feeDenom),
@@ -4264,13 +4339,13 @@ var import_react25 = require("@chakra-ui/react");
4264
4339
  var import_lu3 = require("react-icons/lu");
4265
4340
  var import_react26 = require("react");
4266
4341
  var import_core = require("@interchain-kit/core");
4267
- var import_bignumber13 = __toESM(require("bignumber.js"));
4342
+ var import_bignumber14 = __toESM(require("bignumber.js"));
4268
4343
  var import_bzejs5 = require("@bze/bzejs");
4269
4344
  var import_jsx_runtime5 = require("react/jsx-runtime");
4270
4345
  var validateAmount = (amount, coin, onError) => {
4271
4346
  if (!coin) return;
4272
4347
  if (amount === "") return;
4273
- const amountNumber = (0, import_bignumber13.default)(amount);
4348
+ const amountNumber = (0, import_bignumber14.default)(amount);
4274
4349
  if (amountNumber.isNaN()) {
4275
4350
  onError("Invalid amount");
4276
4351
  return;
@@ -5046,6 +5121,7 @@ function SettingsToggle({ accentColor }) {
5046
5121
  useBalances,
5047
5122
  useConnectionType,
5048
5123
  useEpochs,
5124
+ useEpochsManager,
5049
5125
  useFeeTokens,
5050
5126
  useIBCChains,
5051
5127
  useIBCTx,