@pioneer-platform/thorchain-client 0.23.0 → 0.24.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
 
2
2
  
3
- > @pioneer-platform/thorchain-client@0.23.0 build /Users/highlander/WebstormProjects/keepkey-stack/projects/pioneer/modules/intergrations/thorchain
3
+ > @pioneer-platform/thorchain-client@0.24.4 build /Users/highlander/WebstormProjects/keepkey-stack/projects/pioneer/modules/intergrations/thorchain
4
4
  > tsc -p .
5
5
 
package/CHANGELOG.md CHANGED
@@ -1,5 +1,52 @@
1
1
  # @pioneer-platform/thorchain-client
2
2
 
3
+ ## 0.24.4
4
+
5
+ ### Patch Changes
6
+
7
+ - chore: chore: chore: chore: update test suite and deployment workflow
8
+ - Updated dependencies
9
+ - @pioneer-platform/pioneer-caip@9.27.4
10
+ - @pioneer-platform/pioneer-coins@9.20.4
11
+
12
+ ## 0.24.3
13
+
14
+ ### Patch Changes
15
+
16
+ - chore: chore: chore: update test suite and deployment workflow
17
+ - Updated dependencies
18
+ - @pioneer-platform/pioneer-caip@9.27.3
19
+ - @pioneer-platform/pioneer-coins@9.20.3
20
+
21
+ ## 0.24.2
22
+
23
+ ### Patch Changes
24
+
25
+ - chore: chore: update test suite and deployment workflow
26
+ - Updated dependencies
27
+ - @pioneer-platform/pioneer-caip@9.27.2
28
+ - @pioneer-platform/pioneer-coins@9.20.2
29
+
30
+ ## 0.24.1
31
+
32
+ ### Patch Changes
33
+
34
+ - chore: update test suite and deployment workflow
35
+ - Updated dependencies
36
+ - @pioneer-platform/pioneer-caip@9.27.1
37
+ - @pioneer-platform/pioneer-coins@9.20.1
38
+
39
+ ## 0.24.0
40
+
41
+ ### Minor Changes
42
+
43
+ - chore: chore: chore: chore: chore: feat(e2e): add --blue and --production flags to pioneer-sdk test
44
+
45
+ ### Patch Changes
46
+
47
+ - Updated dependencies
48
+ - @pioneer-platform/pioneer-caip@9.27.0
49
+
3
50
  ## 0.23.0
4
51
 
5
52
  ### Minor Changes
package/lib/index.js CHANGED
@@ -338,6 +338,33 @@ var get_quote = function (quote) {
338
338
  log.error(tag, "Pool for buyAsset (".concat(quote.buyAsset, ") not found."));
339
339
  throw new Error("Pool for buyAsset (".concat(quote.buyAsset, ") not found."));
340
340
  }
341
+ // CRITICAL: FAIL FAST - Check if trading is halted on either pool
342
+ if (poolIn && poolIn.trading_halted === true) {
343
+ log.error(tag, "Trading is HALTED for ".concat(quote.sellAsset, " pool"));
344
+ throw new Error("Trading is temporarily halted for ".concat(quote.sellAsset, ". ") +
345
+ "This pool is currently unavailable due to protocol maintenance or safety measures. " +
346
+ "Please check https://thorchain.net for pool status and try again later.");
347
+ }
348
+ if (poolOut && poolOut.trading_halted === true) {
349
+ log.error(tag, "Trading is HALTED for ".concat(quote.buyAsset, " pool"));
350
+ throw new Error("Trading is temporarily halted for ".concat(quote.buyAsset, ". ") +
351
+ "This pool is currently unavailable due to protocol maintenance or safety measures. " +
352
+ "Please check https://thorchain.net for pool status and try again later.");
353
+ }
354
+ // CRITICAL: FAIL FAST - Check pool status (should be "Available")
355
+ if (poolIn && poolIn.status !== 'Available') {
356
+ log.error(tag, "Pool for ".concat(quote.sellAsset, " is not available (status: ").concat(poolIn.status, ")"));
357
+ throw new Error("Pool for ".concat(quote.sellAsset, " is currently ").concat(poolIn.status, ". ") +
358
+ "Only pools with status \"Available\" can be used for trading. " +
359
+ "Please check https://thorchain.net for pool status and try a different asset pair.");
360
+ }
361
+ if (poolOut && poolOut.status !== 'Available') {
362
+ log.error(tag, "Pool for ".concat(quote.buyAsset, " is not available (status: ").concat(poolOut.status, ")"));
363
+ throw new Error("Pool for ".concat(quote.buyAsset, " is currently ").concat(poolOut.status, ". ") +
364
+ "Only pools with status \"Available\" can be used for trading. " +
365
+ "Please check https://thorchain.net for pool status and try a different asset pair.");
366
+ }
367
+ log.info(tag, "✅ Pool validation passed - trading is active");
341
368
  log.info(tag, "poolIn: ", poolIn, "poolOut: ", poolOut);
342
369
  sellAssetChain = quote.sellAsset.split(".")[0];
343
370
  sellAssetParts = quote.sellAsset.split(".");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pioneer-platform/thorchain-client",
3
- "version": "0.23.0",
3
+ "version": "0.24.4",
4
4
  "main": "./lib/index.js",
5
5
  "types": "./lib/index.d.ts",
6
6
  "dependencies": {
@@ -9,8 +9,8 @@
9
9
  "rango-sdk": "^0.1.45",
10
10
  "uuidv4": "^6.2.13",
11
11
  "@pioneer-platform/loggerdog": "8.11.0",
12
- "@pioneer-platform/pioneer-coins": "9.20.0",
13
- "@pioneer-platform/pioneer-caip": "9.26.0"
12
+ "@pioneer-platform/pioneer-caip": "9.27.4",
13
+ "@pioneer-platform/pioneer-coins": "9.20.4"
14
14
  },
15
15
  "devDependencies": {
16
16
  "@types/jest": "^25.2.3",