crosslightning-solana
Advanced tools
Comparing version 5.1.3 to 5.1.4
@@ -159,2 +159,3 @@ /// <reference types="node" /> | ||
static getFeePerCU(feeRate: string): string; | ||
static getStaticFee(feeRate: string): string; | ||
getInitPayInFeeRate(offerer: string, claimer: string, token: PublicKey, paymentHash?: string): Promise<string>; | ||
@@ -161,0 +162,0 @@ getInitFeeRate(offerer: string, claimer: string, token: PublicKey, paymentHash?: string): Promise<string>; |
@@ -165,3 +165,3 @@ "use strict"; | ||
e.toString(10) : | ||
(this.bribeData.getBribeFee != null ? this.bribeData.getBribeFee(e) : e).toString(10) + ";" + this.bribeData.address); | ||
(this.bribeData.getBribeFee != null ? this.bribeData.getBribeFee(e) : e).toString(10) + (this.bribeData.getStaticFee == null ? "" : ";" + this.bribeData.getStaticFee(e).toString(10)) + ";" + this.bribeData.address); | ||
} | ||
@@ -168,0 +168,0 @@ submitTx(tx, options) { |
{ | ||
"name": "crosslightning-solana", | ||
"version": "5.1.3", | ||
"version": "5.1.4", | ||
"description": "Solana specific base implementation", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
@@ -14,3 +14,8 @@ import * as BN from "bn.js"; | ||
private heliusApiSupported: boolean = true; | ||
private readonly bribeData?: {address: string, endpoint: string, getBribeFee?: (original: BN) => BN}; | ||
private readonly bribeData?: { | ||
address: string, | ||
endpoint: string, | ||
getBribeFee?: (original: BN) => BN, | ||
getStaticFee?: (feeRate: BN) => BN | ||
}; | ||
@@ -199,3 +204,3 @@ private blockFeeCache: { | ||
e.toString(10) : | ||
(this.bribeData.getBribeFee!=null ? this.bribeData.getBribeFee(e) : e).toString(10)+";"+this.bribeData.address | ||
(this.bribeData.getBribeFee!=null ? this.bribeData.getBribeFee(e) : e).toString(10)+(this.bribeData.getStaticFee==null ? "" : ";"+this.bribeData.getStaticFee(e).toString(10))+";"+this.bribeData.address | ||
); | ||
@@ -202,0 +207,0 @@ } |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
626260
15487