gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [taler-wallet-webex] 01/02: add exchanges to currency info


From: gnunet
Subject: [GNUnet-SVN] [taler-wallet-webex] 01/02: add exchanges to currency info
Date: Thu, 13 Apr 2017 15:05:44 +0200

This is an automated email from the git hooks/post-receive script.

dold pushed a commit to branch master
in repository wallet-webex.

commit 0ef5140e334085f150a60da6f6233dc2ecfb4a89
Author: Florian Dold <address@hidden>
AuthorDate: Wed Apr 12 17:47:14 2017 +0200

    add exchanges to currency info
---
 src/pages/add-auditor.tsx |  2 +-
 src/types.ts              | 10 ++++++++++
 src/wallet.ts             |  3 ++-
 3 files changed, 13 insertions(+), 2 deletions(-)

diff --git a/src/pages/add-auditor.tsx b/src/pages/add-auditor.tsx
index 2eb98c4..3ec21f5 100644
--- a/src/pages/add-auditor.tsx
+++ b/src/pages/add-auditor.tsx
@@ -55,7 +55,7 @@ class ConfirmAuditor extends 
ImplicitStateComponent<ConfirmAuditorProps> {
     }
 
     if (!currency) {
-      currency = { name: this.props.currency, auditors: [], fractionalDigits: 
2 };
+      currency = { name: this.props.currency, auditors: [], fractionalDigits: 
2, exchanges: [] };
     }
 
     let newAuditor = { auditorPub: this.props.auditorPub, baseUrl: 
this.props.url, expirationStamp: this.props.expirationStamp };
diff --git a/src/types.ts b/src/types.ts
index 6ac8763..5b2fa28 100644
--- a/src/types.ts
+++ b/src/types.ts
@@ -82,10 +82,20 @@ export interface AuditorRecord {
   expirationStamp: number;
 }
 
+export interface ExchangeForCurrencyRecord {
+  /**
+   * Priority for automatic selection when withdrawing.
+   */
+  priority: number;
+  pinnedPub: string;
+  baseUrl: string;
+}
+
 export interface CurrencyRecord {
   name: string;
   fractionalDigits: number;
   auditors: AuditorRecord[];
+  exchanges: ExchangeForCurrencyRecord[];
 }
 
 
diff --git a/src/wallet.ts b/src/wallet.ts
index 506cde1..d52bfef 100644
--- a/src/wallet.ts
+++ b/src/wallet.ts
@@ -221,7 +221,8 @@ const builtinCurrencies: CurrencyRecord[] = [
         expirationStamp: (new Date(2027, 1)).getTime(),
         auditorPub: "XN9KMN5G2KGPCAN0E89MM5HE8FV4WBWA9KDTMTDR817MWBCYA7H0",
       },
-    ]
+    ],
+    exchanges: [],
   },
 ];
 

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]