summaryrefslogtreecommitdiff
path: root/packages/taler-wallet-core/src/wallet-api-types.ts
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2023-10-02 23:24:06 +0200
committerFlorian Dold <florian@dold.me>2023-10-02 23:24:06 +0200
commit8e70b89593a375bb19432e6521daed618ae779f5 (patch)
treec44131dcd82f7b58244611fab1dc85c44b847899 /packages/taler-wallet-core/src/wallet-api-types.ts
parent671bbf29548e2ec078b29e75e368d77ee7bdb81f (diff)
downloadwallet-core-8e70b89593a375bb19432e6521daed618ae779f5.tar.gz
wallet-core-8e70b89593a375bb19432e6521daed618ae779f5.tar.bz2
wallet-core-8e70b89593a375bb19432e6521daed618ae779f5.zip
wallet-core: currency hint for preset exchanges
Diffstat (limited to 'packages/taler-wallet-core/src/wallet-api-types.ts')
-rw-r--r--packages/taler-wallet-core/src/wallet-api-types.ts7
1 files changed, 6 insertions, 1 deletions
diff --git a/packages/taler-wallet-core/src/wallet-api-types.ts b/packages/taler-wallet-core/src/wallet-api-types.ts
index 26e86f43f..375e0a1b2 100644
--- a/packages/taler-wallet-core/src/wallet-api-types.ts
+++ b/packages/taler-wallet-core/src/wallet-api-types.ts
@@ -254,6 +254,11 @@ export type GetVersionOp = {
*/
export type WalletConfigParameter = RecursivePartial<WalletConfig>;
+export interface BuiltinExchange {
+ exchangeBaseUrl: string;
+ currencyHint?: string;
+}
+
export interface WalletConfig {
/**
* Initialization values useful for a complete startup.
@@ -261,7 +266,7 @@ export interface WalletConfig {
* These are values may be overridden by different wallets
*/
builtin: {
- exchanges: string[];
+ exchanges: BuiltinExchange[];
};
/**