pool-swap-endpoints #11

Merged
Alfred-mk merged 55 commits from pool-swap-endpoints into master 2025-06-26 07:58:54 +02:00

55 Commits

Author SHA1 Message Date
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
Carlosokumu
56ed9b2439 Merge branch 'multi-pool' into pool-swap-endpoints 2025-03-20 08:35:22 +03:00
Carlosokumu
064e749b04 Merge branch 'master' into pool-swap-endpoints 2025-03-19 15:22:30 +03:00
Carlosokumu
80c2493e80 implement get token pool limit,get all pool swappable vouchers 2025-03-19 12:09:52 +03:00
Carlosokumu
4444ac0255 add pool swap endpoints 2025-03-19 12:07:11 +03:00
Carlosokumu
720fa94b56 register pool endpoints 2025-03-17 20:40:56 +03:00
Carlosokumu
ee04552cbb feat: implement fetch top pools,retrieve pool details using a pool symbol 2025-03-17 20:40:19 +03:00
Carlosokumu
c09cb77e19 implement pool limit 2025-03-17 12:08:17 +03:00
Carlosokumu
e053d561c9 feat(pool): add multiple pools 2025-03-14 10:04:04 +03:00
Carlosokumu
b9cef2b578 Merge branch 'pool-swap-endpoints' into multi-pool 2025-03-14 09:03:09 +03:00
Carlosokumu
06a7ddea6f read persisted vouchers for a particular pool 2025-03-13 10:35:21 +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
Carlosokumu
5432365874 add logs,use same pool instance 2025-03-12 23:20:01 +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
Carlosokumu
37a2006a0b feat: persist and load pool info 2025-03-10 16:50:29 +03:00
Carlosokumu
d4f27af7a7 add check for account when doing a pool deposit 2025-03-10 16:50:29 +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
Carlosokumu
4783e2dcb3 Merge branch 'pool-swap-endpoints-issue#9' into pool-swap-endpoints 2025-03-07 08:16:49 +03:00
Carlosokumu
e8c58a8f33 feat: implement fetch pools,pool swappable vouchers with dummy data 2025-03-07 08:13:15 +03:00
Carlosokumu
67d7ec1567 add pool structs 2025-03-07 08:11:33 +03:00
Carlosokumu
b05734f976 feat: add fetch pools,swappable pool vouchers 2025-03-07 08:11:04 +03:00
Carlosokumu
f723e0aa45 add sample test data 2025-03-07 08:09:41 +03:00
alfred-mk
35f24b5183 Use the latest ussd-data-service 2025-03-06 18:14:34 +03:00
Carlosokumu
aef8efa2bf add pool api responses 2025-03-05 16:42:55 +03:00
Carlosokumu
a1fe416f51 implement pool deposit,swap and quote endpoints 2025-03-05 16:41:54 +03:00
Carlosokumu
3473a4413b add pool deposit,swap and quote endpoints 2025-03-05 16:40:55 +03:00