diff --git a/docs/quick-start/developers/_deploy.md b/docs/quick-start/developers/_deploy.md index 20b7f050..d25781a9 100644 --- a/docs/quick-start/developers/_deploy.md +++ b/docs/quick-start/developers/_deploy.md @@ -16,6 +16,11 @@ You will be prompted to save your account, please do **save** your account as sh ? Save account info into a file? (Y/n) Y ``` +**Make sure to choose Y to save your account information.** + +:::tip +ℹ️ Note: If you do not save your account information (by selecting n or N), do not export the wallet password. Only **proceed to the next** step if you have saved your account information. +::: Next, enter and confirm your password. Then export your wallet password as shown below: ```bash @@ -34,7 +39,7 @@ import TabItem from '@theme/TabItem'; -Run the following command to get testnet ELF tokens from faucet. Remember to either export your wallet address and wallet password or replace $WALLET_ADDRESS and $WALLET_ADDRESS with your wallet address and wallet password respectively. +Run the following command to get testnet ELF tokens from faucet. Remember to either export your wallet address and wallet password or replace `$WALLET_ADDRESS` and `$WALLET_PASSWORD` with your wallet address and wallet password respectively. ```bash export WALLET_ADDRESS="YOUR_WALLET_ADDRESS" @@ -59,7 +64,7 @@ You should see the result displaying your wallet's ELF balance. -Go to this url ``. Enter your address and click `Get Tokens`. +Go to https://faucet-ui.aelf.dev Enter your address and click `Get Tokens`. ![result](/img/get-token-ui.png) @@ -82,8 +87,11 @@ Please wait for approximately 1 to 2 minutes. If the deployment is successful, i ![result](/img/deploy-result.png) +Copy the smart contract address from the `address` field +![result](/img/Contract_Address.png) + Export your smart contract address: ```bash export CONTRACT_ADDRESS="YOUR_SMART_CONTRACT_ADDRESS e.g. 2LUmicHyH4RXrMjG4beDwuDsiWJESyLkgkwPdGTR8kahRzq5XS" -``` \ No newline at end of file +``` diff --git a/docs/quick-start/developers/lottery-game-smart-contract/index.md b/docs/quick-start/developers/lottery-game-smart-contract/index.md index 9ce45c2e..094b32cf 100644 --- a/docs/quick-start/developers/lottery-game-smart-contract/index.md +++ b/docs/quick-start/developers/lottery-game-smart-contract/index.md @@ -15,7 +15,7 @@ management, event handling, and randomization in smart contracts. ## Step 1 - Setting up your development environment -import Setup from "../_setup.md" +import Setup from "../\_setup.md" @@ -50,7 +50,7 @@ Firstly, rename `Protobuf/contract/hello_world_contract.proto` to `lottery_game_ mv Protobuf/contract/hello_world_contract.proto Protobuf/contract/lottery_game_contract.proto ``` -Next, open the project with your IDE. +Next, open the project with your IDE. The implementation of file `src/Protobuf/contract/lottery_game_contract.proto` is as follows: @@ -1301,7 +1301,7 @@ You should see **LotteryGame.dll.patched** in the directory `lottery_game/src/bi ## Step 3 - Deploy Smart Contract -import Deploy from "../_deploy.md" +import Deploy from "../\_deploy.md" @@ -1332,12 +1332,25 @@ Enter the params one by one, type `Enter` to skip optional param: aelf-command send $CONTRACT_ADDRESS -a $WALLET_ADDRESS -p $WALLET_PASSWORD -e https://tdvw-test-node.aelf.io Initialize ``` +Output: +![result](/img/Initialize.png) + ### Depositing funds into the Lottery Game Contract ```bash aelf-command send $CONTRACT_ADDRESS -a $WALLET_ADDRESS -p $WALLET_PASSWORD -e https://tdvw-test-node.aelf.io Deposit ``` +You will be prompted for the following: + +```terminal +Enter the params one by one, type `Enter` to skip optional param: +? Enter the required param : 20000 +``` + +Output: +![result](/img/Deposit.png) + ### Playing the Lottery Game ```bash @@ -1355,4 +1368,4 @@ You will be prompted for the following: ```terminal Enter the required param : ELF Enter the required param : $WALLET_ADDRESS -``` \ No newline at end of file +``` diff --git a/static/img/Contract_Address.png b/static/img/Contract_Address.png new file mode 100644 index 00000000..597df8f6 Binary files /dev/null and b/static/img/Contract_Address.png differ diff --git a/static/img/Deposit.png b/static/img/Deposit.png new file mode 100644 index 00000000..21ed17b0 Binary files /dev/null and b/static/img/Deposit.png differ diff --git a/static/img/Initialize.png b/static/img/Initialize.png new file mode 100644 index 00000000..ca152ee3 Binary files /dev/null and b/static/img/Initialize.png differ