mirror of
https://github.com/fluencelabs/aqua.git
synced 2024-12-12 01:40:17 +00:00
28 lines
893 B
TypeScript
28 lines
893 B
TypeScript
|
import type {FunctionCallDef, ServiceDef} from "@fluencelabs/fluence/dist/internal/compilerSupport/v3impl/interface"
|
||
|
|
||
|
export class AquaConfig {
|
||
|
constructor(logLevel: string, constants: string[], noXor: boolean, noRelay: boolean);
|
||
|
logLevel?: string
|
||
|
constants?: string[]
|
||
|
noXor?: boolean
|
||
|
noRelay?: boolean
|
||
|
}
|
||
|
|
||
|
export class AquaFunction {
|
||
|
funcDef: FunctionCallDef
|
||
|
script: string
|
||
|
}
|
||
|
|
||
|
export class CompilationResult {
|
||
|
services: ServiceDef[]
|
||
|
functions: Record<string, AquaFunction>
|
||
|
}
|
||
|
|
||
|
export class Compiler {
|
||
|
compileRun(functionStr: string, arguments: any, path: string, imports: string[], config?: AquaConfig): Promise<AquaFunction>;
|
||
|
compile(path: string, imports: string[], config?: AquaConfig): Promise<CompilationResult>;
|
||
|
compileString(input: string, imports: string[], config?: AquaConfig): Promise<CompilationResult>;
|
||
|
}
|
||
|
|
||
|
export var Aqua: Compiler;
|