send with swap #102

Merged
Alfred-mk merged 48 commits from send-with-swap into master 2025-11-12 08:54:08 +01:00

48 Commits

Author SHA1 Message Date
Alfred Kamanda
724bc1bcf3 Merge branch 'master' into send-with-swap
Some checks failed
release / docker (push) Has been cancelled
2025-11-05 15:32:35 +03:00
Alfred Kamanda
348185ef96 use l.Get for the language change
Some checks failed
release / docker (push) Has been cancelled
2025-10-30 12:36:11 +03:00
Alfred Kamanda
f51f577e2a added the swahili translations 2025-10-30 12:35:46 +03:00
Alfred Kamanda
582f349be3 handle normal send transactions based on the sym 2025-10-30 11:12:16 +03:00
Alfred Kamanda
8ce17a8d1e add a sym for the credit_max_amount 2025-10-30 11:11:39 +03:00
Alfred Kamanda
4092437d21 add a node for the credit-send amount 2025-10-30 11:11:12 +03:00
Alfred Kamanda
37f4b60679 removed the credit-swap related code 2025-10-30 11:08:57 +03:00
Alfred Kamanda
878b5d0aa5 added the credit_send top-level menu 2025-10-30 11:08:18 +03:00
Alfred Kamanda
d2b934feda use the same translation from the english menu 2025-10-30 10:07:05 +03:00
Alfred Kamanda
4c80606b56 properly handle formatting, preventing rounding errors for the case of 2.1 -> 2.09
Some checks failed
release / docker (push) Has been cancelled
2025-10-29 10:55:42 +03:00
Alfred Kamanda
38ab1ecdd1 added an edge-case test for precision 2025-10-29 10:53:11 +03:00
Alfred Kamanda
a49257657e switch the order to match the TokenHoldings struct
Some checks failed
release / docker (push) Has been cancelled
2025-10-28 17:20:31 +03:00
Alfred Kamanda
95b48371ce CATCH invalid credit-swap amounts 2025-10-28 17:19:40 +03:00
Alfred Kamanda
9da2f8a6ac have a node for invalid credit send amounts 2025-10-28 17:17:22 +03:00
Alfred Kamanda
3194508e51 increase the output sizes 2025-10-28 17:16:54 +03:00
Alfred Kamanda
41f08c5c9b display the max_amount directly from the function 2025-10-28 17:16:25 +03:00
Alfred Kamanda
de539dc300 update the credit-send functionality to display the RAT data 2025-10-28 17:15:39 +03:00
Alfred Kamanda
8af2ccd36f added text translations for the amounts (for normal and credit-send transactions) 2025-10-28 17:09:46 +03:00
Alfred Kamanda
d9c49ee119 upgraded sarafu-api to make use of the credit-send API 2025-10-28 12:21:42 +03:00
Alfred Kamanda
5cfdd949ff use the correct amount when initiating the transfer (the amount that has been swapped)
Some checks failed
release / docker (push) Has been cancelled
2025-10-22 17:32:35 +03:00
Alfred Kamanda
865dae4b7f correctly format amounts to 2 decimal places using TruncateDecimalString 2025-10-22 16:16:05 +03:00
Alfred Kamanda
0af41ea1f1 Merge branch 'master' into send-with-swap 2025-10-22 14:40:21 +03:00
Alfred Kamanda
ba9a23946f added ClearTransactionTypeFlag when a user goes back
Some checks failed
release / docker (push) Has been cancelled
2025-10-09 15:08:51 +03:00
Alfred Kamanda
34271cba23 Merge branch 'master' into send-with-swap
Some checks failed
release / docker (push) Has been cancelled
2025-10-09 14:32:31 +03:00
Alfred Kamanda
e029a8cdc7 improved the tests by updating the menu 2025-10-09 14:19:03 +03:00
Alfred Kamanda
9878745861 fixed the TestCheckBalance by adjusting the expected result 2025-10-09 13:39:30 +03:00
Alfred Kamanda
606a551f60 use the correct data keys on the test 2025-10-09 13:31:55 +03:00
Alfred Kamanda
ed780659d3 removed the debug statements 2025-10-09 13:20:58 +03:00
Alfred Kamanda
764431ee58 added some debug statements 2025-10-09 13:08:22 +03:00
Alfred Kamanda
fb5eb3f24f added the determineAndSaveTransactionType heper for shared logic on the transaction type 2025-10-09 12:45:16 +03:00
Alfred Kamanda
27fdb20974 handle the transaction type for a swap when using an alias 2025-10-09 12:27:51 +03:00
Alfred Kamanda
f7859fb72a handle the transaction type for a swap when using an address 2025-10-09 12:15:56 +03:00
Alfred Kamanda
7973ecdfd9 Merge branch 'master' into send-with-swap
Some checks failed
release / docker (push) Has been cancelled
2025-08-26 12:22:50 +03:00
Alfred Kamanda
c90d3cd731 added the handler functions 2025-08-25 17:28:11 +03:00
Alfred Kamanda
cda2d49f3e added TransactionInitiateSwap functionality that performs a swap followed by a send 2025-08-25 17:27:20 +03:00
Alfred Kamanda
4492f8087a added TransactionSwapPreview functionality 2025-08-25 17:25:59 +03:00
Alfred Kamanda
0f8c2f9270 use the recipient's phone number to read swap related data 2025-08-25 17:24:58 +03:00
Alfred Kamanda
5a09d33be0 removed unused DATA_RECIPIENT_ACTIVE_TOKEN key 2025-08-25 17:21:23 +03:00
Alfred Kamanda
0c67efedea added the transaction_swap_initiated node 2025-08-25 17:20:34 +03:00
Alfred Kamanda
14d493475e catch the flag_swap_transaction and move to the transaction_swap node 2025-08-25 17:20:07 +03:00
Alfred Kamanda
0e4dfe1baf added the flag_swap_transaction when a swap needs to be performed in the send node 2025-08-25 17:19:11 +03:00
Alfred Kamanda
7e1042c6a9 update the MaxAmount logic to check the swap capability for swap transactions 2025-08-25 12:46:16 +03:00
Alfred Kamanda
e274967c8e update the handlePhoneNumber logic to cover new users or those without an active voucher 2025-08-25 10:52:22 +03:00
Alfred Kamanda
5b82afa768 added the DATA_RECIPIENT_PHONE_NUMBER to store the formatted phone number 2025-08-04 13:50:21 +03:00
Alfred Kamanda
b6de057cc4 add a reset for the DATA_RECIPIENT_ACTIVE_TOKEN key 2025-08-04 11:21:14 +03:00
Alfred Kamanda
758463ee8c add transaction data keys 2025-08-04 11:19:22 +03:00
Alfred Kamanda
f441b3b2af split the ValidateRecipient and check the transaction type 2025-08-04 11:18:45 +03:00
Alfred Kamanda
4d687cac2e updated the MaxAmount description comment 2025-07-30 11:46:22 +03:00