@kyve/contract-lib
Advanced tools
Comparing version 0.1.0-alpha.9 to 0.1.0-alpha.10
@@ -17,3 +17,5 @@ import { StateInterface } from "@kyve/contract-pool/dist/faces"; | ||
deposit(qty: number): Promise<string>; | ||
withdraw(qty: number): Promise<string>; | ||
fund(qty: number): Promise<string>; | ||
unfund(qty: number): Promise<string>; | ||
stake(qty: number): Promise<string>; | ||
@@ -20,0 +22,0 @@ unstake(qty: number): Promise<string>; |
@@ -113,2 +113,24 @@ "use strict"; | ||
}; | ||
Pool.prototype.withdraw = function (qty) { | ||
return __awaiter(this, void 0, void 0, function () { | ||
var input; | ||
return __generator(this, function (_a) { | ||
switch (_a.label) { | ||
case 0: | ||
input = { | ||
"function": "withdraw", | ||
qty: qty | ||
}; | ||
return [4 /*yield*/, this.interactWithPool(input, [ | ||
{ name: "Contract", value: this.governance }, | ||
{ | ||
name: "Input", | ||
value: JSON.stringify({ "function": "readOutbox", contract: this.id }) | ||
}, | ||
])]; | ||
case 1: return [2 /*return*/, _a.sent()]; | ||
} | ||
}); | ||
}); | ||
}; | ||
Pool.prototype.fund = function (qty) { | ||
@@ -130,2 +152,18 @@ return __awaiter(this, void 0, void 0, function () { | ||
}; | ||
Pool.prototype.unfund = function (qty) { | ||
return __awaiter(this, void 0, void 0, function () { | ||
var input; | ||
return __generator(this, function (_a) { | ||
switch (_a.label) { | ||
case 0: | ||
input = { | ||
"function": "unfund", | ||
qty: qty | ||
}; | ||
return [4 /*yield*/, this.interactWithPool(input)]; | ||
case 1: return [2 /*return*/, _a.sent()]; | ||
} | ||
}); | ||
}); | ||
}; | ||
Pool.prototype.stake = function (qty) { | ||
@@ -132,0 +170,0 @@ return __awaiter(this, void 0, void 0, function () { |
{ | ||
"name": "@kyve/contract-lib", | ||
"version": "0.1.0-alpha.9", | ||
"version": "0.1.0-alpha.10", | ||
"main": "dist/index", | ||
@@ -19,7 +19,7 @@ "types": "dist/index", | ||
"dependencies": { | ||
"@kyve/contract-pool": "1.0.0-alpha.1", | ||
"arweave": "^1.10.13", | ||
"smartweave": "KYVENetwork/SmartWeave#release" | ||
"@kyve/contract-pool": "^1.0.0-alpha.1", | ||
"arweave": "^1.10.15", | ||
"smartweave": "johnletey/SmartWeave#release" | ||
}, | ||
"gitHead": "664898ef6aa5003996af02c00cea38d57359e53a" | ||
"gitHead": "7838696717c15c25f27d6e84ea5fddd9189c4364" | ||
} |
GitHub dependency
Supply chain riskContains a dependency which resolves to a GitHub URL. Dependencies fetched from GitHub specifiers are not immutable can be used to inject untrusted code or reduce the likelihood of a reproducible install.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
GitHub dependency
Supply chain riskContains a dependency which resolves to a GitHub URL. Dependencies fetched from GitHub specifiers are not immutable can be used to inject untrusted code or reduce the likelihood of a reproducible install.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
12051
266
2
+ Added@kyve/contract-pool@1.0.0-alpha.5(transitive)
- Removed@kyve/contract-pool@1.0.0-alpha.1(transitive)
Updatedarweave@^1.10.15