mirror of
https://github.com/luxfi/explore.git
synced 2026-09-24 00:28:18 +00:00
Replace the hardcoded demo DEX dataset (incl. the placeholder pi-million 24h volume) with live markets + fills from the C-Chain 0x9999 subgraph at the per-network /v1/graph/cchain/dex/graphql endpoint, selected via config.apis.general like every other resource. Token pairs resolve through the existing token metadata endpoint, falling back to a short address. Empty/unavailable nets render 'No active markets' — never mock. Guard tx.transaction_types in TxsListItem so coinbase/precompile txs (absent transaction_types in the API payload) no longer crash the block Transactions tab; drop an unused destructured prop. Allow CLOB in cspell.
13 lines
245 B
TypeScript
13 lines
245 B
TypeScript
// C-Chain native DEX (0x9999) subgraph hooks and types.
|
|
|
|
export { useDexData } from './useDexData';
|
|
|
|
export type { UseDexDataResult } from './useDexData';
|
|
|
|
export type {
|
|
DexMarket,
|
|
DexFill,
|
|
DexMarketView,
|
|
DexOverview,
|
|
} from './types';
|