Bu rehberde Aleo ile sözleşme etkileşimine girmeyi anlatacağım
#!/bin/bash
sudo apt update && sudo apt upgrade -y
sudo apt-get install git-all -y
sudo apt-get install curl -y
sudo su
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
source "$HOME/.cargo/env"
git clone https://github.com/AleoHQ/leo
cd leo
cargo install --path .
cd ..
mkdir aleo_sozlesme_herculesnode && cd aleo_sozlesme_herculesnode
WALLETADDRESS=CÜZDANINIZIN-ADRESİ
3- Program ismi oluşturacağız burası önemli hercules yazan yeri kendi istediğiniz bir isimle değiştirin ! Burası değişecek = hercules
APPNAME=hercules_${WALLETADDRESS:4:6}
4- Leo test uygulaması oluşturalım Buradaki çıktıyı not alalım kendi program ismimizi oluşturduk aşağıda kullanacağız önemli
leo new ${APPNAME}
cd ${APPNAME} && leo run && cd -
PATHTOAPP=$(realpath -q $APPNAME)
1- Bu adrese Gidelim : https://aleo.tools/develop
Alt tarafta bulunan Deploy Program bölümüne gelelim
2- Program Bölümüne bunları yazalım burada değiştireceğiniz alan Yukarıda 4. adımda oluşturduğumuz ismi yazacağız Not alın dediğim yeri
program hercules_14mwla.aleo;
function hello:
input r0 as u32.public;
input r1 as u32.private;
add r0 r1 into r2;
output r2 as u32.private;