From 18c30b9a00a4e5dee629f4e06c261509ff7ba455 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Fri, 10 Feb 2023 13:21:37 +0100 Subject: wallet-core: implement partial withdrawal batching, don't block when generating planchets --- packages/taler-util/src/taler-types.ts | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) (limited to 'packages/taler-util/src') diff --git a/packages/taler-util/src/taler-types.ts b/packages/taler-util/src/taler-types.ts index a9303ed9c..bb15f0494 100644 --- a/packages/taler-util/src/taler-types.ts +++ b/packages/taler-util/src/taler-types.ts @@ -951,12 +951,12 @@ export const codecForBlindedDenominationSignature = () => .alternative(DenomKeyType.Rsa, codecForRsaBlindedDenominationSignature()) .build("BlindedDenominationSignature"); -export class WithdrawResponse { +export class ExchangeWithdrawResponse { ev_sig: BlindedDenominationSignature; } -export class WithdrawBatchResponse { - ev_sigs: WithdrawResponse[]; +export class ExchangeWithdrawBatchResponse { + ev_sigs: ExchangeWithdrawResponse[]; } export interface MerchantPayResponse { @@ -1476,13 +1476,13 @@ export const codecForRecoupConfirmation = (): Codec => .property("old_coin_pub", codecOptional(codecForString())) .build("RecoupConfirmation"); -export const codecForWithdrawResponse = (): Codec => - buildCodecForObject() +export const codecForWithdrawResponse = (): Codec => + buildCodecForObject() .property("ev_sig", codecForBlindedDenominationSignature()) .build("WithdrawResponse"); -export const codecForWithdrawBatchResponse = (): Codec => - buildCodecForObject() +export const codecForWithdrawBatchResponse = (): Codec => + buildCodecForObject() .property("ev_sigs", codecForList(codecForWithdrawResponse())) .build("WithdrawBatchResponse"); @@ -1753,6 +1753,11 @@ export interface ExchangeWithdrawRequest { coin_ev: CoinEnvelope; } +export interface ExchangeBatchWithdrawRequest { + planchets: ExchangeWithdrawRequest[]; +} + + export interface ExchangeRefreshRevealRequest { new_denoms_h: HashCodeString[]; coin_evs: CoinEnvelope[]; -- cgit v1.2.3