From bd65bb67e25a79b019d745b7262b2008ce2adb15 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Wed, 16 Nov 2016 01:59:39 +0100 Subject: incrementally verify denoms The denominations are not stored in a separate object store. --- src/cryptoApi.ts | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'src/cryptoApi.ts') diff --git a/src/cryptoApi.ts b/src/cryptoApi.ts index 1a17f6dca..2d2363770 100644 --- a/src/cryptoApi.ts +++ b/src/cryptoApi.ts @@ -21,8 +21,10 @@ */ -import {PreCoinRecord, CoinRecord, ReserveRecord, AmountJson} from "./types"; -import {Denomination} from "./types"; +import { + PreCoinRecord, CoinRecord, ReserveRecord, AmountJson, + DenominationRecord +} from "./types"; import {OfferRecord} from "./wallet"; import {CoinWithDenom} from "./wallet"; import {PayCoinInfo} from "./types"; @@ -214,7 +216,7 @@ export class CryptoApi { } - createPreCoin(denom: Denomination, reserve: ReserveRecord): Promise { + createPreCoin(denom: DenominationRecord, reserve: ReserveRecord): Promise { return this.doRpc("createPreCoin", 1, denom, reserve); } @@ -222,7 +224,7 @@ export class CryptoApi { return this.doRpc("hashString", 1, str); } - isValidDenom(denom: Denomination, + isValidDenom(denom: DenominationRecord, masterPub: string): Promise { return this.doRpc("isValidDenom", 2, denom, masterPub); } @@ -243,7 +245,7 @@ export class CryptoApi { createRefreshSession(exchangeBaseUrl: string, kappa: number, meltCoin: CoinRecord, - newCoinDenoms: Denomination[], + newCoinDenoms: DenominationRecord[], meltFee: AmountJson): Promise { return this.doRpc("createRefreshSession", 4, -- cgit v1.2.3