diff options
Diffstat (limited to 'src/webex')
-rw-r--r-- | src/webex/messages.ts | 4 | ||||
-rw-r--r-- | src/webex/wxApi.ts | 11 | ||||
-rw-r--r-- | src/webex/wxBackend.ts | 7 |
3 files changed, 0 insertions, 22 deletions
diff --git a/src/webex/messages.ts b/src/webex/messages.ts index 932636f1a..8120d4f94 100644 --- a/src/webex/messages.ts +++ b/src/webex/messages.ts @@ -73,10 +73,6 @@ export interface MessageMap { request: { baseUrl: string }; response: dbTypes.ExchangeRecord; }; - "reserve-creation-info": { - request: { baseUrl: string; amount: AmountJson }; - response: walletTypes.ExchangeWithdrawDetails; - }; "get-history": { request: {}; response: HistoryEvent[]; diff --git a/src/webex/wxApi.ts b/src/webex/wxApi.ts index 1823f662c..0901005b5 100644 --- a/src/webex/wxApi.ts +++ b/src/webex/wxApi.ts @@ -104,17 +104,6 @@ async function callBackend<T extends MessageType>( } /** - * Query the wallet for the coins that would be used to withdraw - * from a given reserve. - */ -export function getReserveCreationInfo( - baseUrl: string, - amount: AmountJson, -): Promise<ExchangeWithdrawDetails> { - return callBackend("reserve-creation-info", { baseUrl, amount }); -} - -/** * Get all exchanges the wallet knows about. */ export function getExchanges(): Promise<ExchangeRecord[]> { diff --git a/src/webex/wxBackend.ts b/src/webex/wxBackend.ts index 5cf61a78a..540c79771 100644 --- a/src/webex/wxBackend.ts +++ b/src/webex/wxBackend.ts @@ -139,13 +139,6 @@ async function handleMessage( } return needsWallet().updateExchangeFromUrl(detail.baseUrl); } - case "reserve-creation-info": { - if (!detail.baseUrl || typeof detail.baseUrl !== "string") { - return Promise.resolve({ error: "bad url" }); - } - const amount = codecForAmountJson().decode(detail.amount); - return needsWallet().getWithdrawDetailsForAmount(detail.baseUrl, amount); - } case "get-history": { // TODO: limit history length return needsWallet().getHistory(); |