aboutsummaryrefslogtreecommitdiff
path: root/src/types
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2020-07-09 18:56:18 +0530
committerFlorian Dold <florian.dold@gmail.com>2020-07-09 18:56:18 +0530
commit63ebe1b2e296aabb79cb1756d5dfc82c1ba4fe02 (patch)
tree18d0a1f92b8b48abec3d66b10a56d23212d7d81b /src/types
parent2efe743950ade93ef6cb981a6ac4a56ef3e71ec7 (diff)
downloadwallet-core-63ebe1b2e296aabb79cb1756d5dfc82c1ba4fe02.tar.xz
android APIs for withdrawal and exchange listing
Diffstat (limited to 'src/types')
-rw-r--r--src/types/dbTypes.ts13
-rw-r--r--src/types/walletTypes.ts10
2 files changed, 23 insertions, 0 deletions
diff --git a/src/types/dbTypes.ts b/src/types/dbTypes.ts
index 82649d9f6..6693e22a2 100644
--- a/src/types/dbTypes.ts
+++ b/src/types/dbTypes.ts
@@ -556,6 +556,16 @@ export interface ExchangeRecord {
baseUrl: string;
/**
+ * Did we finish adding the exchange?
+ */
+ addComplete: boolean;
+
+ /**
+ * Is this a permanent or temporary exchange record?
+ */
+ permanent: boolean;
+
+ /**
* Was the exchange added as a built-in exchange?
*/
builtIn: boolean;
@@ -601,6 +611,9 @@ export interface ExchangeRecord {
*/
updateStarted: Timestamp | undefined;
+ /**
+ * Status of updating the info about the exchange.
+ */
updateStatus: ExchangeUpdateStatus;
updateReason?: ExchangeUpdateReason;
diff --git a/src/types/walletTypes.ts b/src/types/walletTypes.ts
index e58352e01..8bc4f97af 100644
--- a/src/types/walletTypes.ts
+++ b/src/types/walletTypes.ts
@@ -479,3 +479,13 @@ export interface DepositInfo {
export interface ExtendedPermissionsResponse {
newValue: boolean;
}
+
+export interface ExchangesListRespose {
+ exchanges: ExchangeListItem[];
+}
+
+export interface ExchangeListItem {
+ exchangeBaseUrl: string;
+ currency: string;
+ paytoUris: string[];
+}