aboutsummaryrefslogtreecommitdiff
path: root/extension/lib/wallet/wallet.ts
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2016-02-17 17:51:25 +0100
committerFlorian Dold <florian.dold@gmail.com>2016-02-17 17:51:25 +0100
commit059de061aba79d9e823cc43497038e1722434b61 (patch)
treeaf9650621e507a4c5f53098ff295b8c0dd3ee745 /extension/lib/wallet/wallet.ts
parent874d083ec371441d2f2b31281652fd8f82cc5489 (diff)
contract schema
Diffstat (limited to 'extension/lib/wallet/wallet.ts')
-rw-r--r--extension/lib/wallet/wallet.ts4
1 files changed, 4 insertions, 0 deletions
diff --git a/extension/lib/wallet/wallet.ts b/extension/lib/wallet/wallet.ts
index 788d3f6c6..fe3148c9b 100644
--- a/extension/lib/wallet/wallet.ts
+++ b/extension/lib/wallet/wallet.ts
@@ -162,6 +162,9 @@ export class Contract {
@Checkable.String
fulfillment_url: string;
+ @Checkable.Optional(Checkable.String)
+ repurchase_correlation_id: string;
+
static checked: (obj: any) => Contract;
}
@@ -761,6 +764,7 @@ export class Wallet {
* Withdraw one coins of the given denomination from the given reserve.
*/
private withdraw(denom: Denomination, reserve: Reserve): Promise<void> {
+ console.log("creating pre coin at", new Date());
let preCoin = createPreCoin(denom, reserve);
return Query(this.db)
.put("precoins", preCoin)