@zkp2p/sdk 0.4.0-rc.4 → 0.4.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/dist/index.cjs +260 -53
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +13 -4
- package/dist/index.d.ts +13 -4
- package/dist/index.mjs +260 -55
- package/dist/index.mjs.map +1 -1
- package/dist/react.d.mts +2 -2
- package/dist/react.d.ts +2 -2
- package/dist/{vaultUtils-ChVrAlJN.d.mts → vaultUtils-Dt7ZOITQ.d.mts} +99 -15
- package/dist/{vaultUtils-ChVrAlJN.d.ts → vaultUtils-Dt7ZOITQ.d.ts} +99 -15
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { R as ReferrerFeeConfig, D as DepositWithRelations, I as IntentEntity, S as SellerCredentialUploadInput, a as SellerPlatform, b as SellerCredentialAttestationRuntime, A as AttestationServiceSellerCredentialUploadResponse, Q as QuotesBestByPlatformRequest,
|
|
2
|
-
export {
|
|
3
|
-
import { Address, Hex, WalletClient
|
|
1
|
+
import { R as ReferrerFeeConfig, D as DepositWithRelations, I as IntentEntity, S as SellerCredentialUploadInput, a as SellerPlatform, b as SellerCredentialAttestationRuntime, A as AttestationServiceSellerCredentialUploadResponse, B as BuyerTeeSessionMaterialEncryptionInput, C as ConfirmPayPalForwardingResponse, Q as QuotesBestByPlatformRequest, c as BestByPlatformResponse, V as ValidatePayeeDetailsRequest, d as ValidatePayeeDetailsResponse, P as PostDepositDetailsRequest, e as PostDepositDetailsResponse, G as GetPayeeDetailsRequest, f as GetPayeeDetailsResponse, g as GetOwnerDepositsRequest, h as GetOwnerDepositsResponse, i as GetTakerTierRequest, j as GetTakerTierResponse, k as GetDepositBundleParams, l as ApiAdapterOptions, m as GetDepositBundleResponse, n as GetOrderbookParams, o as GetOrderbookResponse, p as CurrencyType, q as PaymentMethodCatalog, T as TxOverrides } from './vaultUtils-Dt7ZOITQ.mjs';
|
|
2
|
+
export { x as ActionCallback, ac as ApiDeposit, aj as ApiIntentStatus, aU as AttestationServiceSellerCredentialProbeResponse, aT as AttestationServiceSellerVerifyResponse, v as AuthorizationTokenProvider, cq as BatchResult, M as BestByPlatformResponseObject, aV as BuyerTeePaymentParams, aW as BuyerTeePaymentProofInput, aX as BuyerTeeSessionMaterial, t as CancelIntentMethodParams, L as CancelIntentParams, aA as CashAppCredentialUploadInput, at as CashAppSessionMaterial, b3 as ConfirmPayPalForwardingRequest, z as CreateDepositConversionRate, y as CreateDepositParams, aZ as CuratorSellerCredentialStatusResponse, aY as CuratorSellerCredentialUploadResponse, a_ as CuratorSellerVerifyResponse, bV as Currency, c0 as CurrencyData, cp as DelegationDepositTarget, cn as DelegationRoute, co as DelegationState, cb as Deposit, cd as DepositCurrency, ba as DepositIntentStatistics, af as DepositStatus, ad as DepositVerifier, ae as DepositVerifierCurrency, b7 as DepositVerifierData, ca as DepositView, a8 as FiatResponse, F as FulfillIntentMethodParams, J as FulfillIntentParams, N as GetBestByPlatformResponse, O as GetBestByPlatformResponseObject, ag as GetDepositByIdRequest, ah as GetDepositByIdResponse, ao as GetIntentByHashRequest, ap as GetIntentByHashResponse, am as GetIntentsByDepositRequest, an as GetIntentsByDepositResponse, _ as GetNearbyQuote, $ as GetNearbySuggestions, ak as GetOwnerIntentsRequest, al as GetOwnerIntentsResponse, U as GetPlatformQuote, a0 as GetQuoteResponse, a1 as GetQuoteResponseObject, a2 as GetQuoteSingleResponse, b2 as GetSellerCredentialStatusParams, bh as IndexerClient, bP as IndexerDeploymentEnv, bn as IndexerDeposit, bE as IndexerDepositDailySnapshot, bG as IndexerDepositFilter, bD as IndexerDepositFundActivity, bF as IndexerDepositFundActivityType, bJ as IndexerDepositOrderDirection, bI as IndexerDepositOrderField, bH as IndexerDepositPagination, bq as IndexerDepositPaymentMethod, bj as IndexerDepositService, bS as IndexerFulfillmentAndPaymentResponse, bQ as IndexerFulfillmentRecord, bo as IndexerIntentFulfilled, bp as IndexerIntentFulfillmentAmounts, bs as IndexerIntentStatus, bw as IndexerManagerAggregateStats, by as IndexerManagerDailySnapshot, bx as IndexerManagerStats, bB as IndexerManualRateUpdate, br as IndexerMethodCurrency, bC as IndexerOracleConfigUpdate, bR as IndexerPaymentVerifiedRecord, bt as IndexerRateManager, bv as IndexerRateManagerDelegation, bM as IndexerRateManagerDelegationPagination, bA as IndexerRateManagerDetail, bK as IndexerRateManagerFilter, bz as IndexerRateManagerListItem, bO as IndexerRateManagerOrderDirection, bN as IndexerRateManagerOrderField, bL as IndexerRateManagerPagination, bu as IndexerRateManagerRate, bk as IndexerRateManagerService, ai as Intent, cf as IntentView, aa as NearbyQuote, ab as NearbySuggestions, Z as OfframpClient, b6 as OnchainCurrency, cg as OnchainIntent, b9 as OrderStats, bg as OrderbookEntry, bT as PAYMENT_PLATFORMS, aC as PayPalCredentialUploadInput, b4 as PayPalForwardingConfirmationErrorCode, ay as PayPalSessionMaterial, cc as PaymentMethodData, bU as PaymentPlatformType, be as PlatformLimit, X as PlatformQuote, bf as PlatformRiskLevel, b8 as PreparedTransaction, a7 as QuoteFeesResponse, a6 as QuoteIntentResponse, Y as QuoteRequest, a3 as QuoteResponse, a4 as QuoteResponseObject, a5 as QuoteSingleResponse, E as Range, ce as ReferralFee, aq as RegisterPayeeDetailsRequest, ar as RegisterPayeeDetailsResponse, b0 as RegisteredUploadSellerCredentialParams, K as ReleaseFundsToPayerParams, c5 as RuntimeEnv, aR as SellerAttestationOutput, aE as SellerCiphertextBundle, aJ as SellerCredentialBundle, aK as SellerCredentialBundleUpload, aS as SellerCredentialProbeResponse, aM as SellerCredentialStatus, aL as SellerCredentialStatusValue, aD as SellerCredentialUploadInputByPlatform, aQ as SellerPaymentTypedDataValue, aI as SellerProbeInput, aF as SellerSignedCiphertextBundle, aO as SellerTypedDataField, aP as SellerTypedDataSpec, aH as SellerVerifyInput, aG as SellerVerifyIntentDetails, aN as SellerVerifyProxyBody, cs as SendBatchFn, cr as SendTransactionFn, s as SignalIntentMethodParams, H as SignalIntentParams, r as SignalIntentReferralFee, bb as TakerTier, bd as TakerTierLevel, bc as TakerTierStats, w as TimeoutConfig, a9 as TokenResponse, b1 as UploadSellerCredentialOptions, a$ as UploadSellerCredentialParams, az as VenmoCredentialUploadInput, as as VenmoSessionMaterial, b5 as VerifySellerPaymentParams, aB as WiseCredentialUploadInput, av as WiseProfileInfo, ax as WiseProfileNotFound, aw as WiseProfileSelectionRequired, au as WiseSessionMaterial, W as WithdrawDepositParams, ch as ZERO_RATE_MANAGER_ID, Z as Zkp2pClient, u as Zkp2pClientOptions, cm as classifyDelegationState, bl as compareEventCursorIdsByRecency, bW as currencyInfo, bi as defaultIndexerEndpoint, c8 as enrichPvDepositView, c9 as enrichPvIntentView, bm as fetchIndexerFulfillmentAndPayment, c1 as getContracts, bZ as getCurrencyCodeFromHash, bY as getCurrencyInfoFromCountryCode, bX as getCurrencyInfoFromHash, cl as getDelegationRoute, c4 as getGatingServiceAddress, c3 as getPaymentMethodsCatalog, c2 as getRateManagerContracts, b_ as isSupportedCurrencyHash, ci as isZeroRateManagerId, b$ as mapConversionRatesToOnchainMinRate, cj as normalizeRateManagerId, ck as normalizeRegistry, c6 as parseDepositView, c7 as parseIntentView } from './vaultUtils-Dt7ZOITQ.mjs';
|
|
3
|
+
import { Address, Hash, Hex, WalletClient } from 'viem';
|
|
4
4
|
import { Abi } from 'abitype';
|
|
5
5
|
import '@zkp2p/indexer-schema';
|
|
6
6
|
|
|
@@ -190,6 +190,7 @@ interface ConvertLiquidityOptions {
|
|
|
190
190
|
declare function convertDepositsForLiquidity(deposits: DepositWithRelations[], chainId: number, escrowAddress: string, options?: ConvertLiquidityOptions): EscrowDepositView[];
|
|
191
191
|
declare function convertIndexerIntentsToEscrowViews(intents: IntentEntity[], depositViewsById: Map<string, EscrowDepositView>): EscrowIntentView[];
|
|
192
192
|
|
|
193
|
+
declare function createEncryptedBuyerTeeSessionMaterial({ actionType, attestationRuntime, attestationServiceUrl, platform, sessionMaterial, timeoutMs, }: BuyerTeeSessionMaterialEncryptionInput): Promise<string>;
|
|
193
194
|
declare function apiCreateSellerCredentialBundle(payload: SellerCredentialUploadInput, attestationServiceUrl: string, platform: SellerPlatform, timeoutMs?: number, attestationRuntime?: SellerCredentialAttestationRuntime): Promise<AttestationServiceSellerCredentialUploadResponse>;
|
|
194
195
|
|
|
195
196
|
declare function apiPostDepositDetails(req: PostDepositDetailsRequest, baseApiUrl: string, timeoutMs?: number, _apiKey?: string, _authToken?: string): Promise<PostDepositDetailsResponse>;
|
|
@@ -201,6 +202,14 @@ declare function apiGetOwnerDeposits(req: GetOwnerDepositsRequest, apiKey: strin
|
|
|
201
202
|
* Get taker tier information for a specific address.
|
|
202
203
|
*/
|
|
203
204
|
declare function apiGetTakerTier(req: GetTakerTierRequest, apiKey: string | undefined, baseApiUrl: string, timeoutMs?: number): Promise<GetTakerTierResponse>;
|
|
205
|
+
declare function apiConfirmPayPalForwarding(payeeDetails: Hash, body: {
|
|
206
|
+
payeeEmail: string;
|
|
207
|
+
forwardingInitiatorEmail: string;
|
|
208
|
+
}, baseApiUrl: string, opts?: {
|
|
209
|
+
apiKey?: string;
|
|
210
|
+
authToken?: string;
|
|
211
|
+
timeoutMs?: number;
|
|
212
|
+
}): Promise<ConfirmPayPalForwardingResponse>;
|
|
204
213
|
declare function apiGetOrderbook(params: GetOrderbookParams, opts: ApiAdapterOptions): Promise<GetOrderbookResponse>;
|
|
205
214
|
declare function apiGetOrderbook(params: GetOrderbookParams, baseApiUrl: string, timeoutMs?: number, apiKey?: string): Promise<GetOrderbookResponse>;
|
|
206
215
|
declare function apiGetDepositBundle(params: GetDepositBundleParams, opts: ApiAdapterOptions): Promise<GetDepositBundleResponse>;
|
|
@@ -703,4 +712,4 @@ declare class ContractError extends ZKP2PError {
|
|
|
703
712
|
constructor(message: string, details?: unknown);
|
|
704
713
|
}
|
|
705
714
|
|
|
706
|
-
export { APIError, ApiAdapterOptions, AttestationServiceSellerCredentialUploadResponse, BASE_BUILDER_CODE, BestByPlatformResponse, CHAINLINK_ORACLE_ADAPTER, CHAINLINK_ORACLE_FEEDS, ContractError, ContractRouter, type ContractRouterConfig, CurrencyType, DEFAULT_ORACLE_MAX_STALENESS_SECONDS, ErrorCode, type EscrowContractContext, type EscrowDepositView, type EscrowIntentView, GetDepositBundleParams, GetDepositBundleResponse, GetOrderbookParams, GetOrderbookResponse, GetOwnerDepositsRequest, GetOwnerDepositsResponse, GetPayeeDetailsRequest, GetPayeeDetailsResponse, GetTakerTierRequest, GetTakerTierResponse, DepositWithRelations as IndexerDepositWithRelations, IntentEntity as IndexerIntent, type LogLevel, type MulticallClient, NetworkError, type OracleAdapterOverrides, type OracleKind, type OrchestratorContractContext, PEER_EXTENSION_CHROME_URL, PLATFORM_METADATA, PYTH_CONTRACT_BASE, PYTH_ORACLE_ADAPTER, PYTH_ORACLE_FEEDS, PaymentMethodCatalog, type PeerConnectionStatus, type PeerExtensionApi, type PeerExtensionOnrampParams, type PeerExtensionSdk, type PeerExtensionSdkOptions, type PeerExtensionState, type PeerExtensionWindow, type PeerOnrampPreparedTransactionCallback, type PeerOnrampPreparedTransactionResult, PostDepositDetailsRequest, PostDepositDetailsResponse, type PythFeedConfig, QuotesBestByPlatformRequest, ReferrerFeeConfig, SPREAD_ORACLE_FEEDS, SUPPORTED_CHAIN_IDS, SellerCredentialAttestationRuntime, SellerCredentialUploadInput, SellerPlatform, type SpreadOracleConfig, type SpreadOracleFeedConfig, type SupportedChainId, TOKEN_METADATA, TxOverrides, ValidatePayeeDetailsRequest, ValidatePayeeDetailsResponse, ValidationError, ZKP2PError, ZKP2P_ANDROID_REFERRER, ZKP2P_IOS_REFERRER, apiCreateSellerCredentialBundle, apiGetDepositBundle, apiGetOrderbook, apiGetOwnerDeposits, apiGetPayeeDetails, apiGetQuotesBestByPlatform, apiGetTakerTier, apiPostDepositDetails, apiValidatePayeeDetails, appendAttributionToCalldata, asciiToBytes32, assertValidReferrerFeeConfig, convertDepositsForLiquidity, convertIndexerDepositToEscrowView, convertIndexerIntentsToEscrowViews, createCompositeDepositId, createPeerExtensionSdk, encodePythAdapterConfig, encodeSpreadOracleAdapterConfig, encodeWithAttribution, ensureBytes32, getAttributionDataSuffix, getPeerExtensionState, getSpreadOracleConfig, isPeerExtensionAvailable, isValidReferrerFeeBps, isValidReferrerFeeRecipient, logger, openPeerExtensionInstallPage, parseReferrerFeeConfig, peerExtensionSdk, referrerFeeConfigToPreciseUnits, resolveFiatCurrencyBytes32, resolvePaymentMethodHash, resolvePaymentMethodHashFromCatalog, resolvePaymentMethodNameFromHash, sendTransactionWithAttribution, setLogLevel, validateOracleFeedsOnChain };
|
|
715
|
+
export { APIError, ApiAdapterOptions, AttestationServiceSellerCredentialUploadResponse, BASE_BUILDER_CODE, BestByPlatformResponse, BuyerTeeSessionMaterialEncryptionInput, CHAINLINK_ORACLE_ADAPTER, CHAINLINK_ORACLE_FEEDS, ConfirmPayPalForwardingResponse, ContractError, ContractRouter, type ContractRouterConfig, CurrencyType, DEFAULT_ORACLE_MAX_STALENESS_SECONDS, ErrorCode, type EscrowContractContext, type EscrowDepositView, type EscrowIntentView, GetDepositBundleParams, GetDepositBundleResponse, GetOrderbookParams, GetOrderbookResponse, GetOwnerDepositsRequest, GetOwnerDepositsResponse, GetPayeeDetailsRequest, GetPayeeDetailsResponse, GetTakerTierRequest, GetTakerTierResponse, DepositWithRelations as IndexerDepositWithRelations, IntentEntity as IndexerIntent, type LogLevel, type MulticallClient, NetworkError, type OracleAdapterOverrides, type OracleKind, type OrchestratorContractContext, PEER_EXTENSION_CHROME_URL, PLATFORM_METADATA, PYTH_CONTRACT_BASE, PYTH_ORACLE_ADAPTER, PYTH_ORACLE_FEEDS, PaymentMethodCatalog, type PeerConnectionStatus, type PeerExtensionApi, type PeerExtensionOnrampParams, type PeerExtensionSdk, type PeerExtensionSdkOptions, type PeerExtensionState, type PeerExtensionWindow, type PeerOnrampPreparedTransactionCallback, type PeerOnrampPreparedTransactionResult, PostDepositDetailsRequest, PostDepositDetailsResponse, type PythFeedConfig, QuotesBestByPlatformRequest, ReferrerFeeConfig, SPREAD_ORACLE_FEEDS, SUPPORTED_CHAIN_IDS, SellerCredentialAttestationRuntime, SellerCredentialUploadInput, SellerPlatform, type SpreadOracleConfig, type SpreadOracleFeedConfig, type SupportedChainId, TOKEN_METADATA, TxOverrides, ValidatePayeeDetailsRequest, ValidatePayeeDetailsResponse, ValidationError, ZKP2PError, ZKP2P_ANDROID_REFERRER, ZKP2P_IOS_REFERRER, apiConfirmPayPalForwarding, apiCreateSellerCredentialBundle, apiGetDepositBundle, apiGetOrderbook, apiGetOwnerDeposits, apiGetPayeeDetails, apiGetQuotesBestByPlatform, apiGetTakerTier, apiPostDepositDetails, apiValidatePayeeDetails, appendAttributionToCalldata, asciiToBytes32, assertValidReferrerFeeConfig, convertDepositsForLiquidity, convertIndexerDepositToEscrowView, convertIndexerIntentsToEscrowViews, createCompositeDepositId, createEncryptedBuyerTeeSessionMaterial, createPeerExtensionSdk, encodePythAdapterConfig, encodeSpreadOracleAdapterConfig, encodeWithAttribution, ensureBytes32, getAttributionDataSuffix, getPeerExtensionState, getSpreadOracleConfig, isPeerExtensionAvailable, isValidReferrerFeeBps, isValidReferrerFeeRecipient, logger, openPeerExtensionInstallPage, parseReferrerFeeConfig, peerExtensionSdk, referrerFeeConfigToPreciseUnits, resolveFiatCurrencyBytes32, resolvePaymentMethodHash, resolvePaymentMethodHashFromCatalog, resolvePaymentMethodNameFromHash, sendTransactionWithAttribution, setLogLevel, validateOracleFeedsOnChain };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { R as ReferrerFeeConfig, D as DepositWithRelations, I as IntentEntity, S as SellerCredentialUploadInput, a as SellerPlatform, b as SellerCredentialAttestationRuntime, A as AttestationServiceSellerCredentialUploadResponse, Q as QuotesBestByPlatformRequest,
|
|
2
|
-
export {
|
|
3
|
-
import { Address, Hex, WalletClient
|
|
1
|
+
import { R as ReferrerFeeConfig, D as DepositWithRelations, I as IntentEntity, S as SellerCredentialUploadInput, a as SellerPlatform, b as SellerCredentialAttestationRuntime, A as AttestationServiceSellerCredentialUploadResponse, B as BuyerTeeSessionMaterialEncryptionInput, C as ConfirmPayPalForwardingResponse, Q as QuotesBestByPlatformRequest, c as BestByPlatformResponse, V as ValidatePayeeDetailsRequest, d as ValidatePayeeDetailsResponse, P as PostDepositDetailsRequest, e as PostDepositDetailsResponse, G as GetPayeeDetailsRequest, f as GetPayeeDetailsResponse, g as GetOwnerDepositsRequest, h as GetOwnerDepositsResponse, i as GetTakerTierRequest, j as GetTakerTierResponse, k as GetDepositBundleParams, l as ApiAdapterOptions, m as GetDepositBundleResponse, n as GetOrderbookParams, o as GetOrderbookResponse, p as CurrencyType, q as PaymentMethodCatalog, T as TxOverrides } from './vaultUtils-Dt7ZOITQ.js';
|
|
2
|
+
export { x as ActionCallback, ac as ApiDeposit, aj as ApiIntentStatus, aU as AttestationServiceSellerCredentialProbeResponse, aT as AttestationServiceSellerVerifyResponse, v as AuthorizationTokenProvider, cq as BatchResult, M as BestByPlatformResponseObject, aV as BuyerTeePaymentParams, aW as BuyerTeePaymentProofInput, aX as BuyerTeeSessionMaterial, t as CancelIntentMethodParams, L as CancelIntentParams, aA as CashAppCredentialUploadInput, at as CashAppSessionMaterial, b3 as ConfirmPayPalForwardingRequest, z as CreateDepositConversionRate, y as CreateDepositParams, aZ as CuratorSellerCredentialStatusResponse, aY as CuratorSellerCredentialUploadResponse, a_ as CuratorSellerVerifyResponse, bV as Currency, c0 as CurrencyData, cp as DelegationDepositTarget, cn as DelegationRoute, co as DelegationState, cb as Deposit, cd as DepositCurrency, ba as DepositIntentStatistics, af as DepositStatus, ad as DepositVerifier, ae as DepositVerifierCurrency, b7 as DepositVerifierData, ca as DepositView, a8 as FiatResponse, F as FulfillIntentMethodParams, J as FulfillIntentParams, N as GetBestByPlatformResponse, O as GetBestByPlatformResponseObject, ag as GetDepositByIdRequest, ah as GetDepositByIdResponse, ao as GetIntentByHashRequest, ap as GetIntentByHashResponse, am as GetIntentsByDepositRequest, an as GetIntentsByDepositResponse, _ as GetNearbyQuote, $ as GetNearbySuggestions, ak as GetOwnerIntentsRequest, al as GetOwnerIntentsResponse, U as GetPlatformQuote, a0 as GetQuoteResponse, a1 as GetQuoteResponseObject, a2 as GetQuoteSingleResponse, b2 as GetSellerCredentialStatusParams, bh as IndexerClient, bP as IndexerDeploymentEnv, bn as IndexerDeposit, bE as IndexerDepositDailySnapshot, bG as IndexerDepositFilter, bD as IndexerDepositFundActivity, bF as IndexerDepositFundActivityType, bJ as IndexerDepositOrderDirection, bI as IndexerDepositOrderField, bH as IndexerDepositPagination, bq as IndexerDepositPaymentMethod, bj as IndexerDepositService, bS as IndexerFulfillmentAndPaymentResponse, bQ as IndexerFulfillmentRecord, bo as IndexerIntentFulfilled, bp as IndexerIntentFulfillmentAmounts, bs as IndexerIntentStatus, bw as IndexerManagerAggregateStats, by as IndexerManagerDailySnapshot, bx as IndexerManagerStats, bB as IndexerManualRateUpdate, br as IndexerMethodCurrency, bC as IndexerOracleConfigUpdate, bR as IndexerPaymentVerifiedRecord, bt as IndexerRateManager, bv as IndexerRateManagerDelegation, bM as IndexerRateManagerDelegationPagination, bA as IndexerRateManagerDetail, bK as IndexerRateManagerFilter, bz as IndexerRateManagerListItem, bO as IndexerRateManagerOrderDirection, bN as IndexerRateManagerOrderField, bL as IndexerRateManagerPagination, bu as IndexerRateManagerRate, bk as IndexerRateManagerService, ai as Intent, cf as IntentView, aa as NearbyQuote, ab as NearbySuggestions, Z as OfframpClient, b6 as OnchainCurrency, cg as OnchainIntent, b9 as OrderStats, bg as OrderbookEntry, bT as PAYMENT_PLATFORMS, aC as PayPalCredentialUploadInput, b4 as PayPalForwardingConfirmationErrorCode, ay as PayPalSessionMaterial, cc as PaymentMethodData, bU as PaymentPlatformType, be as PlatformLimit, X as PlatformQuote, bf as PlatformRiskLevel, b8 as PreparedTransaction, a7 as QuoteFeesResponse, a6 as QuoteIntentResponse, Y as QuoteRequest, a3 as QuoteResponse, a4 as QuoteResponseObject, a5 as QuoteSingleResponse, E as Range, ce as ReferralFee, aq as RegisterPayeeDetailsRequest, ar as RegisterPayeeDetailsResponse, b0 as RegisteredUploadSellerCredentialParams, K as ReleaseFundsToPayerParams, c5 as RuntimeEnv, aR as SellerAttestationOutput, aE as SellerCiphertextBundle, aJ as SellerCredentialBundle, aK as SellerCredentialBundleUpload, aS as SellerCredentialProbeResponse, aM as SellerCredentialStatus, aL as SellerCredentialStatusValue, aD as SellerCredentialUploadInputByPlatform, aQ as SellerPaymentTypedDataValue, aI as SellerProbeInput, aF as SellerSignedCiphertextBundle, aO as SellerTypedDataField, aP as SellerTypedDataSpec, aH as SellerVerifyInput, aG as SellerVerifyIntentDetails, aN as SellerVerifyProxyBody, cs as SendBatchFn, cr as SendTransactionFn, s as SignalIntentMethodParams, H as SignalIntentParams, r as SignalIntentReferralFee, bb as TakerTier, bd as TakerTierLevel, bc as TakerTierStats, w as TimeoutConfig, a9 as TokenResponse, b1 as UploadSellerCredentialOptions, a$ as UploadSellerCredentialParams, az as VenmoCredentialUploadInput, as as VenmoSessionMaterial, b5 as VerifySellerPaymentParams, aB as WiseCredentialUploadInput, av as WiseProfileInfo, ax as WiseProfileNotFound, aw as WiseProfileSelectionRequired, au as WiseSessionMaterial, W as WithdrawDepositParams, ch as ZERO_RATE_MANAGER_ID, Z as Zkp2pClient, u as Zkp2pClientOptions, cm as classifyDelegationState, bl as compareEventCursorIdsByRecency, bW as currencyInfo, bi as defaultIndexerEndpoint, c8 as enrichPvDepositView, c9 as enrichPvIntentView, bm as fetchIndexerFulfillmentAndPayment, c1 as getContracts, bZ as getCurrencyCodeFromHash, bY as getCurrencyInfoFromCountryCode, bX as getCurrencyInfoFromHash, cl as getDelegationRoute, c4 as getGatingServiceAddress, c3 as getPaymentMethodsCatalog, c2 as getRateManagerContracts, b_ as isSupportedCurrencyHash, ci as isZeroRateManagerId, b$ as mapConversionRatesToOnchainMinRate, cj as normalizeRateManagerId, ck as normalizeRegistry, c6 as parseDepositView, c7 as parseIntentView } from './vaultUtils-Dt7ZOITQ.js';
|
|
3
|
+
import { Address, Hash, Hex, WalletClient } from 'viem';
|
|
4
4
|
import { Abi } from 'abitype';
|
|
5
5
|
import '@zkp2p/indexer-schema';
|
|
6
6
|
|
|
@@ -190,6 +190,7 @@ interface ConvertLiquidityOptions {
|
|
|
190
190
|
declare function convertDepositsForLiquidity(deposits: DepositWithRelations[], chainId: number, escrowAddress: string, options?: ConvertLiquidityOptions): EscrowDepositView[];
|
|
191
191
|
declare function convertIndexerIntentsToEscrowViews(intents: IntentEntity[], depositViewsById: Map<string, EscrowDepositView>): EscrowIntentView[];
|
|
192
192
|
|
|
193
|
+
declare function createEncryptedBuyerTeeSessionMaterial({ actionType, attestationRuntime, attestationServiceUrl, platform, sessionMaterial, timeoutMs, }: BuyerTeeSessionMaterialEncryptionInput): Promise<string>;
|
|
193
194
|
declare function apiCreateSellerCredentialBundle(payload: SellerCredentialUploadInput, attestationServiceUrl: string, platform: SellerPlatform, timeoutMs?: number, attestationRuntime?: SellerCredentialAttestationRuntime): Promise<AttestationServiceSellerCredentialUploadResponse>;
|
|
194
195
|
|
|
195
196
|
declare function apiPostDepositDetails(req: PostDepositDetailsRequest, baseApiUrl: string, timeoutMs?: number, _apiKey?: string, _authToken?: string): Promise<PostDepositDetailsResponse>;
|
|
@@ -201,6 +202,14 @@ declare function apiGetOwnerDeposits(req: GetOwnerDepositsRequest, apiKey: strin
|
|
|
201
202
|
* Get taker tier information for a specific address.
|
|
202
203
|
*/
|
|
203
204
|
declare function apiGetTakerTier(req: GetTakerTierRequest, apiKey: string | undefined, baseApiUrl: string, timeoutMs?: number): Promise<GetTakerTierResponse>;
|
|
205
|
+
declare function apiConfirmPayPalForwarding(payeeDetails: Hash, body: {
|
|
206
|
+
payeeEmail: string;
|
|
207
|
+
forwardingInitiatorEmail: string;
|
|
208
|
+
}, baseApiUrl: string, opts?: {
|
|
209
|
+
apiKey?: string;
|
|
210
|
+
authToken?: string;
|
|
211
|
+
timeoutMs?: number;
|
|
212
|
+
}): Promise<ConfirmPayPalForwardingResponse>;
|
|
204
213
|
declare function apiGetOrderbook(params: GetOrderbookParams, opts: ApiAdapterOptions): Promise<GetOrderbookResponse>;
|
|
205
214
|
declare function apiGetOrderbook(params: GetOrderbookParams, baseApiUrl: string, timeoutMs?: number, apiKey?: string): Promise<GetOrderbookResponse>;
|
|
206
215
|
declare function apiGetDepositBundle(params: GetDepositBundleParams, opts: ApiAdapterOptions): Promise<GetDepositBundleResponse>;
|
|
@@ -703,4 +712,4 @@ declare class ContractError extends ZKP2PError {
|
|
|
703
712
|
constructor(message: string, details?: unknown);
|
|
704
713
|
}
|
|
705
714
|
|
|
706
|
-
export { APIError, ApiAdapterOptions, AttestationServiceSellerCredentialUploadResponse, BASE_BUILDER_CODE, BestByPlatformResponse, CHAINLINK_ORACLE_ADAPTER, CHAINLINK_ORACLE_FEEDS, ContractError, ContractRouter, type ContractRouterConfig, CurrencyType, DEFAULT_ORACLE_MAX_STALENESS_SECONDS, ErrorCode, type EscrowContractContext, type EscrowDepositView, type EscrowIntentView, GetDepositBundleParams, GetDepositBundleResponse, GetOrderbookParams, GetOrderbookResponse, GetOwnerDepositsRequest, GetOwnerDepositsResponse, GetPayeeDetailsRequest, GetPayeeDetailsResponse, GetTakerTierRequest, GetTakerTierResponse, DepositWithRelations as IndexerDepositWithRelations, IntentEntity as IndexerIntent, type LogLevel, type MulticallClient, NetworkError, type OracleAdapterOverrides, type OracleKind, type OrchestratorContractContext, PEER_EXTENSION_CHROME_URL, PLATFORM_METADATA, PYTH_CONTRACT_BASE, PYTH_ORACLE_ADAPTER, PYTH_ORACLE_FEEDS, PaymentMethodCatalog, type PeerConnectionStatus, type PeerExtensionApi, type PeerExtensionOnrampParams, type PeerExtensionSdk, type PeerExtensionSdkOptions, type PeerExtensionState, type PeerExtensionWindow, type PeerOnrampPreparedTransactionCallback, type PeerOnrampPreparedTransactionResult, PostDepositDetailsRequest, PostDepositDetailsResponse, type PythFeedConfig, QuotesBestByPlatformRequest, ReferrerFeeConfig, SPREAD_ORACLE_FEEDS, SUPPORTED_CHAIN_IDS, SellerCredentialAttestationRuntime, SellerCredentialUploadInput, SellerPlatform, type SpreadOracleConfig, type SpreadOracleFeedConfig, type SupportedChainId, TOKEN_METADATA, TxOverrides, ValidatePayeeDetailsRequest, ValidatePayeeDetailsResponse, ValidationError, ZKP2PError, ZKP2P_ANDROID_REFERRER, ZKP2P_IOS_REFERRER, apiCreateSellerCredentialBundle, apiGetDepositBundle, apiGetOrderbook, apiGetOwnerDeposits, apiGetPayeeDetails, apiGetQuotesBestByPlatform, apiGetTakerTier, apiPostDepositDetails, apiValidatePayeeDetails, appendAttributionToCalldata, asciiToBytes32, assertValidReferrerFeeConfig, convertDepositsForLiquidity, convertIndexerDepositToEscrowView, convertIndexerIntentsToEscrowViews, createCompositeDepositId, createPeerExtensionSdk, encodePythAdapterConfig, encodeSpreadOracleAdapterConfig, encodeWithAttribution, ensureBytes32, getAttributionDataSuffix, getPeerExtensionState, getSpreadOracleConfig, isPeerExtensionAvailable, isValidReferrerFeeBps, isValidReferrerFeeRecipient, logger, openPeerExtensionInstallPage, parseReferrerFeeConfig, peerExtensionSdk, referrerFeeConfigToPreciseUnits, resolveFiatCurrencyBytes32, resolvePaymentMethodHash, resolvePaymentMethodHashFromCatalog, resolvePaymentMethodNameFromHash, sendTransactionWithAttribution, setLogLevel, validateOracleFeedsOnChain };
|
|
715
|
+
export { APIError, ApiAdapterOptions, AttestationServiceSellerCredentialUploadResponse, BASE_BUILDER_CODE, BestByPlatformResponse, BuyerTeeSessionMaterialEncryptionInput, CHAINLINK_ORACLE_ADAPTER, CHAINLINK_ORACLE_FEEDS, ConfirmPayPalForwardingResponse, ContractError, ContractRouter, type ContractRouterConfig, CurrencyType, DEFAULT_ORACLE_MAX_STALENESS_SECONDS, ErrorCode, type EscrowContractContext, type EscrowDepositView, type EscrowIntentView, GetDepositBundleParams, GetDepositBundleResponse, GetOrderbookParams, GetOrderbookResponse, GetOwnerDepositsRequest, GetOwnerDepositsResponse, GetPayeeDetailsRequest, GetPayeeDetailsResponse, GetTakerTierRequest, GetTakerTierResponse, DepositWithRelations as IndexerDepositWithRelations, IntentEntity as IndexerIntent, type LogLevel, type MulticallClient, NetworkError, type OracleAdapterOverrides, type OracleKind, type OrchestratorContractContext, PEER_EXTENSION_CHROME_URL, PLATFORM_METADATA, PYTH_CONTRACT_BASE, PYTH_ORACLE_ADAPTER, PYTH_ORACLE_FEEDS, PaymentMethodCatalog, type PeerConnectionStatus, type PeerExtensionApi, type PeerExtensionOnrampParams, type PeerExtensionSdk, type PeerExtensionSdkOptions, type PeerExtensionState, type PeerExtensionWindow, type PeerOnrampPreparedTransactionCallback, type PeerOnrampPreparedTransactionResult, PostDepositDetailsRequest, PostDepositDetailsResponse, type PythFeedConfig, QuotesBestByPlatformRequest, ReferrerFeeConfig, SPREAD_ORACLE_FEEDS, SUPPORTED_CHAIN_IDS, SellerCredentialAttestationRuntime, SellerCredentialUploadInput, SellerPlatform, type SpreadOracleConfig, type SpreadOracleFeedConfig, type SupportedChainId, TOKEN_METADATA, TxOverrides, ValidatePayeeDetailsRequest, ValidatePayeeDetailsResponse, ValidationError, ZKP2PError, ZKP2P_ANDROID_REFERRER, ZKP2P_IOS_REFERRER, apiConfirmPayPalForwarding, apiCreateSellerCredentialBundle, apiGetDepositBundle, apiGetOrderbook, apiGetOwnerDeposits, apiGetPayeeDetails, apiGetQuotesBestByPlatform, apiGetTakerTier, apiPostDepositDetails, apiValidatePayeeDetails, appendAttributionToCalldata, asciiToBytes32, assertValidReferrerFeeConfig, convertDepositsForLiquidity, convertIndexerDepositToEscrowView, convertIndexerIntentsToEscrowViews, createCompositeDepositId, createEncryptedBuyerTeeSessionMaterial, createPeerExtensionSdk, encodePythAdapterConfig, encodeSpreadOracleAdapterConfig, encodeWithAttribution, ensureBytes32, getAttributionDataSuffix, getPeerExtensionState, getSpreadOracleConfig, isPeerExtensionAvailable, isValidReferrerFeeBps, isValidReferrerFeeRecipient, logger, openPeerExtensionInstallPage, parseReferrerFeeConfig, peerExtensionSdk, referrerFeeConfigToPreciseUnits, resolveFiatCurrencyBytes32, resolvePaymentMethodHash, resolvePaymentMethodHashFromCatalog, resolvePaymentMethodNameFromHash, sendTransactionWithAttribution, setLogLevel, validateOracleFeedsOnChain };
|