diff options
author | Florian Dold <florian@dold.me> | 2023-02-10 13:21:37 +0100 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2023-02-10 13:21:37 +0100 |
commit | 18c30b9a00a4e5dee629f4e06c261509ff7ba455 (patch) | |
tree | d6a546c98d86b15cfab017233f3ddc682822ff62 /packages/taler-util/src | |
parent | c4180e1290261c15d4c8cd081aec12252edf1939 (diff) | |
download | wallet-core-18c30b9a00a4e5dee629f4e06c261509ff7ba455.tar.xz |
wallet-core: implement partial withdrawal batching, don't block when generating planchets
Diffstat (limited to 'packages/taler-util/src')
-rw-r--r-- | packages/taler-util/src/taler-types.ts | 19 |
1 files changed, 12 insertions, 7 deletions
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<RecoupConfirmation> => .property("old_coin_pub", codecOptional(codecForString())) .build("RecoupConfirmation"); -export const codecForWithdrawResponse = (): Codec<WithdrawResponse> => - buildCodecForObject<WithdrawResponse>() +export const codecForWithdrawResponse = (): Codec<ExchangeWithdrawResponse> => + buildCodecForObject<ExchangeWithdrawResponse>() .property("ev_sig", codecForBlindedDenominationSignature()) .build("WithdrawResponse"); -export const codecForWithdrawBatchResponse = (): Codec<WithdrawBatchResponse> => - buildCodecForObject<WithdrawBatchResponse>() +export const codecForWithdrawBatchResponse = (): Codec<ExchangeWithdrawBatchResponse> => + buildCodecForObject<ExchangeWithdrawBatchResponse>() .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[]; |