@synonymdev/blocktank-client
Advanced tools
Comparing version 0.0.17 to 0.0.18
@@ -1,2 +0,2 @@ | ||
import { IBuyChannelRequest, IBuyChannelResponse, IGetInfoResponse, IGetOrderResponse, IHeaders } from './types'; | ||
import { IBuyChannelRequest, IBuyChannelResponse, IFinalizeChannelRequest, IFinalizeChannelResponse, IGetInfoResponse, IGetOrderResponse, IHeaders } from './types'; | ||
declare class Blocktank { | ||
@@ -12,2 +12,3 @@ private host; | ||
buyChannel(req: IBuyChannelRequest): Promise<IBuyChannelResponse>; | ||
finalizeChannel(req: IFinalizeChannelRequest): Promise<IFinalizeChannelResponse>; | ||
getOrder(orderId: string): Promise<IGetOrderResponse>; | ||
@@ -14,0 +15,0 @@ } |
@@ -166,2 +166,15 @@ "use strict"; | ||
}; | ||
Blocktank.prototype.finalizeChannel = function (req) { | ||
return __awaiter(this, void 0, void 0, function () { | ||
var res; | ||
return __generator(this, function (_a) { | ||
switch (_a.label) { | ||
case 0: return [4 /*yield*/, this.call('channel/manual_finalise', 'POST', req)]; | ||
case 1: | ||
res = _a.sent(); | ||
return [2 /*return*/, res]; | ||
} | ||
}); | ||
}); | ||
}; | ||
Blocktank.prototype.getOrder = function (orderId) { | ||
@@ -168,0 +181,0 @@ return __awaiter(this, void 0, void 0, function () { |
@@ -41,2 +41,8 @@ export declare type IService = { | ||
}; | ||
export declare type IFinalizeChannelRequest = { | ||
product_id: string; | ||
order_id: string; | ||
node_uri: string; | ||
}; | ||
export declare type IFinalizeChannelResponse = {}; | ||
declare type IOnchainPayment = { | ||
@@ -43,0 +49,0 @@ height: number; |
{ | ||
"name": "@synonymdev/blocktank-client", | ||
"version": "0.0.17", | ||
"version": "0.0.18", | ||
"description": "LSP client library", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
13996
314