@bze/bze-ui-kit 0.2.1 → 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 +17 -6
- package/dist/index.d.ts +17 -6
- package/dist/index.js +83 -18
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +125 -61
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
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:
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
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(): {
|
|
@@ -1203,4 +1214,4 @@ interface SettingsToggleProps {
|
|
|
1203
1214
|
}
|
|
1204
1215
|
declare function SettingsToggle({ accentColor }: SettingsToggleProps): react_jsx_runtime.JSX.Element;
|
|
1205
1216
|
|
|
1206
|
-
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:
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
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(): {
|
|
@@ -1203,4 +1214,4 @@ interface SettingsToggleProps {
|
|
|
1203
1214
|
}
|
|
1204
1215
|
declare function SettingsToggle({ accentColor }: SettingsToggleProps): react_jsx_runtime.JSX.Element;
|
|
1205
1216
|
|
|
1206
|
-
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
|
|
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,
|
|
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 =
|
|
3435
|
+
const mintRatio = import_bignumber10.default.minimum(baseRatio, quoteRatio);
|
|
3372
3436
|
const tokensToMint = mintRatio.multipliedBy(totalShares);
|
|
3373
|
-
return tokensToMint.integerValue(
|
|
3437
|
+
return tokensToMint.integerValue(import_bignumber10.default.ROUND_DOWN);
|
|
3374
3438
|
}, [pool, totalShares]);
|
|
3375
3439
|
return {
|
|
3376
3440
|
isLoading,
|
|
@@ -3388,11 +3452,11 @@ function useLiquidityPool(poolId) {
|
|
|
3388
3452
|
|
|
3389
3453
|
// src/hooks/useAssetsValue.ts
|
|
3390
3454
|
var import_react10 = require("react");
|
|
3391
|
-
var
|
|
3455
|
+
var import_bignumber11 = __toESM(require("bignumber.js"));
|
|
3392
3456
|
function useAssetsValue() {
|
|
3393
3457
|
const { assetsMap, usdPricesMap, balancesMap, isLoading: isLoadingPrices } = useAssetsContext();
|
|
3394
3458
|
const totalUsdValue = (0, import_react10.useCallback)((prettyBalances) => {
|
|
3395
|
-
let usdValue = (0,
|
|
3459
|
+
let usdValue = (0, import_bignumber11.default)(0);
|
|
3396
3460
|
prettyBalances.map((denomBalance) => {
|
|
3397
3461
|
const assetPrice = usdPricesMap.get(denomBalance.denom);
|
|
3398
3462
|
if (assetPrice && assetPrice.gt(0)) {
|
|
@@ -3421,12 +3485,12 @@ function useAssetsValue() {
|
|
|
3421
3485
|
}, [usdPricesMap, assetsMap]);
|
|
3422
3486
|
const compareValues = (0, import_react10.useCallback)((a, b) => {
|
|
3423
3487
|
var _a2;
|
|
3424
|
-
let aValue = (0,
|
|
3488
|
+
let aValue = (0, import_bignumber11.default)(0);
|
|
3425
3489
|
const aPrice = usdPricesMap.get(a.denom);
|
|
3426
3490
|
if (aPrice) {
|
|
3427
3491
|
aValue = aPrice.multipliedBy(a.amount);
|
|
3428
3492
|
}
|
|
3429
|
-
let bValue = (0,
|
|
3493
|
+
let bValue = (0, import_bignumber11.default)(0);
|
|
3430
3494
|
const bPrice = usdPricesMap.get(b.denom);
|
|
3431
3495
|
if (bPrice) {
|
|
3432
3496
|
bValue = bPrice.multipliedBy(b.amount);
|
|
@@ -3480,7 +3544,7 @@ function useFeeTokens() {
|
|
|
3480
3544
|
|
|
3481
3545
|
// src/hooks/useMarkets.ts
|
|
3482
3546
|
var import_react12 = require("react");
|
|
3483
|
-
var
|
|
3547
|
+
var import_bignumber12 = __toESM(require("bignumber.js"));
|
|
3484
3548
|
function useMarkets() {
|
|
3485
3549
|
const { marketsMap, marketsDataMap, updateMarkets, isLoading } = useAssetsContext();
|
|
3486
3550
|
const markets = (0, import_react12.useMemo)(() => {
|
|
@@ -3532,7 +3596,7 @@ function useAssetMarkets(denom) {
|
|
|
3532
3596
|
return acc.plus(market.quote_volume || 0);
|
|
3533
3597
|
}
|
|
3534
3598
|
return acc;
|
|
3535
|
-
}, new
|
|
3599
|
+
}, new import_bignumber12.default(0));
|
|
3536
3600
|
}, [assetMarketsData, denom]);
|
|
3537
3601
|
return {
|
|
3538
3602
|
isLoading,
|
|
@@ -3683,7 +3747,7 @@ var useToast = () => {
|
|
|
3683
3747
|
// src/hooks/useTx.tsx
|
|
3684
3748
|
var import_stargate = require("@cosmjs/stargate");
|
|
3685
3749
|
var import_react15 = require("@interchain-kit/react");
|
|
3686
|
-
var
|
|
3750
|
+
var import_bignumber13 = __toESM(require("bignumber.js"));
|
|
3687
3751
|
var import_react16 = require("react");
|
|
3688
3752
|
var TxStatus = /* @__PURE__ */ ((TxStatus2) => {
|
|
3689
3753
|
TxStatus2["Failed"] = "Transaction Failed";
|
|
@@ -3735,7 +3799,7 @@ var useTx = (chainName, isCosmos, isIBC) => {
|
|
|
3735
3799
|
const gasPrice = 0.02;
|
|
3736
3800
|
const nativeDenom = getChainNativeAssetDenom();
|
|
3737
3801
|
const gasEstimated = await signingClient.simulate(address, messages, memo);
|
|
3738
|
-
const gasAmount = (0,
|
|
3802
|
+
const gasAmount = (0, import_bignumber13.default)(gasEstimated).multipliedBy(1.5);
|
|
3739
3803
|
const gasPayment = gasAmount.multipliedBy(gasPrice);
|
|
3740
3804
|
const nativeFee = {
|
|
3741
3805
|
amount: (0, import_stargate.coins)(gasPayment.toFixed(0).toString(), nativeDenom),
|
|
@@ -3752,9 +3816,9 @@ var useTx = (chainName, isCosmos, isIBC) => {
|
|
|
3752
3816
|
if (!expectedAmount.isPositive()) {
|
|
3753
3817
|
return nativeFee;
|
|
3754
3818
|
}
|
|
3755
|
-
expectedAmount = expectedAmount.multipliedBy(1.5).integerValue(
|
|
3819
|
+
expectedAmount = expectedAmount.multipliedBy(1.5).integerValue(import_bignumber13.default.ROUND_FLOOR);
|
|
3756
3820
|
if (expectedAmount.multipliedBy(pool.fee).lt(1)) {
|
|
3757
|
-
expectedAmount = toBigNumber(1).dividedBy(pool.fee).integerValue(
|
|
3821
|
+
expectedAmount = toBigNumber(1).dividedBy(pool.fee).integerValue(import_bignumber13.default.ROUND_CEIL);
|
|
3758
3822
|
}
|
|
3759
3823
|
return {
|
|
3760
3824
|
amount: (0, import_stargate.coins)(expectedAmount.toFixed(0).toString(), feeDenom),
|
|
@@ -4275,13 +4339,13 @@ var import_react25 = require("@chakra-ui/react");
|
|
|
4275
4339
|
var import_lu3 = require("react-icons/lu");
|
|
4276
4340
|
var import_react26 = require("react");
|
|
4277
4341
|
var import_core = require("@interchain-kit/core");
|
|
4278
|
-
var
|
|
4342
|
+
var import_bignumber14 = __toESM(require("bignumber.js"));
|
|
4279
4343
|
var import_bzejs5 = require("@bze/bzejs");
|
|
4280
4344
|
var import_jsx_runtime5 = require("react/jsx-runtime");
|
|
4281
4345
|
var validateAmount = (amount, coin, onError) => {
|
|
4282
4346
|
if (!coin) return;
|
|
4283
4347
|
if (amount === "") return;
|
|
4284
|
-
const amountNumber = (0,
|
|
4348
|
+
const amountNumber = (0, import_bignumber14.default)(amount);
|
|
4285
4349
|
if (amountNumber.isNaN()) {
|
|
4286
4350
|
onError("Invalid amount");
|
|
4287
4351
|
return;
|
|
@@ -5057,6 +5121,7 @@ function SettingsToggle({ accentColor }) {
|
|
|
5057
5121
|
useBalances,
|
|
5058
5122
|
useConnectionType,
|
|
5059
5123
|
useEpochs,
|
|
5124
|
+
useEpochsManager,
|
|
5060
5125
|
useFeeTokens,
|
|
5061
5126
|
useIBCChains,
|
|
5062
5127
|
useIBCTx,
|