parent
a67b30a2c3
commit
05108478f9
@ -1,2 +1,3 @@ |
||||
export * from './lib/solidity-compiler' |
||||
export * from './lib/logic' |
||||
export * from './lib/icompiler-api' |
||||
|
@ -0,0 +1,28 @@ |
||||
export type onCurrentFileChanged = (fileName: string) => void |
||||
|
||||
export interface ICompilerApi { |
||||
contractMap: { |
||||
file: string |
||||
} | Record<string, any> |
||||
|
||||
compileErrors:any |
||||
|
||||
currentFile: string |
||||
configurationSettings: any |
||||
setHardHatCompilation(value: boolean): void |
||||
setSelectedVersion(version: string): void |
||||
getCompilationResult(): any |
||||
setCompilerConfig: (settings: any) => void |
||||
getParameters: () => any |
||||
setParameters: (params) => void |
||||
getConfiguration: (name: string) => string |
||||
setConfiguration: (name: string, value: string) => void |
||||
fileProviderOf: (file: string) => string |
||||
getFileManagerMode: () => string |
||||
fileExists: (file: string) => Promise<boolean> |
||||
writeFile: (file: string, content: string) => Promise<void> |
||||
readFile: (file: string) => Promise<string> |
||||
open: (file: string) => void |
||||
addExternalFile: (file: string, content: string) => void |
||||
onCurrentFileChanged: (listener: onCurrentFileChanged) => void |
||||
} |
Loading…
Reference in new issue