@zkp2p/sdk 0.14.10 → 0.15.0-rc.1

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/react.d.mts CHANGED
@@ -1,5 +1,5 @@
1
- import { _ as Zkp2pClient, P as PostDepositDetailsRequest, a4 as SignalIntentMethodParams, b_ as PreparedTransaction, a5 as FulfillIntentMethodParams, dL as SendTransactionFn, dM as SendBatchFn, dJ as DelegationDepositTarget, dK as BatchResult, al as IntentGuardianErrorCode, ah as IntentGuardianPolicy, ai as IntentGuardianQuote } from './vaultUtils-PRhZBjwX.mjs';
2
- export { dH as DelegationRoute, dI as DelegationState, dV as VAULT_ZERO_ADDRESS, dB as ZERO_RATE_MANAGER_ID, dW as asErrorMessage, dX as assertDelegationMethodSupport, dG as classifyDelegationState, dF as getDelegationRoute, dC as isZeroRateManagerId, dD as normalizeRateManagerId, dE as normalizeRegistry } from './vaultUtils-PRhZBjwX.mjs';
1
+ import { a2 as Zkp2pClient, P as PostDepositDetailsRequest, a8 as SignalIntentMethodParams, c7 as PreparedTransaction, a9 as FulfillIntentMethodParams, dS as SendTransactionFn, dT as SendBatchFn, dQ as DelegationDepositTarget, dR as BatchResult, aq as IntentGuardianErrorCode, am as IntentGuardianPolicy, an as IntentGuardianQuote } from './vaultUtils-BJhHYqte.mjs';
2
+ export { dO as DelegationRoute, dP as DelegationState, ej as VAULT_ZERO_ADDRESS, dI as ZERO_RATE_MANAGER_ID, ek as asErrorMessage, el as assertDelegationMethodSupport, dN as classifyDelegationState, dM as getDelegationRoute, dJ as isZeroRateManagerId, dK as normalizeRateManagerId, dL as normalizeRegistry } from './vaultUtils-BJhHYqte.mjs';
3
3
  import { Hash, Address, Hex } from 'viem';
4
4
  import '@zkp2p/indexer-schema';
5
5
  import 'abitype';
@@ -200,6 +200,7 @@ interface UseSetDisputeProtectionEnabledOptions {
200
200
  onSuccess?: (hash: Hash) => void;
201
201
  onError?: (error: Error) => void;
202
202
  }
203
+ /** Targets only the August V1 policy behind O3; V2 has no general protection opt-out. */
203
204
  declare function useSetDisputeProtectionEnabled({ client, onSuccess, onError, }: UseSetDisputeProtectionEnabledOptions): {
204
205
  setDisputeProtectionEnabled: (params: Parameters<Zkp2pClient["setDisputeProtectionEnabled"]>[0]) => Promise<`0x${string}` | null>;
205
206
  isLoading: boolean;
package/dist/react.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { _ as Zkp2pClient, P as PostDepositDetailsRequest, a4 as SignalIntentMethodParams, b_ as PreparedTransaction, a5 as FulfillIntentMethodParams, dL as SendTransactionFn, dM as SendBatchFn, dJ as DelegationDepositTarget, dK as BatchResult, al as IntentGuardianErrorCode, ah as IntentGuardianPolicy, ai as IntentGuardianQuote } from './vaultUtils-PRhZBjwX.js';
2
- export { dH as DelegationRoute, dI as DelegationState, dV as VAULT_ZERO_ADDRESS, dB as ZERO_RATE_MANAGER_ID, dW as asErrorMessage, dX as assertDelegationMethodSupport, dG as classifyDelegationState, dF as getDelegationRoute, dC as isZeroRateManagerId, dD as normalizeRateManagerId, dE as normalizeRegistry } from './vaultUtils-PRhZBjwX.js';
1
+ import { a2 as Zkp2pClient, P as PostDepositDetailsRequest, a8 as SignalIntentMethodParams, c7 as PreparedTransaction, a9 as FulfillIntentMethodParams, dS as SendTransactionFn, dT as SendBatchFn, dQ as DelegationDepositTarget, dR as BatchResult, aq as IntentGuardianErrorCode, am as IntentGuardianPolicy, an as IntentGuardianQuote } from './vaultUtils-BJhHYqte.js';
2
+ export { dO as DelegationRoute, dP as DelegationState, ej as VAULT_ZERO_ADDRESS, dI as ZERO_RATE_MANAGER_ID, ek as asErrorMessage, el as assertDelegationMethodSupport, dN as classifyDelegationState, dM as getDelegationRoute, dJ as isZeroRateManagerId, dK as normalizeRateManagerId, dL as normalizeRegistry } from './vaultUtils-BJhHYqte.js';
3
3
  import { Hash, Address, Hex } from 'viem';
4
4
  import '@zkp2p/indexer-schema';
5
5
  import 'abitype';
@@ -200,6 +200,7 @@ interface UseSetDisputeProtectionEnabledOptions {
200
200
  onSuccess?: (hash: Hash) => void;
201
201
  onError?: (error: Error) => void;
202
202
  }
203
+ /** Targets only the August V1 policy behind O3; V2 has no general protection opt-out. */
203
204
  declare function useSetDisputeProtectionEnabled({ client, onSuccess, onError, }: UseSetDisputeProtectionEnabledOptions): {
204
205
  setDisputeProtectionEnabled: (params: Parameters<Zkp2pClient["setDisputeProtectionEnabled"]>[0]) => Promise<`0x${string}` | null>;
205
206
  isLoading: boolean;
package/dist/react.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import { asErrorMessage, ZERO_ADDRESS, getDelegationRoute, assertDelegationMethodSupport, prepareClearDelegationTx, normalizeRateManagerId, normalizeRegistry, isZeroRateManagerId, assertAtomicDelegationSwitchSupport, prepareSetDelegationTx, classifyIntentGuardianError } from './chunk-YA67SM3A.mjs';
2
2
  export { ZERO_ADDRESS as VAULT_ZERO_ADDRESS, ZERO_RATE_MANAGER_ID, asErrorMessage, assertDelegationMethodSupport, classifyDelegationState, getDelegationRoute, isZeroRateManagerId, normalizeRateManagerId, normalizeRegistry } from './chunk-YA67SM3A.mjs';
3
- import './chunk-DIHRDN2W.mjs';
3
+ import './chunk-FCGUBJAP.mjs';
4
4
  import { useState, useCallback, useMemo } from 'react';
5
5
 
6
6
  function useCreateDeposit({ client, onSuccess, onError }) {