From e3b6c25792c21ec735286449afa0fc2afdc586d7 Mon Sep 17 00:00:00 2001 From: alfred-mk Date: Mon, 10 Mar 2025 14:17:03 +0300 Subject: [PATCH] Added the swap functions to the accountService interface --- remote/account_service.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/remote/account_service.go b/remote/account_service.go index 2c67b12..ff9ec8f 100644 --- a/remote/account_service.go +++ b/remote/account_service.go @@ -17,4 +17,10 @@ type AccountService interface { TokenTransfer(ctx context.Context, amount, from, to, tokenAddress string) (*models.TokenTransferResponse, error) CheckAliasAddress(ctx context.Context, alias string) (*models.AliasAddress, error) RequestAlias(ctx context.Context, hint string, publicKey string) (*models.RequestAliasResult, error) + PoolDeposit(ctx context.Context, amount, from, poolAddress, tokenAddress string) (*models.PoolDepositResult, error) + FetchTopPools(ctx context.Context, publicKey string) ([]dataserviceapi.PoolDetails, error) + GetPoolSwappableFromVouchers(ctx context.Context, publicKey string) ([]dataserviceapi.TokenHoldings, error) + GetPoolSwappableVouchers(ctx context.Context, publicKey string) ([]dataserviceapi.TokenHoldings, error) + GetPoolSwapQuote(ctx context.Context, amount, from, fromTokenAddress, poolAddress, toTokenAddress string) (*models.PoolSwapQuoteResult, error) + PoolSwap(ctx context.Context, amount, from, fromTokenAddress, poolAddress, toTokenAddress string) (*models.PoolSwapResult, error) }