March 8, 2023

Aleo Testnet3 deploy Demo

Will accept installation orders on my Hetzner https://t.me/freeevde

Original documentation on the Aleo website:

https://developer.aleo.org/testnet/getting_started/deploy_execute_demo/

Aleo tools :

https://aleo.tools/

Aleo Faucet:

https://twitter.com/AleoFaucet

JSON Beautifier & Editor:

https://chrome.google.com/webstore/detail/json-beautifier-editor/lpopeocbeepakdnipejhlpcmifheolpl

Rent a server Hetzner : CPX31

Install the program to work with the PuTTY server:

https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html

Connecting to a rented server

The process of installing programs and running a test program:

Execute commands one by one

screen -S aleo

*if during the installation process you are thrown from the server, then you can return with the command screen -R aleo

Updated:

sudo apt update && sudo apt upgrade -y

Install Rust:

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

apt install cargo -y

sudo apt-get install pkg-config libssl-dev -y

Install Leo:

git clone https://github.com/AleoHQ/leo

cd leo

cargo install --path .

cd

export PATH=/root/.cargo/bin:$PATH

Checking if it's installed "Leo":

leo

Install snarkOS:

git clone https://github.com/AleoHQ/snarkOS.git --depth 1

cd snarkOS

./build_ubuntu.sh

cd

Checking if it's installed "snarkOS":

snarkos

Create a folder for the test application and go to it:

mkdir demo_deploy_Leo_app && cd demo_deploy_Leo_app

WALLETADDRESS="aleo1xxxxxxx"

* "aleo1xxxxxxx" заменяем на свой адрес

APPNAME=helloworld_"${WALLETADDRESS:4:6}"

leo new "${APPNAME}"

Start the application:

cd "${APPNAME}" && leo run && cd -

Save the application path:

PATHTOAPP=$(realpath -q $APPNAME)

Let's go to the path of your application:

cd $PATHTOAPP && cd ..

PRIVATEKEY="APrivateKeyXXXXX"

* "APrivateKeyXXXXX" заменяем на свой PrivateKey

RECORD="{ owner: aleo1xxxxx.private, gates: xxxxx.private, _nonce: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxgroup.public }"

* "value in quotes" is replaced by our own

Deploying the application:

snarkos developer deploy "${APPNAME}.aleo" --private-key "${PRIVATEKEY}" --query "https://vm.aleo.org/api" --path "./${APPNAME}/build/" --broadcast "https://vm.aleo.org/api/testnet3/transaction/broadcast" --fee 600000 --record "${RECORD}"