Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@kyve/contract-lib

Package Overview
Dependencies
Maintainers
2
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@kyve/contract-lib - npm Package Compare versions

Comparing version 0.1.0-alpha.9 to 0.1.0-alpha.10

2

dist/pool.d.ts

@@ -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 () {

10

package.json
{
"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"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc