@aergo/athena-compiler
v0.2.0
Published
Aergo smart contract compiler.
Downloads
39
Readme
athena-compiler
Provides compiler for aergo smart contract
aergoluac version : v1.3.0
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("Payload", compileResult.payload); // as a trimmed string form
console.log("Abi", compileResult.abi); // as a json object
}).catch(err => {
console.log("Error", err);
});
ascl
// TODO
Usage
- Install dependenty :
yarn install
- Lint :
yarn run lint
- Test :
yarn run test
- Build :
yarn run build