add the RetrievePoolDetails to the testutil and dev account service

This commit is contained in:
2025-06-06 22:42:35 +03:00
parent bf830e92de
commit b5ccaea575
4 changed files with 22 additions and 1 deletions

View File

@@ -81,6 +81,11 @@ func (m MockAccountService) FetchTopPools(ctx context.Context) ([]dataserviceapi
return args.Get(0).([]dataserviceapi.PoolDetails), args.Error(1)
}
func (m MockAccountService) RetrievePoolDetails(ctx context.Context, sym string) (*dataserviceapi.PoolDetails, error) {
args := m.Called()
return args.Get(0).(*dataserviceapi.PoolDetails), args.Error(1)
}
func (m MockAccountService) GetPoolSwappableFromVouchers(ctx context.Context, poolAddress, publicKey string) ([]dataserviceapi.TokenHoldings, error) {
args := m.Called(poolAddress, publicKey)
return args.Get(0).([]dataserviceapi.TokenHoldings), args.Error(1)

View File

@@ -85,6 +85,10 @@ func (m TestAccountService) FetchTopPools(ctx context.Context) ([]dataserviceapi
return []dataserviceapi.PoolDetails{}, nil
}
func (m TestAccountService) RetrievePoolDetails(ctx context.Context, sym string) (*dataserviceapi.PoolDetails, error) {
return &dataserviceapi.PoolDetails{}, nil
}
func (m TestAccountService) GetPoolSwappableFromVouchers(ctx context.Context, poolAddress, publicKey string) ([]dataserviceapi.TokenHoldings, error) {
return []dataserviceapi.TokenHoldings{}, nil
}