@kyve/contract-lib
Advanced tools
Comparing version 0.1.0-alpha.13 to 0.1.0-alpha.14
@@ -16,2 +16,3 @@ import { StateInterface } from "@kyve/contract-pool/dist/faces"; | ||
getState(useCache?: boolean): Promise<StateInterface>; | ||
processOutbox(): Promise<string>; | ||
deposit(qty: number): Promise<string>; | ||
@@ -18,0 +19,0 @@ withdraw(qty: number): Promise<string>; |
@@ -112,2 +112,15 @@ "use strict"; | ||
}; | ||
Pool.prototype.processOutbox = function () { | ||
return __awaiter(this, void 0, void 0, function () { | ||
return __generator(this, function (_a) { | ||
switch (_a.label) { | ||
case 0: return [4 /*yield*/, this.interactWithGovernance({ | ||
"function": "readOutbox", | ||
contract: this.id | ||
})]; | ||
case 1: return [2 /*return*/, _a.sent()]; | ||
} | ||
}); | ||
}); | ||
}; | ||
Pool.prototype.deposit = function (qty) { | ||
@@ -114,0 +127,0 @@ return __awaiter(this, void 0, void 0, function () { |
{ | ||
"name": "@kyve/contract-lib", | ||
"version": "0.1.0-alpha.13", | ||
"version": "0.1.0-alpha.14", | ||
"main": "dist/index", | ||
@@ -24,3 +24,3 @@ "types": "dist/index", | ||
}, | ||
"gitHead": "9bfc4d51e1e9ee4d933da03e7b985e6b0b929f56" | ||
"gitHead": "c39346d75e6fadc4687697f5bb18cb5890bc4a17" | ||
} |
19143
403