@aergoio/athena-compiler

Aergo smart contract compiler.

Usage no npm install needed!

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

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