diff options
author | Florian Dold <florian.dold@gmail.com> | 2019-11-30 00:36:20 +0100 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2019-11-30 00:36:20 +0100 |
commit | aaf7e1338d6cdb1b4e01ad318938b3eaea2f922b (patch) | |
tree | 594129ccdf20757aeb86d434dd62c0c1e8259ed5 /src/webex/wxApi.ts | |
parent | 809fa186448dbd924f258f89920b9336f1979bb0 (diff) | |
download | wallet-core-aaf7e1338d6cdb1b4e01ad318938b3eaea2f922b.tar.xz |
wallet robustness WIP
Diffstat (limited to 'src/webex/wxApi.ts')
-rw-r--r-- | src/webex/wxApi.ts | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/webex/wxApi.ts b/src/webex/wxApi.ts index a50672131..a8b35ed34 100644 --- a/src/webex/wxApi.ts +++ b/src/webex/wxApi.ts @@ -28,7 +28,7 @@ import { CurrencyRecord, DenominationRecord, ExchangeRecord, - PreCoinRecord, + PlanchetRecord, ReserveRecord, } from "../dbTypes"; import { @@ -174,10 +174,10 @@ export function getCoins(exchangeBaseUrl: string): Promise<CoinRecord[]> { /** - * Get all precoins withdrawn from the given exchange. + * Get all planchets withdrawn from the given exchange. */ -export function getPreCoins(exchangeBaseUrl: string): Promise<PreCoinRecord[]> { - return callBackend("get-precoins", { exchangeBaseUrl }); +export function getPlanchets(exchangeBaseUrl: string): Promise<PlanchetRecord[]> { + return callBackend("get-planchets", { exchangeBaseUrl }); } @@ -207,7 +207,7 @@ export function payback(coinPub: string): Promise<void> { /** * Pay for a proposal. */ -export function confirmPay(proposalId: number, sessionId: string | undefined): Promise<ConfirmPayResult> { +export function confirmPay(proposalId: string, sessionId: string | undefined): Promise<ConfirmPayResult> { return callBackend("confirm-pay", { proposalId, sessionId }); } |