diff options
Diffstat (limited to 'packages/taler-wallet-core/src/common.ts')
-rw-r--r-- | packages/taler-wallet-core/src/common.ts | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/packages/taler-wallet-core/src/common.ts b/packages/taler-wallet-core/src/common.ts index d3c4a5229..5b61ef14a 100644 --- a/packages/taler-wallet-core/src/common.ts +++ b/packages/taler-wallet-core/src/common.ts @@ -51,7 +51,7 @@ export interface TrustInfo { isAudited: boolean; } -export interface MerchantInfo { +export interface MerchantInfo { protocolVersionCurrent: number; } @@ -65,6 +65,14 @@ export interface MerchantOperations { ): Promise<MerchantInfo>; } +export interface ReserveOperations { + processReserve( + ws: InternalWalletState, + reservePub: string, + forceNow?: boolean, + ): Promise<void>; +} + /** * Interface for exchange-related operations. */ @@ -152,6 +160,7 @@ export interface InternalWalletState { exchangeOps: ExchangeOperations; recoupOps: RecoupOperations; merchantOps: MerchantOperations; + reserveOps: ReserveOperations; db: DbAccess<typeof WalletStoresV1>; http: HttpRequestLibrary; |