@zkp2p/sdk 0.12.1 → 0.12.2-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 +96 -24
- package/dist/build-metadata.json +22 -0
- package/dist/{chunk-GHQK65J2.mjs → chunk-3J4FPMPW.mjs} +2 -2
- package/dist/{chunk-GHQK65J2.mjs.map → chunk-3J4FPMPW.mjs.map} +1 -1
- package/dist/chunk-NCX4BO7G.mjs +12 -0
- package/dist/chunk-NCX4BO7G.mjs.map +1 -0
- package/dist/{chunk-DZQOCRT4.mjs → chunk-QVEW2DTE.mjs} +373 -373
- package/dist/{chunk-DZQOCRT4.mjs.map → chunk-QVEW2DTE.mjs.map} +1 -1
- package/dist/{chunk-FCOH36IX.mjs → chunk-YA67SM3A.mjs} +2 -2
- package/dist/{chunk-FCOH36IX.mjs.map → chunk-YA67SM3A.mjs.map} +1 -1
- package/dist/{chunk-ZFBH4HD7.mjs → chunk-ZB22BZLZ.mjs} +2 -2
- package/dist/{chunk-ZFBH4HD7.mjs.map → chunk-ZB22BZLZ.mjs.map} +1 -1
- package/dist/{currency-MARF3D2J.mjs → currency-XA62DCJH.mjs} +4 -4
- package/dist/{currency-MARF3D2J.mjs.map → currency-XA62DCJH.mjs.map} +1 -1
- package/dist/index.cjs +2263 -561
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +34 -9
- package/dist/index.d.ts +34 -9
- package/dist/index.mjs +1638 -105
- package/dist/index.mjs.map +1 -1
- package/dist/protocolViewerParsers-KB2FTOE6.mjs +5 -0
- package/dist/{protocolViewerParsers-WK2QPJH7.mjs.map → protocolViewerParsers-KB2FTOE6.mjs.map} +1 -1
- package/dist/react.cjs +41 -0
- package/dist/react.cjs.map +1 -1
- package/dist/react.d.mts +15 -3
- package/dist/react.d.ts +15 -3
- package/dist/react.mjs +44 -4
- package/dist/react.mjs.map +1 -1
- package/dist/{timeout-YLP3WHZF.mjs → timeout-7UJ6HZ4K.mjs} +4 -4
- package/dist/{timeout-YLP3WHZF.mjs.map → timeout-7UJ6HZ4K.mjs.map} +1 -1
- package/dist/{vaultUtils-Bc9KwywX.d.mts → vaultUtils-Dla_eG15.d.mts} +206 -43
- package/dist/{vaultUtils-Bc9KwywX.d.ts → vaultUtils-Dla_eG15.d.ts} +206 -43
- package/package.json +23 -22
- package/dist/chunk-J5LGTIGS.mjs +0 -9
- package/dist/chunk-J5LGTIGS.mjs.map +0 -1
- package/dist/protocolViewerParsers-WK2QPJH7.mjs +0 -5
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
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, Q as QuotesBestByPlatformRequest, t as BestByPlatformResponse, V as ValidatePayeeDetailsRequest, u as ValidatePayeeDetailsResponse, P as PostDepositDetailsRequest, v as PostDepositDetailsResponse, w as GetPayeeDetailsRequest, x as GetPayeeDetailsResponse, y as GetOwnerDepositsRequest, z as GetOwnerDepositsResponse, E as GetDepositBundleParams, F as GetDepositBundleResponse, H as GetOrderbookParams, J as GetOrderbookResponse, K as GetOrderbookTableResponse, L as QuoteRequest, M as QuoteResponse, N as CuratorMetadata, O as CurrencyType, T as PaymentMethodCatalog, W as TxOverrides } from './vaultUtils-
|
|
2
|
-
export {
|
|
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, Q as QuotesBestByPlatformRequest, t as BestByPlatformResponse, V as ValidatePayeeDetailsRequest, u as ValidatePayeeDetailsResponse, P as PostDepositDetailsRequest, v as PostDepositDetailsResponse, w as GetPayeeDetailsRequest, x as GetPayeeDetailsResponse, y as GetOwnerDepositsRequest, z as GetOwnerDepositsResponse, E as GetDepositBundleParams, F as GetDepositBundleResponse, H as GetOrderbookParams, J as GetOrderbookResponse, K as GetOrderbookTableResponse, L as QuoteRequest, M as QuoteResponse, N as CuratorMetadata, O as CurrencyType, T as PaymentMethodCatalog, W as TxOverrides } from './vaultUtils-Dla_eG15.mjs';
|
|
2
|
+
export { dG as AccessPolicyDiff, dy as AccessPolicyOperations, dH as AccessPolicyOrdering, dI as AccessPolicyPlan, dJ as AccessPolicyPlanStep, dK as AccessPolicyState, dz as AccessPolicyUnsupportedError, dL as AccessPolicyViolation, aj as ActionCallback, aN as ApiDeposit, aU as ApiIntentStatus, bs as AttestationServiceSellerCredentialProbeResponse, ah as AuthorizationTokenProvider, dv as BatchResult, au as BestByPlatformResponseObject, bt as BuyerTeePaymentParams, bu as BuyerTeePaymentProofInput, bv as BuyerTeeSessionMaterial, a3 as CancelIntentMethodParams, at as CancelIntentParams, ba as CashAppCredentialUploadInput, b3 as CashAppSessionMaterial, an as CreateDepositConversionRate, am as CreateDepositParams, bw as CuratorSellerCredentialStatusResponse, bx as CuratorSellerVerifyResponse, cP as Currency, cW as CurrencyData, d5 as DISPUTE_PROTECTION_POLICY_ABI, du as DelegationDepositTarget, ds as DelegationRoute, dt as DelegationState, df as Deposit, dh as DepositCurrency, bQ as DepositIntentStatistics, aQ as DepositStatus, aO as DepositVerifier, aP as DepositVerifierCurrency, bN as DepositVerifierData, de as DepositView, cl as DisputeProtectionIntentPage, cm as DisputeProtectionIntentPageParams, a9 as DisputeProtectionReadinessOptions, aa as DisputeProtectionReadinessResult, aJ as FiatResponse, br as FulfillIntentAttestationResponse, a2 as FulfillIntentMethodParams, ar as FulfillIntentParams, av as GetBestByPlatformResponse, aw as GetBestByPlatformResponseObject, aR as GetDepositByIdRequest, aS as GetDepositByIdResponse, aZ as GetIntentByHashRequest, a_ as GetIntentByHashResponse, aX as GetIntentsByDepositRequest, aY as GetIntentsByDepositResponse, aA as GetNearbyQuote, aB as GetNearbySuggestions, aV as GetOwnerIntentsRequest, aW as GetOwnerIntentsResponse, ax as GetPlatformQuote, aC as GetQuoteResponse, aD as GetQuoteResponseObject, aE as GetQuoteSingleResponse, bC as GetSellerCredentialStatusParams, bG as IdentityAttestationActionType, bH as IdentityAttestationOutput, bI as IdentityAttestationOutputFor, bJ as IdentityAttestationParams, cn as IndexedDisputeProtectionIntent, co as IndexedPage, cp as IndexedPageAsOf, cq as IndexedRiskWindow, cr as IndexedStakeActivity, cs as IndexedStakeLock, ct as IndexedStakingRowFreshness, cu as IndexedStakingState, cv as IndexedStakingStateParams, cw as IndexedTakerAuthorization, bW as IndexerClient, cJ as IndexerDeploymentEnv, c2 as IndexerDeposit, cj as IndexerDepositDailySnapshot, cA as IndexerDepositFilter, ci as IndexerDepositFundActivity, ck as IndexerDepositFundActivityType, cD as IndexerDepositOrderDirection, cC as IndexerDepositOrderField, cB as IndexerDepositPagination, c5 as IndexerDepositPaymentMethod, bY as IndexerDepositService, cM as IndexerFulfillmentAndPaymentResponse, cK as IndexerFulfillmentRecord, c3 as IndexerIntentFulfilled, c4 as IndexerIntentFulfillmentAmounts, c7 as IndexerIntentStatus, cb as IndexerManagerAggregateStats, cd as IndexerManagerDailySnapshot, cc as IndexerManagerStats, cg as IndexerManualRateUpdate, c6 as IndexerMethodCurrency, ch as IndexerOracleConfigUpdate, cL as IndexerPaymentVerifiedRecord, c8 as IndexerRateManager, ca as IndexerRateManagerDelegation, cG as IndexerRateManagerDelegationPagination, cf as IndexerRateManagerDetail, cE as IndexerRateManagerFilter, ce as IndexerRateManagerListItem, cI as IndexerRateManagerOrderDirection, cH as IndexerRateManagerOrderField, cF as IndexerRateManagerPagination, c9 as IndexerRateManagerRate, bZ as IndexerRateManagerService, c0 as IndexerStakingService, aT as Intent, af as IntentGuardianErrorCode, ab as IntentGuardianPolicy, ac as IntentGuardianQuote, ad as IntentGuardianWriteFunction, ae as IntentGuardianWriteParams, dj as IntentView, dB as MAX_ADDRESSES_PER_CALL, dA as MAX_GROUPS_PER_DEPOSIT, dC as MAX_WHITELISTED_ADDRESSES, bK as MakerIdentityAttestationRequestBody, bL as MakerIdentityPlatform, aL as NearbyQuote, aM as NearbySuggestions, d4 as ORCHESTRATOR_V3_ABI, Z as OfframpClient, bM as OnchainCurrency, dk as OnchainIntent, bP as OrderStats, bU as OrderbookEntry, bV as OrderbookTableRow, cN as PAYMENT_PLATFORMS, b8 as PayPalGoogleOAuthSellerCredentialUploadBody, dg as PaymentMethodData, cO as PaymentPlatformType, ay as PlatformQuote, bO as PreparedTransaction, aI as QuoteFeesResponse, aH as QuoteIntentResponse, az as QuotePreference, aF as QuoteResponseObject, aG as QuoteSingleResponse, ao as Range, $ as RedeemReferralCodeSignatureOptions, X as ReferralBearerWriteOptions, di as ReferralFee, Y as ReferralReadOptions, ak as ReferralRedemption, al as ReferralSignatureBody, _ as ReferralSignatureOptions, a$ as RegisterPayeeDetailsRequest, b0 as RegisterPayeeDetailsResponse, by as RegisteredSellerCredentialPlatform, bA as RegisteredUploadSellerCredentialParams, as as ReleaseFundsToPayerParams, d7 as RuntimeEnv, d6 as STAKE_VAULT_ABI, bp as SellerAttestationOutput, bd as SellerCiphertextBundle, bi as SellerCredentialBundleUpload, bq as SellerCredentialProbeResponse, bk as SellerCredentialStatus, bj as SellerCredentialStatusValue, bc as SellerCredentialUploadInputByPlatform, bo as SellerPaymentTypedDataValue, b1 as SellerPlatform, bh as SellerProbeInput, be as SellerSignedCiphertextBundle, bm as SellerTypedDataField, bn as SellerTypedDataSpec, bg as SellerVerifyInput, bf as SellerVerifyIntentDetails, bl as SellerVerifyProxyBody, dx as SendBatchFn, dw as SendTransactionFn, a1 as SignalIntentMethodParams, aq as SignalIntentParams, a0 as SignalIntentReferralFee, cx as StakeActivityPageParams, bS as StakeEnvironment, cy as StakeLockPageParams, a6 as StakeVaultState, a7 as StakeVaultWriteFunction, a8 as StakeVaultWriteParams, cz as StakingEntityIds, bT as TakerStakeBalances, ai as TimeoutConfig, aK as TokenResponse, a4 as UpdateReferralCodeSignatureOptions, bE as UploadGoogleOAuthSellerCredentialParams, bD as UploadPayPalGoogleOAuthSellerCredentialParams, bB as UploadSellerCredentialOptions, bz as UploadSellerCredentialParams, bR as UsdcAmount, d9 as V2ContractAbis, d8 as V2ContractAddresses, b9 as VenmoCredentialUploadInput, b2 as VenmoSessionMaterial, bF as VerifySellerPaymentParams, bb as WiseCredentialUploadInput, b5 as WiseProfileInfo, b7 as WiseProfileNotFound, b6 as WiseProfileSelectionRequired, b4 as WiseSessionMaterial, ap as WithdrawDepositParams, dl as ZERO_RATE_MANAGER_ID, Z as Zkp2pClient, a5 as Zkp2pClientOptions, b$ as buildStakingEntityIds, dr as classifyDelegationState, ag as classifyIntentGuardianError, b_ as compareEventCursorIdsByRecency, cQ as currencyInfo, bX as defaultIndexerEndpoint, dD as diffAccessPolicy, dc as enrichPvDepositView, dd as enrichPvIntentView, c1 as fetchIndexerFulfillmentAndPayment, cX as getContracts, cT as getCurrencyCodeFromHash, cS as getCurrencyInfoFromCountryCode, cR as getCurrencyInfoFromHash, dq as getDelegationRoute, d1 as getDisputeProtectionPolicyContract, d3 as getGatingServiceAddress, cY as getIntentGuardianContract, d0 as getOrchestratorV3Contract, d2 as getPaymentMethodsCatalog, c_ as getRateManagerContracts, c$ as getStakeVaultContract, cZ as hasIntentGuardian, cU as isSupportedCurrencyHash, dm as isZeroRateManagerId, cV as mapConversionRatesToOnchainMinRate, dE as normalizeAccessPolicyState, dn as normalizeRateManagerId, dp as normalizeRegistry, da as parseDepositView, db as parseIntentView, dF as planAccessPolicyUpdate } from './vaultUtils-Dla_eG15.mjs';
|
|
3
3
|
import { Address, Hash, Hex, WalletClient } from 'viem';
|
|
4
4
|
import { Abi } from 'abitype';
|
|
5
5
|
export { IdentityActionType, IdentityActionTypeByPlatform, IdentityParamsByPlatform, IdentityPlatform, NitroAttestationClient, NitroAttestationClientOptions, NitroAttestationEnvironment, VerifiedAttestation, VerifiedAttestationPayload, createNitroAttestationClient } from '@zkp2p/zkp2p-attestation';
|
|
@@ -64,6 +64,31 @@ interface EscrowIntentView {
|
|
|
64
64
|
deposit: EscrowDepositView;
|
|
65
65
|
}
|
|
66
66
|
|
|
67
|
+
type SdkBuildMetadata = {
|
|
68
|
+
readonly schemaVersion: 1;
|
|
69
|
+
readonly source: {
|
|
70
|
+
readonly repository: 'zkp2p/zkp2p-clients';
|
|
71
|
+
readonly commitSha: string;
|
|
72
|
+
readonly kind: 'development' | 'github';
|
|
73
|
+
readonly distributable: boolean;
|
|
74
|
+
};
|
|
75
|
+
readonly sdkPackageVersion: string;
|
|
76
|
+
readonly contractsPackageVersion: string;
|
|
77
|
+
readonly indexerSchemaPackageVersion: string;
|
|
78
|
+
readonly activeDisputeStack: {
|
|
79
|
+
readonly base: {
|
|
80
|
+
readonly version: 1;
|
|
81
|
+
readonly selectionHash: string;
|
|
82
|
+
};
|
|
83
|
+
readonly baseStaging: {
|
|
84
|
+
readonly version: 1;
|
|
85
|
+
readonly selectionHash: string;
|
|
86
|
+
};
|
|
87
|
+
};
|
|
88
|
+
};
|
|
89
|
+
/** Immutable source and protocol identity embedded in the built SDK artifact. */
|
|
90
|
+
declare const SDK_BUILD_METADATA: SdkBuildMetadata;
|
|
91
|
+
|
|
67
92
|
declare const isValidReferrerFeeRecipient: (value: string) => value is `0x${string}`;
|
|
68
93
|
declare const isValidReferrerFeeBps: (value: number) => boolean;
|
|
69
94
|
declare const assertValidReferrerFeeConfig: (config: ReferrerFeeConfig | undefined, context: "getQuote" | "getQuotesBestByPlatform" | "signalIntent") => ReferrerFeeConfig | undefined;
|
|
@@ -707,7 +732,7 @@ declare function resolvePaymentMethodHashFromCatalog(processorName: string, cata
|
|
|
707
732
|
declare function resolvePaymentMethodNameFromHash(hash: string, catalog: PaymentMethodCatalog): string | undefined;
|
|
708
733
|
|
|
709
734
|
/**
|
|
710
|
-
* Exact client-side counterparts of the
|
|
735
|
+
* Exact client-side counterparts of the DisputeProtectionPolicy admission rules.
|
|
711
736
|
*
|
|
712
737
|
* Kept inside the public SDK so its generated declarations and runtime remain
|
|
713
738
|
* self-contained for external consumers. The deployed policy (contracts-v2
|
|
@@ -725,16 +750,16 @@ type IntegerLike = bigint | number | string | {
|
|
|
725
750
|
type RiskMode = 'UNBONDED' | 'STAKE_BACKED';
|
|
726
751
|
declare const RISK_BPS_DENOMINATOR = 10000n;
|
|
727
752
|
/** Full-gross coverage required at admission; zero when the method is unbonded. */
|
|
728
|
-
declare function calculateRequiredCoverage(amount: IntegerLike,
|
|
729
|
-
/** Maximum
|
|
753
|
+
declare function calculateRequiredCoverage(amount: IntegerLike, disputeProtected: boolean): bigint;
|
|
754
|
+
/** Maximum dispute-protected intent amount that can use existing stake. */
|
|
730
755
|
declare function calculateStakeBackedCapacity(freeStake: IntegerLike): bigint;
|
|
731
756
|
/**
|
|
732
|
-
* Exact admission mode under the
|
|
757
|
+
* Exact admission mode under the DisputeProtectionPolicy. `disputeProtected` means the
|
|
733
758
|
* payment method carries a non-zero risk window; the policy additionally
|
|
734
|
-
* requires the deposit to have
|
|
759
|
+
* requires the deposit to have dispute protection enabled and admissions unpaused,
|
|
735
760
|
* both of which reject the intent outright rather than changing its mode.
|
|
736
761
|
*/
|
|
737
|
-
declare function selectRiskMode(amount: IntegerLike, freeStake: IntegerLike,
|
|
762
|
+
declare function selectRiskMode(amount: IntegerLike, freeStake: IntegerLike, disputeProtected: boolean): RiskMode;
|
|
738
763
|
|
|
739
764
|
/**
|
|
740
765
|
* Ensure a value is 32 bytes hex (0x + 64 nibbles). If ascii, keccak256 by default when hash=true.
|
|
@@ -924,4 +949,4 @@ declare class ContractError extends ZKP2PError {
|
|
|
924
949
|
constructor(message: string, details?: unknown);
|
|
925
950
|
}
|
|
926
951
|
|
|
927
|
-
export { APIError, ApiAdapterOptions, AttestationServiceIdentityResponse, AttestationServiceSellerCredentialUploadResponse, AttestationServiceSellerVerifyResponse, BASE_BUILDER_CODE, BestByPlatformResponse, BuyerTeeSessionMaterialEncryptionInput, BuyerTeeVerifyPaymentBody, CHAINLINK_ORACLE_ADAPTER, CHAINLINK_ORACLE_FEEDS, ContractError, ContractRouter, type ContractRouterConfig, CreateReferralCodeRequest, CreateReferralCodeResponse, CuratorSellerCredentialUploadResponse, CurrencyType, DEFAULT_ORACLE_MAX_STALENESS_SECONDS, 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, 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, SPREAD_ORACLE_FEEDS, SUPPORTED_CHAIN_IDS, SellerCredentialAttestationRuntime, SellerCredentialBundle, SellerCredentialUploadInput, SellerCredentialUploadPlatform, 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, ZKP2PError, ZKP2P_ANDROID_REFERRER, ZKP2P_IOS_REFERRER, apiCreateReferralCode, apiCreateSellerCredentialBundle, apiGetDepositBundle, apiGetOrderbook, apiGetOrderbookTable, apiGetOwnerDeposits, apiGetPayeeDetails, apiGetQuote, apiGetQuotesBestByPlatform, apiGetReferralDashboard, apiGetReferralEarnings, apiLookupReferralCode, apiPostDepositDetails, apiRedeemReferralCode, apiRequestIdentityAttestation, apiSignIntentV3, apiSignIntentV3Raw, apiUpdateReferralCode, apiUploadGoogleOAuthSellerCredential, apiUploadSellerCredentialBundle, apiValidatePayeeDetails, apiVerifyBuyerTeePayment, appendAttributionToCalldata, asciiToBytes32, assertValidReferrerFeeConfig, calculateRequiredCoverage, calculateStakeBackedCapacity, convertDepositsForLiquidity, convertIndexerDepositToEscrowView, convertIndexerIntentsToEscrowViews, createCompositeDepositId, createEncryptedBuyerTeeSessionMaterial, createPeerExtensionSdk, encodePythAdapterConfig, encodeSpreadOracleAdapterConfig, encodeWithAttribution, ensureBytes32, getAttributionDataSuffix, getPeerExtensionState, getSpreadOracleConfig, isPeerExtensionAvailable, isValidReferralCode, isValidReferrerFeeBps, isValidReferrerFeeRecipient, logger, normalizeReferralCode, openPeerExtensionInstallPage, parseReferrerFeeConfig, peerExtensionSdk, referrerFeeConfigToPreciseUnits, resolveFiatCurrencyBytes32, resolvePaymentMethodHash, resolvePaymentMethodHashFromCatalog, resolvePaymentMethodNameFromHash, selectRiskMode, sendTransactionWithAttribution, setLogLevel, validateOracleFeedsOnChain };
|
|
952
|
+
export { APIError, ApiAdapterOptions, AttestationServiceIdentityResponse, AttestationServiceSellerCredentialUploadResponse, AttestationServiceSellerVerifyResponse, BASE_BUILDER_CODE, BestByPlatformResponse, BuyerTeeSessionMaterialEncryptionInput, BuyerTeeVerifyPaymentBody, CHAINLINK_ORACLE_ADAPTER, CHAINLINK_ORACLE_FEEDS, ContractError, ContractRouter, type ContractRouterConfig, CreateReferralCodeRequest, CreateReferralCodeResponse, CuratorSellerCredentialUploadResponse, CurrencyType, DEFAULT_ORACLE_MAX_STALENESS_SECONDS, 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, 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, SDK_BUILD_METADATA, SPREAD_ORACLE_FEEDS, SUPPORTED_CHAIN_IDS, type SdkBuildMetadata, SellerCredentialAttestationRuntime, SellerCredentialBundle, SellerCredentialUploadInput, SellerCredentialUploadPlatform, 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, ZKP2PError, ZKP2P_ANDROID_REFERRER, ZKP2P_IOS_REFERRER, apiCreateReferralCode, apiCreateSellerCredentialBundle, apiGetDepositBundle, apiGetOrderbook, apiGetOrderbookTable, apiGetOwnerDeposits, apiGetPayeeDetails, apiGetQuote, apiGetQuotesBestByPlatform, apiGetReferralDashboard, apiGetReferralEarnings, apiLookupReferralCode, apiPostDepositDetails, apiRedeemReferralCode, apiRequestIdentityAttestation, apiSignIntentV3, apiSignIntentV3Raw, apiUpdateReferralCode, apiUploadGoogleOAuthSellerCredential, apiUploadSellerCredentialBundle, apiValidatePayeeDetails, apiVerifyBuyerTeePayment, appendAttributionToCalldata, asciiToBytes32, assertValidReferrerFeeConfig, calculateRequiredCoverage, calculateStakeBackedCapacity, convertDepositsForLiquidity, convertIndexerDepositToEscrowView, convertIndexerIntentsToEscrowViews, createCompositeDepositId, createEncryptedBuyerTeeSessionMaterial, createPeerExtensionSdk, encodePythAdapterConfig, encodeSpreadOracleAdapterConfig, encodeWithAttribution, ensureBytes32, getAttributionDataSuffix, getPeerExtensionState, getSpreadOracleConfig, isPeerExtensionAvailable, isValidReferralCode, isValidReferrerFeeBps, isValidReferrerFeeRecipient, logger, normalizeReferralCode, openPeerExtensionInstallPage, parseReferrerFeeConfig, peerExtensionSdk, referrerFeeConfigToPreciseUnits, resolveFiatCurrencyBytes32, resolvePaymentMethodHash, resolvePaymentMethodHashFromCatalog, resolvePaymentMethodNameFromHash, selectRiskMode, sendTransactionWithAttribution, setLogLevel, validateOracleFeedsOnChain };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
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, Q as QuotesBestByPlatformRequest, t as BestByPlatformResponse, V as ValidatePayeeDetailsRequest, u as ValidatePayeeDetailsResponse, P as PostDepositDetailsRequest, v as PostDepositDetailsResponse, w as GetPayeeDetailsRequest, x as GetPayeeDetailsResponse, y as GetOwnerDepositsRequest, z as GetOwnerDepositsResponse, E as GetDepositBundleParams, F as GetDepositBundleResponse, H as GetOrderbookParams, J as GetOrderbookResponse, K as GetOrderbookTableResponse, L as QuoteRequest, M as QuoteResponse, N as CuratorMetadata, O as CurrencyType, T as PaymentMethodCatalog, W as TxOverrides } from './vaultUtils-
|
|
2
|
-
export {
|
|
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, Q as QuotesBestByPlatformRequest, t as BestByPlatformResponse, V as ValidatePayeeDetailsRequest, u as ValidatePayeeDetailsResponse, P as PostDepositDetailsRequest, v as PostDepositDetailsResponse, w as GetPayeeDetailsRequest, x as GetPayeeDetailsResponse, y as GetOwnerDepositsRequest, z as GetOwnerDepositsResponse, E as GetDepositBundleParams, F as GetDepositBundleResponse, H as GetOrderbookParams, J as GetOrderbookResponse, K as GetOrderbookTableResponse, L as QuoteRequest, M as QuoteResponse, N as CuratorMetadata, O as CurrencyType, T as PaymentMethodCatalog, W as TxOverrides } from './vaultUtils-Dla_eG15.js';
|
|
2
|
+
export { dG as AccessPolicyDiff, dy as AccessPolicyOperations, dH as AccessPolicyOrdering, dI as AccessPolicyPlan, dJ as AccessPolicyPlanStep, dK as AccessPolicyState, dz as AccessPolicyUnsupportedError, dL as AccessPolicyViolation, aj as ActionCallback, aN as ApiDeposit, aU as ApiIntentStatus, bs as AttestationServiceSellerCredentialProbeResponse, ah as AuthorizationTokenProvider, dv as BatchResult, au as BestByPlatformResponseObject, bt as BuyerTeePaymentParams, bu as BuyerTeePaymentProofInput, bv as BuyerTeeSessionMaterial, a3 as CancelIntentMethodParams, at as CancelIntentParams, ba as CashAppCredentialUploadInput, b3 as CashAppSessionMaterial, an as CreateDepositConversionRate, am as CreateDepositParams, bw as CuratorSellerCredentialStatusResponse, bx as CuratorSellerVerifyResponse, cP as Currency, cW as CurrencyData, d5 as DISPUTE_PROTECTION_POLICY_ABI, du as DelegationDepositTarget, ds as DelegationRoute, dt as DelegationState, df as Deposit, dh as DepositCurrency, bQ as DepositIntentStatistics, aQ as DepositStatus, aO as DepositVerifier, aP as DepositVerifierCurrency, bN as DepositVerifierData, de as DepositView, cl as DisputeProtectionIntentPage, cm as DisputeProtectionIntentPageParams, a9 as DisputeProtectionReadinessOptions, aa as DisputeProtectionReadinessResult, aJ as FiatResponse, br as FulfillIntentAttestationResponse, a2 as FulfillIntentMethodParams, ar as FulfillIntentParams, av as GetBestByPlatformResponse, aw as GetBestByPlatformResponseObject, aR as GetDepositByIdRequest, aS as GetDepositByIdResponse, aZ as GetIntentByHashRequest, a_ as GetIntentByHashResponse, aX as GetIntentsByDepositRequest, aY as GetIntentsByDepositResponse, aA as GetNearbyQuote, aB as GetNearbySuggestions, aV as GetOwnerIntentsRequest, aW as GetOwnerIntentsResponse, ax as GetPlatformQuote, aC as GetQuoteResponse, aD as GetQuoteResponseObject, aE as GetQuoteSingleResponse, bC as GetSellerCredentialStatusParams, bG as IdentityAttestationActionType, bH as IdentityAttestationOutput, bI as IdentityAttestationOutputFor, bJ as IdentityAttestationParams, cn as IndexedDisputeProtectionIntent, co as IndexedPage, cp as IndexedPageAsOf, cq as IndexedRiskWindow, cr as IndexedStakeActivity, cs as IndexedStakeLock, ct as IndexedStakingRowFreshness, cu as IndexedStakingState, cv as IndexedStakingStateParams, cw as IndexedTakerAuthorization, bW as IndexerClient, cJ as IndexerDeploymentEnv, c2 as IndexerDeposit, cj as IndexerDepositDailySnapshot, cA as IndexerDepositFilter, ci as IndexerDepositFundActivity, ck as IndexerDepositFundActivityType, cD as IndexerDepositOrderDirection, cC as IndexerDepositOrderField, cB as IndexerDepositPagination, c5 as IndexerDepositPaymentMethod, bY as IndexerDepositService, cM as IndexerFulfillmentAndPaymentResponse, cK as IndexerFulfillmentRecord, c3 as IndexerIntentFulfilled, c4 as IndexerIntentFulfillmentAmounts, c7 as IndexerIntentStatus, cb as IndexerManagerAggregateStats, cd as IndexerManagerDailySnapshot, cc as IndexerManagerStats, cg as IndexerManualRateUpdate, c6 as IndexerMethodCurrency, ch as IndexerOracleConfigUpdate, cL as IndexerPaymentVerifiedRecord, c8 as IndexerRateManager, ca as IndexerRateManagerDelegation, cG as IndexerRateManagerDelegationPagination, cf as IndexerRateManagerDetail, cE as IndexerRateManagerFilter, ce as IndexerRateManagerListItem, cI as IndexerRateManagerOrderDirection, cH as IndexerRateManagerOrderField, cF as IndexerRateManagerPagination, c9 as IndexerRateManagerRate, bZ as IndexerRateManagerService, c0 as IndexerStakingService, aT as Intent, af as IntentGuardianErrorCode, ab as IntentGuardianPolicy, ac as IntentGuardianQuote, ad as IntentGuardianWriteFunction, ae as IntentGuardianWriteParams, dj as IntentView, dB as MAX_ADDRESSES_PER_CALL, dA as MAX_GROUPS_PER_DEPOSIT, dC as MAX_WHITELISTED_ADDRESSES, bK as MakerIdentityAttestationRequestBody, bL as MakerIdentityPlatform, aL as NearbyQuote, aM as NearbySuggestions, d4 as ORCHESTRATOR_V3_ABI, Z as OfframpClient, bM as OnchainCurrency, dk as OnchainIntent, bP as OrderStats, bU as OrderbookEntry, bV as OrderbookTableRow, cN as PAYMENT_PLATFORMS, b8 as PayPalGoogleOAuthSellerCredentialUploadBody, dg as PaymentMethodData, cO as PaymentPlatformType, ay as PlatformQuote, bO as PreparedTransaction, aI as QuoteFeesResponse, aH as QuoteIntentResponse, az as QuotePreference, aF as QuoteResponseObject, aG as QuoteSingleResponse, ao as Range, $ as RedeemReferralCodeSignatureOptions, X as ReferralBearerWriteOptions, di as ReferralFee, Y as ReferralReadOptions, ak as ReferralRedemption, al as ReferralSignatureBody, _ as ReferralSignatureOptions, a$ as RegisterPayeeDetailsRequest, b0 as RegisterPayeeDetailsResponse, by as RegisteredSellerCredentialPlatform, bA as RegisteredUploadSellerCredentialParams, as as ReleaseFundsToPayerParams, d7 as RuntimeEnv, d6 as STAKE_VAULT_ABI, bp as SellerAttestationOutput, bd as SellerCiphertextBundle, bi as SellerCredentialBundleUpload, bq as SellerCredentialProbeResponse, bk as SellerCredentialStatus, bj as SellerCredentialStatusValue, bc as SellerCredentialUploadInputByPlatform, bo as SellerPaymentTypedDataValue, b1 as SellerPlatform, bh as SellerProbeInput, be as SellerSignedCiphertextBundle, bm as SellerTypedDataField, bn as SellerTypedDataSpec, bg as SellerVerifyInput, bf as SellerVerifyIntentDetails, bl as SellerVerifyProxyBody, dx as SendBatchFn, dw as SendTransactionFn, a1 as SignalIntentMethodParams, aq as SignalIntentParams, a0 as SignalIntentReferralFee, cx as StakeActivityPageParams, bS as StakeEnvironment, cy as StakeLockPageParams, a6 as StakeVaultState, a7 as StakeVaultWriteFunction, a8 as StakeVaultWriteParams, cz as StakingEntityIds, bT as TakerStakeBalances, ai as TimeoutConfig, aK as TokenResponse, a4 as UpdateReferralCodeSignatureOptions, bE as UploadGoogleOAuthSellerCredentialParams, bD as UploadPayPalGoogleOAuthSellerCredentialParams, bB as UploadSellerCredentialOptions, bz as UploadSellerCredentialParams, bR as UsdcAmount, d9 as V2ContractAbis, d8 as V2ContractAddresses, b9 as VenmoCredentialUploadInput, b2 as VenmoSessionMaterial, bF as VerifySellerPaymentParams, bb as WiseCredentialUploadInput, b5 as WiseProfileInfo, b7 as WiseProfileNotFound, b6 as WiseProfileSelectionRequired, b4 as WiseSessionMaterial, ap as WithdrawDepositParams, dl as ZERO_RATE_MANAGER_ID, Z as Zkp2pClient, a5 as Zkp2pClientOptions, b$ as buildStakingEntityIds, dr as classifyDelegationState, ag as classifyIntentGuardianError, b_ as compareEventCursorIdsByRecency, cQ as currencyInfo, bX as defaultIndexerEndpoint, dD as diffAccessPolicy, dc as enrichPvDepositView, dd as enrichPvIntentView, c1 as fetchIndexerFulfillmentAndPayment, cX as getContracts, cT as getCurrencyCodeFromHash, cS as getCurrencyInfoFromCountryCode, cR as getCurrencyInfoFromHash, dq as getDelegationRoute, d1 as getDisputeProtectionPolicyContract, d3 as getGatingServiceAddress, cY as getIntentGuardianContract, d0 as getOrchestratorV3Contract, d2 as getPaymentMethodsCatalog, c_ as getRateManagerContracts, c$ as getStakeVaultContract, cZ as hasIntentGuardian, cU as isSupportedCurrencyHash, dm as isZeroRateManagerId, cV as mapConversionRatesToOnchainMinRate, dE as normalizeAccessPolicyState, dn as normalizeRateManagerId, dp as normalizeRegistry, da as parseDepositView, db as parseIntentView, dF as planAccessPolicyUpdate } from './vaultUtils-Dla_eG15.js';
|
|
3
3
|
import { Address, Hash, Hex, WalletClient } from 'viem';
|
|
4
4
|
import { Abi } from 'abitype';
|
|
5
5
|
export { IdentityActionType, IdentityActionTypeByPlatform, IdentityParamsByPlatform, IdentityPlatform, NitroAttestationClient, NitroAttestationClientOptions, NitroAttestationEnvironment, VerifiedAttestation, VerifiedAttestationPayload, createNitroAttestationClient } from '@zkp2p/zkp2p-attestation';
|
|
@@ -64,6 +64,31 @@ interface EscrowIntentView {
|
|
|
64
64
|
deposit: EscrowDepositView;
|
|
65
65
|
}
|
|
66
66
|
|
|
67
|
+
type SdkBuildMetadata = {
|
|
68
|
+
readonly schemaVersion: 1;
|
|
69
|
+
readonly source: {
|
|
70
|
+
readonly repository: 'zkp2p/zkp2p-clients';
|
|
71
|
+
readonly commitSha: string;
|
|
72
|
+
readonly kind: 'development' | 'github';
|
|
73
|
+
readonly distributable: boolean;
|
|
74
|
+
};
|
|
75
|
+
readonly sdkPackageVersion: string;
|
|
76
|
+
readonly contractsPackageVersion: string;
|
|
77
|
+
readonly indexerSchemaPackageVersion: string;
|
|
78
|
+
readonly activeDisputeStack: {
|
|
79
|
+
readonly base: {
|
|
80
|
+
readonly version: 1;
|
|
81
|
+
readonly selectionHash: string;
|
|
82
|
+
};
|
|
83
|
+
readonly baseStaging: {
|
|
84
|
+
readonly version: 1;
|
|
85
|
+
readonly selectionHash: string;
|
|
86
|
+
};
|
|
87
|
+
};
|
|
88
|
+
};
|
|
89
|
+
/** Immutable source and protocol identity embedded in the built SDK artifact. */
|
|
90
|
+
declare const SDK_BUILD_METADATA: SdkBuildMetadata;
|
|
91
|
+
|
|
67
92
|
declare const isValidReferrerFeeRecipient: (value: string) => value is `0x${string}`;
|
|
68
93
|
declare const isValidReferrerFeeBps: (value: number) => boolean;
|
|
69
94
|
declare const assertValidReferrerFeeConfig: (config: ReferrerFeeConfig | undefined, context: "getQuote" | "getQuotesBestByPlatform" | "signalIntent") => ReferrerFeeConfig | undefined;
|
|
@@ -707,7 +732,7 @@ declare function resolvePaymentMethodHashFromCatalog(processorName: string, cata
|
|
|
707
732
|
declare function resolvePaymentMethodNameFromHash(hash: string, catalog: PaymentMethodCatalog): string | undefined;
|
|
708
733
|
|
|
709
734
|
/**
|
|
710
|
-
* Exact client-side counterparts of the
|
|
735
|
+
* Exact client-side counterparts of the DisputeProtectionPolicy admission rules.
|
|
711
736
|
*
|
|
712
737
|
* Kept inside the public SDK so its generated declarations and runtime remain
|
|
713
738
|
* self-contained for external consumers. The deployed policy (contracts-v2
|
|
@@ -725,16 +750,16 @@ type IntegerLike = bigint | number | string | {
|
|
|
725
750
|
type RiskMode = 'UNBONDED' | 'STAKE_BACKED';
|
|
726
751
|
declare const RISK_BPS_DENOMINATOR = 10000n;
|
|
727
752
|
/** Full-gross coverage required at admission; zero when the method is unbonded. */
|
|
728
|
-
declare function calculateRequiredCoverage(amount: IntegerLike,
|
|
729
|
-
/** Maximum
|
|
753
|
+
declare function calculateRequiredCoverage(amount: IntegerLike, disputeProtected: boolean): bigint;
|
|
754
|
+
/** Maximum dispute-protected intent amount that can use existing stake. */
|
|
730
755
|
declare function calculateStakeBackedCapacity(freeStake: IntegerLike): bigint;
|
|
731
756
|
/**
|
|
732
|
-
* Exact admission mode under the
|
|
757
|
+
* Exact admission mode under the DisputeProtectionPolicy. `disputeProtected` means the
|
|
733
758
|
* payment method carries a non-zero risk window; the policy additionally
|
|
734
|
-
* requires the deposit to have
|
|
759
|
+
* requires the deposit to have dispute protection enabled and admissions unpaused,
|
|
735
760
|
* both of which reject the intent outright rather than changing its mode.
|
|
736
761
|
*/
|
|
737
|
-
declare function selectRiskMode(amount: IntegerLike, freeStake: IntegerLike,
|
|
762
|
+
declare function selectRiskMode(amount: IntegerLike, freeStake: IntegerLike, disputeProtected: boolean): RiskMode;
|
|
738
763
|
|
|
739
764
|
/**
|
|
740
765
|
* Ensure a value is 32 bytes hex (0x + 64 nibbles). If ascii, keccak256 by default when hash=true.
|
|
@@ -924,4 +949,4 @@ declare class ContractError extends ZKP2PError {
|
|
|
924
949
|
constructor(message: string, details?: unknown);
|
|
925
950
|
}
|
|
926
951
|
|
|
927
|
-
export { APIError, ApiAdapterOptions, AttestationServiceIdentityResponse, AttestationServiceSellerCredentialUploadResponse, AttestationServiceSellerVerifyResponse, BASE_BUILDER_CODE, BestByPlatformResponse, BuyerTeeSessionMaterialEncryptionInput, BuyerTeeVerifyPaymentBody, CHAINLINK_ORACLE_ADAPTER, CHAINLINK_ORACLE_FEEDS, ContractError, ContractRouter, type ContractRouterConfig, CreateReferralCodeRequest, CreateReferralCodeResponse, CuratorSellerCredentialUploadResponse, CurrencyType, DEFAULT_ORACLE_MAX_STALENESS_SECONDS, 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, 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, SPREAD_ORACLE_FEEDS, SUPPORTED_CHAIN_IDS, SellerCredentialAttestationRuntime, SellerCredentialBundle, SellerCredentialUploadInput, SellerCredentialUploadPlatform, 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, ZKP2PError, ZKP2P_ANDROID_REFERRER, ZKP2P_IOS_REFERRER, apiCreateReferralCode, apiCreateSellerCredentialBundle, apiGetDepositBundle, apiGetOrderbook, apiGetOrderbookTable, apiGetOwnerDeposits, apiGetPayeeDetails, apiGetQuote, apiGetQuotesBestByPlatform, apiGetReferralDashboard, apiGetReferralEarnings, apiLookupReferralCode, apiPostDepositDetails, apiRedeemReferralCode, apiRequestIdentityAttestation, apiSignIntentV3, apiSignIntentV3Raw, apiUpdateReferralCode, apiUploadGoogleOAuthSellerCredential, apiUploadSellerCredentialBundle, apiValidatePayeeDetails, apiVerifyBuyerTeePayment, appendAttributionToCalldata, asciiToBytes32, assertValidReferrerFeeConfig, calculateRequiredCoverage, calculateStakeBackedCapacity, convertDepositsForLiquidity, convertIndexerDepositToEscrowView, convertIndexerIntentsToEscrowViews, createCompositeDepositId, createEncryptedBuyerTeeSessionMaterial, createPeerExtensionSdk, encodePythAdapterConfig, encodeSpreadOracleAdapterConfig, encodeWithAttribution, ensureBytes32, getAttributionDataSuffix, getPeerExtensionState, getSpreadOracleConfig, isPeerExtensionAvailable, isValidReferralCode, isValidReferrerFeeBps, isValidReferrerFeeRecipient, logger, normalizeReferralCode, openPeerExtensionInstallPage, parseReferrerFeeConfig, peerExtensionSdk, referrerFeeConfigToPreciseUnits, resolveFiatCurrencyBytes32, resolvePaymentMethodHash, resolvePaymentMethodHashFromCatalog, resolvePaymentMethodNameFromHash, selectRiskMode, sendTransactionWithAttribution, setLogLevel, validateOracleFeedsOnChain };
|
|
952
|
+
export { APIError, ApiAdapterOptions, AttestationServiceIdentityResponse, AttestationServiceSellerCredentialUploadResponse, AttestationServiceSellerVerifyResponse, BASE_BUILDER_CODE, BestByPlatformResponse, BuyerTeeSessionMaterialEncryptionInput, BuyerTeeVerifyPaymentBody, CHAINLINK_ORACLE_ADAPTER, CHAINLINK_ORACLE_FEEDS, ContractError, ContractRouter, type ContractRouterConfig, CreateReferralCodeRequest, CreateReferralCodeResponse, CuratorSellerCredentialUploadResponse, CurrencyType, DEFAULT_ORACLE_MAX_STALENESS_SECONDS, 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, 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, SDK_BUILD_METADATA, SPREAD_ORACLE_FEEDS, SUPPORTED_CHAIN_IDS, type SdkBuildMetadata, SellerCredentialAttestationRuntime, SellerCredentialBundle, SellerCredentialUploadInput, SellerCredentialUploadPlatform, 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, ZKP2PError, ZKP2P_ANDROID_REFERRER, ZKP2P_IOS_REFERRER, apiCreateReferralCode, apiCreateSellerCredentialBundle, apiGetDepositBundle, apiGetOrderbook, apiGetOrderbookTable, apiGetOwnerDeposits, apiGetPayeeDetails, apiGetQuote, apiGetQuotesBestByPlatform, apiGetReferralDashboard, apiGetReferralEarnings, apiLookupReferralCode, apiPostDepositDetails, apiRedeemReferralCode, apiRequestIdentityAttestation, apiSignIntentV3, apiSignIntentV3Raw, apiUpdateReferralCode, apiUploadGoogleOAuthSellerCredential, apiUploadSellerCredentialBundle, apiValidatePayeeDetails, apiVerifyBuyerTeePayment, appendAttributionToCalldata, asciiToBytes32, assertValidReferrerFeeConfig, calculateRequiredCoverage, calculateStakeBackedCapacity, convertDepositsForLiquidity, convertIndexerDepositToEscrowView, convertIndexerIntentsToEscrowViews, createCompositeDepositId, createEncryptedBuyerTeeSessionMaterial, createPeerExtensionSdk, encodePythAdapterConfig, encodeSpreadOracleAdapterConfig, encodeWithAttribution, ensureBytes32, getAttributionDataSuffix, getPeerExtensionState, getSpreadOracleConfig, isPeerExtensionAvailable, isValidReferralCode, isValidReferrerFeeBps, isValidReferrerFeeRecipient, logger, normalizeReferralCode, openPeerExtensionInstallPage, parseReferrerFeeConfig, peerExtensionSdk, referrerFeeConfigToPreciseUnits, resolveFiatCurrencyBytes32, resolvePaymentMethodHash, resolvePaymentMethodHashFromCatalog, resolvePaymentMethodNameFromHash, selectRiskMode, sendTransactionWithAttribution, setLogLevel, validateOracleFeedsOnChain };
|