From 250069d86097a966366d21e447f6c3fcc70659bd Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Thu, 13 Oct 2016 02:23:24 +0200 Subject: refactoring / refresh WIP --- lib/wallet/cryptoApi.ts | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) (limited to 'lib/wallet/cryptoApi.ts') diff --git a/lib/wallet/cryptoApi.ts b/lib/wallet/cryptoApi.ts index 855afbb4e..ec20dd964 100644 --- a/lib/wallet/cryptoApi.ts +++ b/lib/wallet/cryptoApi.ts @@ -21,12 +21,12 @@ */ -import {PreCoin} from "./types"; -import {Reserve} from "./types"; +import {PreCoin, Coin, ReserveRecord, AmountJson} from "./types"; import {Denomination} from "./types"; import {Offer} from "./wallet"; import {CoinWithDenom} from "./wallet"; import {PayCoinInfo} from "./types"; +import {RefreshSession} from "./types"; interface RegistryEntry { resolve: any; @@ -228,7 +228,7 @@ export class CryptoApi { } - createPreCoin(denom: Denomination, reserve: Reserve): Promise { + createPreCoin(denom: Denomination, reserve: ReserveRecord): Promise { return this.doRpc("createPreCoin", 1, denom, reserve); } @@ -257,4 +257,17 @@ export class CryptoApi { rsaUnblind(sig: string, bk: string, pk: string): Promise { return this.doRpc("rsaUnblind", 4, sig, bk, pk); } + + createWithdrawSession(kappa: number, meltCoin: Coin, + newCoinDenoms: Denomination[], + meltAmount: AmountJson, + meltFee: AmountJson): Promise { + return this.doRpc("createWithdrawSession", + 4, + kappa, + meltCoin, + newCoinDenoms, + meltAmount, + meltFee); + } } -- cgit v1.2.3