└── README.MD /README.MD: -------------------------------------------------------------------------------- 1 | discord : mrcryptoo 2 | Aleo 3 | 4 | ## Aleo-deploy-for-mrcryptoo 5 | 6 | First prepare the prerequisites and enter the following codes after starting. 7 | 8 | So let's go! step by step 9 | 10 | I am using `Bitvise SSH Client` software to run the commands. 11 | 12 | **When you connected by SSH to your server I copy and paste the commands line by line to prepare prerequisites on our server, so let's do it.**| 13 | 14 | ```bash 15 | curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh 16 | ``` 17 | next 18 | ```bash 19 | source $HOME/.cargo/env 20 | ``` 21 | 22 | next 23 | ```bash 24 | rustup install stable 25 | ``` 26 | 27 | next 28 | ```bash 29 | rustup update stable 30 | ``` 31 | 32 | next 33 | ```bash 34 | rustup default stable 35 | ``` 36 | 37 | next 38 | ```bash 39 | git clone https://github.com/AleoHQ/leo 40 | cd leo 41 | ``` 42 | 43 | next 44 | ```bash 45 | apt install clang gcc libssl-dev pkg-config 46 | ``` 47 | 48 | next 49 | ```bash 50 | cargo install --path . 51 | ``` 52 | 53 | next 54 | ```bash 55 | git clone https://github.com/AleoHQ/snarkOS.git --depth 1 56 | cd snarkOS 57 | ``` 58 | 59 | next 60 | ```bash 61 | ./build_ubuntu.sh 62 | ``` 63 | 64 | And last one for this part 65 | ```bash 66 | cargo install --path . 67 | ``` 68 | **At this point, you must have received Faucet via Twitter or SMS.** 69 | 70 | so befor to get faucet you should [visit this site](https://faucetgreenlist.snarkos.net) to put your wallet address in green list. 71 | 72 | When you done this step we can get our faucet by SMS, to do that we can throw a text message to 73 | **`number : +1867-888-5688`** 74 | 75 | ```bash 76 | Send 10 credits to aleo... (Your wallet address) 77 | ``` 78 | 79 | to get faucet by Twitter twite below line : 80 | ```bash 81 | @AleoFaucet send 10 credits to aleo... (Your wallet address) 82 | ``` 83 | 84 | So excited till now 😍 when you received the faucet on your wallet try to run the final commands line by line. let's do it. 85 | 86 | First command 87 | ```bash 88 | cd $HOME 89 | ``` 90 | 91 | next 92 | ```bash 93 | mkdir demo_deploy_Leo_app && cd demo_deploy_Leo_app 94 | ``` 95 | 96 | next, , be aware to put your wallet address in below 97 | ```bash 98 | WALLETADDRESS="put-your-wallet-address-here" 99 | ``` 100 | 101 | next, be aware to put your wallet address in below 102 | ```bash 103 | APPNAME=helloworld_"${WALLETADDRESS:4:6}" 104 | ``` 105 | 106 | next, here we create a new app 107 | ```bash 108 | leo new "${APPNAME}" 109 | ``` 110 | 111 | next 112 | ```bash 113 | PATHTOAPP=$(realpath -q $APPNAME) 114 | ``` 115 | 116 | next 117 | ```bash 118 | cd $PATHTOAPP && cd .. 119 | ``` 120 | 121 | next, be aware to put your wallet private key in below 122 | ```bash 123 | PRIVATEKEY="put-your-wallet-private-key-here" 124 | ``` 125 | 126 | Now go to [aleo.tools](https://aleo.tools) and use the value & view key of your faucet transation that you received. 127 | 128 | help to generate RECORD 129 | 130 | ```bash 131 | RECORD="put-the-code-that-you-get-it-here" 132 | ``` 133 | 134 | finally run below command 135 | 136 | ```bash 137 | 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}" 138 | ``` 139 | --------------------------------------------------------------------------------