diff --git a/QA_Nano.md b/QA_Nano.md index 93a5508e..7c5324e1 100644 --- a/QA_Nano.md +++ b/QA_Nano.md @@ -22,26 +22,26 @@ More about Nano Contracts on our [official docs](https://docs.hathor.network/exp - Click "Confirm" and you should see the next screen for initialization # Initialization -## Address to Sign +### Address to Sign - Press "Create" without inserting any data: all fields should turn red - Insert any invalid data into "Address to Sign" and press "Create". Validation should still be red - Insert a valid address that is not from this wallet and press "Create". The validation persists. - Paste an address from this wallet that you already know. The validation should pass with green color. - Click "Select from a list" and select one of the addresses there. Validation still green. -## Oracle Script +### Oracle Script - Insert "s" into this field. It should still be red. - Insert "a". The field should turn green immediately, without need to press the "Create" button. - Insert a valid script like `76a914db6fe378a8af070b332104c66c0a83dcb2d03e8b88ac`. -## Other fields +### Other fields - Select any token from the list and it should become green. - Select the empty value again and it should return to red. - Select the HTR token. - Insert an invalid date (31/Fev/1990). The date field should still be red. - Insert a valid date in about 5 minutes in the future ( we will test this validation later ) and it should immediately become green. -## Creation +### Creation - Click "Create" and add an incorrect PIN on the modal: the "Invalid PIN" error should appear - Insert the correct pin and click "Go". - After a while, the NC should be created. @@ -51,7 +51,7 @@ More about Nano Contracts on our [official docs](https://docs.hathor.network/exp # Interacting with a Nano Contract This first interaction should happen before the "Date of Last Bet", so that the bet is valid. -## Betting - Method Parameters +### Betting - Method Parameters - On the Nano Contracts details screen, "Available Methods" section, click on `bet` - Without inserting anything, click "Execute Method". All fields should become red. - Insert an invalid address on the "Address" field and click "Execute". Should stay red. @@ -61,7 +61,7 @@ This first interaction should happen before the "Date of Last Bet", so that the - The PIN should be requested before any validation on the actions is made. - Insert the correct pin and send the transaction. Check that it becomes voided because the action was missing. -## Betting - Action +### Betting - Action - Select the `bet` method and fill all the fields again. Take note of the address used. - Select "Deposit" from the "Type" options - Click "Execute" and check that the other fields become red @@ -72,7 +72,7 @@ This first interaction should happen before the "Date of Last Bet", so that the - Now the Token Details screen should indicate the field `total` is `0.01` - The "Balances" section should indicate a balance of `0.01` for token `00` -## Late betting +### Late betting - We need a different valid bet to decide a winner, so create another bet with: - Another address from this same wallet - Score: `2` @@ -81,7 +81,7 @@ This first interaction should happen before the "Date of Last Bet", so that the - Now wait for a while until the timestamp informed for `date_last_bet` - Create a new valid bet, and click "Execute". A message will appear informing of an error, and the transaction will not be processed. -## Setting Results +### Setting Results - Now, on "Nano Contract Detail" screen, select `set_result` - Without filling any fields, click "Execute". The "result" field should become red. - Enter any character in it and it should become green immediately @@ -92,7 +92,7 @@ This first interaction should happen before the "Date of Last Bet", so that the - Click "Execute Method" and add the correct PIN - On the detail screen, the `final_result` field should be filled with `1` -## Withdrawing the prize +### Withdrawing the prize - Navigate to the "Nano Contract Detail" screen - Click on the "Address" field and change it to the address of the winning bet - Back on the "Nano Contract Detail" screen, select the "withdraw" method