crosslightning-sdk-base
Advanced tools
Comparing version 3.0.2 to 3.0.3
@@ -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<{ |
@@ -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, |
440461
9942