UNPKG

@graphprotocol/graph-cli

Version:

CLI for building for and deploying to The Graph

22 lines (21 loc) 759 B
/// <reference types="node" /> import { URL } from 'url'; export declare const SUBGRAPH_STUDIO_URL = "https://api.studio.thegraph.com/deploy/"; export declare const validateNodeUrl: (node: string) => URL; export declare const normalizeNodeUrl: (node: string) => string; export declare function chooseNodeUrl({ product, studio, node, allowSimpleName, }: { product: string | undefined; studio: boolean | undefined; node?: string; allowSimpleName?: boolean; }): { node: string | undefined; allowSimpleName: boolean | undefined; }; export declare function getHostedServiceSubgraphId({ subgraphName, }: { subgraphName: string; }): Promise<{ subgraph: string; synced: boolean; health: 'healthy' | 'unhealthy' | 'failed'; }>;