@zkp2p/sdk 0.14.8 → 0.15.0-rc.0
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 +148 -6
- package/dist/build-metadata.json +4 -4
- package/dist/chunk-6K2RTFER.mjs +12 -0
- package/dist/chunk-6K2RTFER.mjs.map +1 -0
- package/dist/{chunk-Q33OEQMR.mjs → chunk-ZYCDBPQR.mjs} +37220 -27627
- package/dist/{chunk-Q33OEQMR.mjs.map → chunk-ZYCDBPQR.mjs.map} +1 -1
- package/dist/{currency-ELLII4P5.mjs → currency-CSMMPWY5.mjs} +3 -3
- package/dist/{currency-ELLII4P5.mjs.map → currency-CSMMPWY5.mjs.map} +1 -1
- package/dist/index.cjs +44807 -34545
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +29 -4
- package/dist/index.d.ts +29 -4
- package/dist/index.mjs +1492 -880
- package/dist/index.mjs.map +1 -1
- package/dist/protocolViewerParsers-5IK7K5HX.mjs +5 -0
- package/dist/{protocolViewerParsers-6IAP5ZIJ.mjs.map → protocolViewerParsers-5IK7K5HX.mjs.map} +1 -1
- package/dist/react.d.mts +2 -2
- package/dist/react.d.ts +2 -2
- package/dist/react.mjs +1 -1
- package/dist/{timeout-GGK4EEKQ.mjs → timeout-CU53EYLL.mjs} +3 -3
- package/dist/{timeout-GGK4EEKQ.mjs.map → timeout-CU53EYLL.mjs.map} +1 -1
- package/dist/{vaultUtils-C8yL2H-O.d.mts → vaultUtils-DUyYQUYu.d.mts} +242 -15
- package/dist/{vaultUtils-C8yL2H-O.d.ts → vaultUtils-DUyYQUYu.d.ts} +242 -15
- package/package.json +2 -2
- package/dist/chunk-HG27KAGT.mjs +0 -12
- package/dist/chunk-HG27KAGT.mjs.map +0 -1
- package/dist/protocolViewerParsers-6IAP5ZIJ.mjs +0 -5
package/dist/index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { R as ReferrerFeeConfig, S as SellerCredentialBundle, D as DepositWithRelations, I as IntentEntity, a as IdentityAttestationRequestBody, A as AttestationServiceIdentityResponse, B as BuyerTeeVerifyPaymentBody, b as AttestationServiceSellerVerifyResponse, c as SellerCredentialUploadInput, d as SellerCredentialUploadPlatform, e as SellerCredentialAttestationRuntime, f as AttestationServiceSellerCredentialUploadResponse, g as BuyerTeeSessionMaterialEncryptionInput, U as UploadSellerCredentialBundleParams, C as CuratorSellerCredentialUploadResponse, h as CreateReferralCodeRequest, i as ApiAdapterOptions, j as CreateReferralCodeResponse, k as ReferralReadRequest, l as ReferralDashboardResponse, m as ReferralEarningsResponse, n as ReferralCodeLookupResponse, o as RedeemReferralCodeRequest, p as RedeemReferralCodeResponse, q as UpdateReferralCodeRequest, r as UpdateReferralCodeResponse, G as GoogleOAuthSellerCredentialPlatform, s as GoogleOAuthSellerCredentialUploadBodyByPlatform, M as MicrosoftOAuthSellerCredentialUploadBodyByPlatform, t as SellerPlatform, u as CuratorSellerCredentialStatusResponse, Q as QuotesBestByPlatformRequest, v as BestByPlatformResponse, V as ValidatePayeeDetailsRequest, w as ValidatePayeeDetailsResponse, P as PostDepositDetailsRequest, x as PostDepositDetailsResponse, y as GetPayeeDetailsRequest, z as GetPayeeDetailsResponse, E as GetOwnerDepositsRequest, F as GetOwnerDepositsResponse, H as GetDepositBundleParams, J as GetDepositBundleResponse, K as GetOrderbookParams, L as GetOrderbookResponse, N as GetOrderbookTableResponse, O as QuoteRequest, T as QuoteResponse, W as CuratorMetadata, X as CurrencyType, Y as PaymentMethodCatalog, Z as TxOverrides } from './vaultUtils-
|
|
2
|
-
export {
|
|
3
|
-
import { Address, Hash, Hex, WalletClient } from 'viem';
|
|
1
|
+
import { R as ReferrerFeeConfig, S as SellerCredentialBundle, D as DepositWithRelations, I as IntentEntity, a as IdentityAttestationRequestBody, A as AttestationServiceIdentityResponse, B as BuyerTeeVerifyPaymentBody, b as AttestationServiceSellerVerifyResponse, c as SellerCredentialUploadInput, d as SellerCredentialUploadPlatform, e as SellerCredentialAttestationRuntime, f as AttestationServiceSellerCredentialUploadResponse, g as BuyerTeeSessionMaterialEncryptionInput, U as UploadSellerCredentialBundleParams, C as CuratorSellerCredentialUploadResponse, h as CreateReferralCodeRequest, i as ApiAdapterOptions, j as CreateReferralCodeResponse, k as ReferralReadRequest, l as ReferralDashboardResponse, m as ReferralEarningsResponse, n as ReferralCodeLookupResponse, o as RedeemReferralCodeRequest, p as RedeemReferralCodeResponse, q as UpdateReferralCodeRequest, r as UpdateReferralCodeResponse, G as GoogleOAuthSellerCredentialPlatform, s as GoogleOAuthSellerCredentialUploadBodyByPlatform, M as MicrosoftOAuthSellerCredentialUploadBodyByPlatform, t as SellerPlatform, u as CuratorSellerCredentialStatusResponse, Q as QuotesBestByPlatformRequest, v as BestByPlatformResponse, V as ValidatePayeeDetailsRequest, w as ValidatePayeeDetailsResponse, P as PostDepositDetailsRequest, x as PostDepositDetailsResponse, y as GetPayeeDetailsRequest, z as GetPayeeDetailsResponse, E as GetOwnerDepositsRequest, F as GetOwnerDepositsResponse, H as GetDepositBundleParams, J as GetDepositBundleResponse, K as GetOrderbookParams, L as GetOrderbookResponse, N as GetOrderbookTableResponse, O as QuoteRequest, T as QuoteResponse, W as CuratorMetadata, X as CurrencyType, Y as PaymentMethodCatalog, Z as TxOverrides, _ as RuntimeEnv$1, $ as DisputeProtectionIntent } from './vaultUtils-DUyYQUYu.mjs';
|
|
2
|
+
export { dN as AccessPolicyOperations, dO as AccessPolicyUnsupportedError, as as ActionCallback, dZ as ActiveDisputeProtectionStack, bb as AmazonPayCredentialUploadInput, bc as AmazonPayIdentityAttestationOutput, aX as ApiDeposit, b2 as ApiIntentStatus, bE as AttestationServiceSellerCredentialProbeResponse, aq as AuthorizationTokenProvider, dK as BatchResult, aD as BestByPlatformResponseObject, bF as BuyerTeePaymentParams, bG as BuyerTeePaymentProofInput, bH as BuyerTeeSessionMaterial, a8 as CancelIntentMethodParams, aC as CancelIntentParams, bm as CashAppCredentialUploadInput, be as CashAppSessionMaterial, aw as CreateDepositConversionRate, av as CreateDepositParams, bI as CuratorSellerVerifyResponse, d3 as Currency, da as CurrencyData, dl as DISPUTE_PROTECTION_POLICY_ABI, dJ as DelegationDepositTarget, dH as DelegationRoute, dI as DelegationState, dv as Deposit, dx as DepositCurrency, c1 as DepositIntentStatistics, a_ as DepositStatus, aY as DepositVerifier, aZ as DepositVerifierCurrency, b_ as DepositVerifierData, du as DepositView, af as DisputeAttestationConfig, cy as DisputeProtectionIntentPage, cz as DisputeProtectionIntentPageParams, dV as DisputeProtectionIntentStatus, ah as DisputeProtectionReadinessOptions, ai as DisputeProtectionReadinessResult, ag as DisputeProtectionVerifiedStack, aT as FiatResponse, bD as FulfillIntentAttestationResponse, a7 as FulfillIntentMethodParams, aA as FulfillIntentParams, aE as GetBestByPlatformResponse, aF as GetBestByPlatformResponseObject, a$ as GetDepositByIdRequest, b0 as GetDepositByIdResponse, b7 as GetIntentByHashRequest, b8 as GetIntentByHashResponse, b5 as GetIntentsByDepositRequest, b6 as GetIntentsByDepositResponse, aJ as GetNearbyQuote, aK as GetNearbySuggestions, b3 as GetOwnerIntentsRequest, b4 as GetOwnerIntentsResponse, aG as GetPlatformQuote, aL as GetQuoteResponse, aM as GetQuoteResponseObject, aN as GetQuoteSingleResponse, bN as GetSellerCredentialStatusParams, dP as ICloudMailCredentialError, dR as ICloudMailCredentialErrorReason, dS as ICloudMailSellerPlatform, bT as IdentityAttestationActionType, bU as IdentityAttestationOutput, bV as IdentityAttestationOutputFor, bW as IdentityAttestationParams, cA as IndexedDisputeProtectionIntent, cB as IndexedPage, cC as IndexedPageAsOf, cD as IndexedRiskWindow, cE as IndexedStakeActivity, cG as IndexedStakeLock, cF as IndexedStakeTotals, cH as IndexedStakingRowFreshness, cI as IndexedStakingState, cJ as IndexedStakingStateParams, cK as IndexedTakerAuthorization, cL as IndexedTakerStakeAuthorization, c7 as IndexerClient, cZ as IndexerDeploymentEnv, cf as IndexerDeposit, cw as IndexerDepositDailySnapshot, cQ as IndexerDepositFilter, cv as IndexerDepositFundActivity, cx as IndexerDepositFundActivityType, cT as IndexerDepositOrderDirection, cS as IndexerDepositOrderField, cR as IndexerDepositPagination, ci as IndexerDepositPaymentMethod, c9 as IndexerDepositService, d0 as IndexerFulfillmentAndPaymentResponse, c_ as IndexerFulfillmentRecord, cg as IndexerIntentFulfilled, ch as IndexerIntentFulfillmentAmounts, ck as IndexerIntentStatus, co as IndexerManagerAggregateStats, cq as IndexerManagerDailySnapshot, cp as IndexerManagerStats, ct as IndexerManualRateUpdate, cj as IndexerMethodCurrency, cu as IndexerOracleConfigUpdate, c$ as IndexerPaymentVerifiedRecord, cl as IndexerRateManager, cn as IndexerRateManagerDelegation, cW as IndexerRateManagerDelegationPagination, cs as IndexerRateManagerDetail, cU as IndexerRateManagerFilter, cr as IndexerRateManagerListItem, cY as IndexerRateManagerOrderDirection, cX as IndexerRateManagerOrderField, cV as IndexerRateManagerPagination, cm as IndexerRateManagerRate, ca as IndexerRateManagerService, cd as IndexerStakingService, b1 as Intent, ao as IntentGuardianErrorCode, ak as IntentGuardianPolicy, al as IntentGuardianQuote, am as IntentGuardianWriteFunction, an as IntentGuardianWriteParams, dz as IntentView, bX as MakerIdentityAttestationRequestBody, bY as MakerIdentityPlatform, dX as NO_STAKE_DISPUTE_PROTECTION_POLICY_ABI, aV as NearbyQuote, aW as NearbySuggestions, dk as ORCHESTRATOR_V3_ABI, a0 as OfframpClient, bZ as OnchainCurrency, dA as OnchainIntent, c0 as OrderStats, c5 as OrderbookEntry, c6 as OrderbookTableRow, d1 as PAYMENT_PLATFORMS, bj as PayPalGoogleOAuthSellerCredentialUploadBody, dw as PaymentMethodData, d2 as PaymentPlatformType, aH as PlatformQuote, b$ as PreparedTransaction, aS as QuoteFeesResponse, aR as QuoteIntentResponse, aP as QuoteMakerIdentity, aI as QuotePreference, aO as QuoteResponseObject, aQ as QuoteSingleResponse, ax as Range, aj as ReadDisputeAttestationConfigParams, a4 as RedeemReferralCodeSignatureOptions, a1 as ReferralBearerWriteOptions, dy as ReferralFee, a2 as ReferralReadOptions, at as ReferralRedemption, au as ReferralSignatureBody, a3 as ReferralSignatureOptions, b9 as RegisterPayeeDetailsRequest, ba as RegisterPayeeDetailsResponse, bJ as RegisteredSellerCredentialPlatform, bL as RegisteredUploadSellerCredentialParams, aB as ReleaseFundsToPayerParams, dm as STAKE_VAULT_ABI, bB as SellerAttestationOutput, bp as SellerCiphertextBundle, bu as SellerCredentialBundleUpload, bC as SellerCredentialProbeResponse, bw as SellerCredentialStatus, bv as SellerCredentialStatusValue, bo as SellerCredentialUploadInputByPlatform, bA as SellerPaymentTypedDataValue, bt as SellerProbeInput, bq as SellerSignedCiphertextBundle, by as SellerTypedDataField, bz as SellerTypedDataSpec, bs as SellerVerifyInput, br as SellerVerifyIntentDetails, bx as SellerVerifyProxyBody, dM as SendBatchFn, dL as SendTransactionFn, a6 as SignalIntentMethodParams, az as SignalIntentParams, a5 as SignalIntentReferralFee, cM as StakeActivityPageParams, c3 as StakeEnvironment, cN as StakeLockPageParams, ab as StakeVaultState, ac as StakeVaultWriteFunction, ad as StakeVaultWriteParams, cO as StakingEntityIds, cP as TakerStakeAuthorizationPageParams, c4 as TakerStakeBalances, ar as TimeoutConfig, aU as TokenResponse, a9 as UpdateReferralCodeSignatureOptions, bQ as UploadGoogleOAuthSellerCredentialParams, dT as UploadICloudMailSellerCredentialOptions, dU as UploadICloudMailSellerCredentialParams, bR as UploadMicrosoftOAuthSellerCredentialParams, bO as UploadPayPalGoogleOAuthSellerCredentialParams, bM as UploadSellerCredentialOptions, bK as UploadSellerCredentialParams, bP as UploadVenmoGoogleOAuthSellerCredentialParams, c2 as UsdcAmount, dp as V2ContractAbis, dn as V2ContractAddresses, bl as VenmoCredentialUploadInput, bk as VenmoGoogleOAuthSellerCredentialUploadBody, bd as VenmoSessionMaterial, bS as VerifySellerPaymentParams, bn as WiseCredentialUploadInput, bg as WiseProfileInfo, bi as WiseProfileNotFound, bh as WiseProfileSelectionRequired, bf as WiseSessionMaterial, ay as WithdrawDepositParams, dB as ZERO_RATE_MANAGER_ID, a0 as Zkp2pClient, aa as Zkp2pClientOptions, cc as buildStakingEntityIds, dG as classifyDelegationState, ap as classifyIntentGuardianError, cb as compareEventCursorIdsByRecency, d4 as currencyInfo, c8 as defaultIndexerEndpoint, ds as enrichPvDepositView, dt as enrichPvIntentView, ce as fetchIndexerFulfillmentAndPayment, db as getContracts, d7 as getCurrencyCodeFromHash, d6 as getCurrencyInfoFromCountryCode, d5 as getCurrencyInfoFromHash, dF as getDelegationRoute, dh as getDisputeProtectionPolicyContract, dj as getGatingServiceAddress, dc as getIntentGuardianContract, dg as getOrchestratorV3Contract, di as getPaymentMethodsCatalog, dY as getPaymentValidationPolicyContract, de as getRateManagerContracts, df as getStakeVaultContract, dd as hasIntentGuardian, dQ as isMailboxSellerCredentialType, d8 as isSupportedCurrencyHash, dC as isZeroRateManagerId, d9 as mapConversionRatesToOnchainMinRate, dD as normalizeRateManagerId, dE as normalizeRegistry, dq as parseDepositView, dW as parseDisputeProtectionIntent, dr as parseIntentView, ae as readDisputeAttestationConfig } from './vaultUtils-DUyYQUYu.mjs';
|
|
3
|
+
import { Address, Hash, Hex, WalletClient, PublicClient } from 'viem';
|
|
4
4
|
import { Abi } from 'abitype';
|
|
5
5
|
export { DisputeActionTypeByPlatform, DisputeAttestationOutput, DisputeAttestationOutputFor, DisputeDetails, DisputePlatform, IdentityActionType, IdentityActionTypeByPlatform, IdentityParamsByPlatform, IdentityPlatform, NitroAttestationClient, NitroAttestationClientOptions, NitroAttestationEnvironment, VerifiedAttestation, VerifiedAttestationPayload, createNitroAttestationClient, verifyDisputeAttestation } from '@zkp2p/zkp2p-attestation';
|
|
6
6
|
import '@zkp2p/indexer-schema';
|
|
@@ -1031,4 +1031,29 @@ declare function openVenmoGmailConnect(options: Omit<Parameters<typeof getVenmoG
|
|
|
1031
1031
|
popup?: VenmoGmailPopupOptions;
|
|
1032
1032
|
}): Promise<VenmoGmailConnectResult>;
|
|
1033
1033
|
|
|
1034
|
-
|
|
1034
|
+
/** UPV4 reads every non-empty intent data value as a policy address and policy-specific bytes. */
|
|
1035
|
+
declare function encodePaymentValidationHookData(policy: Address, noStake: boolean): Hex;
|
|
1036
|
+
/** Reject malformed or noncanonical envelopes rather than accepting trailing or ambiguous data. */
|
|
1037
|
+
declare function decodePaymentValidationHookData(data: Hex): {
|
|
1038
|
+
policy: Address;
|
|
1039
|
+
noStake: boolean;
|
|
1040
|
+
} | null;
|
|
1041
|
+
|
|
1042
|
+
/**
|
|
1043
|
+
* Search policy history at one block, returning the first non-None intent.
|
|
1044
|
+
* Return null only when all intents parse as None; otherwise unreadable intents throw.
|
|
1045
|
+
* Legacy policies may revert on the no-stake getter, which defaults to false.
|
|
1046
|
+
*/
|
|
1047
|
+
declare function findDisputeProtectionIntent({ publicClient, chainId, environment, intentHash, blockNumber, }: {
|
|
1048
|
+
publicClient: PublicClient;
|
|
1049
|
+
chainId: number;
|
|
1050
|
+
environment?: RuntimeEnv$1;
|
|
1051
|
+
intentHash: Hex;
|
|
1052
|
+
blockNumber?: bigint;
|
|
1053
|
+
}): Promise<{
|
|
1054
|
+
policyAddress: Address;
|
|
1055
|
+
intent: DisputeProtectionIntent;
|
|
1056
|
+
noStake: boolean;
|
|
1057
|
+
} | null>;
|
|
1058
|
+
|
|
1059
|
+
export { APIError, ApiAdapterOptions, AttestationServiceIdentityResponse, AttestationServiceSellerCredentialUploadResponse, AttestationServiceSellerVerifyResponse, BASE_BUILDER_CODE, BestByPlatformResponse, BuyerTeeSessionMaterialEncryptionInput, BuyerTeeVerifyPaymentBody, CHAINLINK_ORACLE_ADAPTER, CHAINLINK_ORACLE_FEEDS, ContractError, ContractRouter, type ContractRouterConfig, CreateReferralCodeRequest, CreateReferralCodeResponse, CuratorSellerCredentialStatusResponse, CuratorSellerCredentialUploadResponse, CurrencyType, DEFAULT_ORACLE_MAX_STALENESS_SECONDS, DisputeProtectionIntent, ErrorCode, type EscrowContractContext, type EscrowDepositView, type EscrowIntentView, GetDepositBundleParams, GetDepositBundleResponse, GetOrderbookParams, GetOrderbookResponse, GetOrderbookTableResponse, GetOwnerDepositsRequest, GetOwnerDepositsResponse, GetPayeeDetailsRequest, GetPayeeDetailsResponse, GoogleOAuthSellerCredentialPlatform, GoogleOAuthSellerCredentialUploadBodyByPlatform, IdentityAttestationRequestBody, DepositWithRelations as IndexerDepositWithRelations, IntentEntity as IndexerIntent, type IntegerLike, type LogLevel, MicrosoftOAuthSellerCredentialUploadBodyByPlatform, type MulticallClient, NetworkError, type OracleAdapterOverrides, type OracleKind, type OrchestratorContractContext, PEER_EXTENSION_CHROME_URL, PLATFORM_METADATA, PYTH_CONTRACT_BASE, PYTH_ORACLE_ADAPTER, PYTH_ORACLE_FEEDS, PaymentMethodCatalog, type PeerAuthenticateParams, type PeerBuyerTeePaymentCapture, type PeerBuyerTeePaymentParams, type PeerConnectionStatus, type PeerExtensionApi, type PeerExtensionSdk, type PeerExtensionSdkOptions, type PeerExtensionState, type PeerExtensionWindow, type PeerMetadataCaptureMode, type PeerMetadataMessage, type PeerMetadataMessageCallback, type PeerMetadataRow, type PeerSarCredentialCapture, PostDepositDetailsRequest, PostDepositDetailsResponse, type PythFeedConfig, QuoteRequest, QuoteResponse, QuotesBestByPlatformRequest, REFERRAL_SIGNATURE_DOMAIN, REFERRAL_SIGNATURE_TYPES, RISK_BPS_DENOMINATOR, RedeemReferralCodeRequest, RedeemReferralCodeResponse, ReferralCodeLookupResponse, ReferralDashboardResponse, ReferralEarningsResponse, ReferralReadRequest, ReferrerFeeConfig, type RiskMode, RuntimeEnv$1 as RuntimeEnv, SDK_BUILD_METADATA, SPREAD_ORACLE_FEEDS, SUPPORTED_CHAIN_IDS, type SdkBuildMetadata, SellerCredentialAttestationRuntime, SellerCredentialBundle, SellerCredentialUploadInput, SellerCredentialUploadPlatform, SellerPlatform, type SignIntentApiOptions, type SignIntentV3ReferralFee, type SignIntentV3Request, type SignIntentV3ResponseObject, type SignIntentV3Result, type SpreadOracleConfig, type SpreadOracleFeedConfig, type SupportedChainId, TOKEN_METADATA, TxOverrides, UpdateReferralCodeRequest, UpdateReferralCodeResponse, UploadSellerCredentialBundleParams, ValidatePayeeDetailsRequest, ValidatePayeeDetailsResponse, ValidationError, type VenmoGmailAppearance, VenmoGmailConnectError, type VenmoGmailConnectResult, type VenmoGmailPopupOptions, ZKP2PError, ZKP2P_ANDROID_REFERRER, ZKP2P_IOS_REFERRER, apiCreateReferralCode, apiCreateSellerCredentialBundle, apiGetDepositBundle, apiGetOrderbook, apiGetOrderbookTable, apiGetOwnerDeposits, apiGetPayeeDetails, apiGetQuote, apiGetQuotesBestByPlatform, apiGetReferralDashboard, apiGetReferralEarnings, apiGetSellerCredentialStatus, apiLookupReferralCode, apiPostDepositDetails, apiRedeemReferralCode, apiRequestIdentityAttestation, apiSignIntentV3, apiSignIntentV3Raw, apiUpdateReferralCode, apiUploadGoogleOAuthSellerCredential, apiUploadMicrosoftOAuthSellerCredential, apiUploadSellerCredentialBundle, apiValidatePayeeDetails, apiVerifyBuyerTeePayment, appendAttributionToCalldata, asciiToBytes32, assertValidReferrerFeeConfig, calculateRequiredCoverage, calculateStakeBackedCapacity, convertDepositsForLiquidity, convertIndexerDepositToEscrowView, convertIndexerIntentsToEscrowViews, createCompositeDepositId, createEncryptedBuyerTeeSessionMaterial, createPeerExtensionSdk, decodePaymentValidationHookData, encodePaymentValidationHookData, encodePythAdapterConfig, encodeSpreadOracleAdapterConfig, encodeWithAttribution, ensureBytes32, findDisputeProtectionIntent, getAmazonPaySellerIdentity, getAttributionDataSuffix, getPeerExtensionState, getSpreadOracleConfig, getVenmoGmailConnectUrl, isPeerExtensionAvailable, isValidReferralCode, isValidReferrerFeeBps, isValidReferrerFeeRecipient, logger, normalizeReferralCode, openPeerExtensionInstallPage, openVenmoGmailConnect, parseReferrerFeeConfig, parseVenmoGmailAppearance, peerExtensionSdk, referrerFeeConfigToPreciseUnits, resolveFiatCurrencyBytes32, resolvePaymentMethodHash, resolvePaymentMethodHashFromCatalog, resolvePaymentMethodNameFromHash, selectRiskMode, sendTransactionWithAttribution, setLogLevel, validateOracleFeedsOnChain };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { R as ReferrerFeeConfig, S as SellerCredentialBundle, D as DepositWithRelations, I as IntentEntity, a as IdentityAttestationRequestBody, A as AttestationServiceIdentityResponse, B as BuyerTeeVerifyPaymentBody, b as AttestationServiceSellerVerifyResponse, c as SellerCredentialUploadInput, d as SellerCredentialUploadPlatform, e as SellerCredentialAttestationRuntime, f as AttestationServiceSellerCredentialUploadResponse, g as BuyerTeeSessionMaterialEncryptionInput, U as UploadSellerCredentialBundleParams, C as CuratorSellerCredentialUploadResponse, h as CreateReferralCodeRequest, i as ApiAdapterOptions, j as CreateReferralCodeResponse, k as ReferralReadRequest, l as ReferralDashboardResponse, m as ReferralEarningsResponse, n as ReferralCodeLookupResponse, o as RedeemReferralCodeRequest, p as RedeemReferralCodeResponse, q as UpdateReferralCodeRequest, r as UpdateReferralCodeResponse, G as GoogleOAuthSellerCredentialPlatform, s as GoogleOAuthSellerCredentialUploadBodyByPlatform, M as MicrosoftOAuthSellerCredentialUploadBodyByPlatform, t as SellerPlatform, u as CuratorSellerCredentialStatusResponse, Q as QuotesBestByPlatformRequest, v as BestByPlatformResponse, V as ValidatePayeeDetailsRequest, w as ValidatePayeeDetailsResponse, P as PostDepositDetailsRequest, x as PostDepositDetailsResponse, y as GetPayeeDetailsRequest, z as GetPayeeDetailsResponse, E as GetOwnerDepositsRequest, F as GetOwnerDepositsResponse, H as GetDepositBundleParams, J as GetDepositBundleResponse, K as GetOrderbookParams, L as GetOrderbookResponse, N as GetOrderbookTableResponse, O as QuoteRequest, T as QuoteResponse, W as CuratorMetadata, X as CurrencyType, Y as PaymentMethodCatalog, Z as TxOverrides } from './vaultUtils-
|
|
2
|
-
export {
|
|
3
|
-
import { Address, Hash, Hex, WalletClient } from 'viem';
|
|
1
|
+
import { R as ReferrerFeeConfig, S as SellerCredentialBundle, D as DepositWithRelations, I as IntentEntity, a as IdentityAttestationRequestBody, A as AttestationServiceIdentityResponse, B as BuyerTeeVerifyPaymentBody, b as AttestationServiceSellerVerifyResponse, c as SellerCredentialUploadInput, d as SellerCredentialUploadPlatform, e as SellerCredentialAttestationRuntime, f as AttestationServiceSellerCredentialUploadResponse, g as BuyerTeeSessionMaterialEncryptionInput, U as UploadSellerCredentialBundleParams, C as CuratorSellerCredentialUploadResponse, h as CreateReferralCodeRequest, i as ApiAdapterOptions, j as CreateReferralCodeResponse, k as ReferralReadRequest, l as ReferralDashboardResponse, m as ReferralEarningsResponse, n as ReferralCodeLookupResponse, o as RedeemReferralCodeRequest, p as RedeemReferralCodeResponse, q as UpdateReferralCodeRequest, r as UpdateReferralCodeResponse, G as GoogleOAuthSellerCredentialPlatform, s as GoogleOAuthSellerCredentialUploadBodyByPlatform, M as MicrosoftOAuthSellerCredentialUploadBodyByPlatform, t as SellerPlatform, u as CuratorSellerCredentialStatusResponse, Q as QuotesBestByPlatformRequest, v as BestByPlatformResponse, V as ValidatePayeeDetailsRequest, w as ValidatePayeeDetailsResponse, P as PostDepositDetailsRequest, x as PostDepositDetailsResponse, y as GetPayeeDetailsRequest, z as GetPayeeDetailsResponse, E as GetOwnerDepositsRequest, F as GetOwnerDepositsResponse, H as GetDepositBundleParams, J as GetDepositBundleResponse, K as GetOrderbookParams, L as GetOrderbookResponse, N as GetOrderbookTableResponse, O as QuoteRequest, T as QuoteResponse, W as CuratorMetadata, X as CurrencyType, Y as PaymentMethodCatalog, Z as TxOverrides, _ as RuntimeEnv$1, $ as DisputeProtectionIntent } from './vaultUtils-DUyYQUYu.js';
|
|
2
|
+
export { dN as AccessPolicyOperations, dO as AccessPolicyUnsupportedError, as as ActionCallback, dZ as ActiveDisputeProtectionStack, bb as AmazonPayCredentialUploadInput, bc as AmazonPayIdentityAttestationOutput, aX as ApiDeposit, b2 as ApiIntentStatus, bE as AttestationServiceSellerCredentialProbeResponse, aq as AuthorizationTokenProvider, dK as BatchResult, aD as BestByPlatformResponseObject, bF as BuyerTeePaymentParams, bG as BuyerTeePaymentProofInput, bH as BuyerTeeSessionMaterial, a8 as CancelIntentMethodParams, aC as CancelIntentParams, bm as CashAppCredentialUploadInput, be as CashAppSessionMaterial, aw as CreateDepositConversionRate, av as CreateDepositParams, bI as CuratorSellerVerifyResponse, d3 as Currency, da as CurrencyData, dl as DISPUTE_PROTECTION_POLICY_ABI, dJ as DelegationDepositTarget, dH as DelegationRoute, dI as DelegationState, dv as Deposit, dx as DepositCurrency, c1 as DepositIntentStatistics, a_ as DepositStatus, aY as DepositVerifier, aZ as DepositVerifierCurrency, b_ as DepositVerifierData, du as DepositView, af as DisputeAttestationConfig, cy as DisputeProtectionIntentPage, cz as DisputeProtectionIntentPageParams, dV as DisputeProtectionIntentStatus, ah as DisputeProtectionReadinessOptions, ai as DisputeProtectionReadinessResult, ag as DisputeProtectionVerifiedStack, aT as FiatResponse, bD as FulfillIntentAttestationResponse, a7 as FulfillIntentMethodParams, aA as FulfillIntentParams, aE as GetBestByPlatformResponse, aF as GetBestByPlatformResponseObject, a$ as GetDepositByIdRequest, b0 as GetDepositByIdResponse, b7 as GetIntentByHashRequest, b8 as GetIntentByHashResponse, b5 as GetIntentsByDepositRequest, b6 as GetIntentsByDepositResponse, aJ as GetNearbyQuote, aK as GetNearbySuggestions, b3 as GetOwnerIntentsRequest, b4 as GetOwnerIntentsResponse, aG as GetPlatformQuote, aL as GetQuoteResponse, aM as GetQuoteResponseObject, aN as GetQuoteSingleResponse, bN as GetSellerCredentialStatusParams, dP as ICloudMailCredentialError, dR as ICloudMailCredentialErrorReason, dS as ICloudMailSellerPlatform, bT as IdentityAttestationActionType, bU as IdentityAttestationOutput, bV as IdentityAttestationOutputFor, bW as IdentityAttestationParams, cA as IndexedDisputeProtectionIntent, cB as IndexedPage, cC as IndexedPageAsOf, cD as IndexedRiskWindow, cE as IndexedStakeActivity, cG as IndexedStakeLock, cF as IndexedStakeTotals, cH as IndexedStakingRowFreshness, cI as IndexedStakingState, cJ as IndexedStakingStateParams, cK as IndexedTakerAuthorization, cL as IndexedTakerStakeAuthorization, c7 as IndexerClient, cZ as IndexerDeploymentEnv, cf as IndexerDeposit, cw as IndexerDepositDailySnapshot, cQ as IndexerDepositFilter, cv as IndexerDepositFundActivity, cx as IndexerDepositFundActivityType, cT as IndexerDepositOrderDirection, cS as IndexerDepositOrderField, cR as IndexerDepositPagination, ci as IndexerDepositPaymentMethod, c9 as IndexerDepositService, d0 as IndexerFulfillmentAndPaymentResponse, c_ as IndexerFulfillmentRecord, cg as IndexerIntentFulfilled, ch as IndexerIntentFulfillmentAmounts, ck as IndexerIntentStatus, co as IndexerManagerAggregateStats, cq as IndexerManagerDailySnapshot, cp as IndexerManagerStats, ct as IndexerManualRateUpdate, cj as IndexerMethodCurrency, cu as IndexerOracleConfigUpdate, c$ as IndexerPaymentVerifiedRecord, cl as IndexerRateManager, cn as IndexerRateManagerDelegation, cW as IndexerRateManagerDelegationPagination, cs as IndexerRateManagerDetail, cU as IndexerRateManagerFilter, cr as IndexerRateManagerListItem, cY as IndexerRateManagerOrderDirection, cX as IndexerRateManagerOrderField, cV as IndexerRateManagerPagination, cm as IndexerRateManagerRate, ca as IndexerRateManagerService, cd as IndexerStakingService, b1 as Intent, ao as IntentGuardianErrorCode, ak as IntentGuardianPolicy, al as IntentGuardianQuote, am as IntentGuardianWriteFunction, an as IntentGuardianWriteParams, dz as IntentView, bX as MakerIdentityAttestationRequestBody, bY as MakerIdentityPlatform, dX as NO_STAKE_DISPUTE_PROTECTION_POLICY_ABI, aV as NearbyQuote, aW as NearbySuggestions, dk as ORCHESTRATOR_V3_ABI, a0 as OfframpClient, bZ as OnchainCurrency, dA as OnchainIntent, c0 as OrderStats, c5 as OrderbookEntry, c6 as OrderbookTableRow, d1 as PAYMENT_PLATFORMS, bj as PayPalGoogleOAuthSellerCredentialUploadBody, dw as PaymentMethodData, d2 as PaymentPlatformType, aH as PlatformQuote, b$ as PreparedTransaction, aS as QuoteFeesResponse, aR as QuoteIntentResponse, aP as QuoteMakerIdentity, aI as QuotePreference, aO as QuoteResponseObject, aQ as QuoteSingleResponse, ax as Range, aj as ReadDisputeAttestationConfigParams, a4 as RedeemReferralCodeSignatureOptions, a1 as ReferralBearerWriteOptions, dy as ReferralFee, a2 as ReferralReadOptions, at as ReferralRedemption, au as ReferralSignatureBody, a3 as ReferralSignatureOptions, b9 as RegisterPayeeDetailsRequest, ba as RegisterPayeeDetailsResponse, bJ as RegisteredSellerCredentialPlatform, bL as RegisteredUploadSellerCredentialParams, aB as ReleaseFundsToPayerParams, dm as STAKE_VAULT_ABI, bB as SellerAttestationOutput, bp as SellerCiphertextBundle, bu as SellerCredentialBundleUpload, bC as SellerCredentialProbeResponse, bw as SellerCredentialStatus, bv as SellerCredentialStatusValue, bo as SellerCredentialUploadInputByPlatform, bA as SellerPaymentTypedDataValue, bt as SellerProbeInput, bq as SellerSignedCiphertextBundle, by as SellerTypedDataField, bz as SellerTypedDataSpec, bs as SellerVerifyInput, br as SellerVerifyIntentDetails, bx as SellerVerifyProxyBody, dM as SendBatchFn, dL as SendTransactionFn, a6 as SignalIntentMethodParams, az as SignalIntentParams, a5 as SignalIntentReferralFee, cM as StakeActivityPageParams, c3 as StakeEnvironment, cN as StakeLockPageParams, ab as StakeVaultState, ac as StakeVaultWriteFunction, ad as StakeVaultWriteParams, cO as StakingEntityIds, cP as TakerStakeAuthorizationPageParams, c4 as TakerStakeBalances, ar as TimeoutConfig, aU as TokenResponse, a9 as UpdateReferralCodeSignatureOptions, bQ as UploadGoogleOAuthSellerCredentialParams, dT as UploadICloudMailSellerCredentialOptions, dU as UploadICloudMailSellerCredentialParams, bR as UploadMicrosoftOAuthSellerCredentialParams, bO as UploadPayPalGoogleOAuthSellerCredentialParams, bM as UploadSellerCredentialOptions, bK as UploadSellerCredentialParams, bP as UploadVenmoGoogleOAuthSellerCredentialParams, c2 as UsdcAmount, dp as V2ContractAbis, dn as V2ContractAddresses, bl as VenmoCredentialUploadInput, bk as VenmoGoogleOAuthSellerCredentialUploadBody, bd as VenmoSessionMaterial, bS as VerifySellerPaymentParams, bn as WiseCredentialUploadInput, bg as WiseProfileInfo, bi as WiseProfileNotFound, bh as WiseProfileSelectionRequired, bf as WiseSessionMaterial, ay as WithdrawDepositParams, dB as ZERO_RATE_MANAGER_ID, a0 as Zkp2pClient, aa as Zkp2pClientOptions, cc as buildStakingEntityIds, dG as classifyDelegationState, ap as classifyIntentGuardianError, cb as compareEventCursorIdsByRecency, d4 as currencyInfo, c8 as defaultIndexerEndpoint, ds as enrichPvDepositView, dt as enrichPvIntentView, ce as fetchIndexerFulfillmentAndPayment, db as getContracts, d7 as getCurrencyCodeFromHash, d6 as getCurrencyInfoFromCountryCode, d5 as getCurrencyInfoFromHash, dF as getDelegationRoute, dh as getDisputeProtectionPolicyContract, dj as getGatingServiceAddress, dc as getIntentGuardianContract, dg as getOrchestratorV3Contract, di as getPaymentMethodsCatalog, dY as getPaymentValidationPolicyContract, de as getRateManagerContracts, df as getStakeVaultContract, dd as hasIntentGuardian, dQ as isMailboxSellerCredentialType, d8 as isSupportedCurrencyHash, dC as isZeroRateManagerId, d9 as mapConversionRatesToOnchainMinRate, dD as normalizeRateManagerId, dE as normalizeRegistry, dq as parseDepositView, dW as parseDisputeProtectionIntent, dr as parseIntentView, ae as readDisputeAttestationConfig } from './vaultUtils-DUyYQUYu.js';
|
|
3
|
+
import { Address, Hash, Hex, WalletClient, PublicClient } from 'viem';
|
|
4
4
|
import { Abi } from 'abitype';
|
|
5
5
|
export { DisputeActionTypeByPlatform, DisputeAttestationOutput, DisputeAttestationOutputFor, DisputeDetails, DisputePlatform, IdentityActionType, IdentityActionTypeByPlatform, IdentityParamsByPlatform, IdentityPlatform, NitroAttestationClient, NitroAttestationClientOptions, NitroAttestationEnvironment, VerifiedAttestation, VerifiedAttestationPayload, createNitroAttestationClient, verifyDisputeAttestation } from '@zkp2p/zkp2p-attestation';
|
|
6
6
|
import '@zkp2p/indexer-schema';
|
|
@@ -1031,4 +1031,29 @@ declare function openVenmoGmailConnect(options: Omit<Parameters<typeof getVenmoG
|
|
|
1031
1031
|
popup?: VenmoGmailPopupOptions;
|
|
1032
1032
|
}): Promise<VenmoGmailConnectResult>;
|
|
1033
1033
|
|
|
1034
|
-
|
|
1034
|
+
/** UPV4 reads every non-empty intent data value as a policy address and policy-specific bytes. */
|
|
1035
|
+
declare function encodePaymentValidationHookData(policy: Address, noStake: boolean): Hex;
|
|
1036
|
+
/** Reject malformed or noncanonical envelopes rather than accepting trailing or ambiguous data. */
|
|
1037
|
+
declare function decodePaymentValidationHookData(data: Hex): {
|
|
1038
|
+
policy: Address;
|
|
1039
|
+
noStake: boolean;
|
|
1040
|
+
} | null;
|
|
1041
|
+
|
|
1042
|
+
/**
|
|
1043
|
+
* Search policy history at one block, returning the first non-None intent.
|
|
1044
|
+
* Return null only when all intents parse as None; otherwise unreadable intents throw.
|
|
1045
|
+
* Legacy policies may revert on the no-stake getter, which defaults to false.
|
|
1046
|
+
*/
|
|
1047
|
+
declare function findDisputeProtectionIntent({ publicClient, chainId, environment, intentHash, blockNumber, }: {
|
|
1048
|
+
publicClient: PublicClient;
|
|
1049
|
+
chainId: number;
|
|
1050
|
+
environment?: RuntimeEnv$1;
|
|
1051
|
+
intentHash: Hex;
|
|
1052
|
+
blockNumber?: bigint;
|
|
1053
|
+
}): Promise<{
|
|
1054
|
+
policyAddress: Address;
|
|
1055
|
+
intent: DisputeProtectionIntent;
|
|
1056
|
+
noStake: boolean;
|
|
1057
|
+
} | null>;
|
|
1058
|
+
|
|
1059
|
+
export { APIError, ApiAdapterOptions, AttestationServiceIdentityResponse, AttestationServiceSellerCredentialUploadResponse, AttestationServiceSellerVerifyResponse, BASE_BUILDER_CODE, BestByPlatformResponse, BuyerTeeSessionMaterialEncryptionInput, BuyerTeeVerifyPaymentBody, CHAINLINK_ORACLE_ADAPTER, CHAINLINK_ORACLE_FEEDS, ContractError, ContractRouter, type ContractRouterConfig, CreateReferralCodeRequest, CreateReferralCodeResponse, CuratorSellerCredentialStatusResponse, CuratorSellerCredentialUploadResponse, CurrencyType, DEFAULT_ORACLE_MAX_STALENESS_SECONDS, DisputeProtectionIntent, ErrorCode, type EscrowContractContext, type EscrowDepositView, type EscrowIntentView, GetDepositBundleParams, GetDepositBundleResponse, GetOrderbookParams, GetOrderbookResponse, GetOrderbookTableResponse, GetOwnerDepositsRequest, GetOwnerDepositsResponse, GetPayeeDetailsRequest, GetPayeeDetailsResponse, GoogleOAuthSellerCredentialPlatform, GoogleOAuthSellerCredentialUploadBodyByPlatform, IdentityAttestationRequestBody, DepositWithRelations as IndexerDepositWithRelations, IntentEntity as IndexerIntent, type IntegerLike, type LogLevel, MicrosoftOAuthSellerCredentialUploadBodyByPlatform, type MulticallClient, NetworkError, type OracleAdapterOverrides, type OracleKind, type OrchestratorContractContext, PEER_EXTENSION_CHROME_URL, PLATFORM_METADATA, PYTH_CONTRACT_BASE, PYTH_ORACLE_ADAPTER, PYTH_ORACLE_FEEDS, PaymentMethodCatalog, type PeerAuthenticateParams, type PeerBuyerTeePaymentCapture, type PeerBuyerTeePaymentParams, type PeerConnectionStatus, type PeerExtensionApi, type PeerExtensionSdk, type PeerExtensionSdkOptions, type PeerExtensionState, type PeerExtensionWindow, type PeerMetadataCaptureMode, type PeerMetadataMessage, type PeerMetadataMessageCallback, type PeerMetadataRow, type PeerSarCredentialCapture, PostDepositDetailsRequest, PostDepositDetailsResponse, type PythFeedConfig, QuoteRequest, QuoteResponse, QuotesBestByPlatformRequest, REFERRAL_SIGNATURE_DOMAIN, REFERRAL_SIGNATURE_TYPES, RISK_BPS_DENOMINATOR, RedeemReferralCodeRequest, RedeemReferralCodeResponse, ReferralCodeLookupResponse, ReferralDashboardResponse, ReferralEarningsResponse, ReferralReadRequest, ReferrerFeeConfig, type RiskMode, RuntimeEnv$1 as RuntimeEnv, SDK_BUILD_METADATA, SPREAD_ORACLE_FEEDS, SUPPORTED_CHAIN_IDS, type SdkBuildMetadata, SellerCredentialAttestationRuntime, SellerCredentialBundle, SellerCredentialUploadInput, SellerCredentialUploadPlatform, SellerPlatform, type SignIntentApiOptions, type SignIntentV3ReferralFee, type SignIntentV3Request, type SignIntentV3ResponseObject, type SignIntentV3Result, type SpreadOracleConfig, type SpreadOracleFeedConfig, type SupportedChainId, TOKEN_METADATA, TxOverrides, UpdateReferralCodeRequest, UpdateReferralCodeResponse, UploadSellerCredentialBundleParams, ValidatePayeeDetailsRequest, ValidatePayeeDetailsResponse, ValidationError, type VenmoGmailAppearance, VenmoGmailConnectError, type VenmoGmailConnectResult, type VenmoGmailPopupOptions, ZKP2PError, ZKP2P_ANDROID_REFERRER, ZKP2P_IOS_REFERRER, apiCreateReferralCode, apiCreateSellerCredentialBundle, apiGetDepositBundle, apiGetOrderbook, apiGetOrderbookTable, apiGetOwnerDeposits, apiGetPayeeDetails, apiGetQuote, apiGetQuotesBestByPlatform, apiGetReferralDashboard, apiGetReferralEarnings, apiGetSellerCredentialStatus, apiLookupReferralCode, apiPostDepositDetails, apiRedeemReferralCode, apiRequestIdentityAttestation, apiSignIntentV3, apiSignIntentV3Raw, apiUpdateReferralCode, apiUploadGoogleOAuthSellerCredential, apiUploadMicrosoftOAuthSellerCredential, apiUploadSellerCredentialBundle, apiValidatePayeeDetails, apiVerifyBuyerTeePayment, appendAttributionToCalldata, asciiToBytes32, assertValidReferrerFeeConfig, calculateRequiredCoverage, calculateStakeBackedCapacity, convertDepositsForLiquidity, convertIndexerDepositToEscrowView, convertIndexerIntentsToEscrowViews, createCompositeDepositId, createEncryptedBuyerTeeSessionMaterial, createPeerExtensionSdk, decodePaymentValidationHookData, encodePaymentValidationHookData, encodePythAdapterConfig, encodeSpreadOracleAdapterConfig, encodeWithAttribution, ensureBytes32, findDisputeProtectionIntent, getAmazonPaySellerIdentity, getAttributionDataSuffix, getPeerExtensionState, getSpreadOracleConfig, getVenmoGmailConnectUrl, isPeerExtensionAvailable, isValidReferralCode, isValidReferrerFeeBps, isValidReferrerFeeRecipient, logger, normalizeReferralCode, openPeerExtensionInstallPage, openVenmoGmailConnect, parseReferrerFeeConfig, parseVenmoGmailAppearance, peerExtensionSdk, referrerFeeConfigToPreciseUnits, resolveFiatCurrencyBytes32, resolvePaymentMethodHash, resolvePaymentMethodHashFromCatalog, resolvePaymentMethodNameFromHash, selectRiskMode, sendTransactionWithAttribution, setLogLevel, validateOracleFeedsOnChain };
|