@provex/react 1.8.0 → 1.9.0-rc.20260610023828.42b24ec
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/{ProvexProvider-CUEYCfdl.d.cts → ProvexProvider-BCECe91L.d.cts} +17 -7
- package/dist/{ProvexProvider-CUEYCfdl.d.ts → ProvexProvider-BCECe91L.d.ts} +17 -7
- package/dist/{chunk-YLJM5TTI.js → chunk-KJAMNOBD.js} +17 -2
- package/dist/chunk-KJAMNOBD.js.map +1 -0
- package/dist/index.cjs +15 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +5 -3
- package/dist/index.d.ts +5 -3
- package/dist/index.js +2 -2
- package/dist/wagmi.cjs +15 -0
- package/dist/wagmi.cjs.map +1 -1
- package/dist/wagmi.d.cts +2 -1
- package/dist/wagmi.d.ts +2 -1
- package/dist/wagmi.js +1 -1
- package/package.json +3 -3
- package/dist/chunk-YLJM5TTI.js.map +0 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as CreateDepositRawParams, I as IndexerAdapter, P as ProveXClientConfig, a as PaginationOptions, b as PaginatedResult, c as IndexedDeposit, d as IndexedIntent, R as ReputationData, W as WritableMethod, e as CreateDepositParams$1, T as TransactionResult, f as PreparedTransaction, S as SignalIntentParams, g as SignalIntentResult, h as PayeeDetails, M as MakerRegistrationParams, A as AttestationParams, i as AttestationResponse, j as WalletAdapter, U as UseProvexBuyOptions, k as UseProvexBuyReturn, l as PhaseRenderProps, B as BuyProps } from './ProvexProvider-
|
|
2
|
-
export { y as ApiClient, n as BuyPhase,
|
|
1
|
+
import { C as CreateDepositRawParams, I as IndexerAdapter, P as ProveXClientConfig, a as PaginationOptions, b as PaginatedResult, c as IndexedDeposit, d as IndexedIntent, R as ReputationData, W as WritableMethod, F as FulfillIntentParams, e as CreateDepositParams$1, T as TransactionResult, f as PreparedTransaction, S as SignalIntentParams, g as SignalIntentResult, h as PayeeDetails, M as MakerRegistrationParams, A as AttestationParams, i as AttestationResponse, j as WalletAdapter, U as UseProvexBuyOptions, k as UseProvexBuyReturn, l as PhaseRenderProps, B as BuyProps } from './ProvexProvider-BCECe91L.cjs';
|
|
2
|
+
export { y as ApiClient, n as BuyPhase, Y as DepositInfo, D as DepositPaymentMethod, a0 as IndexedVerifier, Z as IntentStatus, _ as PayeeInfo, p as PhaseComponentProps, t as ProveXError, v as ProveXErrorCode, m as ProvexConfig, r as ProvexContextValue, q as ProvexProvider, s as ProvexProviderProps, o as ProvexTheme, X as ReputationLimits, V as ReputationLimitsParams, w as SignalIntentRawParams, $ as SignalIntentStatus, x as createApiClient, G as getRate, J as intentStatuses, E as useDeposits, N as useOptionalProvexPublicClient, Q as useOptionalProvexWallet, H as usePayeeDetails, u as useProvex, L as useProvexPublicClient, O as useProvexWallet, z as useReputationLimits, K as useSignalIntent } from './ProvexProvider-BCECe91L.cjs';
|
|
3
3
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import React__default from 'react';
|
|
@@ -14,6 +14,7 @@ import { WriteHookParams } from '@valve-tech/wallet-adapter';
|
|
|
14
14
|
import * as _tanstack_query_core from '@tanstack/query-core';
|
|
15
15
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
16
16
|
import '@provex/utils/currencies';
|
|
17
|
+
import '@provex/utils';
|
|
17
18
|
|
|
18
19
|
/**
|
|
19
20
|
* @fileoverview Hook for reading protocol fee configuration.
|
|
@@ -562,6 +563,7 @@ declare class ProveXClient {
|
|
|
562
563
|
minConversionRate: bigint;
|
|
563
564
|
}>>;
|
|
564
565
|
}>;
|
|
566
|
+
readonly fulfillIntent: WritableMethod<FulfillIntentParams>;
|
|
565
567
|
/**
|
|
566
568
|
* Create a deposit with human-readable params.
|
|
567
569
|
*
|
|
@@ -882,4 +884,4 @@ declare function CompletePhase({ className, style, render, }: PhaseRenderProps<C
|
|
|
882
884
|
*/
|
|
883
885
|
declare function ProvexBuy({ wallet, onIntentSignaled, onComplete, paymentMethods, className, style, theme, }: BuyProps): react_jsx_runtime.JSX.Element;
|
|
884
886
|
|
|
885
|
-
export { AttestationParams, AttestationResponse, BrowsePhase, type BrowsePhaseState, BuyProps, type CancelIntentStatus, CommittedPhase, type CommittedPhaseState, CompletePhase, type CompletePhaseState, CreateDepositParams$1 as CreateDepositParams, CreateDepositRawParams, IndexedDeposit, IndexedIntent, IndexerAdapter, MakerRegistrationParams, type MutationSyncOptions, PaginatedResult, PaginationOptions, PayeeDetails, PhaseRenderProps, PreparedTransaction, type ProtocolFeesResult, ProveXClient, ProveXClientConfig, ProvexBuy, ProvexBuyProvider, type ProvexBuyProviderProps, ProvingPhase, type ProvingPhaseState, type ReleaseFundsStatus, ReputationData, SignalIntentParams, SignalIntentResult, type TransactionPhase, TransactionResult, type TransactionSyncOptions, type UseProtocolFeesParams, UseProvexBuyOptions, UseProvexBuyReturn, type UseTransactionWithIndexerOptions, type CreateDepositParams as V3EscrowCreateDepositParams, type V3EscrowStatus, WalletAdapter, WritableMethod, createProveXClient, getTierDisplayInfo, useAllowance, useCancelIntent, useNullifierRegistry, useOrchestratorAddress, useProtocolFeePercentage, useProtocolFees, useProveXClient, useProvexBuy, useProvexBuyContext, useReleaseFundsToPayer, useReputation, useTransactionWithIndexer, useV3Escrow };
|
|
887
|
+
export { AttestationParams, AttestationResponse, BrowsePhase, type BrowsePhaseState, BuyProps, type CancelIntentStatus, CommittedPhase, type CommittedPhaseState, CompletePhase, type CompletePhaseState, CreateDepositParams$1 as CreateDepositParams, CreateDepositRawParams, FulfillIntentParams, IndexedDeposit, IndexedIntent, IndexerAdapter, MakerRegistrationParams, type MutationSyncOptions, PaginatedResult, PaginationOptions, PayeeDetails, PhaseRenderProps, PreparedTransaction, type ProtocolFeesResult, ProveXClient, ProveXClientConfig, ProvexBuy, ProvexBuyProvider, type ProvexBuyProviderProps, ProvingPhase, type ProvingPhaseState, type ReleaseFundsStatus, ReputationData, SignalIntentParams, SignalIntentResult, type TransactionPhase, TransactionResult, type TransactionSyncOptions, type UseProtocolFeesParams, UseProvexBuyOptions, UseProvexBuyReturn, type UseTransactionWithIndexerOptions, type CreateDepositParams as V3EscrowCreateDepositParams, type V3EscrowStatus, WalletAdapter, WritableMethod, createProveXClient, getTierDisplayInfo, useAllowance, useCancelIntent, useNullifierRegistry, useOrchestratorAddress, useProtocolFeePercentage, useProtocolFees, useProveXClient, useProvexBuy, useProvexBuyContext, useReleaseFundsToPayer, useReputation, useTransactionWithIndexer, useV3Escrow };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as CreateDepositRawParams, I as IndexerAdapter, P as ProveXClientConfig, a as PaginationOptions, b as PaginatedResult, c as IndexedDeposit, d as IndexedIntent, R as ReputationData, W as WritableMethod, e as CreateDepositParams$1, T as TransactionResult, f as PreparedTransaction, S as SignalIntentParams, g as SignalIntentResult, h as PayeeDetails, M as MakerRegistrationParams, A as AttestationParams, i as AttestationResponse, j as WalletAdapter, U as UseProvexBuyOptions, k as UseProvexBuyReturn, l as PhaseRenderProps, B as BuyProps } from './ProvexProvider-
|
|
2
|
-
export { y as ApiClient, n as BuyPhase,
|
|
1
|
+
import { C as CreateDepositRawParams, I as IndexerAdapter, P as ProveXClientConfig, a as PaginationOptions, b as PaginatedResult, c as IndexedDeposit, d as IndexedIntent, R as ReputationData, W as WritableMethod, F as FulfillIntentParams, e as CreateDepositParams$1, T as TransactionResult, f as PreparedTransaction, S as SignalIntentParams, g as SignalIntentResult, h as PayeeDetails, M as MakerRegistrationParams, A as AttestationParams, i as AttestationResponse, j as WalletAdapter, U as UseProvexBuyOptions, k as UseProvexBuyReturn, l as PhaseRenderProps, B as BuyProps } from './ProvexProvider-BCECe91L.js';
|
|
2
|
+
export { y as ApiClient, n as BuyPhase, Y as DepositInfo, D as DepositPaymentMethod, a0 as IndexedVerifier, Z as IntentStatus, _ as PayeeInfo, p as PhaseComponentProps, t as ProveXError, v as ProveXErrorCode, m as ProvexConfig, r as ProvexContextValue, q as ProvexProvider, s as ProvexProviderProps, o as ProvexTheme, X as ReputationLimits, V as ReputationLimitsParams, w as SignalIntentRawParams, $ as SignalIntentStatus, x as createApiClient, G as getRate, J as intentStatuses, E as useDeposits, N as useOptionalProvexPublicClient, Q as useOptionalProvexWallet, H as usePayeeDetails, u as useProvex, L as useProvexPublicClient, O as useProvexWallet, z as useReputationLimits, K as useSignalIntent } from './ProvexProvider-BCECe91L.js';
|
|
3
3
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import React__default from 'react';
|
|
@@ -14,6 +14,7 @@ import { WriteHookParams } from '@valve-tech/wallet-adapter';
|
|
|
14
14
|
import * as _tanstack_query_core from '@tanstack/query-core';
|
|
15
15
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
16
16
|
import '@provex/utils/currencies';
|
|
17
|
+
import '@provex/utils';
|
|
17
18
|
|
|
18
19
|
/**
|
|
19
20
|
* @fileoverview Hook for reading protocol fee configuration.
|
|
@@ -562,6 +563,7 @@ declare class ProveXClient {
|
|
|
562
563
|
minConversionRate: bigint;
|
|
563
564
|
}>>;
|
|
564
565
|
}>;
|
|
566
|
+
readonly fulfillIntent: WritableMethod<FulfillIntentParams>;
|
|
565
567
|
/**
|
|
566
568
|
* Create a deposit with human-readable params.
|
|
567
569
|
*
|
|
@@ -882,4 +884,4 @@ declare function CompletePhase({ className, style, render, }: PhaseRenderProps<C
|
|
|
882
884
|
*/
|
|
883
885
|
declare function ProvexBuy({ wallet, onIntentSignaled, onComplete, paymentMethods, className, style, theme, }: BuyProps): react_jsx_runtime.JSX.Element;
|
|
884
886
|
|
|
885
|
-
export { AttestationParams, AttestationResponse, BrowsePhase, type BrowsePhaseState, BuyProps, type CancelIntentStatus, CommittedPhase, type CommittedPhaseState, CompletePhase, type CompletePhaseState, CreateDepositParams$1 as CreateDepositParams, CreateDepositRawParams, IndexedDeposit, IndexedIntent, IndexerAdapter, MakerRegistrationParams, type MutationSyncOptions, PaginatedResult, PaginationOptions, PayeeDetails, PhaseRenderProps, PreparedTransaction, type ProtocolFeesResult, ProveXClient, ProveXClientConfig, ProvexBuy, ProvexBuyProvider, type ProvexBuyProviderProps, ProvingPhase, type ProvingPhaseState, type ReleaseFundsStatus, ReputationData, SignalIntentParams, SignalIntentResult, type TransactionPhase, TransactionResult, type TransactionSyncOptions, type UseProtocolFeesParams, UseProvexBuyOptions, UseProvexBuyReturn, type UseTransactionWithIndexerOptions, type CreateDepositParams as V3EscrowCreateDepositParams, type V3EscrowStatus, WalletAdapter, WritableMethod, createProveXClient, getTierDisplayInfo, useAllowance, useCancelIntent, useNullifierRegistry, useOrchestratorAddress, useProtocolFeePercentage, useProtocolFees, useProveXClient, useProvexBuy, useProvexBuyContext, useReleaseFundsToPayer, useReputation, useTransactionWithIndexer, useV3Escrow };
|
|
887
|
+
export { AttestationParams, AttestationResponse, BrowsePhase, type BrowsePhaseState, BuyProps, type CancelIntentStatus, CommittedPhase, type CommittedPhaseState, CompletePhase, type CompletePhaseState, CreateDepositParams$1 as CreateDepositParams, CreateDepositRawParams, FulfillIntentParams, IndexedDeposit, IndexedIntent, IndexerAdapter, MakerRegistrationParams, type MutationSyncOptions, PaginatedResult, PaginationOptions, PayeeDetails, PhaseRenderProps, PreparedTransaction, type ProtocolFeesResult, ProveXClient, ProveXClientConfig, ProvexBuy, ProvexBuyProvider, type ProvexBuyProviderProps, ProvingPhase, type ProvingPhaseState, type ReleaseFundsStatus, ReputationData, SignalIntentParams, SignalIntentResult, type TransactionPhase, TransactionResult, type TransactionSyncOptions, type UseProtocolFeesParams, UseProvexBuyOptions, UseProvexBuyReturn, type UseTransactionWithIndexerOptions, type CreateDepositParams as V3EscrowCreateDepositParams, type V3EscrowStatus, WalletAdapter, WritableMethod, createProveXClient, getTierDisplayInfo, useAllowance, useCancelIntent, useNullifierRegistry, useOrchestratorAddress, useProtocolFeePercentage, useProtocolFees, useProveXClient, useProvexBuy, useProvexBuyContext, useReleaseFundsToPayer, useReputation, useTransactionWithIndexer, useV3Escrow };
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { useOptionalProvexPublicClient, useOrchestratorAddress, useContractRead, useOptionalProvexWallet, getTransactionGasInputs, useOptionalProvex, createProveXClient, checkTransactionIndexed, ProveXError, isUserRejectionError, getUserFriendlyErrorMessage, checkMutation, useProvex, ProveXClient } from './chunk-
|
|
2
|
-
export { BrowsePhase, CommittedPhase, CompletePhase, ProveXClient, ProveXError, ProvexBuy, ProvexBuyProvider, ProvexProvider, ProvingPhase, createApiClient, createProveXClient, getRate, getTierDisplayInfo, intentStatuses, useDeposits, useOptionalProvexPublicClient, useOptionalProvexWallet, useOrchestratorAddress, usePayeeDetails, useProtocolFeePercentage, useProtocolFees, useProvex, useProvexBuy, useProvexBuyContext, useProvexPublicClient, useProvexWallet, useReputation, useReputationLimits, useSignalIntent } from './chunk-
|
|
1
|
+
import { useOptionalProvexPublicClient, useOrchestratorAddress, useContractRead, useOptionalProvexWallet, getTransactionGasInputs, useOptionalProvex, createProveXClient, checkTransactionIndexed, ProveXError, isUserRejectionError, getUserFriendlyErrorMessage, checkMutation, useProvex, ProveXClient } from './chunk-KJAMNOBD.js';
|
|
2
|
+
export { BrowsePhase, CommittedPhase, CompletePhase, ProveXClient, ProveXError, ProvexBuy, ProvexBuyProvider, ProvexProvider, ProvingPhase, createApiClient, createProveXClient, getRate, getTierDisplayInfo, intentStatuses, useDeposits, useOptionalProvexPublicClient, useOptionalProvexWallet, useOrchestratorAddress, usePayeeDetails, useProtocolFeePercentage, useProtocolFees, useProvex, useProvexBuy, useProvexBuyContext, useProvexPublicClient, useProvexWallet, useReputation, useReputationLimits, useSignalIntent } from './chunk-KJAMNOBD.js';
|
|
3
3
|
import { useCallback, useMemo, useState } from 'react';
|
|
4
4
|
import { OrchestratorAbi, PaymentVerifierRegistryAbi, UnifiedPaymentVerifierAbi, NullifierRegistryAbi, V2EscrowAbi, V3EscrowAbi } from '@provex/abis';
|
|
5
5
|
import { maxUint256, erc20Abi, encodeFunctionData } from 'viem';
|
package/dist/wagmi.cjs
CHANGED
|
@@ -13,6 +13,7 @@ var units = require('@provex/utils/units');
|
|
|
13
13
|
var conversionRates = require('@provex/utils/conversionRates');
|
|
14
14
|
var reputation = require('@provex/utils/reputation');
|
|
15
15
|
var contracts = require('@provex/utils/contracts');
|
|
16
|
+
var utils = require('@provex/utils');
|
|
16
17
|
var fees = require('@provex/utils/fees');
|
|
17
18
|
var abis = require('@provex/abis');
|
|
18
19
|
var chain = require('@provex/utils/chain');
|
|
@@ -460,6 +461,19 @@ var ProveXClient = class {
|
|
|
460
461
|
functionName: "approve",
|
|
461
462
|
argsMapper: (params) => [params.spender, params.amount ?? BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff")]
|
|
462
463
|
});
|
|
464
|
+
this.fulfillIntent = this.buildWritableMethod({
|
|
465
|
+
abi: abis.OrchestratorAbi,
|
|
466
|
+
contractResolver: () => this.getOrchestratorAddress(),
|
|
467
|
+
functionName: "fulfillIntent",
|
|
468
|
+
argsMapper: (params) => [
|
|
469
|
+
{
|
|
470
|
+
paymentProof: utils.encodeV3PaymentProof(params.attestation),
|
|
471
|
+
intentHash: params.intentHash,
|
|
472
|
+
verificationData: params.verificationData,
|
|
473
|
+
postIntentHookData: params.postIntentHookData ?? "0x"
|
|
474
|
+
}
|
|
475
|
+
]
|
|
476
|
+
});
|
|
463
477
|
}
|
|
464
478
|
// ─── Address Resolution ──────────────────────────────────────────────────
|
|
465
479
|
/** Get the V3 escrow address for this client's chain. */
|
|
@@ -571,6 +585,7 @@ var ProveXClient = class {
|
|
|
571
585
|
addCurrencies;
|
|
572
586
|
deactivateCurrency;
|
|
573
587
|
addPaymentMethods;
|
|
588
|
+
fulfillIntent;
|
|
574
589
|
/**
|
|
575
590
|
* Create a deposit with human-readable params.
|
|
576
591
|
*
|