diff options
author | Florian Dold <florian@dold.me> | 2023-02-12 21:13:30 +0100 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2023-02-12 21:13:30 +0100 |
commit | 79b77a0c3c5a9a07d22c276a63ed81eb30507eba (patch) | |
tree | 4614511446ab3fbd7dc64f691b7b7ac271ba32c9 /packages/taler-wallet-core/src/operations | |
parent | 13f0442736479fb6ea8d1ecc7311cdac354a4de5 (diff) | |
download | wallet-core-79b77a0c3c5a9a07d22c276a63ed81eb30507eba.tar.xz |
wallet-core: skeleton support for regional currency scopes
Diffstat (limited to 'packages/taler-wallet-core/src/operations')
-rw-r--r-- | packages/taler-wallet-core/src/operations/balance.ts | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/packages/taler-wallet-core/src/operations/balance.ts b/packages/taler-wallet-core/src/operations/balance.ts index 50613d0aa..59c49deaa 100644 --- a/packages/taler-wallet-core/src/operations/balance.ts +++ b/packages/taler-wallet-core/src/operations/balance.ts @@ -54,6 +54,7 @@ import { GetBalanceDetailRequest, Logger, parsePaytoUri, + ScopeType, } from "@gnu-taler/taler-util"; import { AllowedAuditorInfo, @@ -170,6 +171,10 @@ export async function getBalancesInsideTransaction( .forEach((c) => { const v = balanceStore[c]; balancesResponse.balances.push({ + scopeInfo: { + type: ScopeType.Global, + currency: Amounts.currencyOf(v.available), + }, available: Amounts.stringify(v.available), pendingIncoming: Amounts.stringify(v.pendingIncoming), pendingOutgoing: Amounts.stringify(v.pendingOutgoing), |