connext
Advanced tools
Comparing version 4.2.3 to 4.2.4
@@ -58,3 +58,2 @@ "use strict"; | ||
this.internal = this; | ||
this.store = this.internal.store; | ||
} | ||
@@ -92,2 +91,7 @@ // ****************************** | ||
// ****************************** | ||
getState() { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
return this.internal.store.getState(); | ||
}); | ||
} | ||
buy(purchase) { | ||
@@ -94,0 +98,0 @@ return __awaiter(this, void 0, void 0, function* () { |
{ | ||
"name": "connext", | ||
"description": "Shared code between wallet and hub", | ||
"version": "4.2.3", | ||
"version": "4.2.4", | ||
"main": "dist/index.js", | ||
@@ -6,0 +6,0 @@ "types": "types/index.d.ts", |
@@ -149,3 +149,2 @@ import { ethers as eth } from 'ethers' | ||
public StateGenerator?: StateGenerator | ||
public store?: ConnextStore | ||
public Utils?: Utils // class constructor (todo: rm?) | ||
@@ -162,3 +161,2 @@ public utils: Utils // instance | ||
this.internal = this as any | ||
this.store = this.internal.store | ||
} | ||
@@ -195,2 +193,6 @@ | ||
public async getState(): Promise<any> { | ||
return this.internal.store.getState() | ||
} | ||
public async buy(purchase: PartialPurchaseRequest): Promise<{ purchaseId: string }> { | ||
@@ -197,0 +199,0 @@ return this.internal.buyController.buy(purchase) |
@@ -53,3 +53,2 @@ /// <reference types="node" /> | ||
StateGenerator?: StateGenerator; | ||
store?: ConnextStore; | ||
Utils?: Utils; | ||
@@ -65,2 +64,3 @@ utils: Utils; | ||
startProfileSession(): Promise<void>; | ||
getState(): Promise<any>; | ||
buy(purchase: PartialPurchaseRequest): Promise<{ | ||
@@ -67,0 +67,0 @@ purchaseId: string; |
Sorry, the diff of this file is not supported yet
1600489
30837