Crates.io | octez |
lib.rs | octez |
version | 0.1.0-alpha.0 |
source | src |
created_at | 2024-02-23 14:54:32.665536 |
updated_at | 2024-02-23 15:00:59.897277 |
description | Bindings to Octez (Tezos) binaries |
homepage | https://github.com/trilitech/jstz |
repository | https://github.com/trilitech/jstz |
max_upload_size | |
id | 1150667 |
size | 22,267 |
jstz
(pronounced: "justice") is a JavaScript runtime powered by Tezos Smart Optimistic Rollups that uses Boa and is built in Rust.
Build from source using Rust:
make build-deps
make build
See installing Octez for installing the necessary dependencies for running jstz
.
# Make a javascript file
echo "export default (() => new Response('hello world'))" > index.js
# Start the sandbox
make build-installer
cargo run -- sandbox start
# Deploy smart function
cargo run -- deploy index.js --name example
# Send request to smart function
cargo run -- run tezos://example/
For the latest jstz
documentation, click here.
Please, check the CONTRIBUTING.md file to know how to effectively contribute to the project.
This project is licensed under the MIT license.