From 736955a97d065ba9931a895fa2a7ccf38c03ffd9 Mon Sep 17 00:00:00 2001 From: sartios <917573+sartios@users.noreply.github.com> Date: Thu, 6 Nov 2025 12:36:03 +0200 Subject: [PATCH 1/2] CY-2582 Update currencies --- package-lock.json | 6 +++--- package.json | 4 ++-- test/unit/getOrderBook.test.js | 16 ++++++++-------- 3 files changed, 13 insertions(+), 13 deletions(-) diff --git a/package-lock.json b/package-lock.json index bae4ac8..1216488 100644 --- a/package-lock.json +++ b/package-lock.json @@ -31,9 +31,9 @@ } }, "@coinify/currency": { - "version": "1.3.43", - "resolved": "https://registry.npmjs.org/@coinify/currency/-/currency-1.3.43.tgz", - "integrity": "sha512-2Iy6giPz0Qk/bJ67bdAe8aYVYSJLI5QH6EG9cQEWO0jXqykox1JcGbm8MaHB+HBF7XG1D0S1MW2N8GnV7ngE5A==", + "version": "1.4.12", + "resolved": "https://registry.npmjs.org/@coinify/currency/-/currency-1.4.12.tgz", + "integrity": "sha512-AXtQ7Etzb4WS2/4lOEP1m5T6B805vy/DyUgPp02CVjG6dyUCD6fLDHP6QZ1UXxgZGFuoVnFOC9Lcv4VqY6YjJg==", "requires": { "lodash": "^4.17.21" } diff --git a/package.json b/package.json index da67187..566efc0 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ "url": "https://github.com/CoinifySoftware/kraken-exc/issues" }, "dependencies": { - "@coinify/currency": "^1.3.43", + "@coinify/currency": "^1.4.12", "async": "3.2.5", "console-log-level": "^1.4.1", "lodash": "^4.17.21", @@ -43,5 +43,5 @@ "test": "LOG_LEVEL=fatal mocha --config .mocharc.json", "test-watch": "LOG_LEVEL=info mocha --config .mocharc.json --watch" }, - "version": "2.5.7" + "version": "2.5.8" } diff --git a/test/unit/getOrderBook.test.js b/test/unit/getOrderBook.test.js index c2b106f..31aa1ea 100644 --- a/test/unit/getOrderBook.test.js +++ b/test/unit/getOrderBook.test.js @@ -370,16 +370,16 @@ describe('#getOrderBook', function () { baseCurrency: 'ALGO', quoteCurrency: 'USD', bids: [ - { price: 0.1597, baseAmount: 939261200000 }, - { price: 0.15968, baseAmount: 1550932900000 }, - { price: 0.15967, baseAmount: 1883300000000 }, - { price: 0.15966, baseAmount: 1220238200000 } + { price: 0.1597, baseAmount: 9392612000 }, + { price: 0.15968, baseAmount: 15509329000 }, + { price: 0.15967, baseAmount: 18833000000 }, + { price: 0.15966, baseAmount: 12202382000 } ], asks: [ - { price: 0.15984, baseAmount: 75502800000 }, - { price: 0.15987, baseAmount: 4395567200000 }, - { price: 0.15988, baseAmount: 2224552800000 }, - { price: 0.15989, baseAmount: 626056500000 } + { price: 0.15984, baseAmount: 755028000 }, + { price: 0.15987, baseAmount: 43955672000 }, + { price: 0.15988, baseAmount: 22245528000 }, + { price: 0.15989, baseAmount: 6260565000 } ] }); From 48a701a2c0c1636e39e0d3a8ecebf06b8018929f Mon Sep 17 00:00:00 2001 From: sartios <917573+sartios@users.noreply.github.com> Date: Thu, 6 Nov 2025 12:43:42 +0200 Subject: [PATCH 2/2] CY-2582 Fix test --- test/unit/listTransactions.test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/unit/listTransactions.test.js b/test/unit/listTransactions.test.js index b8a90f5..aa3755b 100644 --- a/test/unit/listTransactions.test.js +++ b/test/unit/listTransactions.test.js @@ -337,7 +337,7 @@ describe('listTransactions', () => { time: 1480675052.7086, type: 'withdrawal', aclass: 'currency', - asset: 'TAO', + asset: 'TAOxyz', amount: '-24952.5900', fee: '47.4100', balance: '4440.5843'