MCPcopy Create free account
hub / github.com/api3dao/airnode / getCommonSecrets

Function getCommonSecrets

packages/airnode-examples/integrations/secrets-utils.ts:13–19  ·  view source on GitHub ↗
(generateExampleFile: boolean)

Source from the content-addressed store, hash-verified

11};
12
13export const getCommonSecrets = (generateExampleFile: boolean) => {
14 // NOTE: Avoid reading integrationInfo.json when generating example file
15 return [
16 `AIRNODE_WALLET_MNEMONIC=${createAirnodeWalletMnemonic(generateExampleFile)}`,
17 `PROVIDER_URL=${generateExampleFile ? 'http://127.0.0.1:8545/' : readIntegrationInfo().providerUrl}`,
18 ];
19};
20
21export const writeSecrets = (dirname: string, secrets: string[], generateExampleFile: boolean) => {
22 const filename = generateExampleFile ? 'secrets.example.env' : 'secrets.env';

Callers 9

createSecretsFunction · 0.90
createSecretsFunction · 0.90
createSecretsFunction · 0.90
createSecretsFunction · 0.90
createSecretsFunction · 0.90
createSecretsFunction · 0.90
createSecretsFunction · 0.90
createSecretsFunction · 0.90
createSecretsFunction · 0.90

Calls 2

readIntegrationInfoFunction · 0.90

Tested by

no test coverage detected