aboutsummaryrefslogtreecommitdiff
path: root/packages/taler-util/src/wallet-types.ts
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2023-10-17 20:43:03 +0200
committerFlorian Dold <florian@dold.me>2023-10-17 20:43:09 +0200
commit39ba26c7623a380c15bf183d25ec8f1fd60b65b6 (patch)
treeb77c3881d2bad24b397ff599bf329d23c789bb38 /packages/taler-util/src/wallet-types.ts
parent503cbfbb95828677b83212816951eb501de2a8fe (diff)
downloadwallet-core-39ba26c7623a380c15bf183d25ec8f1fd60b65b6.tar.xz
wallet-core: implement listExchangesForScopedCurrency
Diffstat (limited to 'packages/taler-util/src/wallet-types.ts')
-rw-r--r--packages/taler-util/src/wallet-types.ts28
1 files changed, 23 insertions, 5 deletions
diff --git a/packages/taler-util/src/wallet-types.ts b/packages/taler-util/src/wallet-types.ts
index 49dae9bd4..de9948ea6 100644
--- a/packages/taler-util/src/wallet-types.ts
+++ b/packages/taler-util/src/wallet-types.ts
@@ -426,6 +426,16 @@ export const codecForGetCurrencyInfoRequest =
.property("scope", codecForScopeInfo())
.build("GetCurrencySpecificationRequest");
+export interface ListExchangesForScopedCurrencyRequest {
+ scope: ScopeInfo;
+}
+
+export const codecForListExchangesForScopedCurrencyRequest =
+ (): Codec<ListExchangesForScopedCurrencyRequest> =>
+ buildCodecForObject<ListExchangesForScopedCurrencyRequest>()
+ .property("scope", codecForScopeInfo())
+ .build("ListExchangesForScopedCurrencyRequest");
+
export interface GetCurrencySpecificationResponse {
currencySpecification: CurrencySpecification;
}
@@ -547,11 +557,11 @@ export interface CoinDumpJson {
withdrawal_reserve_pub: string | undefined;
coin_status: CoinStatus;
spend_allocation:
- | {
- id: string;
- amount: string;
- }
- | undefined;
+ | {
+ id: string;
+ amount: string;
+ }
+ | undefined;
/**
* Information about the age restriction
*/
@@ -1045,6 +1055,10 @@ export interface DepositInfo {
ageCommitmentProof?: AgeCommitmentProof;
}
+export interface ExchangesShortListResponse {
+ exchanges: ShortExchangeListItem[];
+}
+
export interface ExchangesListResponse {
exchanges: ExchangeListItem[];
}
@@ -1282,6 +1296,10 @@ export interface OperationErrorInfo {
error: TalerErrorDetail;
}
+export interface ShortExchangeListItem {
+ exchangeBaseUrl: string;
+}
+
// FIXME: This should probably include some error status.
export interface ExchangeListItem {
exchangeBaseUrl: string;