@graphprotocol/graph-cli
Version:
CLI for building for and deploying to The Graph
19 lines (18 loc) • 725 B
TypeScript
import { URL } from 'node:url';
import Compiler from '../compiler/index.js';
import Protocol from '../protocols/index.js';
interface CreateCompilerOptions {
ipfs: string | URL | undefined;
headers?: Headers | Record<string, string>;
outputDir: string;
outputFormat: string;
skipMigrations: boolean;
blockIpfsMethods?: RegExpMatchArray;
protocol: Protocol;
}
/**
* Appends /api/v0 to the end of a The Graph IPFS URL
*/
export declare function appendApiVersionForGraph(inputString: string): string;
export declare function createCompiler(manifest: string, { ipfs, headers, outputDir, outputFormat, skipMigrations, blockIpfsMethods, protocol, }: CreateCompilerOptions): Compiler | null;
export {};