New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

aqua-compiler

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aqua-compiler

An expressive high level language for the Algorand block chain that compiles to TEAL code.

  • 0.0.9
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

Aqua-compiler

An expressive high level language for the Algorand block chain that compiles to TEAL code.

This is a work in progress. Please report issues and help set the direction for this project.

Quick setup

Clone the repo:

git clone git@github.com:sovereign-labs/aqua-compiler.git

Install dependencies:

cd aqua-compiler
npm install

Then run it:

npm start

Or with live reload:

npm run start:dev

Build Aqua

Build the parser:

npm run build-parse

Build TypeScript code:

npm run build 

Compile a file

aqua test.aqua

Or:

npx ts-node src/cli.ts examples/test.aqua

Executing a file

aqua exec test.aqua

Or:

npx ts-node src/cli.ts exec examples/test.aqua

Run the REPL

aqua

Or:

npx ts-node src/cli.ts

Or

npm run start:repl

Trying entering expressions at the REPL prompt:

  • txn Amount >= 1000;
  • 15 + txn Amount >= 1000;
  • txn Amount <= arg 0;
  • txn Amount + arg0 > 1000 && arg1 > 30;
  • txn Receiver == addr ABC123;
  • "a string" == txn Something;
  • return 1+2;

Visualise the AST

npm run start:ast

Run tests

npm test

Or

npm run test:watch

Build the binary executables

Make sure to have use Node.js v12.15.0 which is known to work with Nexe.

Use nvm to install and swap between different versions of Node.js:

nvm install 12.15.0
nvm use 12.15.0

!! Build the TypeScript code:

npm run build

Build for each platform:

npm run build-macos
npm run build-linux
npm run build-win

Or

npm run build-all

NOTE: Linux and MacOS builds should be built on Linux.

FAQs

Package last updated on 24 Jan 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc