@pushchain/core 6.0.15 → 6.0.17

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/CHANGELOG.md CHANGED
@@ -1,4 +1,140 @@
1
- @pushchain/core@6.0.2 (unreleased)
1
+ @pushchain/core@6.0.17 (2026-06-09)
2
+
3
+ - fix: make SVM payload encoding browser-safe
4
+ - fix: prevent underfunded outbound gas swaps
5
+
6
+ ---
7
+
8
+ @pushchain/core@6.0.17 (unreleased)
9
+
10
+ - Fixed outbound (UOA_TO_CEA) transactions reverting on-chain with Uniswap `STF`
11
+ when the UEA held a modest amount of native PC - e.g. pETH -> Ethereum ETH.
12
+ Destination gas is funded by swapping the UEA's PC into the gas token, and
13
+ `capSwapEstimate` was sizing `nativeValueForGas` down to `balance - reserve`
14
+ even when that fell below the swap's actual requirement, so the swap reverted
15
+ with `STF` while the native pre-flight stayed silent (its check was
16
+ self-satisfying). The estimator now keeps the full requirement when the
17
+ affordable amount can't cover the swap floor, so the pre-flight reports the
18
+ real PC shortfall instead of emitting a cryptic on-chain `STF`.
19
+
20
+ - Fixed SVM payload encoding in browser environments whose `Buffer` polyfill
21
+ does not implement Node's `writeBigUInt64LE` / `writeBigInt64LE` methods.
22
+ The encoder now writes u64/i64 fields with `DataView`, preserving the same
23
+ little-endian wire format without crashing during Solana transaction builds.
24
+
25
+ ---
26
+
27
+ @pushchain/core@6.0.16 (2026-06-05)
28
+
29
+ - Fixed SVM domain-separator chainId encoding to match the pre-EIP-712 UEA_SVM
30
+ behavior on Donut (raw string encoding), restoring correct SVM signature
31
+ validation.
32
+
33
+ - Fixed Route 1 deposit-sizing progress-hook ordering: the `103-03-04` event is
34
+ now emitted after UEA resolution so it matches the funds-payload path sequence.
35
+
36
+ - Additional cascade execution test coverage and validation fixes.
37
+
38
+ ---
39
+
40
+ @pushchain/core@6.0.15 (2026-06-02)
41
+
42
+ - Internal fixes to response-building logic.
43
+
44
+ ---
45
+
46
+ @pushchain/core@6.0.14 (2026-06-02)
47
+
48
+ - `trackTransaction` now resolves the originating source chain correctly even when
49
+ the tracked hash points to Push Chain, with explicit chain-support checks.
50
+
51
+ - Added `finalTxHash` to `UniversalTxResponse` — a single hash that resolves across
52
+ all routes (R1 → Push tx, R2 → external tx, R3 → Push inbound tx).
53
+
54
+ ---
55
+
56
+ @pushchain/core@6.0.13 (2026-05-26)
57
+
58
+ - Maintenance release (version bump only; no code changes).
59
+
60
+ ---
61
+
62
+ @pushchain/core@6.0.12 (2026-05-26)
63
+
64
+ - Maintenance release (version bump only; no code changes).
65
+
66
+ ---
67
+
68
+ @pushchain/core@6.0.11 (2026-05-25)
69
+
70
+ - Added transaction-indexing polling for SVM multihop: the SDK now retries with
71
+ backoff (1s polling, 30s timeout) before fetching transaction details, fixing
72
+ failures when querying immediately after confirmation.
73
+
74
+ ---
75
+
76
+ @pushchain/core@6.0.10 (2026-05-23)
77
+
78
+ - Added Borsh-encoded SVM-origin inbound relay payload building for Route 3
79
+ (CEA → Push).
80
+
81
+ - Improved SVM child-inbound detection using log index for more reliable
82
+ transaction identification.
83
+
84
+ ---
85
+
86
+ @pushchain/core@6.0.9 (2026-05-19)
87
+
88
+ - Added a decoder for the `GasPriceBelowBase` (0x05aab006) error with an
89
+ actionable hint about gasPrice overrides.
90
+
91
+ ---
92
+
93
+ @pushchain/core@6.0.8 (2026-05-19)
94
+
95
+ - Maintenance release (version bump only; no code changes).
96
+
97
+ ---
98
+
99
+ @pushchain/core@6.0.7 (2026-05-19)
100
+
101
+ - Fixed corner-case bugs in cascade execution and funds-payload handling for
102
+ cross-chain transactions.
103
+
104
+ ---
105
+
106
+ @pushchain/core@6.0.6 (2026-05-18)
107
+
108
+ - Clarified progress-event message text (no functional changes).
109
+
110
+ ---
111
+
112
+ @pushchain/core@6.0.5 (2026-05-18)
113
+
114
+ - Added multihop progress markers: `SEND_TX_199_03` / `SEND_TX_199_99` (Route 1
115
+ intermediate success) and `SEND_TX_399_99` (Route 3 round-trip completion), with
116
+ improved cascade event sequencing.
117
+
118
+ ---
119
+
120
+ @pushchain/core@6.0.4 (2026-05-18)
121
+
122
+ - Fixed payload-builder detection of executable data vs. value-only transfers,
123
+ including multicall empty-array handling.
124
+
125
+ - Fixed progress-hook wiring for funds-only execution paths.
126
+
127
+ ---
128
+
129
+ @pushchain/core@6.0.3 (2026-05-16)
130
+
131
+ - Added per-call `progressHook` support: `sendTransaction(params, { progressHook })`
132
+ is additive with the init-time hook, auto-registers on the returned response for
133
+ wait-phase progress, and dedupes by reference to avoid double-firing.
134
+
135
+ ---
136
+
137
+ @pushchain/core@6.0.2 (2026-05-16)
2
138
 
3
139
  - Token constants now expose the missing `USDT.bsc` chain-suffix accessor,
4
140
  while keeping `USDT.bnb` as a deprecated alias for backward compatibility.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushchain/core",
3
- "version": "6.0.15",
3
+ "version": "6.0.17",
4
4
  "homepage": "https://push.org",
5
5
  "keywords": [
6
6
  "pushchain",
@@ -5,7 +5,7 @@
5
5
  * getSegmentType, composeCascade, createCascadedBuilder, createChainedBuilder.
6
6
  */
7
7
  import { TransactionRoute } from '../route-detector';
8
- import type { HopDescriptor, CascadeSegment, CascadeSegmentType, PreparedUniversalTx, CascadedTxResponse, CascadeHopInfo, UniversalTxResponse, UniversalExecuteParams, MultiCall, WaitForOutboundOptions, OutboundTxDetails } from '../orchestrator.types';
8
+ import type { HopDescriptor, CascadeSegment, CascadeSegmentType, PreparedUniversalTx, CascadedTxResponse, CascadeHopInfo, UniversalTxResponse, UniversalExecuteParams, MultiCall, CascadeExecutionOptions, WaitForOutboundOptions, OutboundTxDetails } from '../orchestrator.types';
9
9
  import type { OrchestratorContext } from './context';
10
10
  import { type InboundPushTxDetails, type WaitForInboundOptions } from './inbound-tracker';
11
11
  export interface CascadeCallbacks {
@@ -45,6 +45,6 @@ export declare function composeCascadeDetailed(ctx: OrchestratorContext, segment
45
45
  enforceGasCheck?: boolean;
46
46
  }): Promise<ComposeCascadeResult>;
47
47
  export declare function composeCascade(ctx: OrchestratorContext, segments: CascadeSegment[], ueaAddress: `0x${string}`, ueaBalance?: bigint, ueaNonce?: bigint): Promise<MultiCall[]>;
48
- export declare function createCascadedBuilder(ctx: OrchestratorContext, preparedTxs: PreparedUniversalTx[], callbacks: CascadeCallbacks, defaultEventHook?: (event: import('../../progress-hook/progress-hook.types').ProgressEvent) => void): {
48
+ export declare function createCascadedBuilder(ctx: OrchestratorContext, preparedTxs: PreparedUniversalTx[], callbacks: CascadeCallbacks, defaultEventHook?: (event: import('../../progress-hook/progress-hook.types').ProgressEvent) => void, options?: Pick<CascadeExecutionOptions, 'enforceGasCheck'>): {
49
49
  send: () => Promise<CascadedTxResponse>;
50
50
  };