Url for compiler API
Options
Optional
ignoreDon't check compiler version
Readonly
apiCompile contract by contract's source code
{
'library.aes': 'namespace TestLib =\n function sum(x: int, y: int) : int = x + y'
}
ACI and bytecode
Contract source code as string
Optional
fileSystem: Record<string, string>A map of contract filename to the corresponding contract source code to include into the main contract
Verify that a contract bytecode is the result of compiling the given source code Available only in Node.js
ACI and bytecode
Contract bytecode to verify
Path to contract source code
Verify that a contract bytecode is the result of compiling the given source code
{
'library.aes': 'namespace TestLib =\n function sum(x: int, y: int) : int = x + y'
}
Contract bytecode to verify
Contract source code as string
Optional
fileSystem: Record<string, string>A map of contract filename to the corresponding contract source code to include into the main contract
Generated using TypeDoc
Contract Compiler over HTTP for Nodejs
Inherits CompilerHttp and implements
compile
,validate
methodsExample