Skip to content

dvgui/Aleo-Workshop-Encode-Club

 
 

Repository files navigation

workshop

📜 A starter guide to build applications on Aleo 📜

Table of Contents

Build Guide

Prerequisites

This workshop requires the following prerequisites.

  1. Install Git

  2. Install Rust

  3. Install Leo

  4. Install snarkos

    For Windows: snasrkOS releases Using unzip and run with cmd/pw. Note: Can export enviroment to path.

  5. Install Leo Wallet

  6. Install VSCode

Aleo Testnet - how to get credits?

Aleo Discord Using faucet to get Aleo.

/sendcredits {WalletAddress} 15

Installation

Follow the instructions here to setup the Development Environment to start building Dapps on Leo

IDE Support

This workshop requires one of the following IDEs.

VSCode (Preferred)

Start by installing VSCode with bit.ly/start-vscode.

Next, in VSCode, open the VSCode Marketplace, type Leo into the search bar, and proceed to install the Leo plugin.

Leo VSCode

Sublime Text

Installation Steps

Start by installing Sublime Text with bit.ly/start-sublime.

Next, in Sublime Text, install Package Control:

  • On Windows/Linux: ctrl + shift + p, type Install Package Control, and press Enter.
  • On macOS: cmd + shift + p, type Install Package Control, and press Enter.

Next, in Sublime Text, install LSP:

  • On Windows/Linux: ctrl + shift + p, select Package Control: Install Package, type LSP, and press Enter.
  • On macOS: cmd + shift + p, select Package Control: Install Package, type LSP, and press Enter.

Lastly, in Sublime Text, install LSP-leo:

  • On Windows/Linux: ctrl + shift + p, select Package Control: Install Package, type LSP-leo, and press Enter.
  • On macOS: cmd + shift + p, select Package Control: Install Package, type LSP-leo, and press Enter.

Deploy Program

Command (no fee)

For Macos/ Linux:

PRIVATEKEY="${PRIVATEKEY}"
PROGRAM_ID="<project_name>"
snarkos developer deploy \
--private-key "${PRIVATEKEY}" \
--query https://api.explorer.aleo.org/v1 \
--priority-fee 0 \
"${PROGRAM_ID}.aleo" \
--path "./${PROGRAM_ID}/build/" \
--broadcast https://api.explorer.aleo.org/v1/testnet3/transaction/broadcast
--network 1

For Windows (Using direct .exe file):

.\snarkos developer deploy "${APPNAME}.aleo" --private-key "${PRIVATEKEY}" --query "https://api.explorer.aleo.org/v1" --path "./${APPNAME}/build/" --broadcast "https://api.explorer.aleo.org/v1/testnet3/transaction/broadcast" --priority-fee 0

Result

Result (demo):

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published