Skip to content
/ jstz Public
forked from jstz-dev/jstz

JavaScript runtime and compute platform build on Tezos Smart Rollups

License

Notifications You must be signed in to change notification settings

denver-s/jstz

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1,502 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Jstz

codecov

Jstz (pronounced: "justice") is a JavaScript runtime powered by Tezos Smart Optimistic Rollups that is built in Rust.

Installation

Install the Jstz command-line tool via NPM with this command:

npm i -g @jstz-dev/cli

To verify that Jstz installed correctly, run jstz --version.

Building from source

You can build Jstz from source with Rust:

make build-deps
make build

See installing Octez for installing the necessary dependencies for running Jstz.

Quick Start

# Create a smart function in a JavaScript file
echo "export default (() => new Response('hello world'))" > index.js
# Start the sandbox in detach mode
jstz sandbox --container start -d
# Deploy smart function
jstz deploy index.js --name example -n dev
# Send request to smart function
jstz run jstz://example/ -n dev

For a more detailed quick start, see Quick start.

Documentation

For the latest Jstz documentation, click here.

To build the documentation locally with Docusaurus, first do npm i, and then:

npm run docs:dev

to quickly see the results in your browser, or:

npm run docs:build

to build a production-grade website.

Contributing

Please, check the CONTRIBUTING.md file to know how to effectively contribute to the project.

License

This project is licensed under the MIT license.

About

JavaScript runtime and compute platform build on Tezos Smart Rollups

Resources

License

Contributing

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Rust 91.2%
  • JavaScript 3.4%
  • LigoLANG 2.1%
  • Nix 1.0%
  • Shell 0.9%
  • TypeScript 0.9%
  • Other 0.5%