account-statement #126

Merged
lash merged 14 commits from account-statement into master 2024-11-22 19:24:08 +01:00
Member
  • Add the check statement node
- Add the check statement node
Alfred-mk added 3 commits 2024-10-23 13:53:33 +02:00
Alfred-mk added 1 commit 2024-11-19 08:33:18 +01:00
Alfred-mk added 4 commits 2024-11-19 14:07:35 +01:00
Alfred-mk changed title from WIP: account-statement to account-statement 2024-11-19 14:12:00 +01:00
Alfred-mk added 2 commits 2024-11-19 14:23:41 +01:00
Alfred-mk added 1 commit 2024-11-19 14:27:24 +01:00
Alfred-mk added 1 commit 2024-11-19 15:10:04 +01:00
Alfred-mk added 1 commit 2024-11-20 17:00:22 +01:00
Alfred-mk changed title from account-statement to WIP: account-statement 2024-11-20 18:03:16 +01:00
Alfred-mk changed title from WIP: account-statement to account-statement 2024-11-20 18:03:22 +01:00
Alfred-mk requested review from lash 2024-11-20 18:03:32 +01:00
lash requested changes 2024-11-22 02:09:26 +01:00
@ -0,0 +57,4 @@
// GetTransferData retrieves and matches transfer data
// returns a formatted string of the full transaction/statement
func GetTransferData(ctx context.Context, db storage.PrefixDb, publicKey string, index int) (string, error) {
keys := []string{"txfrom", "txto", "txval", "txaddr", "txhash", "txdate", "txsym"}
Owner

made an issue to be addressed later, regarding key lengths.

#180

made an issue to be addressed later, regarding key lengths. https://git.grassecon.net/urdt/ussd/issues/180
Author
Member

This is well noted and will be addressed

This is well noted and will be addressed
@ -0,0 +110,4 @@
// Helper function to format date in desired output
func formatDate(dateStr string) string {
parsedDate, err := time.Parse("2006-01-02 15:04:05 -0700 MST", dateStr)
Owner

this is hardcoded..?

this is hardcoded..?
Author
Member

Yes it is. This defines the layout that will be used to parse the dateStr

func time.Parse(layout string, value string)

Yes it is. This defines the layout that will be used to parse the dateStr func time.Parse(layout string, value string)
@ -1636,0 +1772,4 @@
flag_incorrect_statement, _ := h.flagManager.GetFlag("flag_incorrect_statement")
inputStr := string(input)
if inputStr == "0" || inputStr == "99" || inputStr == "11" || inputStr == "22" {
Owner

Here we are back to checking menu selectors in the handler code. What functionality is missing to be able to avoid this?

Here we are back to checking menu selectors in the handler code. What functionality is missing to be able to avoid this?
Author
Member

We can discuss this in the meeting, on how to use the lateral navigation indicator as this just prevents the navigation input from being processed

We can discuss this in the meeting, on how to use the lateral navigation indicator as this just prevents the navigation input from being processed
lash added 1 commit 2024-11-22 19:24:01 +01:00
lash merged commit f5d2644031 into master 2024-11-22 19:24:08 +01:00
Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: urdt/ussd#126
No description provided.