Commit Graph

213 Commits

Author SHA1 Message Date
alfred-mk
bd8631eb05 update the TestCheckBlockedStatus to account for the udpated functionality
Some checks failed
release / docker (push) Has been cancelled
2025-07-28 16:15:21 +03:00
alfred-mk
c51fd89ad5 set key flags (language and PIN) if the data exists and the flags are missing 2025-07-28 16:14:32 +03:00
alfred-mk
193c9c119a filter out the active voucher from swapToList 2025-07-21 13:01:06 +03:00
alfred-mk
61f48abb7d return on navigation inputs to prevent data processing 2025-07-21 12:30:05 +03:00
alfred-mk
3e40a09d39 format the balance to 2 d.p. before displaying it 2025-07-21 12:22:05 +03:00
alfred-mk
7e90124199 filter out the active pool from the list of available pools 2025-07-21 11:50:50 +03:00
alfred-mk
e27905765c updated TestManageVouchers to match filtering of active vouchers 2025-07-21 11:28:05 +03:00
alfred-mk
4ce9baa379 return on navigation inputs to prevent data processing 2025-07-21 11:27:20 +03:00
alfred-mk
e47415cc22 remove the active voucher from the list of stored vouchers 2025-07-21 11:25:33 +03:00
alfred-mk
1f4d810e14 update the GetVoucherList comment description 2025-07-21 10:23:00 +03:00
alfred-mk
058d802c0f return on navigation inputs to prevent calling the API 2025-07-18 16:04:24 +03:00
alfred-mk
da64c3b80e MAJOR REFACTOR: project-tidyup - menuhandler and tests (#90)
Partly resolves issue #86

Reviewed-on: #90
Co-authored-by: alfred-mk <alfredmwaik@gmail.com>
Co-committed-by: alfred-mk <alfredmwaik@gmail.com>
2025-07-14 14:42:54 +02:00
alfred-mk
44673ef61b remove extra whitespace 2025-07-07 21:25:29 +03:00
alfred-mk
559b67a3e6 display the full alias on its own line 2025-07-07 21:24:16 +03:00
alfred-mk
b1eb460988 add a isAliasUnavailable helper function
Some checks failed
release / docker (push) Has been cancelled
2025-07-07 18:55:17 +03:00
alfred-mk
619edc39f8 remove unused function GetSuggestedAlias 2025-07-07 17:52:59 +03:00
alfred-mk
efa29b087e remove unused node and function confirm_new_alias 2025-07-07 17:51:45 +03:00
alfred-mk
a3ab91f6a3 handle alias registration and updates on the single RequestCustomAlias function 2025-07-07 17:43:04 +03:00
alfred-mk
16dd0f6ebf set the first voucher as the active voucher when the current active sym is not found in the vouchers response
Some checks failed
release / docker (push) Has been cancelled
2025-07-02 19:10:02 +03:00
alfred-mk
a3dae12c7a update the TestCheckBalance and add more test cases
Some checks failed
release / docker (push) Has been cancelled
2025-07-02 09:30:30 +03:00
alfred-mk
57426b3565 use the TruncateDecimalString to format the displayed balance 2025-07-02 09:29:56 +03:00
alfred-mk
2807f039a7 Merge branch 'master' into add-balance-to-voucher-list 2025-07-02 08:50:50 +03:00
alfred-mk
ba2cb4b813 use the DATA_SUGGESTED_ALIAS to check the status 2025-07-01 01:29:52 +03:00
alfred-mk
8416d4fddb use a single alias variable 2025-07-01 01:18:03 +03:00
alfred-mk
a33ff7ffda added logging 2025-07-01 00:56:50 +03:00
alfred-mk
7d1951ec7a use updated sarafu-api with correct order of variables 2025-07-01 00:51:05 +03:00
alfred-mk
b31a68ad8e added logging 2025-07-01 00:27:45 +03:00
alfred-mk
ea3a6d8382 call the UpdateAlias if the account has an Aias 2025-06-30 18:18:06 +03:00
alfred-mk
0fcadd4634 Merge branch 'master' into update-alias 2025-06-30 14:43:55 +03:00
alfred-mk
9234bfd579 update the TestGetVoucherList to the expected content 2025-06-30 13:36:07 +03:00
alfred-mk
706b6fe629 include the balance next to each voucher 2025-06-30 13:31:55 +03:00
alfred-mk
3592e7747c add a test case with large decimal amount 2025-06-26 12:30:44 +03:00
alfred-mk
7fe40faa9d use the TruncateDecimalString helper function to format amounts to 2 d.p 2025-06-26 12:30:14 +03:00
alfred-mk
b497dde1e8 remove unused 'constructAccountAlias' func 2025-06-26 10:02:55 +03:00
alfred-mk
dabdf7eba2 add a test case to ensure the stored amount is not rounded off 2025-06-24 14:55:37 +03:00
alfred-mk
96f6ca7d08 truncate two decimal places without risking float rounding issues 2025-06-24 14:55:09 +03:00
alfred-mk
bc48dddd99 use the correct ContractAddress for the Last10TxResponse struct 2025-06-24 14:04:07 +03:00
alfred-mk
5263af46d8 use a single ProcessVouchers due to similar data struct
Some checks failed
release / docker (push) Has been cancelled
2025-06-23 10:09:39 +03:00
alfred-mk
383ef51134 use the TokenAddress instead of ContractAddress 2025-06-23 10:07:53 +03:00
alfred-mk
6f2d965b89 add log for the GetCurrentProfileInfo
Some checks failed
release / docker (push) Has been cancelled
2025-06-23 08:56:37 +03:00
alfred-mk
150dc99201 log the response from GetPoolSwappableVouchers
Some checks failed
release / docker (push) Has been cancelled
2025-06-19 14:54:43 +03:00
alfred-mk
b85c5a8788 log the metadata from GetSwapToVoucherData
Some checks failed
release / docker (push) Has been cancelled
2025-06-19 14:17:43 +03:00
alfred-mk
e803048b13 Added more logging and display the actual activePoolSymbol
Some checks failed
release / docker (push) Has been cancelled
2025-06-19 12:54:33 +03:00
alfred-mk
42dadb5eea add-pool-selection (#79)
Some checks failed
release / docker (push) Has been cancelled
- Add pool selection under "Select vouchers" node
- Use the set pool contract address in the swap, or fall back to the default

Reviewed-on: #79
Co-authored-by: alfred-mk <alfredmwaik@gmail.com>
Co-committed-by: alfred-mk <alfredmwaik@gmail.com>
2025-06-09 13:38:19 +02:00
alfred-mk
7228b818e3 swap-fix (#78)
Some checks failed
release / docker (push) Has been cancelled
- Resolves a "key not found error" on the swap max limit node
- Resolves double PIN requests when authorizing transactions #67

Reviewed-on: #78
Co-authored-by: alfred-mk <alfredmwaik@gmail.com>
Co-committed-by: alfred-mk <alfredmwaik@gmail.com>
2025-06-03 09:19:13 +02:00
alfred-mk
8dc203d111 use the TemporaryValue to store the user's swap amount input
Some checks failed
release / docker (push) Has been cancelled
2025-05-22 15:18:52 +03:00
alfred-mk
91b57fece2 use the ProcessTokens function and remove the unused DATA_POOL_TO_BALANCES 2025-05-21 18:51:10 +03:00
alfred-mk
21da4b976b use the updated sarafu-api that removes the publicKey from the GetPoolSwappableVouchers
Some checks failed
release / docker (push) Has been cancelled
2025-05-21 15:45:17 +03:00
alfred-mk
b428e2e22d add log for the CheckTokenInPool
Some checks failed
release / docker (push) Has been cancelled
2025-05-20 14:02:41 +03:00
alfred-mk
5d8fee470a use the default pool variables 2025-05-20 10:26:01 +03:00