MCPcopy Index your code
hub / github.com/subquery/subql / createParentProject

Function createParentProject

packages/node-core/src/configure/configure.module.ts:206–218  ·  view source on GitHub ↗
(cid: string)

Source from the content-addressed store, hash-verified

204 });
205
206 const createParentProject = async (cid: string): Promise<P> => {
207 cid = `ipfs://${cid}`;
208 const reader = await ReaderFactory.create(cid, {
209 ipfs: config.ipfs,
210 });
211 return createProject(
212 cid,
213 await reader.getProjectSchema(),
214 reader,
215 await getCachedRoot(reader, config.root),
216 makeNetworkOverrides(project)
217 );
218 };
219
220 const projectUpgradeService = await ProjectUpgradeService.create(project, createParentProject);
221

Callers

nothing calls this directly

Calls 5

createProjectFunction · 0.85
getCachedRootFunction · 0.85
makeNetworkOverridesFunction · 0.85
getProjectSchemaMethod · 0.65
createMethod · 0.45

Tested by

no test coverage detected