MCPcopy Create free account
hub / github.com/circlefin/arc-node / readForgeArtifactSync

Function readForgeArtifactSync

tests/helpers/forge-artifact.ts:40–49  ·  view source on GitHub ↗
(contractName: string, sourceFile?: string)

Source from the content-addressed store, hash-verified

38}
39
40export function readForgeArtifactSync(contractName: string, sourceFile?: string): ForgeArtifact {
41 const file = sourceFile ?? `${contractName}.sol`
42 const artifactPath = path.join(FORGE_OUT_DIR, file, `${contractName}.json`)
43 const raw = JSON.parse(fs.readFileSync(artifactPath, 'utf8')) as ForgeRawArtifact
44 return {
45 abi: raw.abi,
46 bytecode: raw.bytecode.object,
47 deployedBytecode: raw.deployedBytecode.object,
48 }
49}

Callers 2

genesis.test.tsFile · 0.90
GasGuzzler.tsFile · 0.90

Calls 1

parseMethod · 0.45

Tested by

no test coverage detected