This workshop requires the following prerequisites.
-
For Windows: snasrkOS releases Using unzip and run with cmd/pw. Note: Can export enviroment to path.
Aleo Discord Using faucet to get Aleo.
/sendcredits {WalletAddress} 15
Follow the instructions here to setup the Development Environment to start building Dapps on Leo
This workshop requires one of the following IDEs.
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.
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.
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