Commit Graph
61 Commits
Author SHA1 Message Date
Alfred Kamanda 74e5fb016c Merge branch 'master' into update-go-vise 2025-11-18 13:11:54 +03:00
Alfred Kamanda fe897cca84 added the GetCreditSendReverseQuote to tests 2025-10-28 11:34:21 +03:00
Alfred Kamanda 7eaa771eb4 added the GetCreditSendReverseQuote function 2025-10-28 11:33:17 +03:00
Alfred Kamanda 72af514cf3 added the CreditSendReverseQouteResult type for API responses 2025-10-28 11:32:51 +03:00
Alfred Kamanda 81ff6c4034 added the CreditSendReverseQuote prefix and URL 2025-10-28 11:32:03 +03:00
Alfred Kamanda a705443786 added a comment to describe the use of the TestAccountService 2025-10-28 11:10:48 +03:00
Alfred Kamanda af76541c86 added the USD voucher to the TokenHoldings 2025-10-28 11:09:33 +03:00
Alfred Kamanda 75a7ec6b32 correct the spelling of toTokenAddress 2025-10-28 11:06:01 +03:00
Alfred Kamanda 3e82e16923 added the GetCreditSendMaxLimit to tests 2025-10-28 11:04:43 +03:00
Alfred Kamanda c11060648d added the CreditSendLimitsResult type for the API responses 2025-10-28 11:04:12 +03:00
Alfred Kamanda 01569b9b39 added the GetCreditSendMaxLimit function 2025-10-28 11:03:08 +03:00
Alfred Kamanda 96c323f202 added the CreditSendPrefix and URL 2025-10-28 11:02:33 +03:00
Alfred Kamanda 532547899f include the error code 2025-10-22 11:46:13 +03:00
Alfred Kamanda 6f7802b58c modify doRequest() to return APIError on err 2025-10-21 15:05:22 +03:00
Alfred Kamanda 73e6220a8c create a custom error struct that carries both fields from the API 2025-10-21 15:02:36 +03:00
Alfred Kamanda 61410b2b29 Normalize symbols before returning 2025-10-06 11:43:25 +03:00
Alfred Kamanda 3c8e3d1bc8 added the grassrootseconomics/go-vise package to sarafu-api 2025-08-19 12:43:50 +03:00
alfred-mk 814bef2b20 fix: have the same order of received variables 2025-07-01 00:49:12 +03:00
alfred-mk 12940bb5f2 fix: use the correct PUT request method 2025-07-01 00:36:06 +03:00
alfred-mk 50ee455e70 fix: use the correct AliasUpdateURL 2025-07-01 00:31:35 +03:00
alfred-mk 57ee409f96 add UpdateAlias to the DevAccountService and mocks 2025-06-26 09:54:19 +03:00
alfred-mk 49a8184d02 add the UpdateAlias function 2025-06-26 09:53:26 +03:00
alfred-mk 9a6ab7e6e2 add the endpoint for updating the alias 2025-06-26 09:52:31 +03:00
alfred-mk 339ba854c9 fix: correctly unmarshal nested pool details response in retrievePoolDeta 2025-06-24 12:07:44 +03:00
alfred-mk 5aa032400c update the alias endpoints 2025-06-24 10:48:30 +03:00
alfred-mk 7b42d509e6 log the request and response body 2025-06-23 10:50:57 +03:00
alfred-mk d945964b0b use the TokenAddress instead of ContractAddress 2025-06-23 10:00:26 +03:00
alfred-mk c1797e7a32 use the TokenHoldings instead of TokenDetails 2025-06-23 09:32:34 +03:00
alfred-mk 54dfe037b4 updated the ussd-data-service to tag v1.5.0-beta 2025-06-23 09:31:53 +03:00
alfred-mk b5ccaea575 add the RetrievePoolDetails to the testutil and dev account service 2025-06-06 22:42:35 +03:00
alfred-mk bf830e92de add the RetrievePoolDetails to the account_service 2025-06-05 20:41:08 +03:00
alfred-mk 24224e553d use the correct PoolSwapURL when performing the actual swap 2025-05-22 15:31:08 +03:00
alfred-mk 6c3719e3b6 Fix: use the correct TokenDetails in the GetPoolSwappableVouchers 2025-05-21 17:12:46 +03:00
alfred-mk 62cc5eed89 use the updated ussd-data-service 2025-05-21 17:10:25 +03:00
alfred-mk 343d30a2f2 rename the variables and read the stables param from the config 2025-05-21 15:42:06 +03:00
alfred-mk a354371a94 add the IncludeStablesParam config 2025-05-21 15:40:56 +03:00
alfred-mk 857f564aae Fix: remove the unused publicKey from the GetPoolSwappableVouchers 2025-05-21 15:22:31 +03:00
alfred-mk f234d51104 Fix: update the getPoolSwappableVouchers to pass a 'stable' query parameter 2025-05-21 15:21:27 +03:00
alfred-mk 81fbc2574c Fix: use the correct getPoolSwappableVouchers 2025-05-20 15:50:35 +03:00
alfred-mk 334aa07f9f Fix: Correct JSON mapping for checkTokenInPool and getSwapFromTokenMaxLimit API responses 2025-05-20 15:48:13 +03:00
alfred-mk e6677015d9 use the latest ussd-data-service 2025-05-19 10:36:47 +03:00
alfred-mk 050998ff82 added CheckTokenInPool to the account_service and test utils 2025-05-17 14:45:12 +03:00
alfred-mk ee434dba69 added CheckTokenInPool to check whether a token can be swapped from in a pool 2025-05-17 14:37:06 +03:00
alfred-mk f101ffd4c9 added a model for TokenInPoolResult 2025-05-17 14:36:26 +03:00
alfred-mk 8b2bd72143 format document 2025-05-17 14:35:53 +03:00
alfred-mk 3b85167ad8 Merge branch 'master' into pool-swap-endpoints 2025-05-16 12:43:26 +03:00
alfred-mk 6597d6b6a2 added the SendUpsellSMS to DevAccountService and MockApi 2025-04-11 11:02:23 +03:00
alfred-mk ba43610ff0 Added pool swap functions to the MockAccountService 2025-03-13 10:14:11 +03:00
alfred-mk 3c2889ac72 Added pool swap functions to the TestAccountService 2025-03-13 10:05:49 +03:00
alfred-mk 3244c717cb Added the MaxLimitResult struct model 2025-03-11 15:46:51 +03:00
alfred-mk 17e89e0b88 Added the GetSwapFromTokenMaxLimit 2025-03-11 15:46:17 +03:00
alfred-mk 3b39b86d09 pass the correct arguments to the swap functions 2025-03-10 17:12:05 +03:00
alfred-mk ba8d2a19c2 Use the DevAccountService functions to retrieve the data 2025-03-10 16:39:37 +03:00
alfred-mk e3b6c25792 Added the swap functions to the accountService interface 2025-03-10 14:17:03 +03:00
alfred-mk a04f7ee66c Remove unused model structs 2025-03-10 14:03:30 +03:00
alfred-mk 52e1be1104 Return an array of data instead of reading from the file 2025-03-10 14:00:16 +03:00
alfred-mk d7ae1cc096 Include the account's public key 2025-03-10 13:59:05 +03:00
alfred-mk 35f24b5183 Use the latest ussd-data-service 2025-03-06 18:14:34 +03:00
alfred-mk 4a5de68a8c added the SendSMS func to the httpAccount service 2025-03-06 09:06:45 +03:00
alfred-mk 6c4702e2ba added the send sms response model 2025-03-06 09:05:39 +03:00
alfred-mk 7280784ee1 added the send sms endpoint configs 2025-03-06 09:05:01 +03:00