diff options
author | Florian Dold <florian@dold.me> | 2023-04-22 14:17:49 +0200 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2023-04-22 14:17:49 +0200 |
commit | 15feebecfeeda4758a96d1da99a98d9494c4bd2b (patch) | |
tree | 54a7536b93673202137927e097d4e5b5dcbc85eb /packages/taler-wallet-core/src/dbless.ts | |
parent | e331012c9f8efef86c6a8a9297b44a67ba8cda66 (diff) | |
download | wallet-core-15feebecfeeda4758a96d1da99a98d9494c4bd2b.tar.gz wallet-core-15feebecfeeda4758a96d1da99a98d9494c4bd2b.tar.bz2 wallet-core-15feebecfeeda4758a96d1da99a98d9494c4bd2b.zip |
wallet-core: towards DD37 for deposits
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, |