UNPKG

@graphprotocol/graph-cli

Version:

CLI for building for and deploying to The Graph

19 lines (18 loc) 793 B
import immutable from 'immutable'; import Protocol from '../protocols/index.js'; export declare function abiEvents(abi: { data: immutable.Collection<any, any>; }): immutable.List<any>; export declare const protocolTypeToGraphQL: (protocol: string, name: string) => string; export declare const generateField: ({ name, type, protocolName, }: { name: string; type: string; protocolName: string; }) => string; export declare const generateEventFields: ({ index, input, protocolName, }: { index: number; input: any; protocolName: string; }) => string[]; export declare const generateEventType: (event: any, protocolName: string, contractName: string | undefined) => string; export declare const generateExampleEntityType: (protocol: Protocol, events: any[]) => string;