mirror of
https://github.com/hanzonet/explore.git
synced 2026-10-30 18:16:57 +00:00
* operation lifecycle accordion * operation entity * adapt layout to mobile device * basic operations view * pass response data to operation details * update types package * tac operation status and links to tx on ton * feature config, docs and operation badge * add info to tx page * add operations to search * search input on operations page * tests * update tooltips and temporary fix of ts * add InterFallback typeface with → glyph * design and api updates * support new API version * add time format toggle * add shield to entity icon * minor fixes * update screenshots * clean up * fix screenshot
194 lines
6.3 KiB
TypeScript
194 lines
6.3 KiB
TypeScript
// THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
|
|
// This file will be automatically regenerated when your Next.js server is running.
|
|
// nextjs-routes version: 1.0.8
|
|
/* eslint-disable */
|
|
|
|
// prettier-ignore
|
|
declare module "nextjs-routes" {
|
|
export type Route =
|
|
| StaticRoute<"/404">
|
|
| StaticRoute<"/account/api-key">
|
|
| StaticRoute<"/account/custom-abi">
|
|
| StaticRoute<"/account/merits">
|
|
| StaticRoute<"/account/tag-address">
|
|
| StaticRoute<"/account/verified-addresses">
|
|
| StaticRoute<"/account/watchlist">
|
|
| StaticRoute<"/accounts">
|
|
| DynamicRoute<"/accounts/label/[slug]", { "slug": string }>
|
|
| DynamicRoute<"/address/[hash]/contract-verification", { "hash": string }>
|
|
| DynamicRoute<"/address/[hash]", { "hash": string }>
|
|
| StaticRoute<"/advanced-filter">
|
|
| StaticRoute<"/api/config">
|
|
| StaticRoute<"/api/csrf">
|
|
| StaticRoute<"/api/healthz">
|
|
| StaticRoute<"/api/log">
|
|
| StaticRoute<"/api/media-type">
|
|
| StaticRoute<"/api/metrics">
|
|
| StaticRoute<"/api/monitoring/invalid-api-schema">
|
|
| StaticRoute<"/api/proxy">
|
|
| StaticRoute<"/api-docs">
|
|
| DynamicRoute<"/apps/[id]", { "id": string }>
|
|
| StaticRoute<"/apps">
|
|
| StaticRoute<"/auth/profile">
|
|
| DynamicRoute<"/batches/[number]", { "number": string }>
|
|
| DynamicRoute<"/batches/celestia/[height]/[commitment]", { "height": string; "commitment": string }>
|
|
| StaticRoute<"/batches">
|
|
| DynamicRoute<"/blobs/[hash]", { "hash": string }>
|
|
| DynamicRoute<"/block/[height_or_hash]", { "height_or_hash": string }>
|
|
| DynamicRoute<"/block/countdown/[height]", { "height": string }>
|
|
| StaticRoute<"/block/countdown">
|
|
| StaticRoute<"/blocks">
|
|
| StaticRoute<"/chakra">
|
|
| StaticRoute<"/contract-verification">
|
|
| StaticRoute<"/csv-export">
|
|
| StaticRoute<"/deposits">
|
|
| StaticRoute<"/dispute-games">
|
|
| StaticRoute<"/gas-tracker">
|
|
| StaticRoute<"/graphiql">
|
|
| StaticRoute<"/">
|
|
| StaticRoute<"/internal-txs">
|
|
| StaticRoute<"/interop-messages">
|
|
| StaticRoute<"/login">
|
|
| StaticRoute<"/mud-worlds">
|
|
| DynamicRoute<"/name-domains/[name]", { "name": string }>
|
|
| StaticRoute<"/name-domains">
|
|
| DynamicRoute<"/op/[hash]", { "hash": string }>
|
|
| DynamicRoute<"/operation/[id]", { "id": string }>
|
|
| StaticRoute<"/operations">
|
|
| StaticRoute<"/ops">
|
|
| StaticRoute<"/output-roots">
|
|
| DynamicRoute<"/pools/[hash]", { "hash": string }>
|
|
| StaticRoute<"/pools">
|
|
| StaticRoute<"/public-tags/submit">
|
|
| StaticRoute<"/search-results">
|
|
| StaticRoute<"/sprite">
|
|
| DynamicRoute<"/stats/[id]", { "id": string }>
|
|
| StaticRoute<"/stats">
|
|
| DynamicRoute<"/token/[hash]", { "hash": string }>
|
|
| DynamicRoute<"/token/[hash]/instance/[id]", { "hash": string; "id": string }>
|
|
| StaticRoute<"/token-transfers">
|
|
| StaticRoute<"/tokens">
|
|
| DynamicRoute<"/tx/[hash]", { "hash": string }>
|
|
| StaticRoute<"/txn-withdrawals">
|
|
| StaticRoute<"/txs">
|
|
| DynamicRoute<"/txs/kettle/[hash]", { "hash": string }>
|
|
| DynamicRoute<"/validators/[id]", { "id": string }>
|
|
| StaticRoute<"/validators">
|
|
| StaticRoute<"/verified-contracts">
|
|
| StaticRoute<"/visualize/sol2uml">
|
|
| StaticRoute<"/withdrawals">;
|
|
|
|
interface StaticRoute<Pathname> {
|
|
pathname: Pathname;
|
|
query?: Query | undefined;
|
|
hash?: string | null | undefined;
|
|
}
|
|
|
|
interface DynamicRoute<Pathname, Parameters> {
|
|
pathname: Pathname;
|
|
query: Parameters & Query;
|
|
hash?: string | null | undefined;
|
|
}
|
|
|
|
interface Query {
|
|
[key: string]: string | string[] | undefined;
|
|
};
|
|
|
|
export type RoutedQuery<P extends Route["pathname"]> = Extract<
|
|
Route,
|
|
{ pathname: P }
|
|
>["query"];
|
|
|
|
export type Locale = undefined;
|
|
|
|
/**
|
|
* A typesafe utility function for generating paths in your application.
|
|
*
|
|
* route({ pathname: "/foos/[foo]", query: { foo: "bar" }}) will produce "/foos/bar".
|
|
*/
|
|
export declare function route(r: Route): string;
|
|
}
|
|
|
|
// prettier-ignore
|
|
declare module "next/link" {
|
|
import type { Route } from "nextjs-routes";
|
|
import type { LinkProps as NextLinkProps } from "next/dist/client/link";
|
|
import type {
|
|
AnchorHTMLAttributes,
|
|
DetailedReactHTMLElement,
|
|
MouseEventHandler,
|
|
PropsWithChildren,
|
|
} from "react";
|
|
export * from "next/dist/client/link";
|
|
|
|
type Query = { query?: { [key: string]: string | string[] | undefined } };
|
|
type StaticRoute = Exclude<Route, { query: any }>["pathname"];
|
|
|
|
export interface LinkProps
|
|
extends Omit<NextLinkProps, "href" | "locale">,
|
|
AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
href: Route | StaticRoute | Query;
|
|
locale?: false;
|
|
}
|
|
|
|
type LinkReactElement = DetailedReactHTMLElement<
|
|
{
|
|
onMouseEnter?: MouseEventHandler<Element> | undefined;
|
|
onClick: MouseEventHandler;
|
|
href?: string | undefined;
|
|
ref?: any;
|
|
},
|
|
HTMLElement
|
|
>;
|
|
|
|
declare function Link(props: PropsWithChildren<LinkProps>): LinkReactElement;
|
|
|
|
export default Link;
|
|
}
|
|
|
|
// prettier-ignore
|
|
declare module "next/router" {
|
|
import type { Locale, Route, RoutedQuery } from "nextjs-routes";
|
|
import type { NextRouter as Router } from "next/dist/client/router";
|
|
export * from "next/dist/client/router";
|
|
export { default } from "next/dist/client/router";
|
|
|
|
type NextTransitionOptions = NonNullable<Parameters<Router["push"]>[2]>;
|
|
type StaticRoute = Exclude<Route, { query: any }>["pathname"];
|
|
type Query = { query?: { [key: string]: string | string[] | undefined } };
|
|
|
|
interface TransitionOptions extends Omit<NextTransitionOptions, "locale"> {
|
|
locale?: false;
|
|
}
|
|
|
|
export type NextRouter<P extends Route["pathname"] = Route["pathname"]> =
|
|
Extract<Route, { pathname: P }> &
|
|
Omit<
|
|
Router,
|
|
| "push"
|
|
| "replace"
|
|
| "locale"
|
|
| "locales"
|
|
| "defaultLocale"
|
|
| "domainLocales"
|
|
> & {
|
|
defaultLocale?: undefined;
|
|
domainLocales?: undefined;
|
|
locale?: Locale;
|
|
locales?: undefined;
|
|
push(
|
|
url: Route | StaticRoute | Query,
|
|
as?: string,
|
|
options?: TransitionOptions
|
|
): Promise<boolean>;
|
|
replace(
|
|
url: Route | StaticRoute | Query,
|
|
as?: string,
|
|
options?: TransitionOptions
|
|
): Promise<boolean>;
|
|
route: P;
|
|
};
|
|
|
|
export function useRouter<P extends Route["pathname"]>(): NextRouter<P>;
|
|
}
|