@aergoio/athena-compiler
v0.0.6
Published
Aergo smart contract compiler.
Downloads
5
Maintainers
Readme
athena-compiler
Provides compiler for aergo smart contract
Api
lua
const filePath = "${LUA_SOURCE_FILE_PATH}";
const source = "${LUA_SOURCE}";
const luaCompiler = new CompilerFactory().create(CompilerType.Lua);
luaCompiler.compile(source, filePath).then(compileResult => {
console.log("Compile result");
console.log("Payload", compileResult.payload);
console.log("Abi", compileResult.abi);
}).catch(err => {
console.log("Error", err);
});
ascl
// TODO
Usage
- Install dependenty :
yarn install
- Test :
yarn run test
- Build :
yarn run build