@neo-one/server-plugin-project
Version:
NEO•ONE server plugin for project functionality.
10 lines (9 loc) • 490 B
TypeScript
import { CompileContractResult, LinkedContracts } from '@neo-one/smart-contract-compiler';
import { OmitStrict } from '@neo-one/utils';
import { RawSourceMap } from 'source-map';
export declare type ContractResult = OmitStrict<CompileContractResult, 'sourceMap'> & {
readonly filePath: string;
readonly name: string;
readonly sourceMap: RawSourceMap;
};
export declare const compileContract: (filePath: string, name: string, linked: LinkedContracts) => Promise<ContractResult>;