0.2.0 • Published 4 years ago

@aergo/athena-compiler v0.2.0

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

athena-compiler

npm npm

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