Commit Graph

511 Commits

Author SHA1 Message Date
alfred-mk
b9aae610db added language.go for language related functions 2025-07-03 16:43:43 +03:00
alfred-mk
8297f012f4 added balance.go for balance related functions 2025-07-03 16:39:44 +03:00
alfred-mk
eafc0f69c7 added alias.go for alias related functions 2025-07-03 16:34:20 +03:00
alfred-mk
6c962baa81 added pools.go for pool related functions 2025-07-03 16:20:59 +03:00
alfred-mk
e6b97b9256 update the voucher functions to match master 2025-07-03 16:19:18 +03:00
alfred-mk
4e8b4c1df6 Merge branch 'master' into project-tidyup 2025-07-03 16:08:08 +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
v1.3.8-rc
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
v1.3.7-rc.1
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
b42dec8373 Merge pull request 'add balance to voucher list' (#89) from add-balance-to-voucher-list into master
Some checks failed
release / docker (push) Has been cancelled
Reviewed-on: #89
v1.3.7-rc
2025-07-02 07:51:34 +02:00
alfred-mk
2807f039a7 Merge branch 'master' into add-balance-to-voucher-list 2025-07-02 08:50:50 +03:00
0e6334058d Merge pull request 'add functionality to Update the Alias' (#88) from update-alias into master
Some checks failed
release / docker (push) Has been cancelled
Reviewed-on: #88
v1.3.6-rc
2025-07-02 07:48:20 +02:00
alfred-mk
fea0befd9f added profile.go for profile related functionality 2025-07-01 02:04:45 +03:00
alfred-mk
857964f69a added send.go for voucher transfers 2025-07-01 02:01:45 +03:00
alfred-mk
164ce5ea5a added upsell.go for inviting valid users 2025-07-01 01:59:20 +03:00
alfred-mk
7b85451fd6 added vouchers.go 2025-07-01 01:57:32 +03:00
alfred-mk
a6cd3d93b4 added transactions.go for transaction histories 2025-07-01 01:55:30 +03:00
alfred-mk
9722df1149 added poolswap.go for pool swap functionality 2025-07-01 01:53:03 +03:00
alfred-mk
a9e0aebdde move PIN functionality to pin.go 2025-07-01 01:50:20 +03:00
alfred-mk
098ea93439 move create account functionality to the registration.go file 2025-07-01 01:44:38 +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
2ad5c2e8df use the correct PUT method in the update 2025-07-01 00:37:15 +03:00
alfred-mk
e1219354bb use the correct AliasUpdateURL on sarafu-api 2025-07-01 00:32:42 +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
a543569236 add a helper function FormatVoucherList to combine the voucher symbols with their balances 2025-06-30 13:14:34 +03:00
dd56d52f4c Merge pull request 'fix-amount-conversion' (#87) from fix-amount-conversion into master
Some checks failed
release / docker (push) Has been cancelled
Reviewed-on: #87
v1.3.5-rc
2025-06-26 14:07:29 +02: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
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
b497dde1e8 remove unused 'constructAccountAlias' func 2025-06-26 10:02:55 +03:00
alfred-mk
cedd55fd31 use updated sarafu-api that includes the UpdateAlias functionality 2025-06-26 09:56:29 +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
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
2ec612978d update sarafu-api to correctly unmarshal nested pool details response in RetrievePoolDetails
Some checks failed
release / docker (push) Has been cancelled
v1.3.4-rc.1
2025-06-24 12:10:04 +03:00
alfred-mk
632f891e16 use the updated alias endpoints from the sarafu-api
Some checks failed
release / docker (push) Has been cancelled
v1.3.4-rc
2025-06-24 10:51:15 +03:00
alfred-mk
d758b37065 use the correct TokenHoldings struct instead of TokenDetails
Some checks failed
release / docker (push) Has been cancelled
v1.3.3-rc.7
2025-06-23 11:09:47 +03:00
alfred-mk
929fb6a40d add logs for the request and response body 2025-06-23 10:57:20 +03:00
alfred-mk
5263af46d8 use a single ProcessVouchers due to similar data struct
Some checks failed
release / docker (push) Has been cancelled
v1.3.3-rc.6
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