Skip to Content

@cfxdevkit/compiler


@cfxdevkit/compiler / CompilationOutput

Interface: CompilationOutput

Defined in: compiler/types.ts:39

A single compiled contract artefact.

Properties

abi

abi: unknown[]

Defined in: compiler/types.ts:47

Contract ABI


bytecode

bytecode: string

Defined in: compiler/types.ts:43

Creation bytecode with 0x prefix


compilerVersion

compilerVersion: string

Defined in: compiler/types.ts:49

solc version string used during compilation


contractName

contractName: string

Defined in: compiler/types.ts:41

Name of the compiled contract


deployedBytecode

deployedBytecode: string

Defined in: compiler/types.ts:45

Runtime (deployed) bytecode with 0x prefix


gasEstimates?

optional gasEstimates: object

Defined in: compiler/types.ts:51

Gas estimates for deployment (may be absent for interfaces)

creation

creation: object

creation.codeDepositCost

codeDepositCost: string

creation.executionCost

executionCost: string

creation.totalCost

totalCost: string