@aergo/athena-compiler

Aergo smart contract compiler.

Usage no npm install needed!

<script type="module">
  import aergoAthenaCompiler from 'https://cdn.skypack.dev/@aergo/athena-compiler';
</script>

README

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