@provex/react 1.9.2-rc.20260725154152.dfd6bd9 → 1.9.2-rc.20260726025432.e4301c4

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.
@@ -6,7 +6,7 @@ import { SUPPORTED_CURRENCIES, tickerToContractId } from '@provex/utils/currenci
6
6
  import { parseUnits, formatUnits } from '@provex/utils/units';
7
7
  import { providerKeyToContractId, providerConfigs, computePayeeDetailsHash, resolveRailProviderKey, tiers, verifiablePaymentMethods, getPlatformRisk, verifierGetsKey, resolveApiProviderKey, getPaymentMethodName } from '@provex/utils/payment';
8
8
  import { convertCurrencyToTokenOutput } from '@provex/utils/conversionRates';
9
- import { getLatestContract, getEscrowVersion, getConfiguredOrchestratorForEscrow, reclaimSigners, getPaymentAttestationVerifier } from '@provex/utils/contracts';
9
+ import { getLatestContract, getLatestConfiguredVersion, getEscrowVersion, getConfiguredOrchestratorForEscrow, reclaimSigners, getPaymentAttestationVerifier } from '@provex/utils/contracts';
10
10
  import { encodeV3PaymentProof } from '@provex/utils';
11
11
  import { toEscrowCurrencies } from '@provex/utils/deposit';
12
12
  import { normalizeFeePrecision } from '@provex/utils/fees';
@@ -497,14 +497,19 @@ var ProveXClient = class {
497
497
  * The escrow this client acts on.
498
498
  *
499
499
  * Callers that touch a specific deposit MUST construct the client with
500
- * `escrowAddress: deposit.escrow` — the v3 fallback below is only correct
501
- * for a client that has no deposit in hand, and silently sends every write
502
- * to the previous generation otherwise.
500
+ * `escrowAddress: deposit.escrow` — the fallback below is only correct for a
501
+ * client that has no deposit in hand, and silently sends every write to the
502
+ * wrong escrow otherwise.
503
+ *
504
+ * That fallback follows the chain's current generation rather than a pinned
505
+ * v3. The only writes that reach it are ones with no existing deposit to
506
+ * name — `createDeposit` above all — and those belong on the generation the
507
+ * protocol is actually running, not the one it has moved off.
503
508
  */
504
509
  getEscrowAddress() {
505
510
  if (this.escrowOverride) return this.escrowOverride;
506
- const addr = getLatestContract(this.chainId, "escrow", "v3");
507
- if (!addr) throw new ProveXError("VALIDATION_ERROR", `No V3 escrow found for chain ${this.chainId}`);
511
+ const addr = getLatestContract(this.chainId, "escrow", getLatestConfiguredVersion(this.chainId));
512
+ if (!addr) throw new ProveXError("VALIDATION_ERROR", `No escrow configured for chain ${this.chainId}`);
508
513
  return addr;
509
514
  }
510
515
  /**
@@ -2539,5 +2544,5 @@ function ProvexBuyRoot({
2539
2544
  }
2540
2545
 
2541
2546
  export { BrowsePhase, CommittedPhase, CompletePhase, ProveXClient, ProveXError, ProvexBuy, ProvexBuyProvider, ProvexProvider, ProvingPhase, checkMutation, checkTransactionIndexed, createApiClient, createProveXClient, getRate, getTierDisplayInfo, getTransactionGasInputs, getUserFriendlyErrorMessage, intentStatuses, isUserRejectionError, useContractRead, useDeposits, useNullifierRegistry, useOptionalProvex, useOptionalProvexPublicClient, useOptionalProvexWallet, useOrchestratorAddress, usePayeeDetails, useProtocolFeePercentage, useProtocolFees, useProveXClient, useProvex, useProvexBuy, useProvexBuyContext, useProvexPublicClient, useProvexWallet, useReputation, useReputationLimits, useSignalIntent };
2542
- //# sourceMappingURL=chunk-LBZZ7TJT.js.map
2543
- //# sourceMappingURL=chunk-LBZZ7TJT.js.map
2547
+ //# sourceMappingURL=chunk-NYG43ZIX.js.map
2548
+ //# sourceMappingURL=chunk-NYG43ZIX.js.map