@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/README.md +211 -28
- package/dist/build-metadata.json +3 -3
- package/dist/chunk-FCGUBJAP.mjs +12 -0
- package/dist/chunk-FCGUBJAP.mjs.map +1 -0
- package/dist/{chunk-PLUTAOT5.mjs → chunk-KWAYQB7K.mjs} +74222 -54270
- package/dist/chunk-KWAYQB7K.mjs.map +1 -0
- package/dist/{currency-74LZHM6Q.mjs → currency-THZHOZ5A.mjs} +3 -3
- package/dist/{currency-74LZHM6Q.mjs.map → currency-THZHOZ5A.mjs.map} +1 -1
- package/dist/index.cjs +80787 -59614
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +48 -65
- package/dist/index.d.ts +48 -65
- package/dist/index.mjs +9062 -7954
- package/dist/index.mjs.map +1 -1
- package/dist/protocolViewerParsers-SPW7UPEH.mjs +5 -0
- package/dist/{protocolViewerParsers-6BOFKH3F.mjs.map → protocolViewerParsers-SPW7UPEH.mjs.map} +1 -1
- package/dist/react.cjs.map +1 -1
- package/dist/react.d.mts +3 -2
- package/dist/react.d.ts +3 -2
- package/dist/react.mjs +1 -1
- package/dist/react.mjs.map +1 -1
- package/dist/{timeout-WX76D6NU.mjs → timeout-JJJQO4B3.mjs} +3 -3
- package/dist/{timeout-WX76D6NU.mjs.map → timeout-JJJQO4B3.mjs.map} +1 -1
- package/dist/{vaultUtils-PRhZBjwX.d.mts → vaultUtils-BJhHYqte.d.mts} +335 -52
- package/dist/{vaultUtils-PRhZBjwX.d.ts → vaultUtils-BJhHYqte.d.ts} +335 -52
- package/package.json +3 -3
- package/dist/chunk-DIHRDN2W.mjs +0 -12
- package/dist/chunk-DIHRDN2W.mjs.map +0 -1
- package/dist/chunk-PLUTAOT5.mjs.map +0 -1
- package/dist/protocolViewerParsers-6BOFKH3F.mjs +0 -5
package/dist/react.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
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 {
|
|
2
|
-
export {
|
|
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-
|
|
3
|
+
import './chunk-FCGUBJAP.mjs';
|
|
4
4
|
import { useState, useCallback, useMemo } from 'react';
|
|
5
5
|
|
|
6
6
|
function useCreateDeposit({ client, onSuccess, onError }) {
|