@zkp2p/sdk 0.14.9 → 0.14.11-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 +19 -2
- package/dist/build-metadata.json +2 -2
- package/dist/chunk-IYYNDUDP.mjs +12 -0
- package/dist/chunk-IYYNDUDP.mjs.map +1 -0
- package/dist/{chunk-4GCGSZA2.mjs → chunk-QDSNHQGS.mjs} +3 -3
- package/dist/{chunk-4GCGSZA2.mjs.map → chunk-QDSNHQGS.mjs.map} +1 -1
- package/dist/{currency-AGVR2YDU.mjs → currency-224A3JT3.mjs} +3 -3
- package/dist/{currency-AGVR2YDU.mjs.map → currency-224A3JT3.mjs.map} +1 -1
- package/dist/index.cjs +93 -31
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +27 -7
- package/dist/index.d.ts +27 -7
- package/dist/index.mjs +94 -42
- package/dist/index.mjs.map +1 -1
- package/dist/protocolViewerParsers-XBMV53ND.mjs +5 -0
- package/dist/{protocolViewerParsers-O5WTGTUK.mjs.map → protocolViewerParsers-XBMV53ND.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-RXDD3LQG.mjs → timeout-G23BY4BS.mjs} +3 -3
- package/dist/{timeout-RXDD3LQG.mjs.map → timeout-G23BY4BS.mjs.map} +1 -1
- package/dist/{vaultUtils-PRhZBjwX.d.mts → vaultUtils-rtYn04WQ.d.mts} +9 -7
- package/dist/{vaultUtils-PRhZBjwX.d.ts → vaultUtils-rtYn04WQ.d.ts} +9 -7
- package/package.json +1 -1
- package/dist/chunk-ERJIIFAV.mjs +0 -12
- package/dist/chunk-ERJIIFAV.mjs.map +0 -1
- package/dist/protocolViewerParsers-O5WTGTUK.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, 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 { dN as AccessPolicyOperations, dO as AccessPolicyUnsupportedError, ap as ActionCallback, b8 as AmazonPayCredentialUploadInput, b9 as AmazonPayIdentityAttestationOutput, aU as ApiDeposit, a$ as ApiIntentStatus, bC as AttestationServiceSellerCredentialProbeResponse, an as AuthorizationTokenProvider, dK as BatchResult, aA as BestByPlatformResponseObject, bD as BuyerTeePaymentParams, bE as BuyerTeePaymentProofInput, bF as BuyerTeeSessionMaterial, a6 as CancelIntentMethodParams, az as CancelIntentParams, bk as CashAppCredentialUploadInput, bb as CashAppSessionMaterial, at as CreateDepositConversionRate, as as CreateDepositParams, bG as CuratorSellerVerifyResponse, d2 as Currency, d9 as CurrencyData, dk as DISPUTE_PROTECTION_POLICY_ABI, dJ as DelegationDepositTarget, dH as DelegationRoute, dI as DelegationState, dv as Deposit, dx as DepositCurrency, c0 as DepositIntentStatistics, aX as DepositStatus, aV as DepositVerifier, aW as DepositVerifierCurrency, bZ as DepositVerifierData, du as DepositView, ad as DisputeAttestationConfig, cx as DisputeProtectionIntentPage, cy as DisputeProtectionIntentPageParams, ae as DisputeProtectionReadinessOptions, af as DisputeProtectionReadinessResult, aQ as FiatResponse, bB as FulfillIntentAttestationResponse, a5 as FulfillIntentMethodParams, ax as FulfillIntentParams, aB as GetBestByPlatformResponse, aC as GetBestByPlatformResponseObject, aY as GetDepositByIdRequest, aZ as GetDepositByIdResponse, b4 as GetIntentByHashRequest, b5 as GetIntentByHashResponse, b2 as GetIntentsByDepositRequest, b3 as GetIntentsByDepositResponse, aG as GetNearbyQuote, aH as GetNearbySuggestions, b0 as GetOwnerIntentsRequest, b1 as GetOwnerIntentsResponse, aD as GetPlatformQuote, aI as GetQuoteResponse, aJ as GetQuoteResponseObject, aK as GetQuoteSingleResponse, bL as GetSellerCredentialStatusParams, dP as ICloudMailCredentialError, dR as ICloudMailCredentialErrorReason, dS as ICloudMailSellerPlatform, bS as IdentityAttestationActionType, bT as IdentityAttestationOutput, bU as IdentityAttestationOutputFor, bV as IdentityAttestationParams, cz as IndexedDisputeProtectionIntent, cA as IndexedPage, cB as IndexedPageAsOf, cC as IndexedRiskWindow, cD as IndexedStakeActivity, cF as IndexedStakeLock, cE as IndexedStakeTotals, cG as IndexedStakingRowFreshness, cH as IndexedStakingState, cI as IndexedStakingStateParams, cJ as IndexedTakerAuthorization, cK as IndexedTakerStakeAuthorization, c6 as IndexerClient, cY as IndexerDeploymentEnv, ce as IndexerDeposit, cv as IndexerDepositDailySnapshot, cP as IndexerDepositFilter, cu as IndexerDepositFundActivity, cw as IndexerDepositFundActivityType, cS as IndexerDepositOrderDirection, cR as IndexerDepositOrderField, cQ as IndexerDepositPagination, ch as IndexerDepositPaymentMethod, c8 as IndexerDepositService, c$ as IndexerFulfillmentAndPaymentResponse, cZ as IndexerFulfillmentRecord, cf as IndexerIntentFulfilled, cg as IndexerIntentFulfillmentAmounts, cj as IndexerIntentStatus, cn as IndexerManagerAggregateStats, cp as IndexerManagerDailySnapshot, co as IndexerManagerStats, cs as IndexerManualRateUpdate, ci as IndexerMethodCurrency, ct as IndexerOracleConfigUpdate, c_ as IndexerPaymentVerifiedRecord, ck as IndexerRateManager, cm as IndexerRateManagerDelegation, cV as IndexerRateManagerDelegationPagination, cr as IndexerRateManagerDetail, cT as IndexerRateManagerFilter, cq as IndexerRateManagerListItem, cX as IndexerRateManagerOrderDirection, cW as IndexerRateManagerOrderField, cU as IndexerRateManagerPagination, cl as IndexerRateManagerRate, c9 as IndexerRateManagerService, cc as IndexerStakingService, a_ as Intent, al as IntentGuardianErrorCode, ah as IntentGuardianPolicy, ai as IntentGuardianQuote, aj as IntentGuardianWriteFunction, ak as IntentGuardianWriteParams, dz as IntentView, bW as MakerIdentityAttestationRequestBody, bX as MakerIdentityPlatform, aS as NearbyQuote, aT as NearbySuggestions, dj as ORCHESTRATOR_V3_ABI, _ as OfframpClient, bY as OnchainCurrency, dA as OnchainIntent, b$ as OrderStats, c4 as OrderbookEntry, c5 as OrderbookTableRow, d0 as PAYMENT_PLATFORMS, bg as PayPalGoogleOAuthSellerCredentialUploadBody, dw as PaymentMethodData, d1 as PaymentPlatformType, aE as PlatformQuote, b_ as PreparedTransaction, aP as QuoteFeesResponse, aO as QuoteIntentResponse, aM as QuoteMakerIdentity, aF as QuotePreference, aL as QuoteResponseObject, aN as QuoteSingleResponse, au as Range, ag as ReadDisputeAttestationConfigParams, a2 as RedeemReferralCodeSignatureOptions, $ as ReferralBearerWriteOptions, dy as ReferralFee, a0 as ReferralReadOptions, aq as ReferralRedemption, ar as ReferralSignatureBody, a1 as ReferralSignatureOptions, b6 as RegisterPayeeDetailsRequest, b7 as RegisterPayeeDetailsResponse, bH as RegisteredSellerCredentialPlatform, bJ as RegisteredUploadSellerCredentialParams, ay as ReleaseFundsToPayerParams, dm as RuntimeEnv, dl as STAKE_VAULT_ABI, bz as SellerAttestationOutput, bn as SellerCiphertextBundle, bs as SellerCredentialBundleUpload, bA as SellerCredentialProbeResponse, bu as SellerCredentialStatus, bt as SellerCredentialStatusValue, bm as SellerCredentialUploadInputByPlatform, by as SellerPaymentTypedDataValue, br as SellerProbeInput, bo as SellerSignedCiphertextBundle, bw as SellerTypedDataField, bx as SellerTypedDataSpec, bq as SellerVerifyInput, bp as SellerVerifyIntentDetails, bv as SellerVerifyProxyBody, dM as SendBatchFn, dL as SendTransactionFn, a4 as SignalIntentMethodParams, aw as SignalIntentParams, a3 as SignalIntentReferralFee, cL as StakeActivityPageParams, c2 as StakeEnvironment, cM as StakeLockPageParams, a9 as StakeVaultState, aa as StakeVaultWriteFunction, ab as StakeVaultWriteParams, cN as StakingEntityIds, cO as TakerStakeAuthorizationPageParams, c3 as TakerStakeBalances, ao as TimeoutConfig, aR as TokenResponse, a7 as UpdateReferralCodeSignatureOptions, bP as UploadGoogleOAuthSellerCredentialParams, dT as UploadICloudMailSellerCredentialOptions, dU as UploadICloudMailSellerCredentialParams, bQ as UploadMicrosoftOAuthSellerCredentialParams, bM as UploadPayPalGoogleOAuthSellerCredentialParams, bK as UploadSellerCredentialOptions, bI as UploadSellerCredentialParams, bN as UploadVenmoGoogleOAuthSellerCredentialParams, bO as UploadXMoneyGoogleOAuthSellerCredentialParams, c1 as UsdcAmount, dp as V2ContractAbis, dn as V2ContractAddresses, bj as VenmoCredentialUploadInput, bh as VenmoGoogleOAuthSellerCredentialUploadBody, ba as VenmoSessionMaterial, bR as VerifySellerPaymentParams, bl as WiseCredentialUploadInput, bd as WiseProfileInfo, bf as WiseProfileNotFound, be as WiseProfileSelectionRequired, bc as WiseSessionMaterial, av as WithdrawDepositParams, bi as XMoneyGoogleOAuthSellerCredentialUploadBody, dB as ZERO_RATE_MANAGER_ID, _ as Zkp2pClient, a8 as Zkp2pClientOptions, cb as buildStakingEntityIds, dG as classifyDelegationState, am as classifyIntentGuardianError, ca as compareEventCursorIdsByRecency, d3 as currencyInfo, c7 as defaultIndexerEndpoint, ds as enrichPvDepositView, dt as enrichPvIntentView, cd as fetchIndexerFulfillmentAndPayment, da as getContracts, d6 as getCurrencyCodeFromHash, d5 as getCurrencyInfoFromCountryCode, d4 as getCurrencyInfoFromHash, dF as getDelegationRoute, dg as getDisputeProtectionPolicyContract, di as getGatingServiceAddress, db as getIntentGuardianContract, df as getOrchestratorV3Contract, dh as getPaymentMethodsCatalog, dd as getRateManagerContracts, de as getStakeVaultContract, dc as hasIntentGuardian, dQ as isMailboxSellerCredentialType, d7 as isSupportedCurrencyHash, dC as isZeroRateManagerId, d8 as mapConversionRatesToOnchainMinRate, dD as normalizeRateManagerId, dE as normalizeRegistry, dq as parseDepositView, dr as parseIntentView, ac as readDisputeAttestationConfig } from './vaultUtils-
|
|
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-rtYn04WQ.mjs';
|
|
2
|
+
export { dN as AccessPolicyOperations, dO as AccessPolicyUnsupportedError, ap as ActionCallback, b8 as AmazonPayCredentialUploadInput, b9 as AmazonPayIdentityAttestationOutput, aU as ApiDeposit, a$ as ApiIntentStatus, bC as AttestationServiceSellerCredentialProbeResponse, an as AuthorizationTokenProvider, dK as BatchResult, aA as BestByPlatformResponseObject, bD as BuyerTeePaymentParams, bE as BuyerTeePaymentProofInput, bF as BuyerTeeSessionMaterial, a6 as CancelIntentMethodParams, az as CancelIntentParams, bk as CashAppCredentialUploadInput, bb as CashAppSessionMaterial, at as CreateDepositConversionRate, as as CreateDepositParams, bG as CuratorSellerVerifyResponse, d2 as Currency, d9 as CurrencyData, dk as DISPUTE_PROTECTION_POLICY_ABI, dJ as DelegationDepositTarget, dH as DelegationRoute, dI as DelegationState, dv as Deposit, dx as DepositCurrency, c0 as DepositIntentStatistics, aX as DepositStatus, aV as DepositVerifier, aW as DepositVerifierCurrency, bZ as DepositVerifierData, du as DepositView, ad as DisputeAttestationConfig, cx as DisputeProtectionIntentPage, cy as DisputeProtectionIntentPageParams, ae as DisputeProtectionReadinessOptions, af as DisputeProtectionReadinessResult, aQ as FiatResponse, bB as FulfillIntentAttestationResponse, a5 as FulfillIntentMethodParams, ax as FulfillIntentParams, aB as GetBestByPlatformResponse, aC as GetBestByPlatformResponseObject, aY as GetDepositByIdRequest, aZ as GetDepositByIdResponse, b4 as GetIntentByHashRequest, b5 as GetIntentByHashResponse, b2 as GetIntentsByDepositRequest, b3 as GetIntentsByDepositResponse, aG as GetNearbyQuote, aH as GetNearbySuggestions, b0 as GetOwnerIntentsRequest, b1 as GetOwnerIntentsResponse, aD as GetPlatformQuote, aI as GetQuoteResponse, aJ as GetQuoteResponseObject, aK as GetQuoteSingleResponse, bL as GetSellerCredentialStatusParams, dP as ICloudMailCredentialError, dR as ICloudMailCredentialErrorReason, dS as ICloudMailSellerPlatform, bS as IdentityAttestationActionType, bT as IdentityAttestationOutput, bU as IdentityAttestationOutputFor, bV as IdentityAttestationParams, cz as IndexedDisputeProtectionIntent, cA as IndexedPage, cB as IndexedPageAsOf, cC as IndexedRiskWindow, cD as IndexedStakeActivity, cF as IndexedStakeLock, cE as IndexedStakeTotals, cG as IndexedStakingRowFreshness, cH as IndexedStakingState, cI as IndexedStakingStateParams, cJ as IndexedTakerAuthorization, cK as IndexedTakerStakeAuthorization, c6 as IndexerClient, cY as IndexerDeploymentEnv, ce as IndexerDeposit, cv as IndexerDepositDailySnapshot, cP as IndexerDepositFilter, cu as IndexerDepositFundActivity, cw as IndexerDepositFundActivityType, cS as IndexerDepositOrderDirection, cR as IndexerDepositOrderField, cQ as IndexerDepositPagination, ch as IndexerDepositPaymentMethod, c8 as IndexerDepositService, c$ as IndexerFulfillmentAndPaymentResponse, cZ as IndexerFulfillmentRecord, cf as IndexerIntentFulfilled, cg as IndexerIntentFulfillmentAmounts, cj as IndexerIntentStatus, cn as IndexerManagerAggregateStats, cp as IndexerManagerDailySnapshot, co as IndexerManagerStats, cs as IndexerManualRateUpdate, ci as IndexerMethodCurrency, ct as IndexerOracleConfigUpdate, c_ as IndexerPaymentVerifiedRecord, ck as IndexerRateManager, cm as IndexerRateManagerDelegation, cV as IndexerRateManagerDelegationPagination, cr as IndexerRateManagerDetail, cT as IndexerRateManagerFilter, cq as IndexerRateManagerListItem, cX as IndexerRateManagerOrderDirection, cW as IndexerRateManagerOrderField, cU as IndexerRateManagerPagination, cl as IndexerRateManagerRate, c9 as IndexerRateManagerService, cc as IndexerStakingService, a_ as Intent, al as IntentGuardianErrorCode, ah as IntentGuardianPolicy, ai as IntentGuardianQuote, aj as IntentGuardianWriteFunction, ak as IntentGuardianWriteParams, dz as IntentView, bW as MakerIdentityAttestationRequestBody, bX as MakerIdentityPlatform, aS as NearbyQuote, aT as NearbySuggestions, dj as ORCHESTRATOR_V3_ABI, _ as OfframpClient, bY as OnchainCurrency, dA as OnchainIntent, b$ as OrderStats, c4 as OrderbookEntry, c5 as OrderbookTableRow, d0 as PAYMENT_PLATFORMS, bg as PayPalGoogleOAuthSellerCredentialUploadBody, dw as PaymentMethodData, d1 as PaymentPlatformType, aE as PlatformQuote, b_ as PreparedTransaction, aP as QuoteFeesResponse, aO as QuoteIntentResponse, aM as QuoteMakerIdentity, aF as QuotePreference, aL as QuoteResponseObject, aN as QuoteSingleResponse, au as Range, ag as ReadDisputeAttestationConfigParams, a2 as RedeemReferralCodeSignatureOptions, $ as ReferralBearerWriteOptions, dy as ReferralFee, a0 as ReferralReadOptions, aq as ReferralRedemption, ar as ReferralSignatureBody, a1 as ReferralSignatureOptions, b6 as RegisterPayeeDetailsRequest, b7 as RegisterPayeeDetailsResponse, bH as RegisteredSellerCredentialPlatform, bJ as RegisteredUploadSellerCredentialParams, ay as ReleaseFundsToPayerParams, dm as RuntimeEnv, dl as STAKE_VAULT_ABI, bz as SellerAttestationOutput, bn as SellerCiphertextBundle, bs as SellerCredentialBundleUpload, bA as SellerCredentialProbeResponse, bu as SellerCredentialStatus, bt as SellerCredentialStatusValue, bm as SellerCredentialUploadInputByPlatform, by as SellerPaymentTypedDataValue, br as SellerProbeInput, bo as SellerSignedCiphertextBundle, bw as SellerTypedDataField, bx as SellerTypedDataSpec, bq as SellerVerifyInput, bp as SellerVerifyIntentDetails, bv as SellerVerifyProxyBody, dM as SendBatchFn, dL as SendTransactionFn, a4 as SignalIntentMethodParams, aw as SignalIntentParams, a3 as SignalIntentReferralFee, cL as StakeActivityPageParams, c2 as StakeEnvironment, cM as StakeLockPageParams, a9 as StakeVaultState, aa as StakeVaultWriteFunction, ab as StakeVaultWriteParams, cN as StakingEntityIds, cO as TakerStakeAuthorizationPageParams, c3 as TakerStakeBalances, ao as TimeoutConfig, aR as TokenResponse, a7 as UpdateReferralCodeSignatureOptions, bP as UploadGoogleOAuthSellerCredentialParams, dT as UploadICloudMailSellerCredentialOptions, dU as UploadICloudMailSellerCredentialParams, bQ as UploadMicrosoftOAuthSellerCredentialParams, bM as UploadPayPalGoogleOAuthSellerCredentialParams, bK as UploadSellerCredentialOptions, bI as UploadSellerCredentialParams, bN as UploadVenmoGoogleOAuthSellerCredentialParams, bO as UploadXMoneyGoogleOAuthSellerCredentialParams, c1 as UsdcAmount, dp as V2ContractAbis, dn as V2ContractAddresses, bj as VenmoCredentialUploadInput, bh as VenmoGoogleOAuthSellerCredentialUploadBody, ba as VenmoSessionMaterial, bR as VerifySellerPaymentParams, bl as WiseCredentialUploadInput, bd as WiseProfileInfo, bf as WiseProfileNotFound, be as WiseProfileSelectionRequired, bc as WiseSessionMaterial, av as WithdrawDepositParams, bi as XMoneyGoogleOAuthSellerCredentialUploadBody, dB as ZERO_RATE_MANAGER_ID, _ as Zkp2pClient, a8 as Zkp2pClientOptions, cb as buildStakingEntityIds, dG as classifyDelegationState, am as classifyIntentGuardianError, ca as compareEventCursorIdsByRecency, d3 as currencyInfo, c7 as defaultIndexerEndpoint, ds as enrichPvDepositView, dt as enrichPvIntentView, cd as fetchIndexerFulfillmentAndPayment, da as getContracts, d6 as getCurrencyCodeFromHash, d5 as getCurrencyInfoFromCountryCode, d4 as getCurrencyInfoFromHash, dF as getDelegationRoute, dg as getDisputeProtectionPolicyContract, di as getGatingServiceAddress, db as getIntentGuardianContract, df as getOrchestratorV3Contract, dh as getPaymentMethodsCatalog, dd as getRateManagerContracts, de as getStakeVaultContract, dc as hasIntentGuardian, dQ as isMailboxSellerCredentialType, d7 as isSupportedCurrencyHash, dC as isZeroRateManagerId, d8 as mapConversionRatesToOnchainMinRate, dD as normalizeRateManagerId, dE as normalizeRegistry, dq as parseDepositView, dr as parseIntentView, ac as readDisputeAttestationConfig } from './vaultUtils-rtYn04WQ.mjs';
|
|
3
3
|
import { Address, Hash, Hex, WalletClient } 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';
|
|
@@ -1018,17 +1018,37 @@ type VenmoGmailConnectResult = {
|
|
|
1018
1018
|
payeeDetails: Hash;
|
|
1019
1019
|
};
|
|
1020
1020
|
/** Build a Peer-hosted link for an already-registered Venmo maker. */
|
|
1021
|
-
declare function getVenmoGmailConnectUrl(
|
|
1021
|
+
declare function getVenmoGmailConnectUrl(options: {
|
|
1022
1022
|
payeeDetails: Hash;
|
|
1023
|
-
/** Matching Peer web origin. HTTP is allowed only on localhost for development. */
|
|
1024
1023
|
peerOrigin?: string;
|
|
1025
1024
|
appearance?: VenmoGmailAppearance;
|
|
1026
|
-
/** Optional app callback URI. Native hosts open the URL themselves; empty means no redirect. */
|
|
1027
1025
|
returnUrl?: string;
|
|
1028
1026
|
}): string;
|
|
1029
|
-
/** Call from a click handler
|
|
1027
|
+
/** Call from a click handler; verifies receipts through Gmail, Outlook or iCloud. */
|
|
1030
1028
|
declare function openVenmoGmailConnect(options: Omit<Parameters<typeof getVenmoGmailConnectUrl>[0], 'returnUrl'> & {
|
|
1031
1029
|
popup?: VenmoGmailPopupOptions;
|
|
1032
1030
|
}): Promise<VenmoGmailConnectResult>;
|
|
1033
1031
|
|
|
1034
|
-
|
|
1032
|
+
declare class XMoneyConnectError extends Error {
|
|
1033
|
+
readonly code: string;
|
|
1034
|
+
constructor(code: string, message: string);
|
|
1035
|
+
}
|
|
1036
|
+
type XMoneyConnectResult = {
|
|
1037
|
+
payeeDetails: Hash;
|
|
1038
|
+
};
|
|
1039
|
+
type XMoneyConnectOptions = {
|
|
1040
|
+
payeeDetails: Hash;
|
|
1041
|
+
/** Registered X username, required to bind iCloud uploads to this account. */
|
|
1042
|
+
payeeUsername: string;
|
|
1043
|
+
peerOrigin?: string;
|
|
1044
|
+
appearance?: VenmoGmailAppearance;
|
|
1045
|
+
returnUrl?: string;
|
|
1046
|
+
};
|
|
1047
|
+
/** The account identity stays in the fragment, outside HTTP requests. */
|
|
1048
|
+
declare function getXMoneyConnectUrl(options: XMoneyConnectOptions): string;
|
|
1049
|
+
/** Call from a click handler; resolves only after a verified receipt connects the account. */
|
|
1050
|
+
declare function openXMoneyConnect(options: Omit<XMoneyConnectOptions, 'returnUrl'> & {
|
|
1051
|
+
popup?: VenmoGmailPopupOptions;
|
|
1052
|
+
}): Promise<XMoneyConnectResult>;
|
|
1053
|
+
|
|
1054
|
+
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, 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, 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, XMoneyConnectError, type XMoneyConnectOptions, type XMoneyConnectResult, 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, encodePythAdapterConfig, encodeSpreadOracleAdapterConfig, encodeWithAttribution, ensureBytes32, getAmazonPaySellerIdentity, getAttributionDataSuffix, getPeerExtensionState, getSpreadOracleConfig, getVenmoGmailConnectUrl, getXMoneyConnectUrl, isPeerExtensionAvailable, isValidReferralCode, isValidReferrerFeeBps, isValidReferrerFeeRecipient, logger, normalizeReferralCode, openPeerExtensionInstallPage, openVenmoGmailConnect, openXMoneyConnect, parseReferrerFeeConfig, parseVenmoGmailAppearance, 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, 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 { dN as AccessPolicyOperations, dO as AccessPolicyUnsupportedError, ap as ActionCallback, b8 as AmazonPayCredentialUploadInput, b9 as AmazonPayIdentityAttestationOutput, aU as ApiDeposit, a$ as ApiIntentStatus, bC as AttestationServiceSellerCredentialProbeResponse, an as AuthorizationTokenProvider, dK as BatchResult, aA as BestByPlatformResponseObject, bD as BuyerTeePaymentParams, bE as BuyerTeePaymentProofInput, bF as BuyerTeeSessionMaterial, a6 as CancelIntentMethodParams, az as CancelIntentParams, bk as CashAppCredentialUploadInput, bb as CashAppSessionMaterial, at as CreateDepositConversionRate, as as CreateDepositParams, bG as CuratorSellerVerifyResponse, d2 as Currency, d9 as CurrencyData, dk as DISPUTE_PROTECTION_POLICY_ABI, dJ as DelegationDepositTarget, dH as DelegationRoute, dI as DelegationState, dv as Deposit, dx as DepositCurrency, c0 as DepositIntentStatistics, aX as DepositStatus, aV as DepositVerifier, aW as DepositVerifierCurrency, bZ as DepositVerifierData, du as DepositView, ad as DisputeAttestationConfig, cx as DisputeProtectionIntentPage, cy as DisputeProtectionIntentPageParams, ae as DisputeProtectionReadinessOptions, af as DisputeProtectionReadinessResult, aQ as FiatResponse, bB as FulfillIntentAttestationResponse, a5 as FulfillIntentMethodParams, ax as FulfillIntentParams, aB as GetBestByPlatformResponse, aC as GetBestByPlatformResponseObject, aY as GetDepositByIdRequest, aZ as GetDepositByIdResponse, b4 as GetIntentByHashRequest, b5 as GetIntentByHashResponse, b2 as GetIntentsByDepositRequest, b3 as GetIntentsByDepositResponse, aG as GetNearbyQuote, aH as GetNearbySuggestions, b0 as GetOwnerIntentsRequest, b1 as GetOwnerIntentsResponse, aD as GetPlatformQuote, aI as GetQuoteResponse, aJ as GetQuoteResponseObject, aK as GetQuoteSingleResponse, bL as GetSellerCredentialStatusParams, dP as ICloudMailCredentialError, dR as ICloudMailCredentialErrorReason, dS as ICloudMailSellerPlatform, bS as IdentityAttestationActionType, bT as IdentityAttestationOutput, bU as IdentityAttestationOutputFor, bV as IdentityAttestationParams, cz as IndexedDisputeProtectionIntent, cA as IndexedPage, cB as IndexedPageAsOf, cC as IndexedRiskWindow, cD as IndexedStakeActivity, cF as IndexedStakeLock, cE as IndexedStakeTotals, cG as IndexedStakingRowFreshness, cH as IndexedStakingState, cI as IndexedStakingStateParams, cJ as IndexedTakerAuthorization, cK as IndexedTakerStakeAuthorization, c6 as IndexerClient, cY as IndexerDeploymentEnv, ce as IndexerDeposit, cv as IndexerDepositDailySnapshot, cP as IndexerDepositFilter, cu as IndexerDepositFundActivity, cw as IndexerDepositFundActivityType, cS as IndexerDepositOrderDirection, cR as IndexerDepositOrderField, cQ as IndexerDepositPagination, ch as IndexerDepositPaymentMethod, c8 as IndexerDepositService, c$ as IndexerFulfillmentAndPaymentResponse, cZ as IndexerFulfillmentRecord, cf as IndexerIntentFulfilled, cg as IndexerIntentFulfillmentAmounts, cj as IndexerIntentStatus, cn as IndexerManagerAggregateStats, cp as IndexerManagerDailySnapshot, co as IndexerManagerStats, cs as IndexerManualRateUpdate, ci as IndexerMethodCurrency, ct as IndexerOracleConfigUpdate, c_ as IndexerPaymentVerifiedRecord, ck as IndexerRateManager, cm as IndexerRateManagerDelegation, cV as IndexerRateManagerDelegationPagination, cr as IndexerRateManagerDetail, cT as IndexerRateManagerFilter, cq as IndexerRateManagerListItem, cX as IndexerRateManagerOrderDirection, cW as IndexerRateManagerOrderField, cU as IndexerRateManagerPagination, cl as IndexerRateManagerRate, c9 as IndexerRateManagerService, cc as IndexerStakingService, a_ as Intent, al as IntentGuardianErrorCode, ah as IntentGuardianPolicy, ai as IntentGuardianQuote, aj as IntentGuardianWriteFunction, ak as IntentGuardianWriteParams, dz as IntentView, bW as MakerIdentityAttestationRequestBody, bX as MakerIdentityPlatform, aS as NearbyQuote, aT as NearbySuggestions, dj as ORCHESTRATOR_V3_ABI, _ as OfframpClient, bY as OnchainCurrency, dA as OnchainIntent, b$ as OrderStats, c4 as OrderbookEntry, c5 as OrderbookTableRow, d0 as PAYMENT_PLATFORMS, bg as PayPalGoogleOAuthSellerCredentialUploadBody, dw as PaymentMethodData, d1 as PaymentPlatformType, aE as PlatformQuote, b_ as PreparedTransaction, aP as QuoteFeesResponse, aO as QuoteIntentResponse, aM as QuoteMakerIdentity, aF as QuotePreference, aL as QuoteResponseObject, aN as QuoteSingleResponse, au as Range, ag as ReadDisputeAttestationConfigParams, a2 as RedeemReferralCodeSignatureOptions, $ as ReferralBearerWriteOptions, dy as ReferralFee, a0 as ReferralReadOptions, aq as ReferralRedemption, ar as ReferralSignatureBody, a1 as ReferralSignatureOptions, b6 as RegisterPayeeDetailsRequest, b7 as RegisterPayeeDetailsResponse, bH as RegisteredSellerCredentialPlatform, bJ as RegisteredUploadSellerCredentialParams, ay as ReleaseFundsToPayerParams, dm as RuntimeEnv, dl as STAKE_VAULT_ABI, bz as SellerAttestationOutput, bn as SellerCiphertextBundle, bs as SellerCredentialBundleUpload, bA as SellerCredentialProbeResponse, bu as SellerCredentialStatus, bt as SellerCredentialStatusValue, bm as SellerCredentialUploadInputByPlatform, by as SellerPaymentTypedDataValue, br as SellerProbeInput, bo as SellerSignedCiphertextBundle, bw as SellerTypedDataField, bx as SellerTypedDataSpec, bq as SellerVerifyInput, bp as SellerVerifyIntentDetails, bv as SellerVerifyProxyBody, dM as SendBatchFn, dL as SendTransactionFn, a4 as SignalIntentMethodParams, aw as SignalIntentParams, a3 as SignalIntentReferralFee, cL as StakeActivityPageParams, c2 as StakeEnvironment, cM as StakeLockPageParams, a9 as StakeVaultState, aa as StakeVaultWriteFunction, ab as StakeVaultWriteParams, cN as StakingEntityIds, cO as TakerStakeAuthorizationPageParams, c3 as TakerStakeBalances, ao as TimeoutConfig, aR as TokenResponse, a7 as UpdateReferralCodeSignatureOptions, bP as UploadGoogleOAuthSellerCredentialParams, dT as UploadICloudMailSellerCredentialOptions, dU as UploadICloudMailSellerCredentialParams, bQ as UploadMicrosoftOAuthSellerCredentialParams, bM as UploadPayPalGoogleOAuthSellerCredentialParams, bK as UploadSellerCredentialOptions, bI as UploadSellerCredentialParams, bN as UploadVenmoGoogleOAuthSellerCredentialParams, bO as UploadXMoneyGoogleOAuthSellerCredentialParams, c1 as UsdcAmount, dp as V2ContractAbis, dn as V2ContractAddresses, bj as VenmoCredentialUploadInput, bh as VenmoGoogleOAuthSellerCredentialUploadBody, ba as VenmoSessionMaterial, bR as VerifySellerPaymentParams, bl as WiseCredentialUploadInput, bd as WiseProfileInfo, bf as WiseProfileNotFound, be as WiseProfileSelectionRequired, bc as WiseSessionMaterial, av as WithdrawDepositParams, bi as XMoneyGoogleOAuthSellerCredentialUploadBody, dB as ZERO_RATE_MANAGER_ID, _ as Zkp2pClient, a8 as Zkp2pClientOptions, cb as buildStakingEntityIds, dG as classifyDelegationState, am as classifyIntentGuardianError, ca as compareEventCursorIdsByRecency, d3 as currencyInfo, c7 as defaultIndexerEndpoint, ds as enrichPvDepositView, dt as enrichPvIntentView, cd as fetchIndexerFulfillmentAndPayment, da as getContracts, d6 as getCurrencyCodeFromHash, d5 as getCurrencyInfoFromCountryCode, d4 as getCurrencyInfoFromHash, dF as getDelegationRoute, dg as getDisputeProtectionPolicyContract, di as getGatingServiceAddress, db as getIntentGuardianContract, df as getOrchestratorV3Contract, dh as getPaymentMethodsCatalog, dd as getRateManagerContracts, de as getStakeVaultContract, dc as hasIntentGuardian, dQ as isMailboxSellerCredentialType, d7 as isSupportedCurrencyHash, dC as isZeroRateManagerId, d8 as mapConversionRatesToOnchainMinRate, dD as normalizeRateManagerId, dE as normalizeRegistry, dq as parseDepositView, dr as parseIntentView, ac as readDisputeAttestationConfig } from './vaultUtils-
|
|
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-rtYn04WQ.js';
|
|
2
|
+
export { dN as AccessPolicyOperations, dO as AccessPolicyUnsupportedError, ap as ActionCallback, b8 as AmazonPayCredentialUploadInput, b9 as AmazonPayIdentityAttestationOutput, aU as ApiDeposit, a$ as ApiIntentStatus, bC as AttestationServiceSellerCredentialProbeResponse, an as AuthorizationTokenProvider, dK as BatchResult, aA as BestByPlatformResponseObject, bD as BuyerTeePaymentParams, bE as BuyerTeePaymentProofInput, bF as BuyerTeeSessionMaterial, a6 as CancelIntentMethodParams, az as CancelIntentParams, bk as CashAppCredentialUploadInput, bb as CashAppSessionMaterial, at as CreateDepositConversionRate, as as CreateDepositParams, bG as CuratorSellerVerifyResponse, d2 as Currency, d9 as CurrencyData, dk as DISPUTE_PROTECTION_POLICY_ABI, dJ as DelegationDepositTarget, dH as DelegationRoute, dI as DelegationState, dv as Deposit, dx as DepositCurrency, c0 as DepositIntentStatistics, aX as DepositStatus, aV as DepositVerifier, aW as DepositVerifierCurrency, bZ as DepositVerifierData, du as DepositView, ad as DisputeAttestationConfig, cx as DisputeProtectionIntentPage, cy as DisputeProtectionIntentPageParams, ae as DisputeProtectionReadinessOptions, af as DisputeProtectionReadinessResult, aQ as FiatResponse, bB as FulfillIntentAttestationResponse, a5 as FulfillIntentMethodParams, ax as FulfillIntentParams, aB as GetBestByPlatformResponse, aC as GetBestByPlatformResponseObject, aY as GetDepositByIdRequest, aZ as GetDepositByIdResponse, b4 as GetIntentByHashRequest, b5 as GetIntentByHashResponse, b2 as GetIntentsByDepositRequest, b3 as GetIntentsByDepositResponse, aG as GetNearbyQuote, aH as GetNearbySuggestions, b0 as GetOwnerIntentsRequest, b1 as GetOwnerIntentsResponse, aD as GetPlatformQuote, aI as GetQuoteResponse, aJ as GetQuoteResponseObject, aK as GetQuoteSingleResponse, bL as GetSellerCredentialStatusParams, dP as ICloudMailCredentialError, dR as ICloudMailCredentialErrorReason, dS as ICloudMailSellerPlatform, bS as IdentityAttestationActionType, bT as IdentityAttestationOutput, bU as IdentityAttestationOutputFor, bV as IdentityAttestationParams, cz as IndexedDisputeProtectionIntent, cA as IndexedPage, cB as IndexedPageAsOf, cC as IndexedRiskWindow, cD as IndexedStakeActivity, cF as IndexedStakeLock, cE as IndexedStakeTotals, cG as IndexedStakingRowFreshness, cH as IndexedStakingState, cI as IndexedStakingStateParams, cJ as IndexedTakerAuthorization, cK as IndexedTakerStakeAuthorization, c6 as IndexerClient, cY as IndexerDeploymentEnv, ce as IndexerDeposit, cv as IndexerDepositDailySnapshot, cP as IndexerDepositFilter, cu as IndexerDepositFundActivity, cw as IndexerDepositFundActivityType, cS as IndexerDepositOrderDirection, cR as IndexerDepositOrderField, cQ as IndexerDepositPagination, ch as IndexerDepositPaymentMethod, c8 as IndexerDepositService, c$ as IndexerFulfillmentAndPaymentResponse, cZ as IndexerFulfillmentRecord, cf as IndexerIntentFulfilled, cg as IndexerIntentFulfillmentAmounts, cj as IndexerIntentStatus, cn as IndexerManagerAggregateStats, cp as IndexerManagerDailySnapshot, co as IndexerManagerStats, cs as IndexerManualRateUpdate, ci as IndexerMethodCurrency, ct as IndexerOracleConfigUpdate, c_ as IndexerPaymentVerifiedRecord, ck as IndexerRateManager, cm as IndexerRateManagerDelegation, cV as IndexerRateManagerDelegationPagination, cr as IndexerRateManagerDetail, cT as IndexerRateManagerFilter, cq as IndexerRateManagerListItem, cX as IndexerRateManagerOrderDirection, cW as IndexerRateManagerOrderField, cU as IndexerRateManagerPagination, cl as IndexerRateManagerRate, c9 as IndexerRateManagerService, cc as IndexerStakingService, a_ as Intent, al as IntentGuardianErrorCode, ah as IntentGuardianPolicy, ai as IntentGuardianQuote, aj as IntentGuardianWriteFunction, ak as IntentGuardianWriteParams, dz as IntentView, bW as MakerIdentityAttestationRequestBody, bX as MakerIdentityPlatform, aS as NearbyQuote, aT as NearbySuggestions, dj as ORCHESTRATOR_V3_ABI, _ as OfframpClient, bY as OnchainCurrency, dA as OnchainIntent, b$ as OrderStats, c4 as OrderbookEntry, c5 as OrderbookTableRow, d0 as PAYMENT_PLATFORMS, bg as PayPalGoogleOAuthSellerCredentialUploadBody, dw as PaymentMethodData, d1 as PaymentPlatformType, aE as PlatformQuote, b_ as PreparedTransaction, aP as QuoteFeesResponse, aO as QuoteIntentResponse, aM as QuoteMakerIdentity, aF as QuotePreference, aL as QuoteResponseObject, aN as QuoteSingleResponse, au as Range, ag as ReadDisputeAttestationConfigParams, a2 as RedeemReferralCodeSignatureOptions, $ as ReferralBearerWriteOptions, dy as ReferralFee, a0 as ReferralReadOptions, aq as ReferralRedemption, ar as ReferralSignatureBody, a1 as ReferralSignatureOptions, b6 as RegisterPayeeDetailsRequest, b7 as RegisterPayeeDetailsResponse, bH as RegisteredSellerCredentialPlatform, bJ as RegisteredUploadSellerCredentialParams, ay as ReleaseFundsToPayerParams, dm as RuntimeEnv, dl as STAKE_VAULT_ABI, bz as SellerAttestationOutput, bn as SellerCiphertextBundle, bs as SellerCredentialBundleUpload, bA as SellerCredentialProbeResponse, bu as SellerCredentialStatus, bt as SellerCredentialStatusValue, bm as SellerCredentialUploadInputByPlatform, by as SellerPaymentTypedDataValue, br as SellerProbeInput, bo as SellerSignedCiphertextBundle, bw as SellerTypedDataField, bx as SellerTypedDataSpec, bq as SellerVerifyInput, bp as SellerVerifyIntentDetails, bv as SellerVerifyProxyBody, dM as SendBatchFn, dL as SendTransactionFn, a4 as SignalIntentMethodParams, aw as SignalIntentParams, a3 as SignalIntentReferralFee, cL as StakeActivityPageParams, c2 as StakeEnvironment, cM as StakeLockPageParams, a9 as StakeVaultState, aa as StakeVaultWriteFunction, ab as StakeVaultWriteParams, cN as StakingEntityIds, cO as TakerStakeAuthorizationPageParams, c3 as TakerStakeBalances, ao as TimeoutConfig, aR as TokenResponse, a7 as UpdateReferralCodeSignatureOptions, bP as UploadGoogleOAuthSellerCredentialParams, dT as UploadICloudMailSellerCredentialOptions, dU as UploadICloudMailSellerCredentialParams, bQ as UploadMicrosoftOAuthSellerCredentialParams, bM as UploadPayPalGoogleOAuthSellerCredentialParams, bK as UploadSellerCredentialOptions, bI as UploadSellerCredentialParams, bN as UploadVenmoGoogleOAuthSellerCredentialParams, bO as UploadXMoneyGoogleOAuthSellerCredentialParams, c1 as UsdcAmount, dp as V2ContractAbis, dn as V2ContractAddresses, bj as VenmoCredentialUploadInput, bh as VenmoGoogleOAuthSellerCredentialUploadBody, ba as VenmoSessionMaterial, bR as VerifySellerPaymentParams, bl as WiseCredentialUploadInput, bd as WiseProfileInfo, bf as WiseProfileNotFound, be as WiseProfileSelectionRequired, bc as WiseSessionMaterial, av as WithdrawDepositParams, bi as XMoneyGoogleOAuthSellerCredentialUploadBody, dB as ZERO_RATE_MANAGER_ID, _ as Zkp2pClient, a8 as Zkp2pClientOptions, cb as buildStakingEntityIds, dG as classifyDelegationState, am as classifyIntentGuardianError, ca as compareEventCursorIdsByRecency, d3 as currencyInfo, c7 as defaultIndexerEndpoint, ds as enrichPvDepositView, dt as enrichPvIntentView, cd as fetchIndexerFulfillmentAndPayment, da as getContracts, d6 as getCurrencyCodeFromHash, d5 as getCurrencyInfoFromCountryCode, d4 as getCurrencyInfoFromHash, dF as getDelegationRoute, dg as getDisputeProtectionPolicyContract, di as getGatingServiceAddress, db as getIntentGuardianContract, df as getOrchestratorV3Contract, dh as getPaymentMethodsCatalog, dd as getRateManagerContracts, de as getStakeVaultContract, dc as hasIntentGuardian, dQ as isMailboxSellerCredentialType, d7 as isSupportedCurrencyHash, dC as isZeroRateManagerId, d8 as mapConversionRatesToOnchainMinRate, dD as normalizeRateManagerId, dE as normalizeRegistry, dq as parseDepositView, dr as parseIntentView, ac as readDisputeAttestationConfig } from './vaultUtils-rtYn04WQ.js';
|
|
3
3
|
import { Address, Hash, Hex, WalletClient } 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';
|
|
@@ -1018,17 +1018,37 @@ type VenmoGmailConnectResult = {
|
|
|
1018
1018
|
payeeDetails: Hash;
|
|
1019
1019
|
};
|
|
1020
1020
|
/** Build a Peer-hosted link for an already-registered Venmo maker. */
|
|
1021
|
-
declare function getVenmoGmailConnectUrl(
|
|
1021
|
+
declare function getVenmoGmailConnectUrl(options: {
|
|
1022
1022
|
payeeDetails: Hash;
|
|
1023
|
-
/** Matching Peer web origin. HTTP is allowed only on localhost for development. */
|
|
1024
1023
|
peerOrigin?: string;
|
|
1025
1024
|
appearance?: VenmoGmailAppearance;
|
|
1026
|
-
/** Optional app callback URI. Native hosts open the URL themselves; empty means no redirect. */
|
|
1027
1025
|
returnUrl?: string;
|
|
1028
1026
|
}): string;
|
|
1029
|
-
/** Call from a click handler
|
|
1027
|
+
/** Call from a click handler; verifies receipts through Gmail, Outlook or iCloud. */
|
|
1030
1028
|
declare function openVenmoGmailConnect(options: Omit<Parameters<typeof getVenmoGmailConnectUrl>[0], 'returnUrl'> & {
|
|
1031
1029
|
popup?: VenmoGmailPopupOptions;
|
|
1032
1030
|
}): Promise<VenmoGmailConnectResult>;
|
|
1033
1031
|
|
|
1034
|
-
|
|
1032
|
+
declare class XMoneyConnectError extends Error {
|
|
1033
|
+
readonly code: string;
|
|
1034
|
+
constructor(code: string, message: string);
|
|
1035
|
+
}
|
|
1036
|
+
type XMoneyConnectResult = {
|
|
1037
|
+
payeeDetails: Hash;
|
|
1038
|
+
};
|
|
1039
|
+
type XMoneyConnectOptions = {
|
|
1040
|
+
payeeDetails: Hash;
|
|
1041
|
+
/** Registered X username, required to bind iCloud uploads to this account. */
|
|
1042
|
+
payeeUsername: string;
|
|
1043
|
+
peerOrigin?: string;
|
|
1044
|
+
appearance?: VenmoGmailAppearance;
|
|
1045
|
+
returnUrl?: string;
|
|
1046
|
+
};
|
|
1047
|
+
/** The account identity stays in the fragment, outside HTTP requests. */
|
|
1048
|
+
declare function getXMoneyConnectUrl(options: XMoneyConnectOptions): string;
|
|
1049
|
+
/** Call from a click handler; resolves only after a verified receipt connects the account. */
|
|
1050
|
+
declare function openXMoneyConnect(options: Omit<XMoneyConnectOptions, 'returnUrl'> & {
|
|
1051
|
+
popup?: VenmoGmailPopupOptions;
|
|
1052
|
+
}): Promise<XMoneyConnectResult>;
|
|
1053
|
+
|
|
1054
|
+
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, 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, 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, XMoneyConnectError, type XMoneyConnectOptions, type XMoneyConnectResult, 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, encodePythAdapterConfig, encodeSpreadOracleAdapterConfig, encodeWithAttribution, ensureBytes32, getAmazonPaySellerIdentity, getAttributionDataSuffix, getPeerExtensionState, getSpreadOracleConfig, getVenmoGmailConnectUrl, getXMoneyConnectUrl, isPeerExtensionAvailable, isValidReferralCode, isValidReferrerFeeBps, isValidReferrerFeeRecipient, logger, normalizeReferralCode, openPeerExtensionInstallPage, openVenmoGmailConnect, openXMoneyConnect, parseReferrerFeeConfig, parseVenmoGmailAppearance, peerExtensionSdk, referrerFeeConfigToPreciseUnits, resolveFiatCurrencyBytes32, resolvePaymentMethodHash, resolvePaymentMethodHashFromCatalog, resolvePaymentMethodNameFromHash, selectRiskMode, sendTransactionWithAttribution, setLogLevel, validateOracleFeedsOnChain };
|
package/dist/index.mjs
CHANGED
|
@@ -2,12 +2,12 @@ import { IntentGuardianOperations } from './chunk-YA67SM3A.mjs';
|
|
|
2
2
|
export { ZERO_RATE_MANAGER_ID, classifyDelegationState, classifyIntentGuardianError, getDelegationRoute, isZeroRateManagerId, normalizeRateManagerId, normalizeRegistry } from './chunk-YA67SM3A.mjs';
|
|
3
3
|
import { NetworkError, ValidationError, ContractError, APIError } from './chunk-3J4FPMPW.mjs';
|
|
4
4
|
export { APIError, ContractError, ErrorCode, NetworkError, ValidationError, ZKP2PError } from './chunk-3J4FPMPW.mjs';
|
|
5
|
-
import { OrchestratorRegistry_default, DISPUTE_PROTECTION_POLICY_ABI, DisputeProtectionPolicy_default, METHOD_NAME_TO_HASH, matchesQuotePaymentMethod, matchesPaymentMethodNameAndHash, MultiAttestationVerifier_default, getContracts, getRateManagerContracts, getPaymentMethodsCatalog, resolvePaymentMethodHashFromCatalog, getGatingServiceAddress, parseBigIntLike, SUPPORTED_PAYMENT_METHOD_HASHES, resolveFiatCurrencyBytes32, resolvePaymentMethodNameFromHash, OrchestratorV3_default, DisputeNullifierRegistry_default, DisputeVerifier_default, WhitelistPolicy_default, StakeVault_default, IntentLifecycleHookV1_default } from './chunk-
|
|
6
|
-
export { DISPUTE_PROTECTION_POLICY_ABI2 as DISPUTE_PROTECTION_POLICY_ABI, ORCHESTRATOR_V3_ABI, PAYMENT_PLATFORMS, STAKE_VAULT_ABI, asciiToBytes32, enrichPvDepositView, enrichPvIntentView, ensureBytes32, getContracts, getDisputeProtectionPolicyContract, getGatingServiceAddress, getIntentGuardianContract, getOrchestratorV3Contract, getPaymentMethodsCatalog, getRateManagerContracts, getStakeVaultContract, hasIntentGuardian, parseDepositView, parseIntentView, resolveFiatCurrencyBytes32, resolvePaymentMethodHash, resolvePaymentMethodHashFromCatalog, resolvePaymentMethodNameFromHash } from './chunk-
|
|
5
|
+
import { OrchestratorRegistry_default, DISPUTE_PROTECTION_POLICY_ABI, DisputeProtectionPolicy_default, METHOD_NAME_TO_HASH, matchesQuotePaymentMethod, matchesPaymentMethodNameAndHash, MultiAttestationVerifier_default, getContracts, getRateManagerContracts, getPaymentMethodsCatalog, resolvePaymentMethodHashFromCatalog, getGatingServiceAddress, parseBigIntLike, SUPPORTED_PAYMENT_METHOD_HASHES, resolveFiatCurrencyBytes32, resolvePaymentMethodNameFromHash, OrchestratorV3_default, DisputeNullifierRegistry_default, DisputeVerifier_default, WhitelistPolicy_default, StakeVault_default, IntentLifecycleHookV1_default } from './chunk-QDSNHQGS.mjs';
|
|
6
|
+
export { DISPUTE_PROTECTION_POLICY_ABI2 as DISPUTE_PROTECTION_POLICY_ABI, ORCHESTRATOR_V3_ABI, PAYMENT_PLATFORMS, STAKE_VAULT_ABI, asciiToBytes32, enrichPvDepositView, enrichPvIntentView, ensureBytes32, getContracts, getDisputeProtectionPolicyContract, getGatingServiceAddress, getIntentGuardianContract, getOrchestratorV3Contract, getPaymentMethodsCatalog, getRateManagerContracts, getStakeVaultContract, hasIntentGuardian, parseDepositView, parseIntentView, resolveFiatCurrencyBytes32, resolvePaymentMethodHash, resolvePaymentMethodHashFromCatalog, resolvePaymentMethodNameFromHash } from './chunk-QDSNHQGS.mjs';
|
|
7
7
|
import { Currency, currencyKeccak256 } from './chunk-WDEEWFEU.mjs';
|
|
8
8
|
export { Currency, currencyInfo, getCurrencyCodeFromHash, getCurrencyInfoFromCountryCode, getCurrencyInfoFromHash, isSupportedCurrencyHash, mapConversionRatesToOnchainMinRate } from './chunk-WDEEWFEU.mjs';
|
|
9
|
-
import { define_ZKP2P_SDK_BUILD_METADATA_default } from './chunk-
|
|
10
|
-
import { keccak256, parseUnits, concatHex, encodeFunctionData, encodeAbiParameters, createPublicClient, http, parseEventLogs, isAddressEqual, isAddress, zeroAddress, formatUnits } from 'viem';
|
|
9
|
+
import { define_ZKP2P_SDK_BUILD_METADATA_default } from './chunk-IYYNDUDP.mjs';
|
|
10
|
+
import { keccak256, parseUnits, concatHex, encodeFunctionData, encodeAbiParameters, createPublicClient, http, parseEventLogs, isAddressEqual, isAddress, zeroAddress, stringToBytes, formatUnits } from 'viem';
|
|
11
11
|
import { hardhat, base } from 'viem/chains';
|
|
12
12
|
import { hashUtf8, createNitroAttestationClient, verifySellerCredentialBundle, NitroAttestationError, createEncryptedBuyerTeeSessionMaterial as createEncryptedBuyerTeeSessionMaterial$1, createEncryptedSellerCredentialUpload } from '@zkp2p/zkp2p-attestation';
|
|
13
13
|
export { createNitroAttestationClient, verifyDisputeAttestation } from '@zkp2p/zkp2p-attestation';
|
|
@@ -1039,7 +1039,7 @@ async function withRetry(fn, maxRetries = 3, delayMs = 1e3, timeoutMs, shouldRet
|
|
|
1039
1039
|
for (let i = 0; i < maxRetries; i++) {
|
|
1040
1040
|
try {
|
|
1041
1041
|
if (timeoutMs) {
|
|
1042
|
-
const { withTimeout } = await import('./timeout-
|
|
1042
|
+
const { withTimeout } = await import('./timeout-G23BY4BS.mjs');
|
|
1043
1043
|
return await withTimeout(fn(), timeoutMs, `Operation timed out after ${timeoutMs}ms`);
|
|
1044
1044
|
}
|
|
1045
1045
|
return await fn();
|
|
@@ -1129,7 +1129,10 @@ async function apiSignIntentV3(request, opts) {
|
|
|
1129
1129
|
}
|
|
1130
1130
|
|
|
1131
1131
|
// src/adapters/attestationTransport.ts
|
|
1132
|
-
var
|
|
1132
|
+
var ATTESTATION_PROXY_URLS = {
|
|
1133
|
+
"https://attestation-service.zkp2p.xyz": "https://attestation-proxy.zkp2p.xyz",
|
|
1134
|
+
"https://attestation-service-staging.zkp2p.xyz": "https://api-staging.zkp2p.xyz/attestation"
|
|
1135
|
+
};
|
|
1133
1136
|
function normalizeOptionalString(value) {
|
|
1134
1137
|
if (typeof value !== "string") {
|
|
1135
1138
|
return null;
|
|
@@ -1145,7 +1148,8 @@ function normalizeAttestationBaseUrl(value, label) {
|
|
|
1145
1148
|
return normalized;
|
|
1146
1149
|
}
|
|
1147
1150
|
function resolveFallbackUrls(primaryBaseUrl, fallbackUrls) {
|
|
1148
|
-
const
|
|
1151
|
+
const proxyUrl = ATTESTATION_PROXY_URLS[primaryBaseUrl];
|
|
1152
|
+
const rawFallbackUrls = fallbackUrls ?? (proxyUrl ? [proxyUrl] : []);
|
|
1149
1153
|
const normalized = rawFallbackUrls.map((url) => normalizeOptionalString(url)?.replace(/\/+$/u, "") ?? null).filter((url) => Boolean(url));
|
|
1150
1154
|
return Array.from(new Set(normalized)).filter((url) => url !== primaryBaseUrl);
|
|
1151
1155
|
}
|
|
@@ -1181,6 +1185,7 @@ function rewriteInputBaseUrl(input, primaryBaseUrl, targetBaseUrl) {
|
|
|
1181
1185
|
if (url.origin === primaryUrl.origin) {
|
|
1182
1186
|
url.protocol = targetUrl.protocol;
|
|
1183
1187
|
url.host = targetUrl.host;
|
|
1188
|
+
url.pathname = `${targetUrl.pathname.replace(/\/$/u, "")}${url.pathname}`;
|
|
1184
1189
|
}
|
|
1185
1190
|
if (typeof Request !== "undefined" && input instanceof Request) {
|
|
1186
1191
|
return new Request(url.toString(), input.clone());
|
|
@@ -2659,7 +2664,7 @@ var ProtocolViewerReader = class {
|
|
|
2659
2664
|
if (inputCount === null) {
|
|
2660
2665
|
throw new Error("Configured ProtocolViewer ABI does not expose getDeposit");
|
|
2661
2666
|
}
|
|
2662
|
-
const { parseDepositView: parseDepositView2 } = await import('./protocolViewerParsers-
|
|
2667
|
+
const { parseDepositView: parseDepositView2 } = await import('./protocolViewerParsers-XBMV53ND.mjs');
|
|
2663
2668
|
if (inputCount >= 3) {
|
|
2664
2669
|
return tryContexts(
|
|
2665
2670
|
protocolViewerContexts,
|
|
@@ -2745,7 +2750,7 @@ var ProtocolViewerReader = class {
|
|
|
2745
2750
|
return Promise.all(ids.map((id) => this.config.host.getPvDepositById(id)));
|
|
2746
2751
|
}
|
|
2747
2752
|
const bn = ids.map((id) => typeof id === "bigint" ? id : parseRawDepositId(id));
|
|
2748
|
-
const { parseDepositView: parseDepositView2 } = await import('./protocolViewerParsers-
|
|
2753
|
+
const { parseDepositView: parseDepositView2 } = await import('./protocolViewerParsers-XBMV53ND.mjs');
|
|
2749
2754
|
if (inputCount >= 2) {
|
|
2750
2755
|
const requests = ids.map((id, index) => ({
|
|
2751
2756
|
index,
|
|
@@ -2850,7 +2855,7 @@ var ProtocolViewerReader = class {
|
|
|
2850
2855
|
if (!protocolViewerAddress || !protocolViewerAbi || inputCount === null) {
|
|
2851
2856
|
return this.config.host.getPvAccountDepositsFromIndexer(owner);
|
|
2852
2857
|
}
|
|
2853
|
-
const { parseDepositView: parseDepositView2 } = await import('./protocolViewerParsers-
|
|
2858
|
+
const { parseDepositView: parseDepositView2 } = await import('./protocolViewerParsers-XBMV53ND.mjs');
|
|
2854
2859
|
const { address, abi } = this.config.host.requireProtocolViewer();
|
|
2855
2860
|
if (inputCount >= 2) {
|
|
2856
2861
|
const readAndFilter = async (raw2) => {
|
|
@@ -2921,7 +2926,7 @@ var ProtocolViewerReader = class {
|
|
|
2921
2926
|
if (protocolViewerEntries.length === 0) {
|
|
2922
2927
|
throw new Error("ProtocolViewer not available for this network");
|
|
2923
2928
|
}
|
|
2924
|
-
const { parseIntentView: parseIntentView2 } = await import('./protocolViewerParsers-
|
|
2929
|
+
const { parseIntentView: parseIntentView2 } = await import('./protocolViewerParsers-XBMV53ND.mjs');
|
|
2925
2930
|
const intentsByHash = /* @__PURE__ */ new Map();
|
|
2926
2931
|
let attemptedRead = false;
|
|
2927
2932
|
let hadSuccessfulRead = false;
|
|
@@ -3029,7 +3034,7 @@ var ProtocolViewerReader = class {
|
|
|
3029
3034
|
if (protocolViewerEntries.length === 0) {
|
|
3030
3035
|
throw new Error("ProtocolViewer not available for this network");
|
|
3031
3036
|
}
|
|
3032
|
-
const { parseIntentView: parseIntentView2 } = await import('./protocolViewerParsers-
|
|
3037
|
+
const { parseIntentView: parseIntentView2 } = await import('./protocolViewerParsers-XBMV53ND.mjs');
|
|
3033
3038
|
let lastError;
|
|
3034
3039
|
for (const pvEntry of protocolViewerEntries) {
|
|
3035
3040
|
const inputCount = this.pvEntryFunctionInputCount(pvEntry, "getIntent");
|
|
@@ -8529,15 +8534,15 @@ var DisputeProtectionReadinessReader = class {
|
|
|
8529
8534
|
async verifyRuntimeIdentities(names, blockNumber) {
|
|
8530
8535
|
await Promise.all(
|
|
8531
8536
|
names.map(async (name) => {
|
|
8532
|
-
const
|
|
8537
|
+
const identity2 = this.config.manifest.runtimeIdentities[name];
|
|
8533
8538
|
const bytecode = await this.config.publicClient.getBytecode({
|
|
8534
|
-
address:
|
|
8539
|
+
address: identity2.address,
|
|
8535
8540
|
blockNumber
|
|
8536
8541
|
});
|
|
8537
8542
|
if (!bytecode || bytecode === "0x") {
|
|
8538
8543
|
throw new ReadinessMismatch(`${name} runtime bytecode unavailable`);
|
|
8539
8544
|
}
|
|
8540
|
-
if (keccak256(bytecode).toLowerCase() !==
|
|
8545
|
+
if (keccak256(bytecode).toLowerCase() !== identity2.runtimeCodeHash.toLowerCase()) {
|
|
8541
8546
|
throw new ReadinessMismatch(`${name} runtime code hash mismatch`);
|
|
8542
8547
|
}
|
|
8543
8548
|
})
|
|
@@ -9214,11 +9219,15 @@ async function uploadICloudMailSellerCredential(params, context) {
|
|
|
9214
9219
|
const payeeId = suppliedPayeeId ?? await resolveVenmoPayeeId(payeeDetails, mailboxEmail, context);
|
|
9215
9220
|
let bundle;
|
|
9216
9221
|
try {
|
|
9222
|
+
const attestationTransport = createAttestationTransport(context.attestationServiceUrl, {
|
|
9223
|
+
fetch: context.attestationRuntime?.fetch
|
|
9224
|
+
});
|
|
9217
9225
|
const nitro = createNitroAttestationClient({
|
|
9218
9226
|
environment,
|
|
9219
9227
|
attestationServiceUrl: context.attestationServiceUrl,
|
|
9220
9228
|
timeoutMs: ATTESTOR_TIMEOUT_MS,
|
|
9221
|
-
...context.attestationRuntime
|
|
9229
|
+
...context.attestationRuntime,
|
|
9230
|
+
fetch: attestationTransport.fetch
|
|
9222
9231
|
});
|
|
9223
9232
|
bundle = await nitro.uploadSellerCredential({
|
|
9224
9233
|
platform,
|
|
@@ -12086,7 +12095,7 @@ var Zkp2pClient = class {
|
|
|
12086
12095
|
}
|
|
12087
12096
|
}
|
|
12088
12097
|
});
|
|
12089
|
-
const { mapConversionRatesToOnchainMinRate: mapConversionRatesToOnchainMinRate2 } = await import('./currency-
|
|
12098
|
+
const { mapConversionRatesToOnchainMinRate: mapConversionRatesToOnchainMinRate2 } = await import('./currency-224A3JT3.mjs');
|
|
12090
12099
|
currencies = mapConversionRatesToOnchainMinRate2(
|
|
12091
12100
|
params.conversionRates,
|
|
12092
12101
|
paymentMethods.length
|
|
@@ -12558,9 +12567,11 @@ var Zkp2pClient = class {
|
|
|
12558
12567
|
/**
|
|
12559
12568
|
* Connect an iCloud Mail receipt inbox for PayPal, Venmo or X Money seller automated
|
|
12560
12569
|
* release. The app-specific password is encrypted to the attested enclave and
|
|
12561
|
-
* posted
|
|
12562
|
-
*
|
|
12563
|
-
*
|
|
12570
|
+
* posted to the attestor. A request that fails at the network layer is sent
|
|
12571
|
+
* once through that attestor's proxy; nothing else is retried. The returned
|
|
12572
|
+
* bundle is verified against the pinned enclave signer, platform and
|
|
12573
|
+
* registered maker, then stored unchanged for that maker; the maker is not
|
|
12574
|
+
* re-registered.
|
|
12564
12575
|
*
|
|
12565
12576
|
* Rejects with `ICloudMailCredentialError` (`reason` names the failure)
|
|
12566
12577
|
* before any mailbox work when the payee does not hash to `payeeDetails`,
|
|
@@ -12904,22 +12915,18 @@ function getVenmoGmailPopupSize(popup = {}) {
|
|
|
12904
12915
|
return { width, height };
|
|
12905
12916
|
}
|
|
12906
12917
|
|
|
12907
|
-
// src/
|
|
12908
|
-
|
|
12909
|
-
constructor(code, message) {
|
|
12910
|
-
super(message);
|
|
12911
|
-
this.code = code;
|
|
12912
|
-
this.name = "VenmoGmailConnectError";
|
|
12913
|
-
}
|
|
12914
|
-
};
|
|
12915
|
-
function getVenmoGmailConnectUrl({
|
|
12918
|
+
// src/mailboxConnect.ts
|
|
12919
|
+
function getMailboxConnectUrl({
|
|
12916
12920
|
payeeDetails,
|
|
12921
|
+
platform,
|
|
12922
|
+
label,
|
|
12923
|
+
payeeUsername,
|
|
12917
12924
|
peerOrigin = "https://app.peer.xyz",
|
|
12918
12925
|
appearance,
|
|
12919
12926
|
returnUrl
|
|
12920
12927
|
}) {
|
|
12921
12928
|
if (!/^0x[0-9a-f]{64}$/i.test(payeeDetails)) {
|
|
12922
|
-
throw new ValidationError(
|
|
12929
|
+
throw new ValidationError(`Expected a ${label} payee hash`, "payeeDetails");
|
|
12923
12930
|
}
|
|
12924
12931
|
let origin;
|
|
12925
12932
|
try {
|
|
@@ -12930,7 +12937,7 @@ function getVenmoGmailConnectUrl({
|
|
|
12930
12937
|
if (origin.protocol !== "https:" && !(origin.protocol === "http:" && origin.hostname === "localhost") || origin.pathname !== "/" || origin.search || origin.hash || origin.username || origin.password) {
|
|
12931
12938
|
throw new ValidationError("Expected an HTTPS Peer web origin", "peerOrigin");
|
|
12932
12939
|
}
|
|
12933
|
-
const url = new URL(
|
|
12940
|
+
const url = new URL(`/connect/${platform}`, origin);
|
|
12934
12941
|
if (returnUrl) {
|
|
12935
12942
|
try {
|
|
12936
12943
|
new URL(returnUrl);
|
|
@@ -12941,11 +12948,11 @@ function getVenmoGmailConnectUrl({
|
|
|
12941
12948
|
}
|
|
12942
12949
|
if (appearance)
|
|
12943
12950
|
url.searchParams.set("appearance", JSON.stringify(parseVenmoGmailAppearance(appearance)));
|
|
12944
|
-
url.hash = payeeDetails;
|
|
12951
|
+
url.hash = payeeUsername === void 0 ? payeeDetails : new URLSearchParams({ payeeDetails, payeeUsername }).toString();
|
|
12945
12952
|
return url.toString();
|
|
12946
12953
|
}
|
|
12947
|
-
function
|
|
12948
|
-
const url = new URL(
|
|
12954
|
+
function openMailboxConnect(options) {
|
|
12955
|
+
const url = new URL(getMailboxConnectUrl(options));
|
|
12949
12956
|
const { width, height } = getVenmoGmailPopupSize(options.popup);
|
|
12950
12957
|
const requestId = window.crypto.randomUUID();
|
|
12951
12958
|
url.searchParams.set("requestId", requestId);
|
|
@@ -12960,9 +12967,9 @@ function openVenmoGmailConnect(options) {
|
|
|
12960
12967
|
}
|
|
12961
12968
|
if (!popup) {
|
|
12962
12969
|
reject(
|
|
12963
|
-
new
|
|
12970
|
+
new options.ErrorClass(
|
|
12964
12971
|
"popup_blocked",
|
|
12965
|
-
|
|
12972
|
+
`Allow popups for this site, then link ${options.label} again.`
|
|
12966
12973
|
)
|
|
12967
12974
|
);
|
|
12968
12975
|
return;
|
|
@@ -12979,18 +12986,19 @@ function openVenmoGmailConnect(options) {
|
|
|
12979
12986
|
const data3 = event.data;
|
|
12980
12987
|
if (typeof data3 !== "object" || !data3) return;
|
|
12981
12988
|
const result = data3;
|
|
12982
|
-
if (result.type !==
|
|
12989
|
+
if (result.type !== `peer:${options.platform}-connect` || result.requestId !== requestId)
|
|
12990
|
+
return;
|
|
12983
12991
|
if (result.status === "connected" && typeof result.payeeDetails === "string" && result.payeeDetails.toLowerCase() === options.payeeDetails.toLowerCase()) {
|
|
12984
12992
|
finish();
|
|
12985
12993
|
} else if (result.status === "error" && typeof result.code === "string" && typeof result.message === "string") {
|
|
12986
|
-
finish(new
|
|
12994
|
+
finish(new options.ErrorClass(result.code, result.message));
|
|
12987
12995
|
}
|
|
12988
12996
|
};
|
|
12989
12997
|
const timeout = window.setTimeout(
|
|
12990
12998
|
() => finish(
|
|
12991
|
-
new
|
|
12999
|
+
new options.ErrorClass(
|
|
12992
13000
|
"connection_timeout",
|
|
12993
|
-
|
|
13001
|
+
`${options.label} linking timed out. Check the connection status before trying again.`
|
|
12994
13002
|
)
|
|
12995
13003
|
),
|
|
12996
13004
|
10 * 60 * 1e3
|
|
@@ -12998,7 +13006,7 @@ function openVenmoGmailConnect(options) {
|
|
|
12998
13006
|
const closedCheck = window.setInterval(() => {
|
|
12999
13007
|
if (popup.closed)
|
|
13000
13008
|
finish(
|
|
13001
|
-
new
|
|
13009
|
+
new options.ErrorClass(
|
|
13002
13010
|
"connection_closed",
|
|
13003
13011
|
"The linking window closed or became unavailable. Check the connection status before trying again."
|
|
13004
13012
|
)
|
|
@@ -13008,6 +13016,50 @@ function openVenmoGmailConnect(options) {
|
|
|
13008
13016
|
});
|
|
13009
13017
|
}
|
|
13010
13018
|
|
|
13011
|
-
|
|
13019
|
+
// src/venmoGmail.ts
|
|
13020
|
+
var VenmoGmailConnectError = class extends Error {
|
|
13021
|
+
constructor(code, message) {
|
|
13022
|
+
super(message);
|
|
13023
|
+
this.code = code;
|
|
13024
|
+
this.name = "VenmoGmailConnectError";
|
|
13025
|
+
}
|
|
13026
|
+
};
|
|
13027
|
+
function getVenmoGmailConnectUrl(options) {
|
|
13028
|
+
return getMailboxConnectUrl({ ...options, platform: "venmo", label: "Venmo" });
|
|
13029
|
+
}
|
|
13030
|
+
function openVenmoGmailConnect(options) {
|
|
13031
|
+
return openMailboxConnect({
|
|
13032
|
+
...options,
|
|
13033
|
+
platform: "venmo",
|
|
13034
|
+
label: "Venmo",
|
|
13035
|
+
ErrorClass: VenmoGmailConnectError
|
|
13036
|
+
});
|
|
13037
|
+
}
|
|
13038
|
+
var XMoneyConnectError = class extends Error {
|
|
13039
|
+
constructor(code, message) {
|
|
13040
|
+
super(message);
|
|
13041
|
+
this.code = code;
|
|
13042
|
+
this.name = "XMoneyConnectError";
|
|
13043
|
+
}
|
|
13044
|
+
};
|
|
13045
|
+
function identity(options) {
|
|
13046
|
+
const payeeUsername = options.payeeUsername.trim().replace(/^@/u, "").toLowerCase();
|
|
13047
|
+
if (!payeeUsername || keccak256(stringToBytes(payeeUsername)) !== options.payeeDetails.toLowerCase()) {
|
|
13048
|
+
throw new ValidationError("X username must match the registered payee hash", "payeeUsername");
|
|
13049
|
+
}
|
|
13050
|
+
return { ...options, payeeUsername, platform: "xmoney", label: "X Money" };
|
|
13051
|
+
}
|
|
13052
|
+
function getXMoneyConnectUrl(options) {
|
|
13053
|
+
return getMailboxConnectUrl(identity(options));
|
|
13054
|
+
}
|
|
13055
|
+
function openXMoneyConnect(options) {
|
|
13056
|
+
return openMailboxConnect({
|
|
13057
|
+
...identity(options),
|
|
13058
|
+
popup: options.popup,
|
|
13059
|
+
ErrorClass: XMoneyConnectError
|
|
13060
|
+
});
|
|
13061
|
+
}
|
|
13062
|
+
|
|
13063
|
+
export { AccessPolicyOperations, AccessPolicyUnsupportedError, BASE_BUILDER_CODE, CHAINLINK_ORACLE_ADAPTER, CHAINLINK_ORACLE_FEEDS, ContractRouter, DEFAULT_ORACLE_MAX_STALENESS_SECONDS, ICloudMailCredentialError, IndexerClient, IndexerDepositService, IndexerRateManagerService, IndexerStakingService, Zkp2pClient as OfframpClient, PEER_EXTENSION_CHROME_URL, PLATFORM_METADATA, PYTH_CONTRACT_BASE, PYTH_ORACLE_ADAPTER, PYTH_ORACLE_FEEDS, REFERRAL_SIGNATURE_DOMAIN, REFERRAL_SIGNATURE_TYPES, RISK_BPS_DENOMINATOR, SDK_BUILD_METADATA, SPREAD_ORACLE_FEEDS, SUPPORTED_CHAIN_IDS, TOKEN_METADATA, VenmoGmailConnectError, XMoneyConnectError, ZKP2P_ANDROID_REFERRER, ZKP2P_IOS_REFERRER, Zkp2pClient, 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, assertValidReferrerFeeConfig, buildStakingEntityIds, calculateRequiredCoverage, calculateStakeBackedCapacity, compareEventCursorIdsByRecency, convertDepositsForLiquidity, convertIndexerDepositToEscrowView, convertIndexerIntentsToEscrowViews, createCompositeDepositId, createEncryptedBuyerTeeSessionMaterial, createPeerExtensionSdk, defaultIndexerEndpoint, encodePythAdapterConfig, encodeSpreadOracleAdapterConfig, encodeWithAttribution, fetchFulfillmentAndPayment as fetchIndexerFulfillmentAndPayment, getAmazonPaySellerIdentity, getAttributionDataSuffix, getPeerExtensionState, getSpreadOracleConfig, getVenmoGmailConnectUrl, getXMoneyConnectUrl, isMailboxSellerCredentialType, isPeerExtensionAvailable, isValidReferralCode, isValidReferrerFeeBps, isValidReferrerFeeRecipient, logger, normalizeReferralCode, openPeerExtensionInstallPage, openVenmoGmailConnect, openXMoneyConnect, parseReferrerFeeConfig, parseVenmoGmailAppearance, peerExtensionSdk, readDisputeAttestationConfig, referrerFeeConfigToPreciseUnits, selectRiskMode, sendTransactionWithAttribution, setLogLevel, validateOracleFeedsOnChain };
|
|
13012
13064
|
//# sourceMappingURL=index.mjs.map
|
|
13013
13065
|
//# sourceMappingURL=index.mjs.map
|