MCPcopy
hub / github.com/subquery/subql / prepareProjectScaffoldYAML

Function prepareProjectScaffoldYAML

packages/cli/src/controller/init-controller.ts:395–399  ·  view source on GitHub ↗
(defaultYamlPath: string)

Source from the content-addressed store, hash-verified

393}
394
395async function prepareProjectScaffoldYAML(defaultYamlPath: string): Promise<void> {
396 const manifest = parseDocument(await fs.promises.readFile(defaultYamlPath, 'utf8'));
397 manifest.set('dataSources', new YAMLSeq());
398 await fs.promises.writeFile(defaultYamlPath, manifest.toString(), 'utf8');
399}
400
401export async function validateEthereumProjectManifest(projectPath: string): Promise<boolean> {
402 let manifest: any;

Callers 1

prepareProjectScaffoldFunction · 0.85

Calls 1

setMethod · 0.65

Tested by

no test coverage detected