MCPcopy Create free account
hub / github.com/subquery/subql / updateProcessor

Function updateProcessor

packages/node-core/src/utils/project.ts:174–180  ·  view source on GitHub ↗
(reader: Reader, root: string, file: string)

Source from the content-addressed store, hash-verified

172}
173
174export async function updateProcessor(reader: Reader, root: string, file: string): Promise<string> {
175 if (reader instanceof LocalReader) {
176 return path.resolve(root, file);
177 } else {
178 return fetchAndSaveFile(reader, root, file);
179 }
180}
181
182export async function fetchAndSaveFile(reader: Reader, root: string, file: string, ext = 'js'): Promise<string> {
183 if (!(reader instanceof IPFSReader || reader instanceof GithubReader)) {

Callers 1

updateDataSourcesV1_0_0Function · 0.85

Calls 1

fetchAndSaveFileFunction · 0.85

Tested by

no test coverage detected