Commit Graph
100 Commits
Author SHA1 Message Date
alfred-mk 6c5873da6f trim any leading whitespace in the input 2025-01-07 12:15:15 +03:00
alfred-mk 9d6e25e184 revert to previous state for the adminstore 2025-01-03 11:24:24 +03:00
alfred-mk c26f5683f6 removed second unused argument 2025-01-03 11:17:09 +03:00
alfred-mk 0fe48a30fa Merge branch 'master' into hash-pin 2025-01-03 06:58:41 +03:00
alfred-mk 491b7424a9 point to the correct ./devtools/admin_numbers directory 2025-01-02 16:01:19 +03:00
alfred-mk 29ce4b83bd added tests for HashPIN and VerifyPIN 2025-01-02 15:22:07 +03:00
alfred-mk ca8df5989a updated expected age in test 2025-01-02 15:15:52 +03:00
alfred-mk 82b4365d16 hash the PIN in TestAuthorize 2025-01-02 14:38:22 +03:00
alfred-mk 98db85511b hash the PIN in the ResetOthersPin function 2025-01-02 14:37:45 +03:00
alfred-mk 99a4d3ff42 verify the PIN input against the hashed PIN 2025-01-02 13:51:57 +03:00
alfred-mk d95c7abea4 return if the PIN is not a match, and hash the PIN before saving it 2025-01-02 13:45:18 +03:00
alfred-mk fd1ac85a1b add code to Hash and Verify the PIN 2025-01-02 13:43:38 +03:00
alfred-mk c899c098f6 updated the expected age 2025-01-02 13:20:01 +03:00
alfred-mk 5ca6a74274 move PIN test to the common package 2025-01-02 13:18:49 +03:00
alfred-mk 48d63fb43f added pin.go to contain all PIN related functionality 2025-01-02 13:16:38 +03:00
alfred-mk 7a535f796a output the value as a string 2024-12-31 11:41:04 +03:00
alfred-mk 4ea52bf3fb removed unused code 2024-12-31 11:16:43 +03:00
alfred-mk be2ea3a2f0 removed the non-working restart_state devtool 2024-12-31 10:51:29 +03:00
alfred-mk 8217ea8fdc Merge branch 'master' into force-restart-state 2024-12-31 05:06:26 +03:00
alfred-mk 3c73fc7188 added a test for the Init func with the different states 2024-12-31 05:05:39 +03:00
alfred-mk 1311a0cab9 use the 'send_with_invite' test group in the menu traversal test 2024-12-31 02:36:28 +03:00
alfred-mk 50c006546c added code to reset the state and persist it 2024-12-28 13:21:03 +03:00
alfred-mk e8c171a82e Merge branch 'master' into force-restart-state 2024-12-28 11:46:15 +03:00
alfred-mk be215d3f75 set the code to an empty byte for it to move to the top node 2024-12-20 12:26:07 +03:00
alfred-mk 1292851226 rename the function to ReplaceSeparatorFunc 2024-12-19 13:32:39 +03:00
alfred-mk dfd0a0994b Merge branch 'master' into force-restart-state 2024-12-18 22:39:20 +03:00
alfred-mk 97fcdda12f Merge branch 'master' into add-space-after-colon 2024-12-18 22:30:41 +03:00
alfred-mk 055c2db790 use a common mockReplaceSeparator func 2024-12-18 22:25:47 +03:00
alfred-mk ecfdab47a8 updated test 2024-12-18 22:21:52 +03:00
alfred-mk fda68231ea use the replaceSeparator func to format the generated menus 2024-12-18 21:59:09 +03:00
alfred-mk d08afff443 add the replaceSeparator func and pass it to the Handler struct 2024-12-18 21:56:37 +03:00
alfred-mk 17ba6a06ba remove the MenuSeparator from the context 2024-12-18 21:49:42 +03:00
alfred-mk 5534706189 reset the state when input is nil 2024-12-17 17:58:08 +03:00
alfred-mk 5428626c3f cleaned up the restart_state 2024-12-17 17:56:56 +03:00
alfred-mk 7aea2af9a1 updated tests 2024-12-13 11:44:04 +03:00
alfred-mk 5cd791aae7 use the MenuSeparator 2024-12-13 11:43:47 +03:00
alfred-mk df5e5f1a4b properly format the vouchers 2024-12-13 11:40:39 +03:00
alfred-mk 64c1fe5276 set the separator as a var and add it to the context 2024-12-13 11:38:10 +03:00
alfred-mk f38ea59569 set the separator as a config and not an arg 2024-12-13 01:10:46 +03:00
alfred-mk 6cc285d1e8 add the custom separator to the menu 2024-12-12 21:12:25 +03:00
alfred-mk 0d7f7aaca1 use latest commits from go-vise 2024-12-12 21:09:48 +03:00
alfred-mk f8ea2daa73 initialize the restart state devtool 2024-12-12 19:55:01 +03:00
alfred-mk e05f8e7291 update to the latest go-vise changes 2024-12-11 19:46:52 +03:00
alfred-mk 2383e8ead3 updated failed menuhandler_test 2024-12-11 19:35:04 +03:00
alfred-mk 1a4ee0d3e1 updated the description of the GetTransactionsList function 2024-12-11 19:32:41 +03:00
alfred-mk 6f3b30e2fe Capitalize statement details and add a space after the colon 2024-12-11 19:31:17 +03:00
alfred-mk b1e4b63c6a Add a space after the colon for vouchers 2024-12-11 19:28:53 +03:00
alfred-mk 3129e8210e Capitalize the transfer statement details 2024-12-11 19:25:38 +03:00
alfred-mk 5d8de80a18 Write the error in the response 2024-12-11 18:58:50 +03:00
alfred-mk 14737b5f12 Removed redundant naming of transfer related data 2024-12-05 17:58:51 +03:00
alfred-mk caff27b43d Replace IntToBytes(value int) and ToBytes() with a single ToBytes() function 2024-12-05 17:50:40 +03:00
alfred-mk 589a94216b Use the DATATYPE_USERDATA as the prefix for the NewSubPrefixDb func 2024-12-05 17:02:26 +03:00
alfred-mk a659fb06fa Added a function to convert int to []byte 2024-12-05 16:58:03 +03:00
alfred-mk f733fe5636 Start the sub prefix data at 256 (0x0100) 2024-12-05 16:31:47 +03:00
alfred-mk 18423fcd9c updated the name of the voucher related data 2024-12-05 16:26:56 +03:00
alfred-mk 7a9de79aae return nil with error 2024-12-04 21:07:11 +03:00
alfred-mk 862830e9de renamed internal/storage/db.go -> internal/storage/sub_prefix_db.go for clarity 2024-12-04 20:59:46 +03:00
alfred-mk bc0e536d3d updated failing tests 2024-12-04 20:55:03 +03:00
alfred-mk 82884a75a3 Merge branch 'master' into data-items-cleanup 2024-12-04 20:45:38 +03:00
alfred-mk 93c44861e0 Use numeric prefixes 2024-12-04 20:42:47 +03:00
alfred-mk 4ecfc9de38 removed DATATYPE_USERSUB and replaced with DATATYPE_USERDATA 2024-12-04 20:38:52 +03:00
alfred-mk d40a4a171f formatted code 2024-12-03 14:12:47 +03:00
alfred-mk ba430a5849 add a separate function to handle ConstructName 2024-12-03 14:10:05 +03:00
alfred-mk 0f21b01813 resolved error in the TestViewVoucher 2024-12-03 13:37:00 +03:00
alfred-mk 10586baf0d resolved error in the TestCheckBalance 2024-12-03 13:35:14 +03:00
alfred-mk e979742424 resolved error in the TestValidateRecipient 2024-12-03 13:32:18 +03:00
alfred-mk ff3f049226 updated the CheckAliasAddress mock 2024-12-03 13:31:30 +03:00
alfred-mk 13b45c49da Merge branch 'master' into minor-bug-fixes 2024-12-03 12:58:26 +03:00
alfred-mk 419cd185fc Merge branch 'master' into minor-bug-fixes 2024-12-02 15:25:34 +03:00
alfred-mk 19ec8f0817 Merge branch 'master' into voucher-details 2024-12-02 13:32:32 +03:00
alfred-mk ef3a3d6717 updated the TestGetVoucherDetails 2024-12-02 13:30:33 +03:00
alfred-mk c2019267d1 capitalize the voucher descriptions 2024-12-02 13:26:46 +03:00
alfred-mk aa7497573e removed unused code 2024-11-30 15:29:28 +03:00
alfred-mk 54c1fe51ef update the active voucher data when checking the current vouchers 2024-11-30 15:28:21 +03:00
alfred-mk 7a86b2ad3b updated the UpdateVoucherData description 2024-11-30 15:26:13 +03:00
alfred-mk 6b23c284e5 check vouchers before checking the balance 2024-11-30 15:24:14 +03:00
alfred-mk aab6660edd Capitalize menu items 2024-11-29 15:39:27 +03:00
alfred-mk c46f41e25f Format the balance to 2 decimal places 2024-11-29 14:47:22 +03:00
alfred-mk c8c6b05b8a Merge branch 'master' into minor-bug-fixes 2024-11-26 15:31:45 +03:00
alfred-mk 08ff1056d7 Validate aliases, addresses and phone numbers in the send menu (#176)
release / docker (push) Has been cancelled
- Update the phone number regex
- Check whether the recipient is a valid phone number, alias or address

Reviewed-on: #176
Co-authored-by: alfred-mk <alfredmwaik@gmail.com>
Co-committed-by: alfred-mk <alfredmwaik@gmail.com>
2024-11-26 07:24:57 +01:00
alfred-mk 7ce50398d1 use the language translation instead of hardcoded eng 2024-11-21 15:54:00 +03:00
alfred-mk e30bc177e9 fixed typo and added a new translation 2024-11-21 15:52:07 +03:00
alfred-mk b9ff467c0c use the correct balance 2024-11-21 15:51:04 +03:00
alfred-mk 07df450b3c include labels to define the symbol and balance while selecting a voucher 2024-11-21 15:15:15 +03:00
alfred-mk 51bad64a51 Merge branch 'master' into account-statement 2024-11-20 19:00:14 +03:00
alfred-mk df89fe69e1 return to the main node 2024-11-19 17:09:59 +03:00
alfred-mk 9498242901 removed debug statement 2024-11-19 16:27:19 +03:00
alfred-mk eab6dbd74c Check if index is within range 2024-11-19 16:23:35 +03:00
alfred-mk 6159686a8e update function comment 2024-11-19 16:21:55 +03:00
alfred-mk 1d82bc2261 added transactions functions 2024-11-19 16:07:28 +03:00
alfred-mk bfcdd79f33 view single statement 2024-11-19 16:04:46 +03:00
alfred-mk d49b68597c check transactions and catch when none exist 2024-11-19 16:03:54 +03:00
alfred-mk 1d9f4fc13e added statement related flags 2024-11-19 15:50:19 +03:00
alfred-mk 6fa0d8e2ff Merge branch 'master' into account-statement 2024-11-19 10:33:09 +03:00
alfred-mk bc6d8098f3 updated the failed test 2024-11-19 10:15:34 +03:00
alfred-mk 1ba90a8b78 updated the test 2024-11-16 14:52:24 +03:00
alfred-mk 5dd4f2a3fb scale down the balance according to the decimals 2024-11-16 14:52:02 +03:00
alfred-mk b40ad78294 add the GetVoucherDetails function 2024-11-15 21:03:57 +03:00
alfred-mk 11bb194f26 add a struct to access the tokenDetails 2024-11-15 21:03:29 +03:00
alfred-mk c0ccdce0a9 add the voucher details node 2024-11-15 21:02:44 +03:00