@pushchain/core 6.0.1 → 6.0.2

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,70 @@
1
- @pushchain/core@5.2.0 (unreleased)
1
+ @pushchain/core@6.0.2 (unreleased)
2
+
3
+ - Token constants now expose the missing `USDT.bsc` chain-suffix accessor,
4
+ while keeping `USDT.bnb` as a deprecated alias for backward compatibility.
5
+
6
+ - Updated Donut testnet stable token metadata to match the current source of
7
+ truth: external moveable token addresses are kept separate from Push Chain
8
+ PRC20 addresses, and the WPC/stable pool address audit table now reflects the
9
+ documented PRC20/pool pairs.
10
+
11
+ ---
12
+
13
+ @pushchain/core@6.0.1 (2026-05-15)
14
+
15
+ - Pre-flight UEA balance checks now default to warning-only behavior and
16
+ proceed when short. `sendTransaction` and `prepareTransaction` accept
17
+ `options.enforceGasCheck: true` to restore fail-fast behavior with
18
+ `InsufficientUEABalanceError`; pre-flight progress hooks now report
19
+ `WARNING` vs `ERROR` with shortfall metadata.
20
+
21
+ - Token constants added the `USDC.bsc` BSC suffix accessor while retaining
22
+ `USDC.bnb` as a deprecated compatibility alias.
23
+
24
+ - Consolidated tests, renamed transaction `target` fields to `recipient`, and
25
+ fixed SVM test cases around the release.
26
+
27
+ ---
28
+
29
+ @pushchain/core@6.0.0 (2026-05-14)
30
+
31
+ - Updated audit-driven contract and pool configuration, including BNB CEA
32
+ address changes and refreshed pool addresses.
33
+
34
+ - Fixed cascade, SVM payload, and SVM execution flows, with additional test-case
35
+ coverage for the audited scenarios.
36
+
37
+ - Improved PC amount formatting in transaction output and diagnostics.
38
+
39
+ ---
40
+
41
+ @pushchain/core@5.1.18 (2026-05-12)
42
+
43
+ - Added `executeTransactions` progress-hook coverage and fixed cascade
44
+ scenarios, including fresh-UEA and six-hop flows.
45
+
46
+ - Removed the `allowUnderfundedSwap` parameter and tightened native PC
47
+ formatting.
48
+
49
+ ---
50
+
51
+ @pushchain/core@5.1.17 (2026-05-07)
52
+
53
+ - Fixed the R3 EVM path tag so progress hooks emit the `303` route family
54
+ instead of `203`.
55
+
56
+ ---
57
+
58
+ @pushchain/core@5.1.16 (2026-05-07)
59
+
60
+ - Added pre-flight balance-check progress hooks.
61
+
62
+ - Fixed SVM rent checks, SVM upward ceiling behavior, cascade progress-hook
63
+ handling, and shared PC formatting.
64
+
65
+ ---
66
+
67
+ @pushchain/core@5.1.5 (2026-04-20)
2
68
 
3
69
  - Route 1 (UOA → Push) now applies Case A/B/C USD-bucket sizing to the
4
70
  Push-chain gas cost. Case A pads deposits to the $1 floor; Case B passes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushchain/core",
3
- "version": "6.0.1",
3
+ "version": "6.0.2",
4
4
  "homepage": "https://push.org",
5
5
  "keywords": [
6
6
  "pushchain",
@@ -36,6 +36,8 @@ export declare const SYNTHETIC_PUSH_ERC20: Record<PUSH_NETWORK, {
36
36
  USDC_ARB: `0x${string}`;
37
37
  USDT_SOL: `0x${string}`;
38
38
  USDC_SOL: `0x${string}`;
39
+ USDT_BSC: `0x${string}`;
40
+ /** @deprecated Use USDT_BSC instead. */
39
41
  USDT_BNB: `0x${string}`;
40
42
  USDC_BSC: `0x${string}`;
41
43
  /** @deprecated Use USDC_BSC instead. */
@@ -62,6 +62,7 @@ exports.SYNTHETIC_PUSH_ERC20 = {
62
62
  USDC_ARB: '0x1091cCBA2FF8d2A131AE4B35e34cf3308C48572C',
63
63
  USDT_SOL: '0x4f1A3D22d170a2F4Bddb37845a962322e24f4e34',
64
64
  USDC_SOL: '0x04B8F634ABC7C879763F623e0f0550a4b5c4426F',
65
+ USDT_BSC: '0x731aF1Da5365259d27528557EE4aFBA4baC90ef2',
65
66
  USDT_BNB: '0x731aF1Da5365259d27528557EE4aFBA4baC90ef2',
66
67
  USDC_BSC: '0x120EBf25Dad7D6a09Ad2316f23f9Be95DBb90639',
67
68
  USDC_BNB: '0x120EBf25Dad7D6a09Ad2316f23f9Be95DBb90639',
@@ -83,6 +84,7 @@ exports.SYNTHETIC_PUSH_ERC20 = {
83
84
  USDC_ARB: '0x1091cCBA2FF8d2A131AE4B35e34cf3308C48572C',
84
85
  USDT_SOL: '0x4f1A3D22d170a2F4Bddb37845a962322e24f4e34',
85
86
  USDC_SOL: '0x04B8F634ABC7C879763F623e0f0550a4b5c4426F',
87
+ USDT_BSC: '0x731aF1Da5365259d27528557EE4aFBA4baC90ef2',
86
88
  USDT_BNB: '0x731aF1Da5365259d27528557EE4aFBA4baC90ef2',
87
89
  USDC_BSC: '0x120EBf25Dad7D6a09Ad2316f23f9Be95DBb90639',
88
90
  USDC_BNB: '0x120EBf25Dad7D6a09Ad2316f23f9Be95DBb90639',
@@ -104,6 +106,7 @@ exports.SYNTHETIC_PUSH_ERC20 = {
104
106
  USDC_ARB: '0xTBD',
105
107
  USDT_SOL: '0xTBD',
106
108
  USDC_SOL: '0xTBD',
109
+ USDT_BSC: '0xTBD',
107
110
  USDT_BNB: '0xTBD',
108
111
  USDC_BSC: '0xTBD',
109
112
  USDC_BNB: '0xTBD',
@@ -125,6 +128,7 @@ exports.SYNTHETIC_PUSH_ERC20 = {
125
128
  USDC_ARB: '0xTBD',
126
129
  USDT_SOL: '0xTBD',
127
130
  USDC_SOL: '0xTBD',
131
+ USDT_BSC: '0xTBD',
128
132
  USDT_BNB: '0xTBD',
129
133
  USDC_BSC: '0xTBD',
130
134
  USDC_BNB: '0xTBD',
@@ -73,6 +73,8 @@ export interface ChainSuffixAccessor {
73
73
  readonly eth: PushChainMoveableToken;
74
74
  readonly arb: PushChainMoveableToken;
75
75
  readonly base: PushChainMoveableToken;
76
+ readonly bsc: PushChainMoveableToken;
77
+ /** @deprecated Use `bsc` instead. */
76
78
  readonly bnb: PushChainMoveableToken;
77
79
  readonly sol: PushChainMoveableToken;
78
80
  }
@@ -85,7 +85,7 @@ const TOKEN_META = {
85
85
  USDT: {
86
86
  symbol: 'USDT',
87
87
  decimals: 6,
88
- address: '0x7169D38820dfd117C3FA1f22a697dBA58d90BA06',
88
+ address: '0xC4230aEaFcF6b8B49a7b4e53886420f00ff71876',
89
89
  mechanism: 'approve',
90
90
  },
91
91
  WETH: {
@@ -139,7 +139,7 @@ const TOKEN_META = {
139
139
  USDT: {
140
140
  symbol: 'USDT',
141
141
  decimals: 6,
142
- address: '0x1419d7C74D234fA6B73E06A2ce7822C1d37922f0',
142
+ address: '0xE30928528f52CAEeB75fB07837e22d77D47e9c07',
143
143
  mechanism: 'approve',
144
144
  },
145
145
  USDC: {
@@ -166,7 +166,7 @@ const TOKEN_META = {
166
166
  USDT: {
167
167
  symbol: 'USDT',
168
168
  decimals: 6,
169
- address: '0x9FF5a186f53F6E6964B00320Da1D2024DE11E0cB',
169
+ address: '0x4D7646B9eE3D68F4b0F135B5cbc66B00819F6b61',
170
170
  mechanism: 'approve',
171
171
  },
172
172
  USDC: {
@@ -193,13 +193,13 @@ const TOKEN_META = {
193
193
  USDT: {
194
194
  symbol: 'USDT',
195
195
  decimals: 6,
196
- address: '0xBC14F348BC9667be46b35Edc9B68653d86013DC5',
196
+ address: '0xE935d9c9C24D02E61186c640cc01d713C876d40F',
197
197
  mechanism: 'approve',
198
198
  },
199
199
  USDC: {
200
200
  symbol: 'USDC',
201
201
  decimals: 6,
202
- address: '0x64544969ed7EBf5f083679233325356EbE738930',
202
+ address: '0xA8802F96cAd0d45343d9bc660B6f7d80050A660b',
203
203
  mechanism: 'approve',
204
204
  },
205
205
  },
@@ -265,7 +265,7 @@ function buildPushChainMoveableTokenList() {
265
265
  mk('USDT', 6, s.USDT_ETH, enums_1.CHAIN.ETHEREUM_SEPOLIA),
266
266
  mk('USDT', 6, s.USDT_ARB, enums_1.CHAIN.ARBITRUM_SEPOLIA),
267
267
  mk('USDT', 6, s.USDT_BASE, enums_1.CHAIN.BASE_SEPOLIA),
268
- mk('USDT', 6, s.USDT_BNB, enums_1.CHAIN.BNB_TESTNET),
268
+ mk('USDT', 6, s.USDT_BSC, enums_1.CHAIN.BNB_TESTNET),
269
269
  mk('USDT', 6, s.USDT_SOL, enums_1.CHAIN.SOLANA_DEVNET),
270
270
  mk('USDC', 6, s.USDC_ETH, enums_1.CHAIN.ETHEREUM_SEPOLIA),
271
271
  mk('USDC', 6, s.USDC_ARB, enums_1.CHAIN.ARBITRUM_SEPOLIA),
@@ -365,6 +365,7 @@ function buildPushChainMoveableTokenAccessor() {
365
365
  sourceChain,
366
366
  prc20Address: address,
367
367
  });
368
+ const usdtBsc = mk('USDT', 6, s.USDT_BSC, enums_1.CHAIN.BNB_TESTNET);
368
369
  const usdcBsc = mk('USDC', 6, s.USDC_BSC, enums_1.CHAIN.BNB_TESTNET);
369
370
  return {
370
371
  pEth: mk('pETH', 18, s.pETH, enums_1.CHAIN.ETHEREUM_SEPOLIA),
@@ -379,7 +380,8 @@ function buildPushChainMoveableTokenAccessor() {
379
380
  eth: mk('USDT', 6, s.USDT_ETH, enums_1.CHAIN.ETHEREUM_SEPOLIA),
380
381
  arb: mk('USDT', 6, s.USDT_ARB, enums_1.CHAIN.ARBITRUM_SEPOLIA),
381
382
  base: mk('USDT', 6, s.USDT_BASE, enums_1.CHAIN.BASE_SEPOLIA),
382
- bnb: mk('USDT', 6, s.USDT_BNB, enums_1.CHAIN.BNB_TESTNET),
383
+ bsc: usdtBsc,
384
+ bnb: usdtBsc,
383
385
  sol: mk('USDT', 6, s.USDT_SOL, enums_1.CHAIN.SOLANA_DEVNET),
384
386
  },
385
387
  USDC: {
@@ -1,6 +1,6 @@
1
1
  import { CHAIN } from '../../constants/enums';
2
2
  import type { OrchestratorContext } from './context';
3
- type StableKey = 'USDT_ETH' | 'USDT_ARB' | 'USDT_BASE' | 'USDT_BNB' | 'USDC_BSC' | 'USDT_SOL';
3
+ type StableKey = 'USDT_ETH' | 'USDT_ARB' | 'USDT_BASE' | 'USDT_BSC' | 'USDC_BSC' | 'USDT_SOL';
4
4
  /**
5
5
  * Get $PC/USD price (8 decimals) for the given origin chain's route.
6
6
  * Returns 0 on any failure — caller is expected to fall back to
@@ -37,7 +37,7 @@ const ORIGIN_TO_STABLE = {
37
37
  [enums_1.CHAIN.ETHEREUM_SEPOLIA]: 'USDT_ETH',
38
38
  [enums_1.CHAIN.ARBITRUM_SEPOLIA]: 'USDT_ARB',
39
39
  [enums_1.CHAIN.BASE_SEPOLIA]: 'USDT_BASE',
40
- [enums_1.CHAIN.BNB_TESTNET]: 'USDT_BNB',
40
+ [enums_1.CHAIN.BNB_TESTNET]: 'USDT_BSC',
41
41
  [enums_1.CHAIN.SOLANA_DEVNET]: 'USDT_SOL',
42
42
  };
43
43
  /** Default decimals for stable PRC-20s on Push Chain. */
package/src/lib/utils.js CHANGED
@@ -696,7 +696,7 @@ Utils.tokens = {
696
696
  else if (isBaseFamily)
697
697
  key = 'USDT_BASE';
698
698
  else if (isBnbFamily)
699
- key = 'USDT_BNB';
699
+ key = 'USDT_BSC';
700
700
  else if (isSolFamily)
701
701
  key = 'USDT_SOL';
702
702
  else