diff options
author | Florian Dold <florian.dold@gmail.com> | 2020-07-09 18:56:18 +0530 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2020-07-09 18:56:18 +0530 |
commit | 63ebe1b2e296aabb79cb1756d5dfc82c1ba4fe02 (patch) | |
tree | 18d0a1f92b8b48abec3d66b10a56d23212d7d81b /src/android | |
parent | 2efe743950ade93ef6cb981a6ac4a56ef3e71ec7 (diff) |
android APIs for withdrawal and exchange listing
Diffstat (limited to 'src/android')
-rw-r--r-- | src/android/index.ts | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/android/index.ts b/src/android/index.ts index 4a62a0239..e7a248476 100644 --- a/src/android/index.ts +++ b/src/android/index.ts @@ -184,6 +184,19 @@ class AndroidWalletMessageHandler { const wallet = await this.wp.promise; return await wallet.getPendingOperations(); } + case "listExchanges": { + const wallet = await this.wp.promise; + return await wallet.getExchanges(); + } + case "addExchange": { + const wallet = await this.wp.promise; + await wallet.updateExchangeFromUrl(args.exchangeBaseUrl); + return {}; + } + case "getWithdrawalDetailsForAmount": { + const wallet = await this.wp.promise; + return await wallet.getWithdrawDetailsForAmount(args.exchangeBaseUrl, args.amount); + } case "withdrawTestkudos": { const wallet = await this.wp.promise; try { |