From 89cfaa9923eca6939c12d6d84837b985e0ce3b81 Mon Sep 17 00:00:00 2001
From: Patrick
Date: Tue, 7 May 2024 16:56:21 -0400
Subject: [PATCH] SP-933: Update satoshisPerByte to float and bump version
---
package.json | 2 +-
src/Env.ts | 2 +-
src/Model/Invoice/MinerFeesItem.ts | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/package.json b/package.json
index 8d3569b..511763b 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "bitpay-sdk",
- "version": "5.0.1",
+ "version": "5.0.2",
"description": "Complete version of the NodeJS library for the new cryptographically secure BitPay API",
"main": "dist/index",
"typings": "dist/index",
diff --git a/src/Env.ts b/src/Env.ts
index 6fc2634..cb8ed86 100644
--- a/src/Env.ts
+++ b/src/Env.ts
@@ -3,7 +3,7 @@ export const Prod = 'PROD';
export const TestUrl = 'https://test.bitpay.com/';
export const ProdUrl = 'https://bitpay.com/';
export const BitpayApiVersion = '2.0.0';
-export const BitpayPluginInfo = 'BitPay_NodeJs_Client_v5.0.1';
+export const BitpayPluginInfo = 'BitPay_NodeJs_Client_v5.0.2';
export const BitpayApiFrame = 'std';
export const BitpayApiFrameVersion = '1.0.0';
diff --git a/src/Model/Invoice/MinerFeesItem.ts b/src/Model/Invoice/MinerFeesItem.ts
index 53ed36b..0864453 100644
--- a/src/Model/Invoice/MinerFeesItem.ts
+++ b/src/Model/Invoice/MinerFeesItem.ts
@@ -1,5 +1,5 @@
export interface MinerFeesItem {
- satoshisPerByte: bigint;
+ satoshisPerByte: number;
totalFee: bigint;
fiatAmount: number;
}