-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #570 from HathorNetwork/release-candidate
chore: merge release-candidate into release
- Loading branch information
Showing
20 changed files
with
305 additions
and
164 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
1. **Wallet Service initialization** | ||
1. Start a new wallet | ||
1. Send 1.00 HTR from another wallet to the wallet address. | ||
1. Create a custom token 'WST0', amount 100. | ||
1. Go to Settings and copy the "Unique identifier" | ||
1. Go to the unleash dashboard and add it to the list of UserIDs | ||
1. Close your wallet (not lock) and open it again. | ||
1. Unlock the wallet and check that your history is showing correctly. | ||
1. Check that you have balance for HTR (0.99 HTR) and WST0 (100.00 WST0) | ||
1. Check that you have authorities for mint and melt for WST0. | ||
|
||
1. **Wallet screen** | ||
1. Check that you have HTR and other custom tokens on your wallet. | ||
1. Copy the address and send 1.00 HTR from another wallet to this address. | ||
1. Check that we receive a notification for the transaction. | ||
1. Check that the transaction appears in the list, the balance was updated and the address also changed. | ||
1. Click on 'See all addresses' and see the list. | ||
1. Search for the address used to send the transaction and check that it has 'Number of transactions' equal to 1. | ||
|
||
1. **Custom tokens** | ||
1. Click on 'Custom tokens', then 'Create a new token'. | ||
1. Create a token 'WS Test Token', 'WTST', amount 100. | ||
1. Validate its symbol appeared selected in the token bar. | ||
1. The list of transactions should have only one, with type 'Token creation' and amount of 100.00. | ||
1. Click on the HTR token (in the token bar) and check if the first transaction is of type 'Token deposit' with amount of 1.00. | ||
|
||
1. **Custom token admin** | ||
1. Click on 'WTST' on the token bar and then on 'Administrative tools' | ||
1. Use the 'Melt tokens' to melt all tokens you have. | ||
1. Go to 'Balance & History' and check that the 'Total' is 0 and that the melt transaction appears on the list. | ||
1. Go back to 'Administrative tools' and use 'Mint tokens' mint 100 tokens. | ||
1. Click on 'Balance & History' and check the mint transaction is on the list. | ||
1. Check that the 'Total' and 'Available' are 100.00 WTST | ||
1. Copy the current address and go back to 'Administrative tools' | ||
1. Use the 'Delegate mint' to the address you copied, keep the 'Create another mint output for you?' checked. | ||
1. Check that the message under 'Mint authority management' now reads 'You are the owner of 2 mint outputs'. | ||
1. Use the 'Destroy mint' to destroy one authority. | ||
1. Check that the message under 'Mint authority management' now reads 'You are the owner of 1 mint output'. | ||
1. Use the 'Delegate melt' to the address you copied, keep the 'Create another mint output for you?' checked. | ||
1. Check that the message under 'Melt authority management' now reads 'You are the owner of 2 melt outputs'. | ||
1. Use the 'Destroy melt' to destroy one authority. | ||
1. Check that the message under 'Melt authority management' now reads 'You are the owner of 1 melt output'. | ||
|
||
1. **Settings** | ||
1. Go to Settings and click on "Change server" | ||
1. Use the following urls to connect to testnet wallet service. | ||
1. `https://wallet-service.testnet.hathor.network` | ||
1. `wss://ws.wallet-service.testnet.hathor.network` | ||
1. Check that you are connected to the testnet in the upper right corner. | ||
1. Check that your address starts with 'W'. | ||
1. Go to Settings and click on "Change server" | ||
1. Connect to the mainnet wallet service. | ||
1. `https://wallet-service.hathor.network` | ||
1. `wss://ws.wallet-service.hathor.network` | ||
1. Check that you are connected to the mainnet in the upper right corner. | ||
1. Check that your address starts with 'H'. | ||
1. Go to Settings and set "Hide zero-balance tokens" to yes. | ||
1. Go to "WTST" and melt all tokens. | ||
1. Check that "WTST" does not appear on the token bar. | ||
1. Go to Settings and set "Hide zero-balance tokens" to no. | ||
1. Check that "WTST" appears on the token bar. | ||
1. Click on "WTST" and go to "About WS Test Token" and change "Always show this token" to yes. | ||
1. Go to Settings and set "Hide zero-balance tokens" to yes. | ||
1. Melt all WTST tokens. | ||
1. Check that "WTST" is still on the token bar. | ||
1. Check that the "WTST" balance is zero. |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,7 +22,7 @@ | |
"productName": "Hathor Wallet", | ||
"description": "Light wallet for Hathor Network", | ||
"author": "Hathor Labs <[email protected]> (https://hathor.network/)", | ||
"version": "0.27.1-rc5", | ||
"version": "0.28.0-rc1", | ||
"engines": { | ||
"node": ">=20.0.0", | ||
"npm": ">=10.0.0" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
import React, { useEffect, useState, useCallback } from 'react'; | ||
import { t } from 'ttag'; | ||
import $ from 'jquery'; | ||
import SpanFmt from './SpanFmt'; | ||
import { CONFIRM_RESET_MESSAGE } from '../constants'; | ||
|
||
export default function ModalConfirmClearStorage({ onClose, success }) { | ||
const [confirmText, setConfirmText] = useState(''); | ||
const [confirmError, setConfirmError] = useState(''); | ||
|
||
useEffect(() => { | ||
$('#modalConfirmResetAllData').modal('show'); | ||
$('#modalConfirmResetAllData').on('hidden.bs.modal', onClose); | ||
|
||
return () => { | ||
$('#modalConfirmResetAllData').modal('hide'); | ||
$('#modalConfirmResetAllData').off(); | ||
}; | ||
}, []); | ||
|
||
const confirmResetData = useCallback(() => { | ||
if (confirmText.toLowerCase() !== CONFIRM_RESET_MESSAGE.toLowerCase()) { | ||
setConfirmError(t`Invalid value.`); | ||
return; | ||
} | ||
|
||
success(); | ||
}, [confirmText, setConfirmError]); | ||
|
||
return ( | ||
<div className="modal fade" id="modalConfirmResetAllData" tabIndex="-1" role="dialog" aria-labelledby="alertModal" aria-hidden="true" data-backdrop="static" data-keyboard="false"> | ||
<div className="modal-dialog" role="document"> | ||
<div className="modal-content"> | ||
<div className="modal-header"> | ||
<h5 className="modal-title"> | ||
{ t`Confirm reset all data` } | ||
</h5> | ||
</div> | ||
<div className="modal-body"> | ||
<div> | ||
<p><SpanFmt>{t`**Make sure you have the backup of your seed because this will turn your wallet into a fresh install.**`}</SpanFmt></p> | ||
<p>{t`Do you want to reset all of your wallet data? Only continue if you know what you are doing.`}</p> | ||
<p>{t`This action cannot be undone. All your data will be erased.`}</p> | ||
<p>{t`Your wallet uniqueId will be reset.`}</p> | ||
<p>uniqueId: {localStorage.getItem('app:uniqueId')}</p> | ||
<p>{t`If you want to reset all data, please type '${CONFIRM_RESET_MESSAGE}' in the box below and click on 'Reset all data' button.`}</p> | ||
<p>{t`After resetting the data, the application will close, and you will need to open it again.`}</p> | ||
<div> | ||
<input type="text" className="form-control" placeholder={t`Write '${CONFIRM_RESET_MESSAGE}'`} onChange={(e) => setConfirmText(e.target.value)} /> | ||
<span className="text-danger ml-2"> | ||
{confirmError} | ||
</span> | ||
</div> | ||
</div> | ||
</div> | ||
<div className="modal-footer"> | ||
<button onClick={confirmResetData} type="button" className="btn btn-secondary"> | ||
{t`Reset all data`} | ||
</button> | ||
<button onClick={onClose} type="button" className="btn btn-hathor"> | ||
{ t`Cancel` } | ||
</button> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.