Working tree is now the canonical repo. Off-chain play-money + trustless on-chain (FPMM AMM + CLOB via UMA settlement), AI market factory, creator/social/distribution, mobile shell + push, one-command demo + deploy-kit. Secrets excluded (see ENV-AND-KEYS.md). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
17 lines
663 B
JavaScript
17 lines
663 B
JavaScript
const hre = require('hardhat');
|
|
|
|
const { getCompilersDir } = require('hardhat/internal/util/global-dir');
|
|
const { CompilerDownloader } = require('hardhat/internal/solidity/compiler/downloader');
|
|
const { Compiler } = require('hardhat/internal/solidity/compiler');
|
|
|
|
const [{ version }] = hre.config.solidity.compilers;
|
|
|
|
async function getSolc () {
|
|
const downloader = new CompilerDownloader(await getCompilersDir(), { forceSolcJs: true });
|
|
const { compilerPath } = await downloader.getDownloadedCompilerPath(version);
|
|
const compiler = new Compiler(compilerPath);
|
|
return compiler.getSolc();
|
|
}
|
|
|
|
module.exports = Object.assign(getSolc(), { __esModule: true });
|