diff options
author | Florian Dold <florian@dold.me> | 2023-06-20 11:40:06 +0200 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2023-06-20 11:40:06 +0200 |
commit | 9c708251f92e6691ebba80fa8d129c6c04cec618 (patch) | |
tree | edf46c7b3f9386697a4ea697c2d66f66323a6d3e /packages/taler-wallet-core/src/internal-wallet-state.ts | |
parent | 54f0c82999833132baf83995526025ac56d6fe06 (diff) |
wallet-core: emit DD37 self-transition notifications with errors
Diffstat (limited to 'packages/taler-wallet-core/src/internal-wallet-state.ts')
-rw-r--r-- | packages/taler-wallet-core/src/internal-wallet-state.ts | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/packages/taler-wallet-core/src/internal-wallet-state.ts b/packages/taler-wallet-core/src/internal-wallet-state.ts index 8dc83c65a..d97703dc1 100644 --- a/packages/taler-wallet-core/src/internal-wallet-state.ts +++ b/packages/taler-wallet-core/src/internal-wallet-state.ts @@ -35,6 +35,7 @@ import { DenominationInfo, RefreshGroupId, RefreshReason, + TransactionState, WalletNotification, } from "@gnu-taler/taler-util"; import { HttpRequestLibrary } from "@gnu-taler/taler-util/http"; @@ -145,7 +146,7 @@ export interface ActiveLongpollInfo { } /** - * Internal, shard wallet state that is used by the implementation + * Internal, shared wallet state that is used by the implementation * of wallet operations. * * FIXME: This should not be exported anywhere from the taler-wallet-core package, @@ -183,6 +184,12 @@ export interface InternalWalletState { merchantOps: MerchantOperations; refreshOps: RefreshOperations; + getTransactionState( + ws: InternalWalletState, + tx: GetReadOnlyAccess<typeof WalletStoresV1>, + transactionId: string, + ): Promise<TransactionState | undefined>; + getDenomInfo( ws: InternalWalletState, tx: GetReadOnlyAccess<{ |