diff options
Diffstat (limited to 'packages/taler-wallet-core/src/dbless.ts')
-rw-r--r-- | packages/taler-wallet-core/src/dbless.ts | 24 |
1 files changed, 18 insertions, 6 deletions
diff --git a/packages/taler-wallet-core/src/dbless.ts b/packages/taler-wallet-core/src/dbless.ts index 30c4247a8..3fb56924d 100644 --- a/packages/taler-wallet-core/src/dbless.ts +++ b/packages/taler-wallet-core/src/dbless.ts @@ -109,14 +109,26 @@ export async function checkReserve( } } +export interface TopupReserveWithDemobankArgs { + http: HttpRequestLibrary; + reservePub: string; + bankBaseUrl: string; + bankAccessApiBaseUrl: string; + exchangeInfo: ExchangeInfo; + amount: AmountString; +} + export async function topupReserveWithDemobank( - http: HttpRequestLibrary, - reservePub: string, - bankBaseUrl: string, - bankAccessApiBaseUrl: string, - exchangeInfo: ExchangeInfo, - amount: AmountString, + args: TopupReserveWithDemobankArgs, ) { + const { + bankBaseUrl, + http, + bankAccessApiBaseUrl, + amount, + exchangeInfo, + reservePub, + } = args; const bankHandle: BankServiceHandle = { baseUrl: bankBaseUrl, bankAccessApiBaseUrl: bankAccessApiBaseUrl, |