- Run
npm run qa_network_up
. This will run a docker compose with a full node in a custom network, a tx-mining-service, and a CPU miner. - Start the wallet with this seed:
avocado spot town typical traffic vault danger century property shallow divorce festival spend attack anchor afford rotate green audit adjust fade wagon depart level
(same as inqa/large-values-network/privnet.yml
) - Go to settings, "Change network", select "Custom network" and configure:
- Full node URL:
http://localhost:8083/v1a/
- Transaction Mining Service URL:
http://localhost:8035/
- Explorer URL:
https://explorer.testnet.hathor.network
(same as testnet — we don't use it in this QA) - Explorer Service URL:
https://explorer-service.testnet.hathor.network/
(same as testnet — we don't use it in this QA)
- Full node URL:
- Check that the total available is exactly
92,233,720,368,547,758.00 HTR
. - Check that a simple transaction can be sent
- Copy an address from this wallet.
- Go to the "Send Tokens" tab and create a transaction to that address.
- Copy the "Balance available" value, paste it in the value input, and send the transaction.
- The transaction should be successfully created. Return to the main screen.
- The balance should remain
92,233,720,368,547,758.00 HTR
, and a new transaction with value0.00
should appear in the history.
- Check that a custom token can be created with the maximum output value
- Go to the "Custom tokens" tab.
- Type any "Short name" and "Symbol".
- Put exactly
9223372036854775808
as the "Amount". This is2^63
, which is the maximum value an output can hold. It should appear as92,233,720,368,547,758.08
in the input. - The deposit should appear as exactly
922,337,203,685,477.60 HTR
. It's not precisely 1% of the requested amount, this is expected. For more information, see this. - Create the token, and the transaction should be successfully created. Return to the main screen.
- Go to your newly created token's tab, and check that the total available is exactly
92,233,720,368,547,758.08
. It should contain one transaction in the history with92,233,720,368,547,758.08
as the value. - Go to the HTR tab, the total available should be exactly
91,311,383,164,862,280.40
, and a new transaction with value-922,337,203,685,477.60
should appear in the history.
- Run automated checking script. This is like an integration test, the goal is to check that transactions were created with the correct values in the full node, and that we're not being tricked by display values that may accidentally look the same as the correct value in the wallet.
- Run
python ./qa/large-values-network/checks.py
. - Make sure it outputs
Checks executed successfully.
- Run
- Run
npm run_qa_network_down
.