@provex/react 1.9.2-rc.20260725154152.dfd6bd9 → 1.9.2-rc.20260726002516.5a08992
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/dist/{chunk-LBZZ7TJT.js → chunk-NYG43ZIX.js} +13 -8
- package/dist/chunk-NYG43ZIX.js.map +1 -0
- package/dist/index.cjs +11 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +8 -3
- package/dist/index.d.ts +8 -3
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/dist/wagmi.cjs +10 -5
- package/dist/wagmi.cjs.map +1 -1
- package/dist/wagmi.js +1 -1
- package/package.json +5 -5
- package/dist/chunk-LBZZ7TJT.js.map +0 -1
|
@@ -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
|
|
501
|
-
*
|
|
502
|
-
*
|
|
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",
|
|
507
|
-
if (!addr) throw new ProveXError("VALIDATION_ERROR", `No
|
|
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-
|
|
2543
|
-
//# sourceMappingURL=chunk-
|
|
2547
|
+
//# sourceMappingURL=chunk-NYG43ZIX.js.map
|
|
2548
|
+
//# sourceMappingURL=chunk-NYG43ZIX.js.map
|