@bze/bze-ui-kit 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,1172 @@
1
+ import BigNumber from 'bignumber.js';
2
+ import * as _bze_bzejs_bze_tradebin_store from '@bze/bzejs/bze/tradebin/store';
3
+ import { LiquidityPoolSDKType, AggregatedOrderSDKType, MarketSDKType, OrderSDKType } from '@bze/bzejs/bze/tradebin/store';
4
+ import { StakingRewardParticipantSDKType, PendingUnlockParticipantSDKType, StakingRewardSDKType } from '@bze/bzejs/bze/rewards/store';
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';
7
+ import * as _chain_registry_types from '@chain-registry/types';
8
+ import { Chain } from '@chain-registry/types';
9
+ import * as _chain_registry_v2_types from '@chain-registry/v2-types';
10
+ import { IconType } from 'react-icons';
11
+ import * as _bze_bzejs_cosmos_upgrade_v1beta1_query_lcd from '@bze/bzejs/cosmos/upgrade/v1beta1/query.lcd';
12
+ import * as _bze_bzejs_cosmos_tx_v1beta1_service_lcd from '@bze/bzejs/cosmos/tx/v1beta1/service.lcd';
13
+ import * as _bze_bzejs_cosmos_staking_v1beta1_query_lcd from '@bze/bzejs/cosmos/staking/v1beta1/query.lcd';
14
+ import * as _bze_bzejs_cosmos_protocolpool_v1_query_lcd from '@bze/bzejs/cosmos/protocolpool/v1/query.lcd';
15
+ import * as _bze_bzejs_cosmos_params_v1beta1_query_lcd from '@bze/bzejs/cosmos/params/v1beta1/query.lcd';
16
+ import * as _bze_bzejs_cosmos_mint_v1beta1_query_lcd from '@bze/bzejs/cosmos/mint/v1beta1/query.lcd';
17
+ import * as _bze_bzejs_cosmos_group_v1_query_lcd from '@bze/bzejs/cosmos/group/v1/query.lcd';
18
+ import * as _bze_bzejs_cosmos_gov_v1beta1_query_lcd from '@bze/bzejs/cosmos/gov/v1beta1/query.lcd';
19
+ import * as _bze_bzejs_cosmos_gov_v1_query_lcd from '@bze/bzejs/cosmos/gov/v1/query.lcd';
20
+ import * as _bze_bzejs_cosmos_feegrant_v1beta1_query_lcd from '@bze/bzejs/cosmos/feegrant/v1beta1/query.lcd';
21
+ import * as _bze_bzejs_cosmos_epochs_v1beta1_query_lcd from '@bze/bzejs/cosmos/epochs/v1beta1/query.lcd';
22
+ import * as _bze_bzejs_cosmos_distribution_v1beta1_query_lcd from '@bze/bzejs/cosmos/distribution/v1beta1/query.lcd';
23
+ import * as _bze_bzejs_cosmos_consensus_v1_query_lcd from '@bze/bzejs/cosmos/consensus/v1/query.lcd';
24
+ import * as _bze_bzejs_cosmos_circuit_v1_query_lcd from '@bze/bzejs/cosmos/circuit/v1/query.lcd';
25
+ import * as _bze_bzejs_cosmos_base_tendermint_v1beta1_query_lcd from '@bze/bzejs/cosmos/base/tendermint/v1beta1/query.lcd';
26
+ import * as _bze_bzejs_cosmos_base_node_v1beta1_query_lcd from '@bze/bzejs/cosmos/base/node/v1beta1/query.lcd';
27
+ import * as _bze_bzejs_cosmos_bank_v1beta1_query_lcd from '@bze/bzejs/cosmos/bank/v1beta1/query.lcd';
28
+ import * as _bze_bzejs_cosmos_authz_v1beta1_query_lcd from '@bze/bzejs/cosmos/authz/v1beta1/query.lcd';
29
+ import * as _bze_bzejs_cosmos_auth_v1beta1_query_lcd from '@bze/bzejs/cosmos/auth/v1beta1/query.lcd';
30
+ import * as _bze_bzejs_bze_txfeecollector_query_lcd from '@bze/bzejs/bze/txfeecollector/query.lcd';
31
+ import * as _bze_bzejs_bze_tradebin_query_lcd from '@bze/bzejs/bze/tradebin/query.lcd';
32
+ import * as _bze_bzejs_bze_tokenfactory_query_lcd from '@bze/bzejs/bze/tokenfactory/query.lcd';
33
+ import * as _bze_bzejs_bze_rewards_query_lcd from '@bze/bzejs/bze/rewards/query.lcd';
34
+ import * as _bze_bzejs_bze_epochs_query_lcd from '@bze/bzejs/bze/epochs/query.lcd';
35
+ import * as _bze_bzejs_bze_cointrunk_query_lcd from '@bze/bzejs/bze/cointrunk/query.lcd';
36
+ import * as _bze_bzejs_bze_burner_query_lcd from '@bze/bzejs/bze/burner/query.lcd';
37
+ import { bze } from '@bze/bzejs';
38
+ import { PageRequest } from '@bze/bzejs/cosmos/base/query/v1beta1/pagination';
39
+ import * as _bze_bzejs_cosmos_base_v1beta1_coin from '@bze/bzejs/cosmos/base/v1beta1/coin';
40
+ import { Coin } from '@bze/bzejs/cosmos/base/v1beta1/coin';
41
+ import { ParamsSDKType } from '@bze/bzejs/bze/burner/params';
42
+ import { QueryAllBurnedCoinsResponseSDKType } from '@bze/bzejs/bze/burner/query';
43
+ import * as _bze_bzejs_cosmos_bank_v1beta1_bank from '@bze/bzejs/cosmos/bank/v1beta1/bank';
44
+ import { QueryEpochsInfoResponseSDKType } from '@bze/bzejs/bze/epochs/query';
45
+ import * as _bze_bzejs_bze_epochs_epoch from '@bze/bzejs/bze/epochs/epoch';
46
+ import { EpochInfoSDKType } from '@bze/bzejs/bze/epochs/epoch';
47
+ import { QueryUserMarketOrdersResponseSDKType, QueryMarketAggregatedOrdersResponseSDKType, QueryMarketHistoryResponseSDKType, QueryMarketOrderResponseSDKType } from '@bze/bzejs/bze/tradebin/query';
48
+ import { QueryAllPendingUnlockParticipantsResponseSDKType, QueryStakingRewardParticipantResponseSDKType, QueryAllStakingRewardsResponseSDKType } from '@bze/bzejs/bze/rewards/query';
49
+ import * as _bze_bzejs_cosmos_distribution_v1beta1_distribution from '@bze/bzejs/cosmos/distribution/v1beta1/distribution';
50
+ import * as _bze_bzejs_cosmos_distribution_v1beta1_query from '@bze/bzejs/cosmos/distribution/v1beta1/query';
51
+ import * as react from 'react';
52
+ import { PropsWithChildren } from 'react';
53
+ import { DeliverTxResponse } from '@cosmjs/stargate';
54
+ import { StdFee, EncodeObject } from 'interchainjs/types';
55
+ import * as react_jsx_runtime from 'react/jsx-runtime';
56
+ import { TextProps } from '@chakra-ui/react';
57
+
58
+ declare const TTL_NO_EXPIRY = 0;
59
+ declare const setStorageKeyVersion: (version: string) => void;
60
+ declare const getFromLocalStorage: (key: string) => string | null;
61
+ declare const setInLocalStorage: (key: string, data: string, ttl: number) => boolean;
62
+ declare const removeFromLocalStorage: (key: string) => void;
63
+ declare const getKeyExpiry: (key: string) => Date | null;
64
+ declare const setKeyExpiry: (key: string, expiry: Date) => boolean;
65
+
66
+ declare const TOKEN_LOGO_PLACEHOLDER = "/images/token.svg";
67
+ declare const BZE_CIRCLE_LOGO = "/images/bze_alternative_512x512.png";
68
+ declare const DEFAULT_TX_MEMO: string;
69
+ declare const setDefaultTxMemo: (memo: string) => void;
70
+ declare const getDefaultTxMemo: () => string;
71
+
72
+ declare const LP_ASSETS_DECIMALS = 12;
73
+ interface Asset {
74
+ type: string;
75
+ denom: string;
76
+ decimals: number;
77
+ name: string;
78
+ ticker: string;
79
+ logo: string;
80
+ stable: boolean;
81
+ verified: boolean;
82
+ supply: bigint;
83
+ IBCData?: IBCData;
84
+ }
85
+ interface IBCData {
86
+ chain: IBCChainData;
87
+ counterparty: IBCCounterparty;
88
+ }
89
+ interface IBCCounterparty {
90
+ chainName: string;
91
+ chainPrettyName: string;
92
+ channelId: string;
93
+ baseDenom: string;
94
+ }
95
+ interface IBCChainData {
96
+ channelId: string;
97
+ }
98
+ interface IbcTransitionMock {
99
+ type: "ibc";
100
+ counterparty: {
101
+ chain_name: string;
102
+ base_denom: string;
103
+ channel_id: string;
104
+ };
105
+ chain: {
106
+ channel_id: string;
107
+ path?: string;
108
+ };
109
+ }
110
+ interface ChainAssets {
111
+ assets: Map<string, Asset>;
112
+ ibcData: Map<string, IBCData>;
113
+ }
114
+
115
+ interface Balance {
116
+ denom: string;
117
+ amount: BigNumber;
118
+ }
119
+ type PrettyBalance = Balance;
120
+
121
+ interface TradeViewChart {
122
+ "time": string;
123
+ "low": number;
124
+ "open": number;
125
+ "high": number;
126
+ "close": number;
127
+ "value": number;
128
+ }
129
+
130
+ interface HistoryOrder {
131
+ "order_id": number;
132
+ "price": string | number;
133
+ "base_volume": string | number;
134
+ "quote_volume": string | number;
135
+ "executed_at": string;
136
+ "order_type": string;
137
+ "maker": string;
138
+ "taker": string;
139
+ }
140
+ interface SwapHistory {
141
+ "order_id": number;
142
+ "price": string | number;
143
+ "base_volume": string | number;
144
+ "quote_volume": string | number;
145
+ "executed_at": string;
146
+ "order_type": string;
147
+ "maker": string;
148
+ "taker": string;
149
+ "pool_id": string;
150
+ "base": string;
151
+ "quote": string;
152
+ }
153
+
154
+ interface DenomTrace {
155
+ base_denom: string;
156
+ path: string;
157
+ }
158
+ interface CounterpartyChainForChannel {
159
+ channelId: string;
160
+ chainId: string;
161
+ }
162
+
163
+ interface LiquidityPoolData {
164
+ usdVolume: BigNumber;
165
+ usdValue: BigNumber;
166
+ usdFees: BigNumber;
167
+ isComplete: boolean;
168
+ apr: string;
169
+ poolId: string;
170
+ base: string;
171
+ quote: string;
172
+ baseVolume: BigNumber;
173
+ quoteVolume: BigNumber;
174
+ }
175
+ interface UserPoolData {
176
+ userLiquidityUsd: BigNumber;
177
+ userSharesPercentage: number;
178
+ }
179
+ interface SwapRouteResult {
180
+ route: string[];
181
+ path: string[];
182
+ pools: LiquidityPoolSDKType[];
183
+ expectedOutput: BigNumber;
184
+ priceImpact: BigNumber;
185
+ totalFees: BigNumber;
186
+ feesPerHop: BigNumber[];
187
+ }
188
+
189
+ declare const ORDER_TYPE_BUY = "buy";
190
+ declare const ORDER_TYPE_SELL = "sell";
191
+ type Market = MarketSDKType;
192
+ interface MarketData {
193
+ base: string;
194
+ quote: string;
195
+ market_id: string;
196
+ last_price: number;
197
+ base_volume: number;
198
+ quote_volume: number;
199
+ bid: number;
200
+ ask: number;
201
+ high: number;
202
+ low: number;
203
+ open_price: number;
204
+ change: number;
205
+ }
206
+ interface ActiveOrders {
207
+ buyOrders: AggregatedOrderSDKType[];
208
+ sellOrders: AggregatedOrderSDKType[];
209
+ }
210
+
211
+ interface PriceApiResponse {
212
+ denom: string;
213
+ price: number;
214
+ price_denom: string;
215
+ }
216
+
217
+ interface ValidationResult {
218
+ isValid: boolean;
219
+ error?: string;
220
+ }
221
+ interface BeeZeeEndpoints {
222
+ restEndpoint: string;
223
+ rpcEndpoint: string;
224
+ }
225
+ interface AppSettings {
226
+ endpoints: BeeZeeEndpoints;
227
+ preferredFeeDenom?: string;
228
+ }
229
+ interface EndpointValidationResults {
230
+ rest?: ValidationResult;
231
+ rpc?: ValidationResult;
232
+ }
233
+ declare const CONNECTION_TYPE_WS = 2;
234
+ declare const CONNECTION_TYPE_POLLING = 1;
235
+ declare const CONNECTION_TYPE_NONE = 0;
236
+ type ConnectionType = 0 | 1 | 2;
237
+
238
+ interface NativeStakingData {
239
+ averageApr: string;
240
+ unlockDuration: string;
241
+ totalStaked: Balance;
242
+ minAmount: Balance;
243
+ averageDailyDistribution: Balance;
244
+ currentStaking?: UserNativeStakingData;
245
+ }
246
+ interface UserNativeStakingData {
247
+ staked: Balance;
248
+ unbonding: NativeUnbondingSummary;
249
+ pendingRewards: UserNativeStakingRewards;
250
+ }
251
+ interface UserNativeStakingRewards {
252
+ total: Balance;
253
+ validators: string[];
254
+ }
255
+ interface NativeUnbondingSummary {
256
+ total: Balance;
257
+ firstUnlock: {
258
+ amount?: Balance;
259
+ unlockTime?: Date;
260
+ };
261
+ }
262
+ interface AddressRewardsStaking {
263
+ address: string;
264
+ active: Map<string, StakingRewardParticipantSDKType>;
265
+ unlocking: Map<string, ExtendedPendingUnlockParticipantSDKType[]>;
266
+ }
267
+ interface ExtendedPendingUnlockParticipantSDKType extends PendingUnlockParticipantSDKType {
268
+ unlockEpoch: BigNumber;
269
+ rewardId: string;
270
+ }
271
+
272
+ interface AddressValidationResult {
273
+ isValid: boolean;
274
+ message: string;
275
+ }
276
+
277
+ interface Attribute {
278
+ key: string;
279
+ value: string;
280
+ index: boolean;
281
+ }
282
+ interface TendermintEvent {
283
+ type: string;
284
+ attributes: Attribute[];
285
+ }
286
+ interface InternalEvent {
287
+ marketId?: string;
288
+ blockHeight?: number;
289
+ }
290
+ type EventCallback = (event?: InternalEvent) => void;
291
+ declare const CURRENT_WALLET_BALANCE_EVENT = "current_wallet_balance";
292
+ declare const ORDER_EXECUTED_EVENT = "order_executed";
293
+ declare const ORDER_BOOK_CHANGED_EVENT = "order_book_changed";
294
+ declare const SUPPLY_CHANGED_EVENT = "supply_changed";
295
+ declare const SWAP_EXECUTED_EVENT = "swap_executed";
296
+ declare const NEXT_BURN_CHANGED_EVENT = "next_burn_changed";
297
+ declare const RAFFLE_CHANGED_EVENT = "raffle_changed";
298
+ declare const LOCK_CHANGED_EVENT = "lock_changed";
299
+ declare const EPOCH_START_EVENT = "epoch_start";
300
+
301
+ declare function toBigNumber(amount: string | number | BigNumber | bigint): BigNumber;
302
+ declare function uAmountToAmount(amount: string | number | BigNumber | bigint | undefined, noOfDecimals: number): string;
303
+ declare function uAmountToBigNumberAmount(amount: string | number | BigNumber | bigint | undefined, noOfDecimals: number): BigNumber;
304
+ declare function amountToBigNumberUAmount(amount: string | number | BigNumber | bigint, noOfDecimals: number): BigNumber;
305
+ declare function amountToUAmount(amount: string | number | BigNumber | bigint, noOfDecimals: number): string;
306
+ declare function prettyAmount(amount: number | string | BigNumber | bigint): string;
307
+ declare const priceToUPrice: (price: BigNumber, quoteExponent: number, baseExponent: number) => string;
308
+ declare const priceToBigNumberUPrice: (price: BigNumber | number | string, quoteExponent: number, baseExponent: number) => BigNumber;
309
+ declare const uPriceToPrice: (price: BigNumber | string, quoteExponent: number, baseExponent: number) => string;
310
+ declare const uPriceToBigNumberPrice: (price: BigNumber | number | bigint | string, quoteExponent: number, baseExponent: number) => BigNumber;
311
+
312
+ declare const truncateAddress: (address: string) => string;
313
+ declare const validateBech32Address: (address: string, prefix: string) => AddressValidationResult;
314
+ declare const validateBZEBech32Address: (address: string) => AddressValidationResult;
315
+
316
+ declare const CHART_4H = "4H";
317
+ declare const CHART_1D = "1D";
318
+ declare const CHART_7D = "7D";
319
+ declare const CHART_30D = "30D";
320
+ declare const CHART_1Y = "1Y";
321
+ declare function getNoOfIntervalsNeeded(chart: string): number;
322
+ declare function getChartIntervalsLimit(chart: string): number;
323
+ declare function getChartMinutes(chart: string): 5 | 15 | 60 | 240 | 1440;
324
+
325
+ declare function addMultipleDebounce(name: string, delay: number, callback: () => void, times: number): Promise<void>;
326
+ declare function addDebounce(name: string, delay: number, callback: () => void): Promise<void>;
327
+ declare function cancelDebounce(name: string): Promise<void>;
328
+
329
+ declare const isFactoryDenom: (denom: string) => boolean;
330
+ declare const isIbcDenom: (denom: string) => boolean;
331
+ declare const isLpDenom: (denom: string) => boolean;
332
+ declare const isNativeDenom: (denom: string) => boolean;
333
+ declare const getDenomType: (denom: string) => "Factory" | "IBC" | "Native" | "LP";
334
+ declare function truncateDenom(denom: string): string;
335
+ declare const isIbcAsset: (asset: Asset) => boolean;
336
+
337
+ declare const getMarketOrderBookChangedEvent: (marketId: string) => string;
338
+ declare const getMarketEventKey: (eventType: string, marketId: string) => string;
339
+ declare const mapEventAttributes: (attributes: Attribute[]) => Record<string, string>;
340
+
341
+ declare const formatUsdAmount: (priceNum: BigNumber) => string;
342
+ declare function shortNumberFormat(amount: BigNumber): string;
343
+ declare const intlDateFormat: Intl.DateTimeFormat;
344
+ declare const formatDate: (date: Date) => string;
345
+ declare const formatTimeRemaining: (targetDate: Date) => string;
346
+ declare const formatTimeRemainingFromEpochs: (epochs: BigNumber) => string;
347
+
348
+ declare function sleep(ms: number): Promise<void>;
349
+ declare const openExternalLink: (url: string) => void;
350
+
351
+ declare const canDepositFromIBC: (ibcData: IBCData) => boolean;
352
+ declare const canSendToIBC: (ibcData: IBCData) => boolean;
353
+ /** Compute the denom on the first-hop (counterparty) chain, using only this trace. */
354
+ declare function denomOnFirstHopChainFromTrace(trace: DenomTrace): Promise<string | undefined>;
355
+ declare const getIbcTransferTimeout: () => BigNumber;
356
+
357
+ declare const calculateUserPoolData: (balance: Balance | undefined, lpAsset: Asset | undefined, poolData: LiquidityPoolData | undefined) => UserPoolData;
358
+ declare const calculatePoolOppositeAmount: (pool: LiquidityPoolSDKType, amount: string | BigNumber, isBase: boolean) => BigNumber;
359
+ declare const calculatePoolPrice: (denom: string, pool: LiquidityPoolSDKType) => BigNumber | null;
360
+ declare const createPoolId: (base: string, quote: string) => string;
361
+ declare const poolIdFromPoolDenom: (poolDenom: string) => string;
362
+
363
+ declare const createMarketId: (base: string, quote: string) => string;
364
+ declare const calculateTotalAmount: (price: string | BigNumber, amount: string | BigNumber, decimals: number) => string;
365
+ declare const calculatePricePerUnit: (amount: string | BigNumber, totalPrice: string | BigNumber, decimals: number) => string;
366
+ declare const calculateAmountFromPrice: (price: string | BigNumber, totalPrice: string | BigNumber, decimals: number) => string;
367
+ declare const getMinAmount: (uPrice: string | BigNumber, noOfDecimals: number) => BigNumber;
368
+
369
+ declare const sanitizeNumberInput: (input: string) => string;
370
+ declare const sanitizeIntegerInput: (input: string) => string;
371
+ declare const toPercentage: (dec: number | bigint | BigNumber | string) => string;
372
+
373
+ declare const calcNativeStakingApr: (pool: PoolSDKType, communityTax: string, annualProvisions: BigNumber) => string;
374
+ declare const parseUnbondingDays: (unbondingTime: string) => string;
375
+ declare const calculateRewardsStakingApr: (dailyAmount: string | number | BigNumber, staked: string | number | BigNumber) => BigNumber;
376
+ declare const calculateRewardsStakingPendingRewards: (stakingReward?: StakingRewardSDKType, userStake?: StakingRewardParticipantSDKType) => BigNumber;
377
+
378
+ declare function stringTruncateFromCenter(str: string, maxLength: number): string;
379
+ declare function removeLeadingZeros(str: string): string;
380
+
381
+ declare const prettyError: (err: string | undefined) => string | undefined;
382
+
383
+ declare function validateRestEndpoint(endpoint: string): Promise<ValidationResult>;
384
+ declare function validateRpcEndpoint(endpoint: string): Promise<ValidationResult>;
385
+ declare function validateEndpoints(restEndpoint: string, rpcEndpoint: string): Promise<{
386
+ rest: ValidationResult;
387
+ rpc: ValidationResult;
388
+ isValid: boolean;
389
+ }>;
390
+ declare function convertToWebSocketUrl(url: string): string;
391
+
392
+ declare const getValidatorSupportedDenoms: () => string[];
393
+ declare const getValidatorPageUrl: () => string;
394
+ declare const isPoolSupportedByValidator: (baseDenom: string, quoteDenom: string) => boolean;
395
+
396
+ declare const ASSET_TYPE_FACTORY = "Factory";
397
+ declare const ASSET_TYPE_IBC = "IBC";
398
+ declare const ASSET_TYPE_NATIVE = "Native";
399
+ declare const ASSET_TYPE_LP = "LP";
400
+ declare const VERIFIED_ASSETS: {
401
+ [key: string]: boolean;
402
+ };
403
+ declare const EXCLUDED_ASSETS: {
404
+ [key: string]: boolean;
405
+ };
406
+ declare const STABLE_COINS: {
407
+ [key: string]: boolean;
408
+ };
409
+ declare const getChainNativeAssetDenom: () => string;
410
+ declare const getUSDCDenom: () => string;
411
+
412
+ declare const getChainId: () => string;
413
+ declare const getChainName: () => string;
414
+ declare const isTestnetChain: () => boolean;
415
+ declare const getChains: () => _chain_registry_v2_types.Chain[];
416
+ declare const getChainByChainId: (chainId: string) => _chain_registry_v2_types.Chain | undefined;
417
+ declare const getChainByName: (name: string) => _chain_registry_v2_types.Chain | undefined;
418
+ declare const getWalletChainsNames: () => Chain[];
419
+ declare const getAssetLists: () => _chain_registry_v2_types.AssetList[];
420
+ declare const getIBCAssetList: () => _chain_registry_types.Asset[];
421
+ declare const getChainAddressPrefix: () => string;
422
+ declare const getChainExplorerURL: (chainName: string) => string;
423
+ declare const getLockerAddress: () => string;
424
+
425
+ declare function getRestURL(): string;
426
+ declare function getRpcURL(): string;
427
+ declare function getArchwayRpcURL(): string;
428
+ declare function getOsmosisRpcUrl(): string;
429
+ declare function getNobleRpcUrl(): string;
430
+ declare function getJackalRpcUrl(): string;
431
+ declare function getOmniFlixRpcUrl(): string;
432
+ declare function getAtomOneRpcUrl(): string;
433
+ declare function getArchwayRestURL(): string;
434
+ declare function getOsmosisRestURL(): string;
435
+ declare function getNobleRestURL(): string;
436
+ declare function getJackalRestURL(): string;
437
+ declare function getOmniFlixRestURL(): string;
438
+ declare function getAtomOneRestURL(): string;
439
+ declare const getAggregatorHost: () => string;
440
+
441
+ declare const SETTINGS_STORAGE_KEY = "bze_app_settings";
442
+ declare const DEFAULT_SETTINGS: AppSettings;
443
+ declare const VALIDATION_ERRORS: {
444
+ readonly EMPTY_ENDPOINT: "Endpoint cannot be empty";
445
+ readonly INVALID_URL: "Invalid URL format";
446
+ readonly INVALID_REST_PROTOCOL: "REST endpoint must use HTTP or HTTPS protocol";
447
+ readonly INVALID_RPC_PROTOCOL: "RPC endpoint must use WS or WSS protocol for WebSocket connection";
448
+ readonly CORS_ERROR: "Endpoint validation failed - unable to connect or CORS not enabled";
449
+ readonly WEBSOCKET_ERROR: "WebSocket connection failed - unable to connect to RPC endpoint";
450
+ readonly NETWORK_ERROR: "Network error - unable to validate endpoint";
451
+ };
452
+ declare const getAppName: () => string;
453
+
454
+ declare const EXCLUDED_MARKETS: {
455
+ [key: string]: boolean;
456
+ };
457
+
458
+ declare const ECOSYSTEM_MENU_LABEL = "Other";
459
+ interface EcosystemApp {
460
+ name: string;
461
+ href: string;
462
+ disabled: boolean;
463
+ icon: IconType;
464
+ }
465
+ /**
466
+ * Returns the list of ecosystem apps excluding the current app.
467
+ * Uses NEXT_PUBLIC_SITE_URL to determine which app we're running in.
468
+ */
469
+ declare const getEcosystemApps: () => EcosystemApp[];
470
+
471
+ declare const MAINNET_CHAIN_INFO_FALLBACK: {
472
+ chainId: string;
473
+ chainName: string;
474
+ chainSymbolImageUrl: string;
475
+ rpc: string;
476
+ rest: string;
477
+ nodeProvider: {
478
+ name: string;
479
+ email: string;
480
+ website: string;
481
+ };
482
+ stakeCurrency: {
483
+ coinDenom: string;
484
+ coinMinimalDenom: string;
485
+ coinDecimals: number;
486
+ coinGeckoId: string;
487
+ coinImageUrl: string;
488
+ };
489
+ bip44: {
490
+ coinType: number;
491
+ };
492
+ bech32Config: {
493
+ bech32PrefixAccAddr: string;
494
+ bech32PrefixAccPub: string;
495
+ bech32PrefixValAddr: string;
496
+ bech32PrefixValPub: string;
497
+ bech32PrefixConsAddr: string;
498
+ bech32PrefixConsPub: string;
499
+ };
500
+ currencies: {
501
+ coinDenom: string;
502
+ coinMinimalDenom: string;
503
+ coinDecimals: number;
504
+ coinGeckoId: string;
505
+ coinImageUrl: string;
506
+ }[];
507
+ feeCurrencies: {
508
+ coinDenom: string;
509
+ coinMinimalDenom: string;
510
+ coinDecimals: number;
511
+ coinGeckoId: string;
512
+ gasPriceStep: {
513
+ low: number;
514
+ average: number;
515
+ high: number;
516
+ };
517
+ coinImageUrl: string;
518
+ }[];
519
+ features: never[];
520
+ };
521
+ declare const TESTNET_CHAIN_INFO_FALLBACK: {
522
+ chainId: string;
523
+ chainName: string;
524
+ chainSymbolImageUrl: string;
525
+ rpc: string;
526
+ rest: string;
527
+ nodeProvider: {
528
+ name: string;
529
+ email: string;
530
+ website: string;
531
+ };
532
+ stakeCurrency: {
533
+ coinDenom: string;
534
+ coinMinimalDenom: string;
535
+ coinDecimals: number;
536
+ coinGeckoId: string;
537
+ coinImageUrl: string;
538
+ };
539
+ bip44: {
540
+ coinType: number;
541
+ };
542
+ bech32Config: {
543
+ bech32PrefixAccAddr: string;
544
+ bech32PrefixAccPub: string;
545
+ bech32PrefixValAddr: string;
546
+ bech32PrefixValPub: string;
547
+ bech32PrefixConsAddr: string;
548
+ bech32PrefixConsPub: string;
549
+ };
550
+ currencies: {
551
+ coinDenom: string;
552
+ coinMinimalDenom: string;
553
+ coinDecimals: number;
554
+ coinGeckoId: string;
555
+ coinImageUrl: string;
556
+ }[];
557
+ feeCurrencies: {
558
+ coinDenom: string;
559
+ coinMinimalDenom: string;
560
+ coinDecimals: number;
561
+ coinGeckoId: string;
562
+ gasPriceStep: {
563
+ low: number;
564
+ average: number;
565
+ high: number;
566
+ };
567
+ coinImageUrl: string;
568
+ }[];
569
+ features: never[];
570
+ };
571
+
572
+ declare const BZE_TESTNET_2_SUGGEST_CHAIN: {
573
+ chainId: string;
574
+ chainType: string;
575
+ chainName: string;
576
+ prettyName: string;
577
+ networkType: string;
578
+ bech32Prefix: string;
579
+ status: string;
580
+ slip44: number;
581
+ logoURIs: {
582
+ svg: string;
583
+ };
584
+ fees: {
585
+ feeTokens: {
586
+ denom: string;
587
+ fixedMinGasPrice: number;
588
+ lowGasPrice: number;
589
+ averageGasPrice: number;
590
+ highGasPrice: number;
591
+ }[];
592
+ };
593
+ keyAlgos: string[];
594
+ staking: {
595
+ stakingTokens: {
596
+ denom: string;
597
+ }[];
598
+ };
599
+ explorers: {
600
+ kind: string;
601
+ url: string;
602
+ tx_page: string;
603
+ }[];
604
+ codebase: {
605
+ git_repo: string;
606
+ recommended_version: string;
607
+ compatible_versions: string[];
608
+ binaries: {
609
+ "darwin/amd64": string;
610
+ "darwin/arm64": string;
611
+ "linux/amd64": string;
612
+ "linux/arm64": string;
613
+ "windows/amd64": string;
614
+ };
615
+ genesis: {
616
+ genesis_url: string;
617
+ };
618
+ };
619
+ apis: {
620
+ rpc: {
621
+ address: string;
622
+ provider: string;
623
+ }[];
624
+ rest: {
625
+ address: string;
626
+ provider: string;
627
+ }[];
628
+ grpc: {
629
+ address: string;
630
+ provider: string;
631
+ }[];
632
+ };
633
+ };
634
+ declare const BZE_TESTNET_NETWORK: {
635
+ base: {
636
+ explorerBaseUrl: string;
637
+ rpcUrl: string;
638
+ restUrl: string;
639
+ chainName: string;
640
+ };
641
+ chain: {
642
+ chainId: string;
643
+ chainType: string;
644
+ chainName: string;
645
+ prettyName: string;
646
+ networkType: string;
647
+ bech32Prefix: string;
648
+ status: string;
649
+ slip44: number;
650
+ logoURIs: {
651
+ svg: string;
652
+ };
653
+ fees: {
654
+ feeTokens: {
655
+ denom: string;
656
+ fixedMinGasPrice: number;
657
+ lowGasPrice: number;
658
+ averageGasPrice: number;
659
+ highGasPrice: number;
660
+ }[];
661
+ };
662
+ keyAlgos: string[];
663
+ staking: {
664
+ stakingTokens: {
665
+ denom: string;
666
+ }[];
667
+ };
668
+ explorers: {
669
+ kind: string;
670
+ url: string;
671
+ tx_page: string;
672
+ }[];
673
+ codebase: {
674
+ git_repo: string;
675
+ recommended_version: string;
676
+ compatible_versions: string[];
677
+ binaries: {
678
+ "darwin/amd64": string;
679
+ "darwin/arm64": string;
680
+ "linux/amd64": string;
681
+ "linux/arm64": string;
682
+ "windows/amd64": string;
683
+ };
684
+ genesis: {
685
+ genesis_url: string;
686
+ };
687
+ };
688
+ apis: {
689
+ rpc: {
690
+ address: string;
691
+ provider: string;
692
+ }[];
693
+ rest: {
694
+ address: string;
695
+ provider: string;
696
+ }[];
697
+ grpc: {
698
+ address: string;
699
+ provider: string;
700
+ }[];
701
+ };
702
+ }[];
703
+ assets: {
704
+ chainName: string;
705
+ assets: ({
706
+ description: string;
707
+ typeAsset: string;
708
+ denomUnits: {
709
+ denom: string;
710
+ exponent: number;
711
+ }[];
712
+ base: string;
713
+ name: string;
714
+ display: string;
715
+ symbol: string;
716
+ logoURIs: {
717
+ svg: string;
718
+ png: string;
719
+ };
720
+ coingeckoId: string;
721
+ } | {
722
+ description: string;
723
+ typeAsset: string;
724
+ denomUnits: {
725
+ denom: string;
726
+ exponent: number;
727
+ aliases: never[];
728
+ }[];
729
+ base: string;
730
+ display: string;
731
+ name: string;
732
+ symbol: string;
733
+ logoURIs: {
734
+ png: string;
735
+ svg?: undefined;
736
+ };
737
+ coingeckoId?: undefined;
738
+ })[];
739
+ }[];
740
+ };
741
+
742
+ declare const getSettings: () => AppSettings;
743
+ declare const setSettings: (newSettings: AppSettings) => boolean;
744
+
745
+ interface RouteCache {
746
+ result: SwapRouteResult;
747
+ timestamp: number;
748
+ }
749
+ declare class AmmRouter {
750
+ private static instance;
751
+ private routeCache;
752
+ private routeMap;
753
+ private constructor();
754
+ static getInstance(): AmmRouter;
755
+ updatePools(pools: LiquidityPoolSDKType[]): void;
756
+ private mapLiquidityPoolRoutes;
757
+ findOptimalRoute(fromDenom: string, toDenom: string, amountIn: BigNumber, maxHops: number, useCache?: boolean): SwapRouteResult | null;
758
+ calculateRouteOutput(pools: LiquidityPoolSDKType[], path: string[], amountIn: BigNumber): Omit<SwapRouteResult, 'route' | 'path' | 'pools'>;
759
+ clearCache(filter?: (key: string, cache: RouteCache) => boolean): void;
760
+ getCacheStats(): {
761
+ size: number;
762
+ keys: string[];
763
+ };
764
+ private calculateTheoreticalOutputs;
765
+ private calculateSwapOutput;
766
+ private findOptimalSwapRoute;
767
+ private getCacheKey;
768
+ }
769
+ declare const ammRouter: AmmRouter;
770
+
771
+ declare class BlockchainEventManager {
772
+ private static instance;
773
+ private listeners;
774
+ private constructor();
775
+ static getInstance(): BlockchainEventManager;
776
+ subscribe(eventType: string, callback: EventCallback): () => void;
777
+ emit(eventType: string, event?: InternalEvent): void;
778
+ }
779
+ declare const blockchainEventManager: BlockchainEventManager;
780
+
781
+ declare const getChainAssets: () => Promise<ChainAssets>;
782
+
783
+ declare function keplrSuggestChain(chainId: string): Promise<void | undefined>;
784
+
785
+ declare const getRestClient: () => Promise<Promise<{
786
+ bze: {
787
+ burner: _bze_bzejs_bze_burner_query_lcd.LCDQueryClient;
788
+ cointrunk: _bze_bzejs_bze_cointrunk_query_lcd.LCDQueryClient;
789
+ epochs: _bze_bzejs_bze_epochs_query_lcd.LCDQueryClient;
790
+ rewards: _bze_bzejs_bze_rewards_query_lcd.LCDQueryClient;
791
+ tokenfactory: _bze_bzejs_bze_tokenfactory_query_lcd.LCDQueryClient;
792
+ tradebin: _bze_bzejs_bze_tradebin_query_lcd.LCDQueryClient;
793
+ txfeecollector: _bze_bzejs_bze_txfeecollector_query_lcd.LCDQueryClient;
794
+ };
795
+ cosmos: {
796
+ auth: {
797
+ v1beta1: _bze_bzejs_cosmos_auth_v1beta1_query_lcd.LCDQueryClient;
798
+ };
799
+ authz: {
800
+ v1beta1: _bze_bzejs_cosmos_authz_v1beta1_query_lcd.LCDQueryClient;
801
+ };
802
+ bank: {
803
+ v1beta1: _bze_bzejs_cosmos_bank_v1beta1_query_lcd.LCDQueryClient;
804
+ };
805
+ base: {
806
+ node: {
807
+ v1beta1: _bze_bzejs_cosmos_base_node_v1beta1_query_lcd.LCDQueryClient;
808
+ };
809
+ tendermint: {
810
+ v1beta1: _bze_bzejs_cosmos_base_tendermint_v1beta1_query_lcd.LCDQueryClient;
811
+ };
812
+ };
813
+ circuit: {
814
+ v1: _bze_bzejs_cosmos_circuit_v1_query_lcd.LCDQueryClient;
815
+ };
816
+ consensus: {
817
+ v1: _bze_bzejs_cosmos_consensus_v1_query_lcd.LCDQueryClient;
818
+ };
819
+ distribution: {
820
+ v1beta1: _bze_bzejs_cosmos_distribution_v1beta1_query_lcd.LCDQueryClient;
821
+ };
822
+ epochs: {
823
+ v1beta1: _bze_bzejs_cosmos_epochs_v1beta1_query_lcd.LCDQueryClient;
824
+ };
825
+ feegrant: {
826
+ v1beta1: _bze_bzejs_cosmos_feegrant_v1beta1_query_lcd.LCDQueryClient;
827
+ };
828
+ gov: {
829
+ v1: _bze_bzejs_cosmos_gov_v1_query_lcd.LCDQueryClient;
830
+ v1beta1: _bze_bzejs_cosmos_gov_v1beta1_query_lcd.LCDQueryClient;
831
+ };
832
+ group: {
833
+ v1: _bze_bzejs_cosmos_group_v1_query_lcd.LCDQueryClient;
834
+ };
835
+ mint: {
836
+ v1beta1: _bze_bzejs_cosmos_mint_v1beta1_query_lcd.LCDQueryClient;
837
+ };
838
+ params: {
839
+ v1beta1: _bze_bzejs_cosmos_params_v1beta1_query_lcd.LCDQueryClient;
840
+ };
841
+ protocolpool: {
842
+ v1: _bze_bzejs_cosmos_protocolpool_v1_query_lcd.LCDQueryClient;
843
+ };
844
+ staking: {
845
+ v1beta1: _bze_bzejs_cosmos_staking_v1beta1_query_lcd.LCDQueryClient;
846
+ };
847
+ tx: {
848
+ v1beta1: _bze_bzejs_cosmos_tx_v1beta1_service_lcd.LCDQueryClient;
849
+ };
850
+ upgrade: {
851
+ v1beta1: _bze_bzejs_cosmos_upgrade_v1beta1_query_lcd.LCDQueryClient;
852
+ };
853
+ };
854
+ }>>;
855
+ declare const createRestClient: (endpoint: string) => Promise<ReturnType<typeof bze.ClientFactory.createLCDClient>>;
856
+ declare const getPageRequestWithLimit: (limit: number) => PageRequest;
857
+
858
+ declare function getAddressBalances(address: string): Promise<Coin[]>;
859
+ declare function getLockedBalances(): Promise<Coin[]>;
860
+
861
+ declare const getBurnerParams: () => Promise<ParamsSDKType | undefined>;
862
+ declare const getBurnerParamsWithClient: (client: Awaited<ReturnType<typeof getRestClient>>) => Promise<ParamsSDKType | undefined>;
863
+ declare function getAllBurnedCoins(): Promise<QueryAllBurnedCoinsResponseSDKType>;
864
+
865
+ declare const getAllSupply: () => Promise<_bze_bzejs_cosmos_base_v1beta1_coin.CoinSDKType[] | undefined>;
866
+ declare const getAllSupplyMetadata: () => Promise<_bze_bzejs_cosmos_bank_v1beta1_bank.MetadataSDKType[] | undefined>;
867
+
868
+ declare function getEpochsInfo(): Promise<QueryEpochsInfoResponseSDKType>;
869
+ declare function getCurrentEpoch(identifier: string): Promise<EpochInfoSDKType | undefined>;
870
+ declare function getHourEpochInfo(): Promise<EpochInfoSDKType | undefined>;
871
+ declare function getWeekEpochInfo(): Promise<EpochInfoSDKType | undefined>;
872
+ declare function getCurrentWeekEpochEndTime(): Promise<Date | undefined>;
873
+ declare function getPeriodicWeekEpochEndTime(modWeek?: number): Promise<Date | undefined>;
874
+ declare function getPeriodicEpochEndTime(identifier: string, mod?: number): Promise<Date | undefined>;
875
+ declare function getEpochDurationByIdentifier(identifier: string): number;
876
+
877
+ declare function getFactoryDenomAdminAddress(denom: string): Promise<string>;
878
+
879
+ declare const getIBCTraces: () => Promise<DenomTrace[]>;
880
+ declare const getHashIBCTrace: (hash: string) => Promise<DenomTrace | undefined>;
881
+ declare const counterpartyChainForChannel: (channelId: string, portId?: string) => Promise<CounterpartyChainForChannel | undefined>;
882
+
883
+ declare const getLiquidityPools: () => Promise<_bze_bzejs_bze_tradebin_store.LiquidityPoolSDKType[]>;
884
+ declare const getLiquidityPool: (poolId: string) => Promise<_bze_bzejs_bze_tradebin_store.LiquidityPoolSDKType | undefined>;
885
+
886
+ declare const getMarkets: () => Promise<_bze_bzejs_bze_tradebin_store.MarketSDKType[]>;
887
+ declare function getMarketBuyOrders(marketId: string): Promise<QueryMarketAggregatedOrdersResponseSDKType>;
888
+ declare function getMarketSellOrders(marketId: string): Promise<QueryMarketAggregatedOrdersResponseSDKType>;
889
+ declare function getMarketOrders(marketId: string, orderType: string): Promise<QueryMarketAggregatedOrdersResponseSDKType>;
890
+ declare function getMarketHistory(marketId: string): Promise<QueryMarketHistoryResponseSDKType>;
891
+ declare function getAddressMarketOrders(marketId: string, address: string): Promise<QueryUserMarketOrdersResponseSDKType>;
892
+ declare function getAddressFullMarketOrders(marketId: string, address: string): Promise<OrderSDKType[]>;
893
+ declare function getMarketOrder(marketId: string, orderType: string, orderId: string): Promise<QueryMarketOrderResponseSDKType | undefined>;
894
+
895
+ declare const getBZEUSDPrice: () => Promise<number>;
896
+
897
+ declare function getStakingRewards(reverse?: boolean): Promise<QueryAllStakingRewardsResponseSDKType>;
898
+ declare function getAddressPendingUnlock(address: string): Promise<PendingUnlockParticipantSDKType[]>;
899
+ declare function getPendingUnlockParticipants(): Promise<QueryAllPendingUnlockParticipantsResponseSDKType>;
900
+ declare function getStakingRewardParticipantByAddress(address: string): Promise<QueryStakingRewardParticipantResponseSDKType>;
901
+ declare function getAddressStakingRewards(address: string): Promise<AddressRewardsStaking>;
902
+
903
+ declare const getAddressDelegations: (address: string) => Promise<_bze_bzejs_cosmos_staking_v1beta1_staking.DelegationResponseSDKType[]>;
904
+ declare const getAddressNativeDelegatedBalance: (address: string) => Promise<Balance>;
905
+ declare const getAddressUnbondingDelegations: (address: string) => Promise<UnbondingDelegationSDKType[]>;
906
+ declare const getAddressUnbondingDelegationsSummary: (address: string) => Promise<NativeUnbondingSummary>;
907
+ declare const getAddressRewards: (address: string) => Promise<_bze_bzejs_cosmos_distribution_v1beta1_query.QueryDelegationTotalRewardsResponseSDKType>;
908
+ declare const getAddressNativeTotalRewards: (address: string) => Promise<UserNativeStakingRewards>;
909
+ declare const getAnnualProvisions: () => Promise<BigNumber>;
910
+ declare const getDistributionParams: () => Promise<_bze_bzejs_cosmos_distribution_v1beta1_distribution.ParamsSDKType>;
911
+ declare const getStakingParams: () => Promise<_bze_bzejs_cosmos_staking_v1beta1_staking.ParamsSDKType | {
912
+ unbonding_time: string;
913
+ max_validators: number;
914
+ max_entries: number;
915
+ historical_entries: number;
916
+ bond_denom: string;
917
+ }>;
918
+ declare const getStakingPool: () => Promise<_bze_bzejs_cosmos_staking_v1beta1_staking.PoolSDKType>;
919
+
920
+ declare function getAllTickers(): Promise<MarketData[]>;
921
+ declare function getMarketOrdersHistory(marketId: string, limit?: number): Promise<HistoryOrder[]>;
922
+ declare function getAddressHistory(address: string, market: string): Promise<HistoryOrder[]>;
923
+ declare function getTradingViewIntervals(market: string, minutes: number, limit: number): Promise<TradeViewChart[]>;
924
+ declare function getAddressSwapHistory(address: string): Promise<SwapHistory[]>;
925
+
926
+ interface AssetsContextType {
927
+ assetsMap: Map<string, Asset>;
928
+ updateAssets: () => Promise<Map<string, Asset>>;
929
+ marketsMap: Map<string, Market>;
930
+ updateMarkets: () => void;
931
+ marketsDataMap: Map<string, MarketData>;
932
+ updateMarketsData: () => Promise<Map<string, MarketData>>;
933
+ poolsMap: Map<string, LiquidityPoolSDKType>;
934
+ poolsDataMap: Map<string, LiquidityPoolData>;
935
+ updateLiquidityPools: () => Promise<void>;
936
+ balancesMap: Map<string, Balance>;
937
+ updateBalances: () => void;
938
+ usdPricesMap: Map<string, BigNumber>;
939
+ isLoading: boolean;
940
+ isLoadingPrices: boolean;
941
+ ibcChains: IBCData[];
942
+ epochs: Map<string, EpochInfoSDKType>;
943
+ updateEpochs: () => void;
944
+ connectionType: ConnectionType;
945
+ updateConnectionType: (conn: ConnectionType) => void;
946
+ }
947
+ declare const AssetsContext: react.Context<AssetsContextType | undefined>;
948
+
949
+ declare function useAssetsContext(): AssetsContextType;
950
+ declare function useAssets(): {
951
+ assets: Asset[];
952
+ isLoading: boolean;
953
+ nativeAsset: Asset;
954
+ isVerifiedAsset: (denom: string) => boolean;
955
+ denomTicker: (denom: string) => string;
956
+ denomDecimals: (denom: string) => number;
957
+ getAsset: (denom: string) => Asset | undefined;
958
+ assetsLpExcluded: Asset[];
959
+ };
960
+ declare function useAsset(denom: string): {
961
+ asset: Asset | undefined;
962
+ isLoading: boolean;
963
+ };
964
+ declare function useAssetsManager(): {
965
+ updateAssets: () => Promise<Map<string, Asset>>;
966
+ isLoading: boolean;
967
+ };
968
+ declare function useIBCChains(): {
969
+ ibcChains: IBCData[];
970
+ isLoading: boolean;
971
+ };
972
+
973
+ declare function useConnectionType(): {
974
+ connectionType: ConnectionType;
975
+ updateConnectionType: (conn: ConnectionType) => void;
976
+ };
977
+
978
+ interface UseSigningClientProps {
979
+ chainName?: string;
980
+ isIbc?: boolean;
981
+ isCosmos?: boolean;
982
+ }
983
+ declare const useSigningClient: ({ chainName, isIbc, isCosmos }: UseSigningClientProps) => {
984
+ signingClientError: unknown;
985
+ signingClient: unknown;
986
+ isSigningClientReady: boolean;
987
+ };
988
+
989
+ declare function useAssetPrice(denom: string): {
990
+ price: BigNumber;
991
+ change: number;
992
+ totalUsdValue: (amount: BigNumber) => BigNumber;
993
+ uAmountUsdValue: (amount: BigNumber, decimals: number) => BigNumber;
994
+ isLoading: boolean;
995
+ hasPrice: boolean;
996
+ isUSDC: boolean;
997
+ };
998
+
999
+ declare function useSettings(): {
1000
+ settings: AppSettings;
1001
+ isLoaded: boolean;
1002
+ saveSettings: (newSettings: AppSettings) => boolean;
1003
+ updateEndpoints: (endpoints: BeeZeeEndpoints) => boolean;
1004
+ updatePreferredFeeDenom: (preferredFeeDenom?: string) => boolean;
1005
+ resetToDefaults: () => boolean;
1006
+ getEndpoints: () => BeeZeeEndpoints;
1007
+ defaultSettings: AppSettings;
1008
+ feeDenom: string;
1009
+ };
1010
+
1011
+ interface AssetBalance extends Asset {
1012
+ amount: BigNumber;
1013
+ USDValue: BigNumber;
1014
+ }
1015
+ declare function useBalances(): {
1016
+ isLoading: boolean;
1017
+ balances: Balance[];
1018
+ assetsBalances: AssetBalance[];
1019
+ getBalanceByDenom: (denom: string) => Balance;
1020
+ };
1021
+ declare function useBalance(denom: string): {
1022
+ balance: Balance;
1023
+ isLoading: boolean;
1024
+ hasAmount: (amount: BigNumber | string) => boolean;
1025
+ };
1026
+
1027
+ 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;
1032
+ isLoading: boolean;
1033
+ updateEpochs: () => void;
1034
+ };
1035
+
1036
+ declare function useLiquidityPools(): {
1037
+ pools: LiquidityPoolSDKType[];
1038
+ poolsMap: Map<string, LiquidityPoolSDKType>;
1039
+ poolsDataMap: Map<string, LiquidityPoolData>;
1040
+ isLoading: boolean;
1041
+ updateLiquidityPools: () => Promise<void>;
1042
+ getPoolByLpDenom: (lpDenom: string) => LiquidityPoolSDKType | undefined;
1043
+ getDenomsPool: (denomA: string, denomB: string) => LiquidityPoolSDKType | undefined;
1044
+ liquidAssets: Asset[];
1045
+ };
1046
+ declare function useAssetLiquidityPools(denom: string): {
1047
+ assetPools: LiquidityPoolSDKType[];
1048
+ poolsDataMap: Map<string, LiquidityPoolData>;
1049
+ };
1050
+
1051
+ declare function useAssetsValue(): {
1052
+ totalUsdValue: BigNumber;
1053
+ denomUsdValue: (denom: string, uAmount: BigNumber) => BigNumber;
1054
+ isLoading: boolean;
1055
+ };
1056
+
1057
+ declare function useFeeTokens(): {
1058
+ feeTokens: Asset[];
1059
+ isLoading: boolean;
1060
+ nativeDenom: string;
1061
+ };
1062
+
1063
+ declare function useMarkets(): {
1064
+ markets: _bze_bzejs_bze_tradebin_store.MarketSDKType[];
1065
+ marketsMap: Map<string, _bze_bzejs_bze_tradebin_store.MarketSDKType>;
1066
+ marketsDataMap: Map<string, MarketData>;
1067
+ isLoading: boolean;
1068
+ updateMarkets: () => void;
1069
+ };
1070
+ declare function useAssetMarkets(denom: string): {
1071
+ assetMarkets: _bze_bzejs_bze_tradebin_store.MarketSDKType[];
1072
+ };
1073
+ declare function useMarket(base: string, quote: string): {
1074
+ market: _bze_bzejs_bze_tradebin_store.MarketSDKType | undefined;
1075
+ marketData: MarketData | undefined;
1076
+ marketExists: boolean;
1077
+ volume24h: BigNumber;
1078
+ isLoading: boolean;
1079
+ };
1080
+
1081
+ declare const useToast: () => {
1082
+ toast: {
1083
+ clickableSuccess: (title: string, actionFn: () => void, actionLabel?: string, description?: string, duration?: number) => void;
1084
+ success: (title: string, description?: string, duration?: number) => void;
1085
+ error: (title: string, description?: string, duration?: number) => void;
1086
+ warning: (title: string, description?: string, duration?: number) => void;
1087
+ info: (title: string, description?: string, duration?: number) => void;
1088
+ loading: (title: string, description?: string) => string;
1089
+ dismiss: (id: string) => void;
1090
+ };
1091
+ };
1092
+
1093
+ interface TxOptions {
1094
+ fee?: StdFee | null;
1095
+ onSuccess?: (res: DeliverTxResponse) => void;
1096
+ onFailure?: (err: string) => void;
1097
+ memo?: string;
1098
+ progressTrackerTimeout?: number;
1099
+ fallbackOnSimulate?: boolean;
1100
+ }
1101
+ declare enum TxStatus {
1102
+ Failed = "Transaction Failed",
1103
+ Successful = "Transaction Successful",
1104
+ Broadcasting = "Transaction Pending"
1105
+ }
1106
+ declare const useSDKTx: (chainName?: string) => {
1107
+ tx: (msgs: EncodeObject[], options?: TxOptions | undefined) => Promise<void>;
1108
+ progressTrack: string;
1109
+ };
1110
+ declare const useBZETx: () => {
1111
+ tx: (msgs: EncodeObject[], options?: TxOptions | undefined) => Promise<void>;
1112
+ progressTrack: string;
1113
+ };
1114
+ declare const useIBCTx: (chainName?: string) => {
1115
+ tx: (msgs: EncodeObject[], options?: TxOptions | undefined) => Promise<void>;
1116
+ progressTrack: string;
1117
+ };
1118
+
1119
+ declare const Toaster: () => react_jsx_runtime.JSX.Element;
1120
+
1121
+ interface HighlightTextProps extends TextProps {
1122
+ /**
1123
+ * Duration of the highlight effect in milliseconds
1124
+ * @default 1000
1125
+ */
1126
+ duration?: number;
1127
+ /**
1128
+ * Whether to highlight the text on initial mount
1129
+ * @default false
1130
+ */
1131
+ highlightOnMount?: boolean;
1132
+ /**
1133
+ * Color to use for the highlight effect
1134
+ * @default 'blue.500'
1135
+ */
1136
+ highlightColor?: string;
1137
+ /**
1138
+ * Intensity of the highlight effect
1139
+ * - 'subtle': Lower opacity highlight (15%)
1140
+ * - 'evident': Higher opacity highlight (30%)
1141
+ * @default 'subtle'
1142
+ */
1143
+ highlightIntensity?: 'subtle' | 'evident';
1144
+ /**
1145
+ * The text content to display and monitor for changes
1146
+ */
1147
+ children: React.ReactNode;
1148
+ }
1149
+ declare const HighlightText: ({ duration, highlightOnMount, highlightColor, highlightIntensity, children, ...textProps }: HighlightTextProps) => react_jsx_runtime.JSX.Element;
1150
+
1151
+ interface SidebarProps extends PropsWithChildren {
1152
+ trigger: React.ReactNode;
1153
+ ariaLabel: string;
1154
+ }
1155
+ declare const Sidebar: ({ children, trigger, ariaLabel }: SidebarProps) => react_jsx_runtime.JSX.Element;
1156
+
1157
+ interface SettingsSidebarContentProps {
1158
+ accentColor?: string;
1159
+ }
1160
+ declare const SettingsSidebarContent: ({ accentColor }: SettingsSidebarContentProps) => react_jsx_runtime.JSX.Element;
1161
+
1162
+ interface WalletSidebarContentProps {
1163
+ accentColor?: string;
1164
+ }
1165
+ declare const WalletSidebarContent: ({ accentColor }: WalletSidebarContentProps) => react_jsx_runtime.JSX.Element;
1166
+
1167
+ interface SettingsToggleProps {
1168
+ accentColor?: string;
1169
+ }
1170
+ declare function SettingsToggle({ accentColor }: SettingsToggleProps): react_jsx_runtime.JSX.Element;
1171
+
1172
+ 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, useLiquidityPools, useMarket, useMarkets, useSDKTx, useSettings, useSigningClient, useToast, validateBZEBech32Address, validateBech32Address, validateEndpoints, validateRestEndpoint, validateRpcEndpoint };