MCPcopy Index your code
hub / github.com/api3dao/airnode / readConfig

Function readConfig

packages/airnode-examples/src/utils.ts:62–69  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

60 * @returns The contents of the "config.json" file for the current integration (throws if it doesn't exist)
61 */
62export const readConfig = () => {
63 const integrationInfo = readIntegrationInfo();
64
65 const config = JSON.parse(
66 readFileSync(join(__dirname, `../integrations/${integrationInfo.integration}/config.json`)).toString()
67 );
68 return config;
69};
70
71/**
72 * @param filename

Callers 9

makeRequestFunction · 0.90
makeRequestFunction · 0.90
makeRequestFunction · 0.90
makeRequestFunction · 0.90
makeRequestFunction · 0.90
makeRequestFunction · 0.90
makeRequestFunction · 0.90
makeRequestFunction · 0.90
makeRequestFunction · 0.90

Calls 1

readIntegrationInfoFunction · 0.85

Tested by

no test coverage detected