@graphprotocol/graph-cli
Version:
CLI for building for and deploying to The Graph
22 lines (21 loc) • 794 B
TypeScript
/**
* Map of value types that need to be changetype'd to their corresponding AssemblyScript type
*/
export declare const VALUE_TYPECAST_MAP: Record<string, string>;
export declare const generateFieldAssignment: (key: string[], value: string[], type: string) => {
assignment: string;
imports: string[];
};
export declare const generateFieldAssignments: ({ index, input, }: {
index: number;
input: any;
}) => {
assignments: string[];
imports: string[];
};
export declare const renameNameIfNeeded: (name: string) => string;
export declare const generateEventFieldAssignments: (event: any, _contractName: string) => {
assignments: string[];
imports: string[];
};
export declare const generateEventIndexingHandlers: (events: any[], contractName: string) => string;