69 Commits
Author SHA1 Message Date
alfred-mk a270079008 add a fix for when users input a value when no vouchers exist 2026-02-23 16:15:12 +03:00
alfred-mk 6bc9247acb updated the data keys on the test to match the retrieved data 2026-02-18 17:08:11 +03:00
alfred-mk f6c613abd6 rename the func to match updated functionality 2026-02-18 17:07:38 +03:00
alfred-mk 75caed5f08 added a key to store the actual transaction voucher 2026-02-18 16:58:28 +03:00
alfred-mk 5650629ae4 update the db key name for clarity 2026-02-18 16:56:40 +03:00
alfred-mk 8d259683a1 fetch the DATA_RECIPIENT_INPUT instead of temporary value 2026-02-18 16:08:47 +03:00
alfred-mk 81b56f6fed added a key to store the initial recipient input given by the user 2026-02-18 16:04:40 +03:00
alfred-mk 2d6e7e81dd added a db key to store the state of the custom transaction voucher 2026-02-17 16:07:34 +03:00
alfred-mk a78639799d add a function for ReadSwapToVoucher 2026-02-16 14:14:50 +03:00
Alfred Kamanda 8f66a46e76 added a function to ReadSwapFromVoucher 2026-02-13 16:04:00 +03:00
Alfred Kamanda 5255671a3d added the data key for the swap from balance 2026-02-13 03:56:55 +03:00
Alfred Kamanda c02aa99ed0 store the active swap from voucher data 2026-02-13 03:56:24 +03:00
Alfred Kamanda f4c8c45ed1 rename the function to match the ordered voucher data 2026-02-12 14:20:42 +03:00
Alfred Kamanda ea71c08143 rename the data keys to store ordered voucher lists 2026-02-12 10:24:54 +03:00
Alfred Kamanda ab8d1535c4 added GetStableVoucherData 2026-02-06 16:40:57 +03:00
Alfred Kamanda 16adfdaa8a added data keys to easily manage a user's stable coins 2026-02-06 16:18:14 +03:00
Alfred Kamanda 7783ba8835 removed unused data keys 2026-02-03 17:02:44 +03:00
Alfred Kamanda 99893eac5c include the ActiveSwapToDecimal on the SwapData 2026-01-30 16:34:52 +03:00
Alfred Kamanda 0a69e04229 added helper functions to add scaled down balances 2026-01-29 17:00:24 +03:00
Alfred Kamanda 07e0e877d5 added data keys for the credit and debt values 2026-01-29 16:08:53 +03:00
Alfred Kamanda 4c80606b56 properly handle formatting, preventing rounding errors for the case of 2.1 -> 2.09
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
release / docker (push) Has been cancelled
2025-10-28 17:20:31 +03:00
Alfred Kamanda 34271cba23 Merge branch 'master' into send-with-swap
release / docker (push) Has been cancelled
2025-10-09 14:32:31 +03:00
Alfred Kamanda 606a551f60 use the correct data keys on the test 2025-10-09 13:31:55 +03:00
Alfred Kamanda 0e5454ae5d added a test case for the invalid symbol replacement 2025-10-03 16:57:04 +03:00
Alfred Kamanda 8585203c0a added a mapping to replace invalid characters on voucher symbols 2025-10-03 16:56:48 +03:00
Alfred Kamanda 5a09d33be0 removed unused DATA_RECIPIENT_ACTIVE_TOKEN key 2025-08-25 17:21:23 +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 758463ee8c add transaction data keys 2025-08-04 11:19:22 +03:00
alfred-mk a543569236 add a helper function FormatVoucherList to combine the voucher symbols with their balances 2025-06-30 13:14:34 +03:00
alfred-mk 02fd02dc21 add a test for the TruncateDecimalString 2025-06-26 12:26:49 +03:00
alfred-mk b884b82197 add test cases with high decimals for the ParseAndScaleAmount func 2025-06-26 12:20:34 +03:00
alfred-mk 280c382a3d add a helper function 'TruncateDecimalString' to format amounts to specified decimal places 2025-06-26 12:19:13 +03:00
alfred-mk 88926480dc Return finalAmount as a string with 0 decimal places (rounded) 2025-06-24 15:11:15 +03:00
alfred-mk d758b37065 use the correct TokenHoldings struct instead of TokenDetails
release / docker (push) Has been cancelled
2025-06-23 11:09:47 +03:00
alfred-mk 5263af46d8 use a single ProcessVouchers due to similar data struct
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 5479580230 use the TokenHoldings instead of TokenDetails in getting the pool swappable vouchers
release / docker (push) Has been cancelled
2025-06-23 09:50:13 +03:00
alfred-mk 23f1068402 Use InfoCtxf instead of TraceCtxf 2025-06-19 14:17:08 +03:00
alfred-mk e803048b13 Added more logging and display the actual activePoolSymbol
release / docker (push) Has been cancelled
2025-06-19 12:54:33 +03:00
alfred-mk 42dadb5eea add-pool-selection (#79)
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 8dc203d111 use the TemporaryValue to store the user's swap amount input
release / docker (push) Has been cancelled
2025-05-22 15:18:52 +03:00
alfred-mk dcadea8737 Convert TokenDecimals (uint8) to string before storing it 2025-05-22 15:09:46 +03:00
alfred-mk 043c79384c correctly process TokenDetails 2025-05-21 18:39:45 +03:00
alfred-mk 1cc1d00ffe added a function to ProcessTokens from the GetPoolSwappableVouchers 2025-05-21 18:19:23 +03:00
alfred-mk c8146ea211 alfred/pool-swap (#33)
release / docker (push) Has been cancelled
Pool swap functionality

Resolves issue #24

Reviewed-on: #33
Co-authored-by: alfred-mk <alfredmwaik@gmail.com>
Co-committed-by: alfred-mk <alfredmwaik@gmail.com>
2025-05-19 15:44:50 +02:00
alfred-mk af5537abfc updated the description of DATA_SELF_PIN_RESET 2025-04-28 11:37:45 +03:00
alfred-mk 1b2f3bb046 added a DATA_SELF_PIN_RESET to track when a user's PIN is reset by an admin 2025-04-28 11:34:24 +03:00
Carlosokumu f4804546d9 add log db struct with associated methods 2025-04-09 14:52:57 +03:00