@zkp2p/sdk 0.11.0 → 0.11.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 +6 -0
- package/dist/index.cjs +3 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.mjs +3 -2
- package/dist/index.mjs.map +1 -1
- package/dist/react.d.mts +2 -2
- package/dist/react.d.ts +2 -2
- package/dist/{vaultUtils-DmGhwFto.d.mts → vaultUtils-CbfjrxgD.d.mts} +1 -1
- package/dist/{vaultUtils-DmGhwFto.d.ts → vaultUtils-CbfjrxgD.d.ts} +1 -1
- package/package.json +1 -1
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 { d8 as AccessPolicyDiff, d0 as AccessPolicyOperations, d9 as AccessPolicyOrdering, da as AccessPolicyPlan, db as AccessPolicyPlanStep, dc as AccessPolicyState, d1 as AccessPolicyUnsupportedError, dd as AccessPolicyViolation, ae as ActionCallback, aI as ApiDeposit, aP as ApiIntentStatus, bn as AttestationServiceSellerCredentialProbeResponse, ac as AuthorizationTokenProvider, cZ as BatchResult, ap as BestByPlatformResponseObject, bo as BuyerTeePaymentParams, bp as BuyerTeePaymentProofInput, bq as BuyerTeeSessionMaterial, a3 as CancelIntentMethodParams, ao as CancelIntentParams, b5 as CashAppCredentialUploadInput, a_ as CashAppSessionMaterial, ai as CreateDepositConversionRate, ah as CreateDepositParams, br as CuratorSellerCredentialStatusResponse, bs as CuratorSellerVerifyResponse, cq as Currency, cx as CurrencyData, cY as DelegationDepositTarget, cW as DelegationRoute, cX as DelegationState, cK as Deposit, cM as DepositCurrency, bL as DepositIntentStatistics, aL as DepositStatus, aJ as DepositVerifier, aK as DepositVerifierCurrency, bI as DepositVerifierData, cJ as DepositView, aE as FiatResponse, bm as FulfillIntentAttestationResponse, a2 as FulfillIntentMethodParams, am as FulfillIntentParams, aq as GetBestByPlatformResponse, ar as GetBestByPlatformResponseObject, aM as GetDepositByIdRequest, aN as GetDepositByIdResponse, aU as GetIntentByHashRequest, aV as GetIntentByHashResponse, aS as GetIntentsByDepositRequest, aT as GetIntentsByDepositResponse, av as GetNearbyQuote, aw as GetNearbySuggestions, aQ as GetOwnerIntentsRequest, aR as GetOwnerIntentsResponse, as as GetPlatformQuote, ax as GetQuoteResponse, ay as GetQuoteResponseObject, az as GetQuoteSingleResponse, bx as GetSellerCredentialStatusParams, bB as IdentityAttestationActionType, bC as IdentityAttestationOutput, bD as IdentityAttestationOutputFor, bE as IdentityAttestationParams, bO as IndexerClient, ck as IndexerDeploymentEnv, bU as IndexerDeposit, c9 as IndexerDepositDailySnapshot, cb as IndexerDepositFilter, c8 as IndexerDepositFundActivity, ca as IndexerDepositFundActivityType, ce as IndexerDepositOrderDirection, cd as IndexerDepositOrderField, cc as IndexerDepositPagination, bX as IndexerDepositPaymentMethod, bQ as IndexerDepositService, cn as IndexerFulfillmentAndPaymentResponse, cl as IndexerFulfillmentRecord, bV as IndexerIntentFulfilled, bW as IndexerIntentFulfillmentAmounts, bZ as IndexerIntentStatus, c1 as IndexerManagerAggregateStats, c3 as IndexerManagerDailySnapshot, c2 as IndexerManagerStats, c6 as IndexerManualRateUpdate, bY as IndexerMethodCurrency, c7 as IndexerOracleConfigUpdate, cm as IndexerPaymentVerifiedRecord, b_ as IndexerRateManager, c0 as IndexerRateManagerDelegation, ch as IndexerRateManagerDelegationPagination, c5 as IndexerRateManagerDetail, cf as IndexerRateManagerFilter, c4 as IndexerRateManagerListItem, cj as IndexerRateManagerOrderDirection, ci as IndexerRateManagerOrderField, cg as IndexerRateManagerPagination, b$ as IndexerRateManagerRate, bR as IndexerRateManagerService, aO as Intent, aa as IntentGuardianErrorCode, a6 as IntentGuardianPolicy, a7 as IntentGuardianQuote, a8 as IntentGuardianWriteFunction, a9 as IntentGuardianWriteParams, cO as IntentView, d3 as MAX_ADDRESSES_PER_CALL, d2 as MAX_GROUPS_PER_DEPOSIT, d4 as MAX_WHITELISTED_ADDRESSES, bF as MakerIdentityAttestationRequestBody, bG as MakerIdentityPlatform, aG as NearbyQuote, aH as NearbySuggestions, Z as OfframpClient, bH as OnchainCurrency, cP as OnchainIntent, bK as OrderStats, bM as OrderbookEntry, bN as OrderbookTableRow, co as PAYMENT_PLATFORMS, b3 as PayPalGoogleOAuthSellerCredentialUploadBody, cL as PaymentMethodData, cp as PaymentPlatformType, at as PlatformQuote, bJ as PreparedTransaction, aD as QuoteFeesResponse, aC as QuoteIntentResponse, au as QuotePreference, aA as QuoteResponseObject, aB as QuoteSingleResponse, aj as Range, $ as RedeemReferralCodeSignatureOptions, X as ReferralBearerWriteOptions, cN as ReferralFee, Y as ReferralReadOptions, af as ReferralRedemption, ag as ReferralSignatureBody, _ as ReferralSignatureOptions, aW as RegisterPayeeDetailsRequest, aX as RegisterPayeeDetailsResponse, bt as RegisteredSellerCredentialPlatform, bv as RegisteredUploadSellerCredentialParams, an as ReleaseFundsToPayerParams, cE as RuntimeEnv, bk as SellerAttestationOutput, b8 as SellerCiphertextBundle, bd as SellerCredentialBundleUpload, bl as SellerCredentialProbeResponse, bf as SellerCredentialStatus, be as SellerCredentialStatusValue, b7 as SellerCredentialUploadInputByPlatform, bj as SellerPaymentTypedDataValue, aY as SellerPlatform, bc as SellerProbeInput, b9 as SellerSignedCiphertextBundle, bh as SellerTypedDataField, bi as SellerTypedDataSpec, bb as SellerVerifyInput, ba as SellerVerifyIntentDetails, bg as SellerVerifyProxyBody, c$ as SendBatchFn, c_ as SendTransactionFn, a1 as SignalIntentMethodParams, al as SignalIntentParams, a0 as SignalIntentReferralFee, ad as TimeoutConfig, aF as TokenResponse, a4 as UpdateReferralCodeSignatureOptions, bz as UploadGoogleOAuthSellerCredentialParams, by as UploadPayPalGoogleOAuthSellerCredentialParams, bw as UploadSellerCredentialOptions, bu as UploadSellerCredentialParams, b4 as VenmoCredentialUploadInput, aZ as VenmoSessionMaterial, bA as VerifySellerPaymentParams, b6 as WiseCredentialUploadInput, b0 as WiseProfileInfo, b2 as WiseProfileNotFound, b1 as WiseProfileSelectionRequired, a$ as WiseSessionMaterial, ak as WithdrawDepositParams, cQ as ZERO_RATE_MANAGER_ID, Z as Zkp2pClient, a5 as Zkp2pClientOptions, cV as classifyDelegationState, ab as classifyIntentGuardianError, bS as compareEventCursorIdsByRecency, cr as currencyInfo, bP as defaultIndexerEndpoint, d5 as diffAccessPolicy, cH as enrichPvDepositView, cI as enrichPvIntentView, bT as fetchIndexerFulfillmentAndPayment, cy as getContracts, cu as getCurrencyCodeFromHash, ct as getCurrencyInfoFromCountryCode, cs as getCurrencyInfoFromHash, cU as getDelegationRoute, cD as getGatingServiceAddress, cz as getIntentGuardianContract, cC as getPaymentMethodsCatalog, cB as getRateManagerContracts, cA as hasIntentGuardian, cv as isSupportedCurrencyHash, cR as isZeroRateManagerId, cw as mapConversionRatesToOnchainMinRate, d6 as normalizeAccessPolicyState, cS as normalizeRateManagerId, cT as normalizeRegistry, cF as parseDepositView, cG as parseIntentView, d7 as planAccessPolicyUpdate } 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, 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-CbfjrxgD.mjs';
|
|
2
|
+
export { d8 as AccessPolicyDiff, d0 as AccessPolicyOperations, d9 as AccessPolicyOrdering, da as AccessPolicyPlan, db as AccessPolicyPlanStep, dc as AccessPolicyState, d1 as AccessPolicyUnsupportedError, dd as AccessPolicyViolation, ae as ActionCallback, aI as ApiDeposit, aP as ApiIntentStatus, bn as AttestationServiceSellerCredentialProbeResponse, ac as AuthorizationTokenProvider, cZ as BatchResult, ap as BestByPlatformResponseObject, bo as BuyerTeePaymentParams, bp as BuyerTeePaymentProofInput, bq as BuyerTeeSessionMaterial, a3 as CancelIntentMethodParams, ao as CancelIntentParams, b5 as CashAppCredentialUploadInput, a_ as CashAppSessionMaterial, ai as CreateDepositConversionRate, ah as CreateDepositParams, br as CuratorSellerCredentialStatusResponse, bs as CuratorSellerVerifyResponse, cq as Currency, cx as CurrencyData, cY as DelegationDepositTarget, cW as DelegationRoute, cX as DelegationState, cK as Deposit, cM as DepositCurrency, bL as DepositIntentStatistics, aL as DepositStatus, aJ as DepositVerifier, aK as DepositVerifierCurrency, bI as DepositVerifierData, cJ as DepositView, aE as FiatResponse, bm as FulfillIntentAttestationResponse, a2 as FulfillIntentMethodParams, am as FulfillIntentParams, aq as GetBestByPlatformResponse, ar as GetBestByPlatformResponseObject, aM as GetDepositByIdRequest, aN as GetDepositByIdResponse, aU as GetIntentByHashRequest, aV as GetIntentByHashResponse, aS as GetIntentsByDepositRequest, aT as GetIntentsByDepositResponse, av as GetNearbyQuote, aw as GetNearbySuggestions, aQ as GetOwnerIntentsRequest, aR as GetOwnerIntentsResponse, as as GetPlatformQuote, ax as GetQuoteResponse, ay as GetQuoteResponseObject, az as GetQuoteSingleResponse, bx as GetSellerCredentialStatusParams, bB as IdentityAttestationActionType, bC as IdentityAttestationOutput, bD as IdentityAttestationOutputFor, bE as IdentityAttestationParams, bO as IndexerClient, ck as IndexerDeploymentEnv, bU as IndexerDeposit, c9 as IndexerDepositDailySnapshot, cb as IndexerDepositFilter, c8 as IndexerDepositFundActivity, ca as IndexerDepositFundActivityType, ce as IndexerDepositOrderDirection, cd as IndexerDepositOrderField, cc as IndexerDepositPagination, bX as IndexerDepositPaymentMethod, bQ as IndexerDepositService, cn as IndexerFulfillmentAndPaymentResponse, cl as IndexerFulfillmentRecord, bV as IndexerIntentFulfilled, bW as IndexerIntentFulfillmentAmounts, bZ as IndexerIntentStatus, c1 as IndexerManagerAggregateStats, c3 as IndexerManagerDailySnapshot, c2 as IndexerManagerStats, c6 as IndexerManualRateUpdate, bY as IndexerMethodCurrency, c7 as IndexerOracleConfigUpdate, cm as IndexerPaymentVerifiedRecord, b_ as IndexerRateManager, c0 as IndexerRateManagerDelegation, ch as IndexerRateManagerDelegationPagination, c5 as IndexerRateManagerDetail, cf as IndexerRateManagerFilter, c4 as IndexerRateManagerListItem, cj as IndexerRateManagerOrderDirection, ci as IndexerRateManagerOrderField, cg as IndexerRateManagerPagination, b$ as IndexerRateManagerRate, bR as IndexerRateManagerService, aO as Intent, aa as IntentGuardianErrorCode, a6 as IntentGuardianPolicy, a7 as IntentGuardianQuote, a8 as IntentGuardianWriteFunction, a9 as IntentGuardianWriteParams, cO as IntentView, d3 as MAX_ADDRESSES_PER_CALL, d2 as MAX_GROUPS_PER_DEPOSIT, d4 as MAX_WHITELISTED_ADDRESSES, bF as MakerIdentityAttestationRequestBody, bG as MakerIdentityPlatform, aG as NearbyQuote, aH as NearbySuggestions, Z as OfframpClient, bH as OnchainCurrency, cP as OnchainIntent, bK as OrderStats, bM as OrderbookEntry, bN as OrderbookTableRow, co as PAYMENT_PLATFORMS, b3 as PayPalGoogleOAuthSellerCredentialUploadBody, cL as PaymentMethodData, cp as PaymentPlatformType, at as PlatformQuote, bJ as PreparedTransaction, aD as QuoteFeesResponse, aC as QuoteIntentResponse, au as QuotePreference, aA as QuoteResponseObject, aB as QuoteSingleResponse, aj as Range, $ as RedeemReferralCodeSignatureOptions, X as ReferralBearerWriteOptions, cN as ReferralFee, Y as ReferralReadOptions, af as ReferralRedemption, ag as ReferralSignatureBody, _ as ReferralSignatureOptions, aW as RegisterPayeeDetailsRequest, aX as RegisterPayeeDetailsResponse, bt as RegisteredSellerCredentialPlatform, bv as RegisteredUploadSellerCredentialParams, an as ReleaseFundsToPayerParams, cE as RuntimeEnv, bk as SellerAttestationOutput, b8 as SellerCiphertextBundle, bd as SellerCredentialBundleUpload, bl as SellerCredentialProbeResponse, bf as SellerCredentialStatus, be as SellerCredentialStatusValue, b7 as SellerCredentialUploadInputByPlatform, bj as SellerPaymentTypedDataValue, aY as SellerPlatform, bc as SellerProbeInput, b9 as SellerSignedCiphertextBundle, bh as SellerTypedDataField, bi as SellerTypedDataSpec, bb as SellerVerifyInput, ba as SellerVerifyIntentDetails, bg as SellerVerifyProxyBody, c$ as SendBatchFn, c_ as SendTransactionFn, a1 as SignalIntentMethodParams, al as SignalIntentParams, a0 as SignalIntentReferralFee, ad as TimeoutConfig, aF as TokenResponse, a4 as UpdateReferralCodeSignatureOptions, bz as UploadGoogleOAuthSellerCredentialParams, by as UploadPayPalGoogleOAuthSellerCredentialParams, bw as UploadSellerCredentialOptions, bu as UploadSellerCredentialParams, b4 as VenmoCredentialUploadInput, aZ as VenmoSessionMaterial, bA as VerifySellerPaymentParams, b6 as WiseCredentialUploadInput, b0 as WiseProfileInfo, b2 as WiseProfileNotFound, b1 as WiseProfileSelectionRequired, a$ as WiseSessionMaterial, ak as WithdrawDepositParams, cQ as ZERO_RATE_MANAGER_ID, Z as Zkp2pClient, a5 as Zkp2pClientOptions, cV as classifyDelegationState, ab as classifyIntentGuardianError, bS as compareEventCursorIdsByRecency, cr as currencyInfo, bP as defaultIndexerEndpoint, d5 as diffAccessPolicy, cH as enrichPvDepositView, cI as enrichPvIntentView, bT as fetchIndexerFulfillmentAndPayment, cy as getContracts, cu as getCurrencyCodeFromHash, ct as getCurrencyInfoFromCountryCode, cs as getCurrencyInfoFromHash, cU as getDelegationRoute, cD as getGatingServiceAddress, cz as getIntentGuardianContract, cC as getPaymentMethodsCatalog, cB as getRateManagerContracts, cA as hasIntentGuardian, cv as isSupportedCurrencyHash, cR as isZeroRateManagerId, cw as mapConversionRatesToOnchainMinRate, d6 as normalizeAccessPolicyState, cS as normalizeRateManagerId, cT as normalizeRegistry, cF as parseDepositView, cG as parseIntentView, d7 as planAccessPolicyUpdate } from './vaultUtils-CbfjrxgD.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';
|
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 { d8 as AccessPolicyDiff, d0 as AccessPolicyOperations, d9 as AccessPolicyOrdering, da as AccessPolicyPlan, db as AccessPolicyPlanStep, dc as AccessPolicyState, d1 as AccessPolicyUnsupportedError, dd as AccessPolicyViolation, ae as ActionCallback, aI as ApiDeposit, aP as ApiIntentStatus, bn as AttestationServiceSellerCredentialProbeResponse, ac as AuthorizationTokenProvider, cZ as BatchResult, ap as BestByPlatformResponseObject, bo as BuyerTeePaymentParams, bp as BuyerTeePaymentProofInput, bq as BuyerTeeSessionMaterial, a3 as CancelIntentMethodParams, ao as CancelIntentParams, b5 as CashAppCredentialUploadInput, a_ as CashAppSessionMaterial, ai as CreateDepositConversionRate, ah as CreateDepositParams, br as CuratorSellerCredentialStatusResponse, bs as CuratorSellerVerifyResponse, cq as Currency, cx as CurrencyData, cY as DelegationDepositTarget, cW as DelegationRoute, cX as DelegationState, cK as Deposit, cM as DepositCurrency, bL as DepositIntentStatistics, aL as DepositStatus, aJ as DepositVerifier, aK as DepositVerifierCurrency, bI as DepositVerifierData, cJ as DepositView, aE as FiatResponse, bm as FulfillIntentAttestationResponse, a2 as FulfillIntentMethodParams, am as FulfillIntentParams, aq as GetBestByPlatformResponse, ar as GetBestByPlatformResponseObject, aM as GetDepositByIdRequest, aN as GetDepositByIdResponse, aU as GetIntentByHashRequest, aV as GetIntentByHashResponse, aS as GetIntentsByDepositRequest, aT as GetIntentsByDepositResponse, av as GetNearbyQuote, aw as GetNearbySuggestions, aQ as GetOwnerIntentsRequest, aR as GetOwnerIntentsResponse, as as GetPlatformQuote, ax as GetQuoteResponse, ay as GetQuoteResponseObject, az as GetQuoteSingleResponse, bx as GetSellerCredentialStatusParams, bB as IdentityAttestationActionType, bC as IdentityAttestationOutput, bD as IdentityAttestationOutputFor, bE as IdentityAttestationParams, bO as IndexerClient, ck as IndexerDeploymentEnv, bU as IndexerDeposit, c9 as IndexerDepositDailySnapshot, cb as IndexerDepositFilter, c8 as IndexerDepositFundActivity, ca as IndexerDepositFundActivityType, ce as IndexerDepositOrderDirection, cd as IndexerDepositOrderField, cc as IndexerDepositPagination, bX as IndexerDepositPaymentMethod, bQ as IndexerDepositService, cn as IndexerFulfillmentAndPaymentResponse, cl as IndexerFulfillmentRecord, bV as IndexerIntentFulfilled, bW as IndexerIntentFulfillmentAmounts, bZ as IndexerIntentStatus, c1 as IndexerManagerAggregateStats, c3 as IndexerManagerDailySnapshot, c2 as IndexerManagerStats, c6 as IndexerManualRateUpdate, bY as IndexerMethodCurrency, c7 as IndexerOracleConfigUpdate, cm as IndexerPaymentVerifiedRecord, b_ as IndexerRateManager, c0 as IndexerRateManagerDelegation, ch as IndexerRateManagerDelegationPagination, c5 as IndexerRateManagerDetail, cf as IndexerRateManagerFilter, c4 as IndexerRateManagerListItem, cj as IndexerRateManagerOrderDirection, ci as IndexerRateManagerOrderField, cg as IndexerRateManagerPagination, b$ as IndexerRateManagerRate, bR as IndexerRateManagerService, aO as Intent, aa as IntentGuardianErrorCode, a6 as IntentGuardianPolicy, a7 as IntentGuardianQuote, a8 as IntentGuardianWriteFunction, a9 as IntentGuardianWriteParams, cO as IntentView, d3 as MAX_ADDRESSES_PER_CALL, d2 as MAX_GROUPS_PER_DEPOSIT, d4 as MAX_WHITELISTED_ADDRESSES, bF as MakerIdentityAttestationRequestBody, bG as MakerIdentityPlatform, aG as NearbyQuote, aH as NearbySuggestions, Z as OfframpClient, bH as OnchainCurrency, cP as OnchainIntent, bK as OrderStats, bM as OrderbookEntry, bN as OrderbookTableRow, co as PAYMENT_PLATFORMS, b3 as PayPalGoogleOAuthSellerCredentialUploadBody, cL as PaymentMethodData, cp as PaymentPlatformType, at as PlatformQuote, bJ as PreparedTransaction, aD as QuoteFeesResponse, aC as QuoteIntentResponse, au as QuotePreference, aA as QuoteResponseObject, aB as QuoteSingleResponse, aj as Range, $ as RedeemReferralCodeSignatureOptions, X as ReferralBearerWriteOptions, cN as ReferralFee, Y as ReferralReadOptions, af as ReferralRedemption, ag as ReferralSignatureBody, _ as ReferralSignatureOptions, aW as RegisterPayeeDetailsRequest, aX as RegisterPayeeDetailsResponse, bt as RegisteredSellerCredentialPlatform, bv as RegisteredUploadSellerCredentialParams, an as ReleaseFundsToPayerParams, cE as RuntimeEnv, bk as SellerAttestationOutput, b8 as SellerCiphertextBundle, bd as SellerCredentialBundleUpload, bl as SellerCredentialProbeResponse, bf as SellerCredentialStatus, be as SellerCredentialStatusValue, b7 as SellerCredentialUploadInputByPlatform, bj as SellerPaymentTypedDataValue, aY as SellerPlatform, bc as SellerProbeInput, b9 as SellerSignedCiphertextBundle, bh as SellerTypedDataField, bi as SellerTypedDataSpec, bb as SellerVerifyInput, ba as SellerVerifyIntentDetails, bg as SellerVerifyProxyBody, c$ as SendBatchFn, c_ as SendTransactionFn, a1 as SignalIntentMethodParams, al as SignalIntentParams, a0 as SignalIntentReferralFee, ad as TimeoutConfig, aF as TokenResponse, a4 as UpdateReferralCodeSignatureOptions, bz as UploadGoogleOAuthSellerCredentialParams, by as UploadPayPalGoogleOAuthSellerCredentialParams, bw as UploadSellerCredentialOptions, bu as UploadSellerCredentialParams, b4 as VenmoCredentialUploadInput, aZ as VenmoSessionMaterial, bA as VerifySellerPaymentParams, b6 as WiseCredentialUploadInput, b0 as WiseProfileInfo, b2 as WiseProfileNotFound, b1 as WiseProfileSelectionRequired, a$ as WiseSessionMaterial, ak as WithdrawDepositParams, cQ as ZERO_RATE_MANAGER_ID, Z as Zkp2pClient, a5 as Zkp2pClientOptions, cV as classifyDelegationState, ab as classifyIntentGuardianError, bS as compareEventCursorIdsByRecency, cr as currencyInfo, bP as defaultIndexerEndpoint, d5 as diffAccessPolicy, cH as enrichPvDepositView, cI as enrichPvIntentView, bT as fetchIndexerFulfillmentAndPayment, cy as getContracts, cu as getCurrencyCodeFromHash, ct as getCurrencyInfoFromCountryCode, cs as getCurrencyInfoFromHash, cU as getDelegationRoute, cD as getGatingServiceAddress, cz as getIntentGuardianContract, cC as getPaymentMethodsCatalog, cB as getRateManagerContracts, cA as hasIntentGuardian, cv as isSupportedCurrencyHash, cR as isZeroRateManagerId, cw as mapConversionRatesToOnchainMinRate, d6 as normalizeAccessPolicyState, cS as normalizeRateManagerId, cT as normalizeRegistry, cF as parseDepositView, cG as parseIntentView, d7 as planAccessPolicyUpdate } 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, 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-CbfjrxgD.js';
|
|
2
|
+
export { d8 as AccessPolicyDiff, d0 as AccessPolicyOperations, d9 as AccessPolicyOrdering, da as AccessPolicyPlan, db as AccessPolicyPlanStep, dc as AccessPolicyState, d1 as AccessPolicyUnsupportedError, dd as AccessPolicyViolation, ae as ActionCallback, aI as ApiDeposit, aP as ApiIntentStatus, bn as AttestationServiceSellerCredentialProbeResponse, ac as AuthorizationTokenProvider, cZ as BatchResult, ap as BestByPlatformResponseObject, bo as BuyerTeePaymentParams, bp as BuyerTeePaymentProofInput, bq as BuyerTeeSessionMaterial, a3 as CancelIntentMethodParams, ao as CancelIntentParams, b5 as CashAppCredentialUploadInput, a_ as CashAppSessionMaterial, ai as CreateDepositConversionRate, ah as CreateDepositParams, br as CuratorSellerCredentialStatusResponse, bs as CuratorSellerVerifyResponse, cq as Currency, cx as CurrencyData, cY as DelegationDepositTarget, cW as DelegationRoute, cX as DelegationState, cK as Deposit, cM as DepositCurrency, bL as DepositIntentStatistics, aL as DepositStatus, aJ as DepositVerifier, aK as DepositVerifierCurrency, bI as DepositVerifierData, cJ as DepositView, aE as FiatResponse, bm as FulfillIntentAttestationResponse, a2 as FulfillIntentMethodParams, am as FulfillIntentParams, aq as GetBestByPlatformResponse, ar as GetBestByPlatformResponseObject, aM as GetDepositByIdRequest, aN as GetDepositByIdResponse, aU as GetIntentByHashRequest, aV as GetIntentByHashResponse, aS as GetIntentsByDepositRequest, aT as GetIntentsByDepositResponse, av as GetNearbyQuote, aw as GetNearbySuggestions, aQ as GetOwnerIntentsRequest, aR as GetOwnerIntentsResponse, as as GetPlatformQuote, ax as GetQuoteResponse, ay as GetQuoteResponseObject, az as GetQuoteSingleResponse, bx as GetSellerCredentialStatusParams, bB as IdentityAttestationActionType, bC as IdentityAttestationOutput, bD as IdentityAttestationOutputFor, bE as IdentityAttestationParams, bO as IndexerClient, ck as IndexerDeploymentEnv, bU as IndexerDeposit, c9 as IndexerDepositDailySnapshot, cb as IndexerDepositFilter, c8 as IndexerDepositFundActivity, ca as IndexerDepositFundActivityType, ce as IndexerDepositOrderDirection, cd as IndexerDepositOrderField, cc as IndexerDepositPagination, bX as IndexerDepositPaymentMethod, bQ as IndexerDepositService, cn as IndexerFulfillmentAndPaymentResponse, cl as IndexerFulfillmentRecord, bV as IndexerIntentFulfilled, bW as IndexerIntentFulfillmentAmounts, bZ as IndexerIntentStatus, c1 as IndexerManagerAggregateStats, c3 as IndexerManagerDailySnapshot, c2 as IndexerManagerStats, c6 as IndexerManualRateUpdate, bY as IndexerMethodCurrency, c7 as IndexerOracleConfigUpdate, cm as IndexerPaymentVerifiedRecord, b_ as IndexerRateManager, c0 as IndexerRateManagerDelegation, ch as IndexerRateManagerDelegationPagination, c5 as IndexerRateManagerDetail, cf as IndexerRateManagerFilter, c4 as IndexerRateManagerListItem, cj as IndexerRateManagerOrderDirection, ci as IndexerRateManagerOrderField, cg as IndexerRateManagerPagination, b$ as IndexerRateManagerRate, bR as IndexerRateManagerService, aO as Intent, aa as IntentGuardianErrorCode, a6 as IntentGuardianPolicy, a7 as IntentGuardianQuote, a8 as IntentGuardianWriteFunction, a9 as IntentGuardianWriteParams, cO as IntentView, d3 as MAX_ADDRESSES_PER_CALL, d2 as MAX_GROUPS_PER_DEPOSIT, d4 as MAX_WHITELISTED_ADDRESSES, bF as MakerIdentityAttestationRequestBody, bG as MakerIdentityPlatform, aG as NearbyQuote, aH as NearbySuggestions, Z as OfframpClient, bH as OnchainCurrency, cP as OnchainIntent, bK as OrderStats, bM as OrderbookEntry, bN as OrderbookTableRow, co as PAYMENT_PLATFORMS, b3 as PayPalGoogleOAuthSellerCredentialUploadBody, cL as PaymentMethodData, cp as PaymentPlatformType, at as PlatformQuote, bJ as PreparedTransaction, aD as QuoteFeesResponse, aC as QuoteIntentResponse, au as QuotePreference, aA as QuoteResponseObject, aB as QuoteSingleResponse, aj as Range, $ as RedeemReferralCodeSignatureOptions, X as ReferralBearerWriteOptions, cN as ReferralFee, Y as ReferralReadOptions, af as ReferralRedemption, ag as ReferralSignatureBody, _ as ReferralSignatureOptions, aW as RegisterPayeeDetailsRequest, aX as RegisterPayeeDetailsResponse, bt as RegisteredSellerCredentialPlatform, bv as RegisteredUploadSellerCredentialParams, an as ReleaseFundsToPayerParams, cE as RuntimeEnv, bk as SellerAttestationOutput, b8 as SellerCiphertextBundle, bd as SellerCredentialBundleUpload, bl as SellerCredentialProbeResponse, bf as SellerCredentialStatus, be as SellerCredentialStatusValue, b7 as SellerCredentialUploadInputByPlatform, bj as SellerPaymentTypedDataValue, aY as SellerPlatform, bc as SellerProbeInput, b9 as SellerSignedCiphertextBundle, bh as SellerTypedDataField, bi as SellerTypedDataSpec, bb as SellerVerifyInput, ba as SellerVerifyIntentDetails, bg as SellerVerifyProxyBody, c$ as SendBatchFn, c_ as SendTransactionFn, a1 as SignalIntentMethodParams, al as SignalIntentParams, a0 as SignalIntentReferralFee, ad as TimeoutConfig, aF as TokenResponse, a4 as UpdateReferralCodeSignatureOptions, bz as UploadGoogleOAuthSellerCredentialParams, by as UploadPayPalGoogleOAuthSellerCredentialParams, bw as UploadSellerCredentialOptions, bu as UploadSellerCredentialParams, b4 as VenmoCredentialUploadInput, aZ as VenmoSessionMaterial, bA as VerifySellerPaymentParams, b6 as WiseCredentialUploadInput, b0 as WiseProfileInfo, b2 as WiseProfileNotFound, b1 as WiseProfileSelectionRequired, a$ as WiseSessionMaterial, ak as WithdrawDepositParams, cQ as ZERO_RATE_MANAGER_ID, Z as Zkp2pClient, a5 as Zkp2pClientOptions, cV as classifyDelegationState, ab as classifyIntentGuardianError, bS as compareEventCursorIdsByRecency, cr as currencyInfo, bP as defaultIndexerEndpoint, d5 as diffAccessPolicy, cH as enrichPvDepositView, cI as enrichPvIntentView, bT as fetchIndexerFulfillmentAndPayment, cy as getContracts, cu as getCurrencyCodeFromHash, ct as getCurrencyInfoFromCountryCode, cs as getCurrencyInfoFromHash, cU as getDelegationRoute, cD as getGatingServiceAddress, cz as getIntentGuardianContract, cC as getPaymentMethodsCatalog, cB as getRateManagerContracts, cA as hasIntentGuardian, cv as isSupportedCurrencyHash, cR as isZeroRateManagerId, cw as mapConversionRatesToOnchainMinRate, d6 as normalizeAccessPolicyState, cS as normalizeRateManagerId, cT as normalizeRegistry, cF as parseDepositView, cG as parseIntentView, d7 as planAccessPolicyUpdate } from './vaultUtils-CbfjrxgD.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';
|
package/dist/index.mjs
CHANGED
|
@@ -851,6 +851,7 @@ async function sendTransactionWithAttribution(walletClient, request, referrer, o
|
|
|
851
851
|
|
|
852
852
|
// src/utils/constants.ts
|
|
853
853
|
var DEFAULT_BASE_API_URL = "https://api.zkp2p.xyz";
|
|
854
|
+
var DEFAULT_INTENT_GUARDIAN_ADDRESS = "0x83671606454fA72ba1e2831E18C5090D25629414";
|
|
854
855
|
|
|
855
856
|
// ../../node_modules/.pnpm/@zkp2p+contracts-v2@0.4.0_ethers@6.16.0_bufferutil@4.1.0_utf-8-validate@5.0.10__typescript@5.9.3_zod@4.2.1/node_modules/@zkp2p/contracts-v2/oracleFeeds/chainlink.json
|
|
856
857
|
var chainlink_default = {
|
|
@@ -8512,7 +8513,7 @@ var Zkp2pClient = class {
|
|
|
8512
8513
|
* @param params.conversionRates - Conversion rates per processor, grouped by currency
|
|
8513
8514
|
* @param params.payeeDetailsHashes - Pre-computed hashed on-chain IDs (from registerPayeeDetails). When provided, skips the curator API call entirely.
|
|
8514
8515
|
* @param params.delegate - Optional delegate address that can manage the deposit
|
|
8515
|
-
* @param params.intentGuardian -
|
|
8516
|
+
* @param params.intentGuardian - Guardian for intent approval. Defaults to the paid guardian deployed for the client's environment.
|
|
8516
8517
|
* @param params.retainOnEmpty - Keep deposit active when balance reaches zero
|
|
8517
8518
|
* @param params.txOverrides - Optional viem transaction overrides
|
|
8518
8519
|
* @returns The deposit details posted to API (empty when payee registration is skipped) and the transaction hash
|
|
@@ -8675,7 +8676,7 @@ var Zkp2pClient = class {
|
|
|
8675
8676
|
paymentMethodData,
|
|
8676
8677
|
currencies: normalizedCurrencies,
|
|
8677
8678
|
delegate: params.delegate ?? "0x0000000000000000000000000000000000000000",
|
|
8678
|
-
intentGuardian: params.intentGuardian ??
|
|
8679
|
+
intentGuardian: params.intentGuardian ?? this.intentGuardianAddress ?? DEFAULT_INTENT_GUARDIAN_ADDRESS,
|
|
8679
8680
|
retainOnEmpty: Boolean(params.retainOnEmpty ?? false)
|
|
8680
8681
|
}
|
|
8681
8682
|
];
|