How to use the @chainlink/contracts/app.config.json.compilerSettings function in @chainlink/contracts

To help you get started, we’ve selected a few @chainlink/contracts examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github smartcontractkit / chainlink / belt / src / services / truffle-box.ts View on Github external
export function getSolidityVersions(): [string, string][] {
  // eslint-disable-next-line @typescript-eslint/no-var-requires
  const config: App = require('@chainlink/contracts/app.config.json')

  return Object.entries(config.compilerSettings.versions).filter(([, v]) =>
    config.publicVersions.find((pv) => pv === v),
  )
}

@chainlink/contracts

Chainlink smart contracts

MIT
Latest version published 25 days ago

Package Health Score

68 / 100
Full package analysis

Similar packages