UNPKG

@neo-one/smart-contract-compiler

Version:

NEO•ONE TypeScript smart contract compiler.

18 lines (17 loc) 737 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 { 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>; } export declare const compileContract: ({ filePath: filePathIn, host, linked: linkedIn, }: CompileContractOptions) => CompileContractResult;