UNPKG

@graphprotocol/graph-cli

Version:

CLI for building for and deploying to The Graph

15 lines (14 loc) 786 B
export declare const createIpfsClient: typeof import("kubo-rpc-client").create; export declare function loadSubgraphSchemaFromIPFS(ipfsClient: any, manifest: string): Promise<string>; export declare function loadManifestFromIPFS(ipfsClient: any, manifest: string): Promise<string>; /** * Validates that the network of a source subgraph matches the target network * @param ipfsClient IPFS client instance * @param sourceSubgraphId IPFS hash of the source subgraph * @param targetNetwork Network of the target subgraph being created * @returns Object containing validation result and error message if any */ export declare function validateSubgraphNetworkMatch(ipfsClient: any, sourceSubgraphId: string, targetNetwork: string): Promise<{ valid: boolean; error?: string; }>;