add exchanges to currency info

This commit is contained in:
Florian Dold 2017-04-12 17:47:14 +02:00
parent e8bec33231
commit 0ef5140e33
No known key found for this signature in database
GPG Key ID: D2E4F00F29D02A4B
3 changed files with 13 additions and 2 deletions

View File

@ -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 };

View File

@ -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[];
}

View File

@ -221,7 +221,8 @@ const builtinCurrencies: CurrencyRecord[] = [
expirationStamp: (new Date(2027, 1)).getTime(),
auditorPub: "XN9KMN5G2KGPCAN0E89MM5HE8FV4WBWA9KDTMTDR817MWBCYA7H0",
},
]
],
exchanges: [],
},
];