mirror of
https://github.com/luxfi/explore.git
synced 2026-09-24 00:28:18 +00:00
- Rename all @blockscout/* npm packages to @luxfi/* aliases (150+ files) - Override blue accent colors to gray for monochrome theme - Fix dropdown/menu/popover fonts to use Geist Sans - Change Latest Blocks to horizontal scrolling layout - Show dashes instead of zeros for validator stats on error - Fix GHA deploy step to use correct deployment name
17 lines
595 B
TypeScript
17 lines
595 B
TypeScript
import type { ApiResource } from '../types';
|
|
import type * as visualizer from '@luxfi/visualizer-types';
|
|
|
|
export const VISUALIZE_API_RESOURCES = {
|
|
solidity_contract: {
|
|
path: '/v1/solidity\\:visualize-contracts',
|
|
},
|
|
} satisfies Record<string, ApiResource>;
|
|
|
|
export type VisualizeApiResourceName = `visualize:${ keyof typeof VISUALIZE_API_RESOURCES }`;
|
|
|
|
/* eslint-disable @stylistic/indent */
|
|
export type VisualizeApiResourcePayload<R extends VisualizeApiResourceName> =
|
|
R extends 'visualize:solidity_contract' ? visualizer.VisualizeResponse :
|
|
never;
|
|
/* eslint-enable @stylistic/indent */
|