UNPKG

@neo-one/smart-contract-compiler

Version:

NEO•ONE TypeScript smart contract compiler.

14 lines (13 loc) 599 B
import { ABI } from '@neo-one/client-common'; import { ContractRegister } from '@neo-one/client-full-core'; import { OmitStrict } from '@neo-one/utils'; import ts from 'typescript'; import { Context } from '../Context'; import { ContractInfo, DebugInfo } from '../contract'; export interface SmartContractInfo { readonly contractInfo: ContractInfo | undefined; readonly abi: ABI; readonly debugInfo: DebugInfo; readonly contract: OmitStrict<ContractRegister, 'script'>; } export declare const getSmartContractInfo: (context: Context, sourceFile: ts.SourceFile) => SmartContractInfo;