aboutsummaryrefslogtreecommitdiff
path: root/src/cryptoApi.ts
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2016-11-16 01:59:39 +0100
committerFlorian Dold <florian.dold@gmail.com>2016-11-16 02:00:31 +0100
commitbd65bb67e25a79b019d745b7262b2008ce2adb15 (patch)
tree89e1b032103a63737f1a703e6a943832ef261704 /src/cryptoApi.ts
parentf91466595b651721690133f58ab37f977539e95b (diff)
downloadwallet-core-bd65bb67e25a79b019d745b7262b2008ce2adb15.tar.xz
incrementally verify denoms
The denominations are not stored in a separate object store.
Diffstat (limited to 'src/cryptoApi.ts')
-rw-r--r--src/cryptoApi.ts12
1 files changed, 7 insertions, 5 deletions
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<PreCoinRecord> {
+ createPreCoin(denom: DenominationRecord, reserve: ReserveRecord): Promise<PreCoinRecord> {
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<boolean> {
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<RefreshSessionRecord> {
return this.doRpc("createRefreshSession",
4,