@pushchain/core 5.1.12 → 5.1.13

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushchain/core",
3
- "version": "5.1.12",
3
+ "version": "5.1.13",
4
4
  "homepage": "https://push.org",
5
5
  "keywords": [
6
6
  "pushchain",
@@ -50,7 +50,7 @@ function waitForEvmConfirmationsWithCountdown(ctx, evmClient, txHash, confirmati
50
50
  if (Date.now() - start > timeoutMs) {
51
51
  throw new Error(`Timeout: transaction ${txHash} not confirmed with ${confirmations} confirmations within ${timeoutMs} ms`);
52
52
  }
53
- yield new Promise((r) => setTimeout(r, 12000));
53
+ yield new Promise((r) => setTimeout(r, 3000));
54
54
  }
55
55
  });
56
56
  }
@@ -127,7 +127,7 @@ function waitForLockerFeeConfirmation(ctx, txHashBytes) {
127
127
  if (Date.now() - start > timeout) {
128
128
  throw new Error(`Timeout: fee-lock tx ${txHash} not confirmed with ${fastConfirmations} confirmations within ${timeout} ms`);
129
129
  }
130
- yield new Promise((r) => setTimeout(r, 12000));
130
+ yield new Promise((r) => setTimeout(r, 3000));
131
131
  }
132
132
  }
133
133
  case enums_1.VM.SVM: {
@@ -8,9 +8,9 @@ import { CHAIN } from '../../constants/enums';
8
8
  import type { CascadeHopInfo, WaitForOutboundOptions, OutboundTxDetails, TransactionRouteType } from '../orchestrator.types';
9
9
  import type { OrchestratorContext } from './context';
10
10
  /** Initial wait before the first poll (ms). */
11
- export declare const OUTBOUND_INITIAL_WAIT_MS = 20000;
11
+ export declare const OUTBOUND_INITIAL_WAIT_MS = 15000;
12
12
  /** Interval between consecutive polls (ms). */
13
- export declare const OUTBOUND_POLL_INTERVAL_MS = 5000;
13
+ export declare const OUTBOUND_POLL_INTERVAL_MS = 3000;
14
14
  /** Maximum total timeout for the outbound polling loop (ms). */
15
15
  export declare const OUTBOUND_MAX_TIMEOUT_MS = 180000;
16
16
  /** Maximum total timeout for the R3 inbound round-trip polling loop (ms). */
@@ -49,7 +49,7 @@ export declare class OutboundFailedError extends Error {
49
49
  * @internal Used by .wait() for outbound routes - not part of public API.
50
50
  * Uses polling with configurable initial wait, interval, and timeout.
51
51
  *
52
- * Default strategy: 30s initial wait, then poll every 5s, 120s total timeout.
52
+ * Default strategy: 15s initial wait, then poll every 3s, 180s total timeout.
53
53
  *
54
54
  * @param ctx - Orchestrator context
55
55
  * @param pushChainTxHash - The Push Chain transaction hash
@@ -23,9 +23,9 @@ const outbound_tracker_1 = require("./outbound-tracker");
23
23
  // Outbound sync configuration constants
24
24
  // ============================================================================
25
25
  /** Initial wait before the first poll (ms). */
26
- exports.OUTBOUND_INITIAL_WAIT_MS = 20000; // 20s
26
+ exports.OUTBOUND_INITIAL_WAIT_MS = 15000; // 15s
27
27
  /** Interval between consecutive polls (ms). */
28
- exports.OUTBOUND_POLL_INTERVAL_MS = 5000; // 5s
28
+ exports.OUTBOUND_POLL_INTERVAL_MS = 3000; // 3s
29
29
  /** Maximum total timeout for the outbound polling loop (ms). */
30
30
  exports.OUTBOUND_MAX_TIMEOUT_MS = 180000; // 180s (3 min)
31
31
  /** Maximum total timeout for the R3 inbound round-trip polling loop (ms). */
@@ -132,7 +132,7 @@ function verifyExternalEvmReceipt(ctx, destinationChain, externalTxHash) {
132
132
  * @internal Used by .wait() for outbound routes - not part of public API.
133
133
  * Uses polling with configurable initial wait, interval, and timeout.
134
134
  *
135
- * Default strategy: 30s initial wait, then poll every 5s, 120s total timeout.
135
+ * Default strategy: 15s initial wait, then poll every 3s, 180s total timeout.
136
136
  *
137
137
  * @param ctx - Orchestrator context
138
138
  * @param pushChainTxHash - The Push Chain transaction hash
@@ -82,9 +82,6 @@ class PushChain {
82
82
  return orchestrator.execute.bind(orchestrator)(...args);
83
83
  },
84
84
  prepareTransaction: (params) => {
85
- if (this.isReadMode) {
86
- throw new Error('Read only mode cannot call prepareTransaction function');
87
- }
88
85
  return orchestrator.prepareTransaction.bind(orchestrator)(params);
89
86
  },
90
87
  executeTransactions: (txs) => tslib_1.__awaiter(this, void 0, void 0, function* () {