diff options
author | Florian Dold <florian@dold.me> | 2024-04-03 12:58:01 +0200 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2024-04-03 12:58:01 +0200 |
commit | 5417b8b7b866f1c4f4d99d6ec9ad001af67822b6 (patch) | |
tree | 8e14f48ca356621343ca949d1ff700dc41d08776 /packages/taler-util | |
parent | bc3e40310ef37c90ef16d562440fffe9793f1099 (diff) |
wallet-core: preparations for deferred coin selection
Diffstat (limited to 'packages/taler-util')
-rw-r--r-- | packages/taler-util/src/wallet-types.ts | 34 |
1 files changed, 28 insertions, 6 deletions
diff --git a/packages/taler-util/src/wallet-types.ts b/packages/taler-util/src/wallet-types.ts index e5eb618f0..441da7a87 100644 --- a/packages/taler-util/src/wallet-types.ts +++ b/packages/taler-util/src/wallet-types.ts @@ -633,11 +633,11 @@ export interface CoinDumpJson { withdrawal_reserve_pub: string | undefined; coin_status: CoinStatus; spend_allocation: - | { - id: string; - amount: AmountString; - } - | undefined; + | { + id: string; + amount: AmountString; + } + | undefined; /** * Information about the age restriction */ @@ -836,7 +836,7 @@ export const codecForPreparePayResultPaymentPossible = ) .build("PreparePayResultPaymentPossible"); -export interface BalanceDetails { } +export interface BalanceDetails {} /** * Detailed reason for why the wallet's balance is insufficient. @@ -2662,8 +2662,16 @@ export interface TestPayResult { } export interface SelectedCoin { + denomPubHash: string; coinPub: string; contribution: AmountString; + exchangeBaseUrl: string; +} + +export interface SelectedProspectiveCoin { + denomPubHash: string; + contribution: AmountString; + exchangeBaseUrl: string; } /** @@ -2684,6 +2692,20 @@ export interface PayCoinSelection { customerDepositFees: AmountString; } +export interface ProspectivePayCoinSelection { + prospectiveCoins: SelectedProspectiveCoin[]; + + /** + * How much of the wire fees is the customer paying? + */ + customerWireFees: AmountString; + + /** + * How much of the deposit fees is the customer paying? + */ + customerDepositFees: AmountString; +} + export interface CheckPeerPushDebitRequest { /** * Preferred exchange to use for the p2p payment. |