New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

crosslightning-sdk-base

Package Overview
Dependencies
Maintainers
1
Versions
318
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

crosslightning-sdk-base - npm Package Compare versions

Comparing version 3.0.2 to 3.0.3

1

dist/swaps/ClientSwapContract.d.ts

@@ -96,2 +96,3 @@ /// <reference types="node" />

total: BN;
intermediaryKey: string;
}>;

@@ -98,0 +99,0 @@ getPaymentAuthorization(bolt11PaymentReq: string, url: string, requiredToken?: TokenAddress, requiredOffererKey?: string, requiredBaseFee?: BN, requiredFeePPM?: BN, abortSignal?: AbortSignal): Promise<{

3

dist/swaps/ClientSwapContract.js

@@ -636,3 +636,4 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {

swapFee: new BN(jsonBody.data.swapFee),
total: new BN(jsonBody.data.total)
total: new BN(jsonBody.data.total),
intermediaryKey: jsonBody.data.intermediaryKey
};

@@ -639,0 +640,0 @@ });

@@ -45,3 +45,3 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {

const parsed = bolt11.decode(result.pr);
const swapData = yield this.contract.swapContract.createSwapData(ChainSwapType.HTLC, requiredKey, this.contract.swapContract.getAddress(), requiredToken, null, parsed.tagsObject.payment_hash, null, null, null, false, true, new BN(0), new BN(0));
const swapData = yield this.contract.swapContract.createSwapData(ChainSwapType.HTLC, requiredKey || result.intermediaryKey, this.contract.swapContract.getAddress(), requiredToken, null, parsed.tagsObject.payment_hash, null, null, null, false, true, new BN(0), new BN(0));
const total = result.total;

@@ -48,0 +48,0 @@ if (requiredKey != null) {

{
"name": "crosslightning-sdk-base",
"version": "3.0.2",
"version": "3.0.3",
"description": "CrossLightning SDK chain-agnostic base",

@@ -5,0 +5,0 @@ "main": "./dist/index.js",

@@ -797,3 +797,4 @@ import * as BN from "bn.js";

swapFee: BN,
total: BN
total: BN,
intermediaryKey: string
}> {

@@ -847,3 +848,4 @@

swapFee: new BN(jsonBody.data.swapFee),
total: new BN(jsonBody.data.total)
total: new BN(jsonBody.data.total),
intermediaryKey: jsonBody.data.intermediaryKey
};

@@ -850,0 +852,0 @@ }

@@ -48,3 +48,3 @@ import {BTCLNtoSolSwap} from "./BTCLNtoSolSwap";

ChainSwapType.HTLC,
requiredKey,
requiredKey || result.intermediaryKey,
this.contract.swapContract.getAddress(),

@@ -51,0 +51,0 @@ requiredToken,

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