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

@synonymdev/blocktank-client

Package Overview
Dependencies
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@synonymdev/blocktank-client - npm Package Compare versions

Comparing version 0.0.17 to 0.0.18

3

dist/index.d.ts

@@ -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",

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