UNPKG

@neo-one/smart-contract-compiler

Version:

NEO•ONE TypeScript smart contract compiler.

20 lines (19 loc) 812 B
import { ABI } from '@neo-one/client-common'; import { ContractRegister } from '@neo-one/client-full-core'; import { RawSourceMap } from 'source-map'; import ts from 'typescript'; import { WithLinked } from './compile'; import { DebugInfo } from './contract'; import { CompilerHost } from './types'; export interface CompileContractOptions extends WithLinked { readonly host: CompilerHost; readonly filePath: string; } export interface CompileContractResult { readonly abi: ABI; readonly diagnostics: ReadonlyArray<ts.Diagnostic>; readonly contract: ContractRegister; readonly sourceMap: Promise<RawSourceMap>; readonly debugInfo: DebugInfo; } export declare const compileContract: ({ filePath: filePathIn, host, linked: linkedIn, }: CompileContractOptions) => CompileContractResult;