{"_id":"@aergoio/athena-compiler","_rev":"10-afd10553a7ec8f2dc81f55d60834b302","name":"@aergoio/athena-compiler","dist-tags":{"latest":"0.0.6"},"versions":{"0.0.1":{"name":"@aergoio/athena-compiler","version":"0.0.1","description":"Aergo smart contract compiler.","main":"dist/athena-compiler.cjs.js","module":"dist/athena-compiler.esm.js","browser":"dist/athena-compiler.umd.js","types":"dist/types/index.d.ts","scripts":{"type-check":"tsc --noEmit","type-check:watch":"yarn run type-check -- --watch","lint":"eslint --fix ./src/**/*.ts ./test/**/*.ts","test":"nyc mocha --exit --require babel-register-ts test/**/*.ts","build:types":"tsc --emitDeclarationOnly","build:js":"rollup -c ./scripts/rollup.config.js ","build":"yarn run test && yarn run build:types && yarn run build:js","docs":"typedoc --out docs ./src/"},"repository":{"type":"git","url":"git+https://github.com/aergoio/athena.git"},"keywords":["aergo","smart-contract","athena","lua","ascl"],"author":{"name":"aergo team and contributors"},"license":"MIT","bugs":{"url":"https://github.com/aergoio/athena/issues"},"homepage":"https://github.com/aergoio/athena#readme","devDependencies":{"rollup-plugin-cpy":"^1.1.0"},"dependencies":{},"_id":"@aergoio/athena-compiler@0.0.1","dist":{"shasum":"398f1bc1c8fb65f244f1f1fdbac85f4c50416841","integrity":"sha512-VhcIvf4mhz5+ghtvwrU3nBTfHtYaWY8TfbrFDxusybwKO6Aq8ZwbTwjomsrZAAvF0x6oDSZhTR11ibuqfLkPrw==","tarball":"https://registry.npmjs.org/@aergoio/athena-compiler/-/athena-compiler-0.0.1.tgz","fileCount":117,"unpackedSize":150369640,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcmx2GCRA9TVsSAnZWagAAfRUP/iOcP8O07XVmSbr+4a5c\nKnBndaxsebuWW9AwRsI+1F4BZAe0qLLXtkuGlWmpc2LA1eREWnBI60A5LEhC\n6o1XPs9SW0lUTZV3cgx897385/ASUWZCrHEKhtVcFNmxGPvG5Mg+FXIvks/4\nk96JN2YOjEabZeykhW68jJTF4yqHEnoPv1GqCQIHxVNJC4NBOXvVVDsSrcyQ\nAp4AQwythFYN9VsDBRIJtkczDZyG0mO4OaDqHa1+tcnsOz/PqdFkjrTlPhyl\nyDmPRW+OwPMDPZppCkqOL6JEaDiKCqM8ysCGfm1TkvhRoy7w1Ej3WBibY4yb\nXWwmD2e2587KBdEz/cuIsqm4pQcJjqzb5niYyN3gjqoL9ZsIIxs7/IXDMZ6w\nqeYBCM4zFDhiN7COX8Ql7CvVuWe8wQMq1nNpGvm9fw6fg5nj+DMlk64c5ENk\nf3tafbWLlLkbfaxZLkv7oOnAx4lft39vXJoX5OaYqE+G6rG+5SPzBPVtgkS5\nqTVBIPdoA37RKnHkb//UMfybHlKydv9kSZmH79bFeJnZGAehUDtxI+MlRXkj\nPALirnTLgWx5OR8nT2K2QV9p8sTxMLiLZayflmhr1TS2l9CTUhWWkwNSdSsl\n2ntB27d48EgV7dLkddI3GO/B4wtSdQ6Zn1Y1qzkBAzzQe80uzBVe6K09lC7E\nwG0Z\r\n=mUA+\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCjGQB7jarXo4jO210KSKi5oArrBy9qC9O6sA4fv7invAIgQHKKctRr9r9knqnIhXf2eDSZQ9JLhSGrMEnsw+NX778="}]},"maintainers":[{"name":"acktsap","email":"sibera21@gmail.com"}],"_npmUser":{"name":"acktsap","email":"sibera21@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/athena-compiler_0.0.1_1553669509237_0.700330844483734"},"_hasShrinkwrap":false},"0.0.6":{"name":"@aergoio/athena-compiler","version":"0.0.6","description":"Aergo smart contract compiler.","main":"dist/athena-compiler.cjs.js","module":"dist/athena-compiler.esm.js","browser":"dist/athena-compiler.umd.js","types":"dist/types/index.d.ts","scripts":{"type-check":"tsc --noEmit","type-check:watch":"yarn run type-check -- --watch","lint":"eslint --fix ./src/**/*.ts ./test/**/*.ts","test":"nyc mocha --exit --require babel-register-ts test/**/*.ts","build":"yarn run test &&  yarn run build:types && yarn run build:js","build:types":"tsc --emitDeclarationOnly","build:js":"rollup -c ./scripts/rollup.config.js ","docs":"typedoc --out docs ./src/"},"repository":{"type":"git","url":"git+https://github.com/aergoio/athena.git"},"keywords":["aergo","smart-contract","athena","lua","ascl"],"author":{"name":"aergo team and contributors"},"license":"MIT","bugs":{"url":"https://github.com/aergoio/athena/issues"},"homepage":"https://github.com/aergoio/athena#readme","devDependencies":{"rollup-plugin-cpy":"^1.1.0"},"dependencies":{},"_id":"@aergoio/athena-compiler@0.0.6","dist":{"shasum":"38c8241a3cdabac1886fd62884e6efd93a98e046","integrity":"sha512-aBJkDruIKd51xJS8frHvEAwmpNIHqeOKr7OftEH78i48EV4W5NRKyQUZI6HwFD9pA1CPygbOmmRom71BoU4M3Q==","tarball":"https://registry.npmjs.org/@aergoio/athena-compiler/-/athena-compiler-0.0.6.tgz","fileCount":395,"unpackedSize":184816039,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcrsxvCRA9TVsSAnZWagAA3A8P/i9Wjoqapm9XrSX96Ard\n66l6yY3ehWMbpBYYoQgqeRta7gcyoA8H8UnIfK6TsuUr7bDlcsjBDUE0pd1Z\nrG2kqiVRpPi/pxAVga1o7vxj6z+crix3NseX0lBBkDHlcMGE52xIzgbZx9Hm\n5vhx6aYv8XqCvvSXTUGo0mxTmBv3+uZiY2g2x0amw9a3MPAYA5AoRTje7Ceq\n3WbpWGzsJHqYqsXlFZ2FnVu+dkDRYSiBQMGQwjE1qQCBqzcpP/MleA8Txbf5\nGjp/1rMG13G6EALRqorohDlUjZT6g5b7tqa6nteBvVOXACv4cqkMa44nrFMs\nsinASND6uHIQmrkraw5rylYrvkhXrSK2opIR0mrpd1gcHhaLW6jWNScA/fD4\n37IAvjBuAOpCUMpIQRZDMhN5YpBR5RljBdjDY0na/aPgP5gthql+1NcmQ3na\nqStOp6TGu0EuC2dS6Sgcup4zdmG88qeI01NijCzXfJADBoCRy8vq542Xc+TJ\nDGcrodO4mV+78fkuoL3O2BVVF6v3fo565eICiFSxMv+OcRKXIVTndCmS+rav\nU4PxAx/j9eEA2G84Fec/LR5EiywPj3VWWiBwS9ERTWvop3v8/FMWX58MLaBb\nfjuTQq68UHMobxTFHLdeSXnBGj2RClGXE+h7bzKuq6mF2cVirU+0v1PQ5CiF\niQUH\r\n=ATF6\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGViD79gIb6G9DGhozSASpLzzspFPME9JG6AP9ea0QMxAiEA5dylNY/mUQ5DdZ2mXzEXpmAY6JDIvelDWucpi3ORDko="}]},"maintainers":[{"name":"acktsap","email":"sibera21@gmail.com"}],"_npmUser":{"name":"acktsap","email":"sibera21@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/athena-compiler_0.0.6_1554959469762_0.6881721221848582"},"_hasShrinkwrap":false}},"time":{"created":"2019-03-27T06:51:49.041Z","0.0.1":"2019-03-27T06:51:50.354Z","modified":"2022-04-04T11:48:25.615Z","0.0.2":"2019-04-10T06:58:37.674Z","0.0.3":"2019-04-10T10:31:28.987Z","0.0.4":"2019-04-10T10:42:15.127Z","0.0.5":"2019-04-11T05:03:06.938Z","0.0.6":"2019-04-11T05:11:11.158Z"},"maintainers":[{"name":"acktsap","email":"sibera21@gmail.com"}],"description":"Aergo smart contract compiler.","homepage":"https://github.com/aergoio/athena#readme","keywords":["aergo","smart-contract","athena","lua","ascl"],"repository":{"type":"git","url":"git+https://github.com/aergoio/athena.git"},"author":{"name":"aergo team and contributors"},"bugs":{"url":"https://github.com/aergoio/athena/issues"},"license":"MIT","readme":"# athena-compiler\n\nProvides compiler for [aergo smart contract](https://docs.aergo.io/en/latest/smart-contracts/index.html)\n\n* [lua](https://docs.aergo.io/en/latest/smart-contracts/lua/index.html)\n* [ascl](https://docs.aergo.io/en/latest/smart-contracts/scl/index.html)\n\n## Api\n\nlua\n\n```js\nconst filePath = \"${LUA_SOURCE_FILE_PATH}\";\nconst source = \"${LUA_SOURCE}\";\nconst luaCompiler = new CompilerFactory().create(CompilerType.Lua);\n\nluaCompiler.compile(source, filePath).then(compileResult => {\n  console.log(\"Compile result\");\n  console.log(\"Payload\", compileResult.payload);\n  console.log(\"Abi\", compileResult.abi);\n}).catch(err => {\n  console.log(\"Error\", err);\n});\n```\n\nascl\n\n```js\n// TODO\n```\n\n## Usage\n\n* Install dependenty : `yarn install`\n* Test : `yarn run test`\n* Build : `yarn run build`\n","readmeFilename":"README.md"}