/slingshot

A lightweight CLI for deploying programs and executing transactions on Aleo.

Primary LanguageRustGNU General Public License v3.0GPL-3.0

slingshot

Slingshot is a lightweight CLI for deploying programs and executing transactions on Aleo.

Table of Contents

1. Overview

For more information on Aleo, visit Welcome to Aleo to get started.

2. Build Guide

2.1 Install Rust

We recommend installing Rust using rustup. You can install rustup as follows:

2.2 Build from Source Code

We recommend installing slingshot this way. In your terminal, run:

# Download the source code
git clone https://github.com/d0cd/slingshot.git

# Enter the 'slingshot' directory
cd slingshot

# Install 'slingshot'
cargo install --path .

Now to use slingshot, in your terminal, run:

slingshot

3. Usage Guide

3.1 Starting a development node

slingshot node start --key <PRIVATE_KEY>

3.2 Pour from faucet

slingshot pour <ADDRESS> <AMOUNT>

3.2 Deploying a program

slingshot deploy --path <PATH_TO_DIR> 

3.3 Executing a program

slingshot execute <PROGRAM_NAME> <FUNCTION_NAME> <INPUTS>