@graphprotocol/graph-cli
Version:
CLI for building for and deploying to The Graph
25 lines (24 loc) • 1.1 kB
TypeScript
import immutable from 'immutable';
import { Spinner } from '../../command-helpers/spinner.js';
import { TypeGeneratorOptions } from '../../type-generator.js';
import ABI from './abi.js';
export default class EthereumTypeGenerator {
private sourceDir;
private outputDir;
constructor(options: TypeGeneratorOptions);
loadABIs(subgraph: immutable.Map<any, any>): Promise<any>;
isValidAbiConfig(abiConfig: any): boolean;
_loadABI(dataSource: any, name: string, maybeRelativePath: string, spinner: Spinner): {
dataSource: any;
abi: ABI;
};
loadDataSourceTemplateABIs(subgraph: immutable.Map<any, any>): Promise<any>;
_loadDataSourceTemplateABI(template: any, name: string, maybeRelativePath: string, spinner: Spinner): {
template: any;
abi: ABI;
};
generateTypesForABIs(abis: any[]): Promise<any>;
_generateTypesForABI(abi: any, spinner: Spinner): Promise<void>;
generateTypesForDataSourceTemplateABIs(abis: any[]): Promise<any>;
_generateTypesForDataSourceTemplateABI(abi: any, spinner: Spinner): Promise<void>;
}