aboutsummaryrefslogtreecommitdiff
path: root/src/cryptoApi.ts
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2016-11-15 15:07:17 +0100
committerFlorian Dold <florian.dold@gmail.com>2016-11-15 15:07:17 +0100
commitded02bf11f31c7b9d9cf8b2c863485a491b4c0ae (patch)
treef6106f1aba8fabecd42e06308b3d5c69243398db /src/cryptoApi.ts
parenta92b7dc0df64ce647ba55315c386e1bf447e3528 (diff)
renaming / dce
Diffstat (limited to 'src/cryptoApi.ts')
-rw-r--r--src/cryptoApi.ts14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/cryptoApi.ts b/src/cryptoApi.ts
index 41f6c9593..1a17f6dca 100644
--- a/src/cryptoApi.ts
+++ b/src/cryptoApi.ts
@@ -21,12 +21,12 @@
*/
-import {PreCoin, Coin, ReserveRecord, AmountJson} from "./types";
+import {PreCoinRecord, CoinRecord, ReserveRecord, AmountJson} from "./types";
import {Denomination} from "./types";
-import {Offer} from "./wallet";
+import {OfferRecord} from "./wallet";
import {CoinWithDenom} from "./wallet";
import {PayCoinInfo} from "./types";
-import {RefreshSession} from "./types";
+import {RefreshSessionRecord} from "./types";
interface WorkerState {
@@ -214,7 +214,7 @@ export class CryptoApi {
}
- createPreCoin(denom: Denomination, reserve: ReserveRecord): Promise<PreCoin> {
+ createPreCoin(denom: Denomination, reserve: ReserveRecord): Promise<PreCoinRecord> {
return this.doRpc("createPreCoin", 1, denom, reserve);
}
@@ -227,7 +227,7 @@ export class CryptoApi {
return this.doRpc("isValidDenom", 2, denom, masterPub);
}
- signDeposit(offer: Offer,
+ signDeposit(offer: OfferRecord,
cds: CoinWithDenom[]): Promise<PayCoinInfo> {
return this.doRpc("signDeposit", 3, offer, cds);
}
@@ -242,9 +242,9 @@ export class CryptoApi {
createRefreshSession(exchangeBaseUrl: string,
kappa: number,
- meltCoin: Coin,
+ meltCoin: CoinRecord,
newCoinDenoms: Denomination[],
- meltFee: AmountJson): Promise<RefreshSession> {
+ meltFee: AmountJson): Promise<RefreshSessionRecord> {
return this.doRpc("createRefreshSession",
4,
exchangeBaseUrl,