@bze/bze-ui-kit 0.4.0 → 0.4.1
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 +7 -3
- package/dist/index.d.ts +7 -3
- package/dist/index.js +68 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +64 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -3,7 +3,7 @@ import * as _bze_bzejs_bze_tradebin_store from '@bze/bzejs/bze/tradebin/store';
|
|
|
3
3
|
import { LiquidityPoolSDKType, AggregatedOrderSDKType, MarketSDKType, OrderSDKType } from '@bze/bzejs/bze/tradebin/store';
|
|
4
4
|
import { StakingRewardParticipantSDKType, PendingUnlockParticipantSDKType, StakingRewardSDKType } from '@bze/bzejs/bze/rewards/store';
|
|
5
5
|
import * as _bze_bzejs_cosmos_staking_v1beta1_staking from '@bze/bzejs/cosmos/staking/v1beta1/staking';
|
|
6
|
-
import { PoolSDKType, UnbondingDelegationSDKType } from '@bze/bzejs/cosmos/staking/v1beta1/staking';
|
|
6
|
+
import { PoolSDKType, DelegationResponseSDKType, UnbondingDelegationSDKType, ValidatorSDKType, BondStatus } from '@bze/bzejs/cosmos/staking/v1beta1/staking';
|
|
7
7
|
import * as _chain_registry_types from '@chain-registry/types';
|
|
8
8
|
import { Chain } from '@chain-registry/types';
|
|
9
9
|
import * as _chain_registry_v2_types from '@chain-registry/v2-types';
|
|
@@ -943,7 +943,7 @@ declare function getPendingUnlockParticipants(): Promise<QueryAllPendingUnlockPa
|
|
|
943
943
|
declare function getStakingRewardParticipantByAddress(address: string): Promise<QueryStakingRewardParticipantResponseSDKType>;
|
|
944
944
|
declare function getAddressStakingRewards(address: string): Promise<AddressRewardsStaking>;
|
|
945
945
|
|
|
946
|
-
declare const getAddressDelegations: (address: string) => Promise<
|
|
946
|
+
declare const getAddressDelegations: (address: string) => Promise<DelegationResponseSDKType[]>;
|
|
947
947
|
declare const getAddressNativeDelegatedBalance: (address: string) => Promise<Balance>;
|
|
948
948
|
declare const getAddressUnbondingDelegations: (address: string) => Promise<UnbondingDelegationSDKType[]>;
|
|
949
949
|
declare const getAddressUnbondingDelegationsSummary: (address: string) => Promise<NativeUnbondingSummary>;
|
|
@@ -959,6 +959,10 @@ declare const getStakingParams: () => Promise<_bze_bzejs_cosmos_staking_v1beta1_
|
|
|
959
959
|
bond_denom: string;
|
|
960
960
|
}>;
|
|
961
961
|
declare const getStakingPool: () => Promise<_bze_bzejs_cosmos_staking_v1beta1_staking.PoolSDKType>;
|
|
962
|
+
declare const getValidators: (status?: BondStatus) => Promise<ValidatorSDKType[]>;
|
|
963
|
+
declare const getDelegatorValidators: (address: string) => Promise<ValidatorSDKType[]>;
|
|
964
|
+
declare const getDelegatorDelegations: (address: string) => Promise<DelegationResponseSDKType[]>;
|
|
965
|
+
declare const getValidatorDelegatorRewards: (address: string, validatorAddress: string) => Promise<_bze_bzejs_cosmos_base_v1beta1_coin.DecCoinSDKType[]>;
|
|
962
966
|
|
|
963
967
|
declare function getAllTickers(): Promise<MarketData[]>;
|
|
964
968
|
declare function getMarketOrdersHistory(marketId: string, limit?: number): Promise<HistoryOrder[]>;
|
|
@@ -1260,4 +1264,4 @@ declare function SettingsToggle({ accentColor }: SettingsToggleProps): react_jsx
|
|
|
1260
1264
|
|
|
1261
1265
|
declare const TestnetBanner: () => react_jsx_runtime.JSX.Element | null;
|
|
1262
1266
|
|
|
1263
|
-
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, type BlockResults, type BurnHistoryItem, 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, type NextBurn, 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, TestnetBanner, 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, checkAddressWonRaffle, 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, getBlockDetailsByHeight, getBlockResults, getBlockTimeByHeight, getBurnerModuleAddress, getBurnerParams, getBurnerParamsWithClient, getChainAddressPrefix, getChainAssets, getChainByChainId, getChainByName, getChainExplorerURL, getChainId, getChainName, getChainNativeAssetDenom, getChains, getChartIntervalsLimit, getChartMinutes, getCurrentEpoch, getCurrentWeekEpochEndTime, getDefaultTxMemo, getDenomType, getDistributionParams, getEcosystemApps, getEpochDurationByIdentifier, getEpochsInfo, getFactoryDenomAdminAddress, getFromLocalStorage, getHardcodedLockAddress, getHashIBCTrace, getHourEpochInfo, getIBCAssetList, getIBCTraces, getIbcTransferTimeout, getJackalRestURL, getJackalRpcUrl, getKeyExpiry, getLiquidityPool, getLiquidityPools, getLockedBalances, getLockerAddress, getMarketBuyOrders, getMarketEventKey, getMarketHistory, getMarketOrder, getMarketOrderBookChangedEvent, getMarketOrders, getMarketOrdersHistory, getMarketSellOrders, getMarkets, getMinAmount, getModuleAddress, getNextBurning, getNoOfIntervalsNeeded, getNobleRestURL, getNobleRpcUrl, getOmniFlixRestURL, getOmniFlixRpcUrl, getOsmosisRestURL, getOsmosisRpcUrl, getPageRequestWithLimit, getPendingUnlockParticipants, getPeriodicEpochEndTime, getPeriodicWeekEpochEndTime, getRaffleModuleAddress, getRaffleWinners, getRaffles, 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 };
|
|
1267
|
+
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, type BlockResults, type BurnHistoryItem, 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, type NextBurn, 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, TestnetBanner, 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, checkAddressWonRaffle, 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, getBlockDetailsByHeight, getBlockResults, getBlockTimeByHeight, getBurnerModuleAddress, getBurnerParams, getBurnerParamsWithClient, getChainAddressPrefix, getChainAssets, getChainByChainId, getChainByName, getChainExplorerURL, getChainId, getChainName, getChainNativeAssetDenom, getChains, getChartIntervalsLimit, getChartMinutes, getCurrentEpoch, getCurrentWeekEpochEndTime, getDefaultTxMemo, getDelegatorDelegations, getDelegatorValidators, getDenomType, getDistributionParams, getEcosystemApps, getEpochDurationByIdentifier, getEpochsInfo, getFactoryDenomAdminAddress, getFromLocalStorage, getHardcodedLockAddress, getHashIBCTrace, getHourEpochInfo, getIBCAssetList, getIBCTraces, getIbcTransferTimeout, getJackalRestURL, getJackalRpcUrl, getKeyExpiry, getLiquidityPool, getLiquidityPools, getLockedBalances, getLockerAddress, getMarketBuyOrders, getMarketEventKey, getMarketHistory, getMarketOrder, getMarketOrderBookChangedEvent, getMarketOrders, getMarketOrdersHistory, getMarketSellOrders, getMarkets, getMinAmount, getModuleAddress, getNextBurning, getNoOfIntervalsNeeded, getNobleRestURL, getNobleRpcUrl, getOmniFlixRestURL, getOmniFlixRpcUrl, getOsmosisRestURL, getOsmosisRpcUrl, getPageRequestWithLimit, getPendingUnlockParticipants, getPeriodicEpochEndTime, getPeriodicWeekEpochEndTime, getRaffleModuleAddress, getRaffleWinners, getRaffles, getRestClient, getRestURL, getRpcURL, getSettings, getStakingParams, getStakingPool, getStakingRewardParticipantByAddress, getStakingRewards, getTradingViewIntervals, getUSDCDenom, getValidatorDelegatorRewards, getValidatorPageUrl, getValidatorSupportedDenoms, getValidators, 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
|
@@ -3,7 +3,7 @@ import * as _bze_bzejs_bze_tradebin_store from '@bze/bzejs/bze/tradebin/store';
|
|
|
3
3
|
import { LiquidityPoolSDKType, AggregatedOrderSDKType, MarketSDKType, OrderSDKType } from '@bze/bzejs/bze/tradebin/store';
|
|
4
4
|
import { StakingRewardParticipantSDKType, PendingUnlockParticipantSDKType, StakingRewardSDKType } from '@bze/bzejs/bze/rewards/store';
|
|
5
5
|
import * as _bze_bzejs_cosmos_staking_v1beta1_staking from '@bze/bzejs/cosmos/staking/v1beta1/staking';
|
|
6
|
-
import { PoolSDKType, UnbondingDelegationSDKType } from '@bze/bzejs/cosmos/staking/v1beta1/staking';
|
|
6
|
+
import { PoolSDKType, DelegationResponseSDKType, UnbondingDelegationSDKType, ValidatorSDKType, BondStatus } from '@bze/bzejs/cosmos/staking/v1beta1/staking';
|
|
7
7
|
import * as _chain_registry_types from '@chain-registry/types';
|
|
8
8
|
import { Chain } from '@chain-registry/types';
|
|
9
9
|
import * as _chain_registry_v2_types from '@chain-registry/v2-types';
|
|
@@ -943,7 +943,7 @@ declare function getPendingUnlockParticipants(): Promise<QueryAllPendingUnlockPa
|
|
|
943
943
|
declare function getStakingRewardParticipantByAddress(address: string): Promise<QueryStakingRewardParticipantResponseSDKType>;
|
|
944
944
|
declare function getAddressStakingRewards(address: string): Promise<AddressRewardsStaking>;
|
|
945
945
|
|
|
946
|
-
declare const getAddressDelegations: (address: string) => Promise<
|
|
946
|
+
declare const getAddressDelegations: (address: string) => Promise<DelegationResponseSDKType[]>;
|
|
947
947
|
declare const getAddressNativeDelegatedBalance: (address: string) => Promise<Balance>;
|
|
948
948
|
declare const getAddressUnbondingDelegations: (address: string) => Promise<UnbondingDelegationSDKType[]>;
|
|
949
949
|
declare const getAddressUnbondingDelegationsSummary: (address: string) => Promise<NativeUnbondingSummary>;
|
|
@@ -959,6 +959,10 @@ declare const getStakingParams: () => Promise<_bze_bzejs_cosmos_staking_v1beta1_
|
|
|
959
959
|
bond_denom: string;
|
|
960
960
|
}>;
|
|
961
961
|
declare const getStakingPool: () => Promise<_bze_bzejs_cosmos_staking_v1beta1_staking.PoolSDKType>;
|
|
962
|
+
declare const getValidators: (status?: BondStatus) => Promise<ValidatorSDKType[]>;
|
|
963
|
+
declare const getDelegatorValidators: (address: string) => Promise<ValidatorSDKType[]>;
|
|
964
|
+
declare const getDelegatorDelegations: (address: string) => Promise<DelegationResponseSDKType[]>;
|
|
965
|
+
declare const getValidatorDelegatorRewards: (address: string, validatorAddress: string) => Promise<_bze_bzejs_cosmos_base_v1beta1_coin.DecCoinSDKType[]>;
|
|
962
966
|
|
|
963
967
|
declare function getAllTickers(): Promise<MarketData[]>;
|
|
964
968
|
declare function getMarketOrdersHistory(marketId: string, limit?: number): Promise<HistoryOrder[]>;
|
|
@@ -1260,4 +1264,4 @@ declare function SettingsToggle({ accentColor }: SettingsToggleProps): react_jsx
|
|
|
1260
1264
|
|
|
1261
1265
|
declare const TestnetBanner: () => react_jsx_runtime.JSX.Element | null;
|
|
1262
1266
|
|
|
1263
|
-
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, type BlockResults, type BurnHistoryItem, 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, type NextBurn, 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, TestnetBanner, 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, checkAddressWonRaffle, 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, getBlockDetailsByHeight, getBlockResults, getBlockTimeByHeight, getBurnerModuleAddress, getBurnerParams, getBurnerParamsWithClient, getChainAddressPrefix, getChainAssets, getChainByChainId, getChainByName, getChainExplorerURL, getChainId, getChainName, getChainNativeAssetDenom, getChains, getChartIntervalsLimit, getChartMinutes, getCurrentEpoch, getCurrentWeekEpochEndTime, getDefaultTxMemo, getDenomType, getDistributionParams, getEcosystemApps, getEpochDurationByIdentifier, getEpochsInfo, getFactoryDenomAdminAddress, getFromLocalStorage, getHardcodedLockAddress, getHashIBCTrace, getHourEpochInfo, getIBCAssetList, getIBCTraces, getIbcTransferTimeout, getJackalRestURL, getJackalRpcUrl, getKeyExpiry, getLiquidityPool, getLiquidityPools, getLockedBalances, getLockerAddress, getMarketBuyOrders, getMarketEventKey, getMarketHistory, getMarketOrder, getMarketOrderBookChangedEvent, getMarketOrders, getMarketOrdersHistory, getMarketSellOrders, getMarkets, getMinAmount, getModuleAddress, getNextBurning, getNoOfIntervalsNeeded, getNobleRestURL, getNobleRpcUrl, getOmniFlixRestURL, getOmniFlixRpcUrl, getOsmosisRestURL, getOsmosisRpcUrl, getPageRequestWithLimit, getPendingUnlockParticipants, getPeriodicEpochEndTime, getPeriodicWeekEpochEndTime, getRaffleModuleAddress, getRaffleWinners, getRaffles, 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 };
|
|
1267
|
+
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, type BlockResults, type BurnHistoryItem, 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, type NextBurn, 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, TestnetBanner, 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, checkAddressWonRaffle, 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, getBlockDetailsByHeight, getBlockResults, getBlockTimeByHeight, getBurnerModuleAddress, getBurnerParams, getBurnerParamsWithClient, getChainAddressPrefix, getChainAssets, getChainByChainId, getChainByName, getChainExplorerURL, getChainId, getChainName, getChainNativeAssetDenom, getChains, getChartIntervalsLimit, getChartMinutes, getCurrentEpoch, getCurrentWeekEpochEndTime, getDefaultTxMemo, getDelegatorDelegations, getDelegatorValidators, getDenomType, getDistributionParams, getEcosystemApps, getEpochDurationByIdentifier, getEpochsInfo, getFactoryDenomAdminAddress, getFromLocalStorage, getHardcodedLockAddress, getHashIBCTrace, getHourEpochInfo, getIBCAssetList, getIBCTraces, getIbcTransferTimeout, getJackalRestURL, getJackalRpcUrl, getKeyExpiry, getLiquidityPool, getLiquidityPools, getLockedBalances, getLockerAddress, getMarketBuyOrders, getMarketEventKey, getMarketHistory, getMarketOrder, getMarketOrderBookChangedEvent, getMarketOrders, getMarketOrdersHistory, getMarketSellOrders, getMarkets, getMinAmount, getModuleAddress, getNextBurning, getNoOfIntervalsNeeded, getNobleRestURL, getNobleRpcUrl, getOmniFlixRestURL, getOmniFlixRpcUrl, getOsmosisRestURL, getOsmosisRpcUrl, getPageRequestWithLimit, getPendingUnlockParticipants, getPeriodicEpochEndTime, getPeriodicWeekEpochEndTime, getRaffleModuleAddress, getRaffleWinners, getRaffles, getRestClient, getRestURL, getRpcURL, getSettings, getStakingParams, getStakingPool, getStakingRewardParticipantByAddress, getStakingRewards, getTradingViewIntervals, getUSDCDenom, getValidatorDelegatorRewards, getValidatorPageUrl, getValidatorSupportedDenoms, getValidators, 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
|
@@ -183,6 +183,8 @@ __export(index_exports, {
|
|
|
183
183
|
getCurrentEpoch: () => getCurrentEpoch,
|
|
184
184
|
getCurrentWeekEpochEndTime: () => getCurrentWeekEpochEndTime,
|
|
185
185
|
getDefaultTxMemo: () => getDefaultTxMemo,
|
|
186
|
+
getDelegatorDelegations: () => getDelegatorDelegations,
|
|
187
|
+
getDelegatorValidators: () => getDelegatorValidators,
|
|
186
188
|
getDenomType: () => getDenomType,
|
|
187
189
|
getDistributionParams: () => getDistributionParams,
|
|
188
190
|
getEcosystemApps: () => getEcosystemApps,
|
|
@@ -239,8 +241,10 @@ __export(index_exports, {
|
|
|
239
241
|
getStakingRewards: () => getStakingRewards,
|
|
240
242
|
getTradingViewIntervals: () => getTradingViewIntervals,
|
|
241
243
|
getUSDCDenom: () => getUSDCDenom,
|
|
244
|
+
getValidatorDelegatorRewards: () => getValidatorDelegatorRewards,
|
|
242
245
|
getValidatorPageUrl: () => getValidatorPageUrl,
|
|
243
246
|
getValidatorSupportedDenoms: () => getValidatorSupportedDenoms,
|
|
247
|
+
getValidators: () => getValidators,
|
|
244
248
|
getWalletChainsNames: () => getWalletChainsNames,
|
|
245
249
|
getWeekEpochInfo: () => getWeekEpochInfo,
|
|
246
250
|
intlDateFormat: () => intlDateFormat,
|
|
@@ -2880,6 +2884,7 @@ async function mapPendingUnlock(pending) {
|
|
|
2880
2884
|
// src/query/staking.ts
|
|
2881
2885
|
var import_pagination5 = require("@bze/bzejs/cosmos/base/query/v1beta1/pagination");
|
|
2882
2886
|
var import_bignumber7 = __toESM(require("bignumber.js"));
|
|
2887
|
+
var import_staking = require("@bze/bzejs/cosmos/staking/v1beta1/staking");
|
|
2883
2888
|
var getAddressDelegations = async (address) => {
|
|
2884
2889
|
try {
|
|
2885
2890
|
const client = await getRestClient();
|
|
@@ -3046,6 +3051,65 @@ var getStakingPool = async () => {
|
|
|
3046
3051
|
};
|
|
3047
3052
|
}
|
|
3048
3053
|
};
|
|
3054
|
+
var getValidators = async (status = import_staking.BondStatus.BOND_STATUS_BONDED) => {
|
|
3055
|
+
try {
|
|
3056
|
+
const client = await getRestClient();
|
|
3057
|
+
const statusStr = status === import_staking.BondStatus.BOND_STATUS_BONDED ? "BOND_STATUS_BONDED" : status === import_staking.BondStatus.BOND_STATUS_UNBONDING ? "BOND_STATUS_UNBONDING" : status === import_staking.BondStatus.BOND_STATUS_UNBONDED ? "BOND_STATUS_UNBONDED" : "";
|
|
3058
|
+
const resp = await client.cosmos.staking.v1beta1.validators({
|
|
3059
|
+
status: statusStr,
|
|
3060
|
+
pagination: import_pagination5.PageRequest.fromPartial({
|
|
3061
|
+
limit: BigInt(500)
|
|
3062
|
+
})
|
|
3063
|
+
});
|
|
3064
|
+
return resp.validators;
|
|
3065
|
+
} catch (e) {
|
|
3066
|
+
console.error("failed to get validators", e);
|
|
3067
|
+
return [];
|
|
3068
|
+
}
|
|
3069
|
+
};
|
|
3070
|
+
var getDelegatorValidators = async (address) => {
|
|
3071
|
+
try {
|
|
3072
|
+
const client = await getRestClient();
|
|
3073
|
+
const resp = await client.cosmos.staking.v1beta1.delegatorValidators({
|
|
3074
|
+
delegatorAddr: address,
|
|
3075
|
+
pagination: import_pagination5.PageRequest.fromPartial({
|
|
3076
|
+
limit: BigInt(500)
|
|
3077
|
+
})
|
|
3078
|
+
});
|
|
3079
|
+
return resp.validators;
|
|
3080
|
+
} catch (e) {
|
|
3081
|
+
console.error("failed to get delegator validators", e);
|
|
3082
|
+
return [];
|
|
3083
|
+
}
|
|
3084
|
+
};
|
|
3085
|
+
var getDelegatorDelegations = async (address) => {
|
|
3086
|
+
try {
|
|
3087
|
+
const client = await getRestClient();
|
|
3088
|
+
const resp = await client.cosmos.staking.v1beta1.delegatorDelegations({
|
|
3089
|
+
delegatorAddr: address,
|
|
3090
|
+
pagination: import_pagination5.PageRequest.fromPartial({
|
|
3091
|
+
limit: BigInt(1e3)
|
|
3092
|
+
})
|
|
3093
|
+
});
|
|
3094
|
+
return resp.delegation_responses;
|
|
3095
|
+
} catch (e) {
|
|
3096
|
+
console.error("failed to get delegator delegations", e);
|
|
3097
|
+
return [];
|
|
3098
|
+
}
|
|
3099
|
+
};
|
|
3100
|
+
var getValidatorDelegatorRewards = async (address, validatorAddress) => {
|
|
3101
|
+
try {
|
|
3102
|
+
const client = await getRestClient();
|
|
3103
|
+
const resp = await client.cosmos.distribution.v1beta1.delegationRewards({
|
|
3104
|
+
delegatorAddress: address,
|
|
3105
|
+
validatorAddress
|
|
3106
|
+
});
|
|
3107
|
+
return resp.rewards;
|
|
3108
|
+
} catch (e) {
|
|
3109
|
+
console.error("failed to get validator delegator rewards", e);
|
|
3110
|
+
return [];
|
|
3111
|
+
}
|
|
3112
|
+
};
|
|
3049
3113
|
|
|
3050
3114
|
// src/query/aggregator.ts
|
|
3051
3115
|
var getAllTickersUrl = () => {
|
|
@@ -5273,6 +5337,8 @@ var TestnetBanner = () => {
|
|
|
5273
5337
|
getCurrentEpoch,
|
|
5274
5338
|
getCurrentWeekEpochEndTime,
|
|
5275
5339
|
getDefaultTxMemo,
|
|
5340
|
+
getDelegatorDelegations,
|
|
5341
|
+
getDelegatorValidators,
|
|
5276
5342
|
getDenomType,
|
|
5277
5343
|
getDistributionParams,
|
|
5278
5344
|
getEcosystemApps,
|
|
@@ -5329,8 +5395,10 @@ var TestnetBanner = () => {
|
|
|
5329
5395
|
getStakingRewards,
|
|
5330
5396
|
getTradingViewIntervals,
|
|
5331
5397
|
getUSDCDenom,
|
|
5398
|
+
getValidatorDelegatorRewards,
|
|
5332
5399
|
getValidatorPageUrl,
|
|
5333
5400
|
getValidatorSupportedDenoms,
|
|
5401
|
+
getValidators,
|
|
5334
5402
|
getWalletChainsNames,
|
|
5335
5403
|
getWeekEpochInfo,
|
|
5336
5404
|
intlDateFormat,
|