@aergo/athena-compiler
TypeScript icon, indicating that this package has built-in type declarations

0.2.0 • Public • Published

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

Dependencies (0)

    Dev Dependencies (1)

    Package Sidebar

    Install

    npm i @aergo/athena-compiler

    Weekly Downloads

    2

    Version

    0.2.0

    License

    MIT

    Unpacked Size

    40.8 MB

    Total Files

    110

    Last publish

    Collaborators

    • aergo_io
    • acktsap
    • graup