@zkp2p/sdk 0.11.1 → 0.12.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 +101 -7
- package/dist/{chunk-LPKFXAKY.mjs → chunk-RYBXFY6X.mjs} +44235 -478
- package/dist/chunk-RYBXFY6X.mjs.map +1 -0
- package/dist/index.cjs +44753 -453
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +33 -5
- package/dist/index.d.ts +33 -5
- package/dist/index.mjs +537 -14
- package/dist/index.mjs.map +1 -1
- package/dist/protocolViewerParsers-LCSRVC7F.mjs +5 -0
- package/dist/{protocolViewerParsers-M7C2ICV3.mjs.map → protocolViewerParsers-LCSRVC7F.mjs.map} +1 -1
- package/dist/react.d.mts +2 -2
- package/dist/react.d.ts +2 -2
- package/dist/{vaultUtils-CbfjrxgD.d.mts → vaultUtils-xNLHO5lY.d.mts} +330 -4
- package/dist/{vaultUtils-CbfjrxgD.d.ts → vaultUtils-xNLHO5lY.d.ts} +330 -4
- package/package.json +1 -1
- package/dist/chunk-LPKFXAKY.mjs.map +0 -1
- package/dist/protocolViewerParsers-M7C2ICV3.mjs +0 -5
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { R as ReferrerFeeConfig, S as SellerCredentialBundle, D as DepositWithRelations, I as IntentEntity, a as IdentityAttestationRequestBody, A as AttestationServiceIdentityResponse, B as BuyerTeeVerifyPaymentBody, b as AttestationServiceSellerVerifyResponse, c as SellerCredentialUploadInput, d as SellerCredentialUploadPlatform, e as SellerCredentialAttestationRuntime, f as AttestationServiceSellerCredentialUploadResponse, g as BuyerTeeSessionMaterialEncryptionInput, U as UploadSellerCredentialBundleParams, C as CuratorSellerCredentialUploadResponse, h as CreateReferralCodeRequest, i as ApiAdapterOptions, j as CreateReferralCodeResponse, k as ReferralReadRequest, l as ReferralDashboardResponse, m as ReferralEarningsResponse, n as ReferralCodeLookupResponse, o as RedeemReferralCodeRequest, p as RedeemReferralCodeResponse, q as UpdateReferralCodeRequest, r as UpdateReferralCodeResponse, G as GoogleOAuthSellerCredentialPlatform, s as GoogleOAuthSellerCredentialUploadBodyByPlatform, Q as QuotesBestByPlatformRequest, t as BestByPlatformResponse, V as ValidatePayeeDetailsRequest, u as ValidatePayeeDetailsResponse, P as PostDepositDetailsRequest, v as PostDepositDetailsResponse, w as GetPayeeDetailsRequest, x as GetPayeeDetailsResponse, y as GetOwnerDepositsRequest, z as GetOwnerDepositsResponse, E as GetDepositBundleParams, F as GetDepositBundleResponse, H as GetOrderbookParams, J as GetOrderbookResponse, K as GetOrderbookTableResponse, L as QuoteRequest, M as QuoteResponse, N as CuratorMetadata, O as CurrencyType, T as PaymentMethodCatalog, W as TxOverrides } from './vaultUtils-
|
|
2
|
-
export {
|
|
1
|
+
import { R as ReferrerFeeConfig, S as SellerCredentialBundle, D as DepositWithRelations, I as IntentEntity, a as IdentityAttestationRequestBody, A as AttestationServiceIdentityResponse, B as BuyerTeeVerifyPaymentBody, b as AttestationServiceSellerVerifyResponse, c as SellerCredentialUploadInput, d as SellerCredentialUploadPlatform, e as SellerCredentialAttestationRuntime, f as AttestationServiceSellerCredentialUploadResponse, g as BuyerTeeSessionMaterialEncryptionInput, U as UploadSellerCredentialBundleParams, C as CuratorSellerCredentialUploadResponse, h as CreateReferralCodeRequest, i as ApiAdapterOptions, j as CreateReferralCodeResponse, k as ReferralReadRequest, l as ReferralDashboardResponse, m as ReferralEarningsResponse, n as ReferralCodeLookupResponse, o as RedeemReferralCodeRequest, p as RedeemReferralCodeResponse, q as UpdateReferralCodeRequest, r as UpdateReferralCodeResponse, G as GoogleOAuthSellerCredentialPlatform, s as GoogleOAuthSellerCredentialUploadBodyByPlatform, Q as QuotesBestByPlatformRequest, t as BestByPlatformResponse, V as ValidatePayeeDetailsRequest, u as ValidatePayeeDetailsResponse, P as PostDepositDetailsRequest, v as PostDepositDetailsResponse, w as GetPayeeDetailsRequest, x as GetPayeeDetailsResponse, y as GetOwnerDepositsRequest, z as GetOwnerDepositsResponse, E as GetDepositBundleParams, F as GetDepositBundleResponse, H as GetOrderbookParams, J as GetOrderbookResponse, K as GetOrderbookTableResponse, L as QuoteRequest, M as QuoteResponse, N as CuratorMetadata, O as CurrencyType, T as PaymentMethodCatalog, W as TxOverrides } from './vaultUtils-xNLHO5lY.mjs';
|
|
2
|
+
export { dv as AccessPolicyDiff, dm as AccessPolicyOperations, dw as AccessPolicyOrdering, dx as AccessPolicyPlan, dy as AccessPolicyPlanStep, dz as AccessPolicyState, dn as AccessPolicyUnsupportedError, dA as AccessPolicyViolation, ah as ActionCallback, aL as ApiDeposit, aS as ApiIntentStatus, bq as AttestationServiceSellerCredentialProbeResponse, af as AuthorizationTokenProvider, dj as BatchResult, as as BestByPlatformResponseObject, br as BuyerTeePaymentParams, bs as BuyerTeePaymentProofInput, bt as BuyerTeeSessionMaterial, cW as CHARGEBACK_POLICY_ABI, a3 as CancelIntentMethodParams, ar as CancelIntentParams, b8 as CashAppCredentialUploadInput, b1 as CashAppSessionMaterial, al as CreateDepositConversionRate, ak as CreateDepositParams, bu as CuratorSellerCredentialStatusResponse, bv as CuratorSellerVerifyResponse, cE as Currency, cL as CurrencyData, di as DelegationDepositTarget, dg as DelegationRoute, dh as DelegationState, d4 as Deposit, d6 as DepositCurrency, bO as DepositIntentStatistics, aO as DepositStatus, aM as DepositVerifier, aN as DepositVerifierCurrency, bL as DepositVerifierData, d3 as DepositView, aH as FiatResponse, bp as FulfillIntentAttestationResponse, a2 as FulfillIntentMethodParams, ap as FulfillIntentParams, at as GetBestByPlatformResponse, au as GetBestByPlatformResponseObject, aP as GetDepositByIdRequest, aQ as GetDepositByIdResponse, aX as GetIntentByHashRequest, aY as GetIntentByHashResponse, aV as GetIntentsByDepositRequest, aW as GetIntentsByDepositResponse, ay as GetNearbyQuote, az as GetNearbySuggestions, aT as GetOwnerIntentsRequest, aU as GetOwnerIntentsResponse, av as GetPlatformQuote, aA as GetQuoteResponse, aB as GetQuoteResponseObject, aC as GetQuoteSingleResponse, bA as GetSellerCredentialStatusParams, bE as IdentityAttestationActionType, bF as IdentityAttestationOutput, bG as IdentityAttestationOutputFor, bH as IdentityAttestationParams, cj as IndexedRiskWindow, ck as IndexedStakingRowFreshness, cl as IndexedStakingState, cm as IndexedStakingStateParams, cn as IndexedTakerAuthorization, bU as IndexerClient, cy as IndexerDeploymentEnv, c0 as IndexerDeposit, ch as IndexerDepositDailySnapshot, cp as IndexerDepositFilter, cg as IndexerDepositFundActivity, ci as IndexerDepositFundActivityType, cs as IndexerDepositOrderDirection, cr as IndexerDepositOrderField, cq as IndexerDepositPagination, c3 as IndexerDepositPaymentMethod, bW as IndexerDepositService, cB as IndexerFulfillmentAndPaymentResponse, cz as IndexerFulfillmentRecord, c1 as IndexerIntentFulfilled, c2 as IndexerIntentFulfillmentAmounts, c5 as IndexerIntentStatus, c9 as IndexerManagerAggregateStats, cb as IndexerManagerDailySnapshot, ca as IndexerManagerStats, ce as IndexerManualRateUpdate, c4 as IndexerMethodCurrency, cf as IndexerOracleConfigUpdate, cA as IndexerPaymentVerifiedRecord, c6 as IndexerRateManager, c8 as IndexerRateManagerDelegation, cv as IndexerRateManagerDelegationPagination, cd as IndexerRateManagerDetail, ct as IndexerRateManagerFilter, cc as IndexerRateManagerListItem, cx as IndexerRateManagerOrderDirection, cw as IndexerRateManagerOrderField, cu as IndexerRateManagerPagination, c7 as IndexerRateManagerRate, bX as IndexerRateManagerService, b_ as IndexerStakingService, aR as Intent, ad as IntentGuardianErrorCode, a9 as IntentGuardianPolicy, aa as IntentGuardianQuote, ab as IntentGuardianWriteFunction, ac as IntentGuardianWriteParams, d8 as IntentView, dq as MAX_ADDRESSES_PER_CALL, dp as MAX_GROUPS_PER_DEPOSIT, dr as MAX_WHITELISTED_ADDRESSES, bI as MakerIdentityAttestationRequestBody, bJ as MakerIdentityPlatform, aJ as NearbyQuote, aK as NearbySuggestions, cV as ORCHESTRATOR_V3_ABI, Z as OfframpClient, bK as OnchainCurrency, d9 as OnchainIntent, bN as OrderStats, bS as OrderbookEntry, bT as OrderbookTableRow, cC as PAYMENT_PLATFORMS, b6 as PayPalGoogleOAuthSellerCredentialUploadBody, d5 as PaymentMethodData, cD as PaymentPlatformType, aw as PlatformQuote, bM as PreparedTransaction, aG as QuoteFeesResponse, aF as QuoteIntentResponse, ax as QuotePreference, aD as QuoteResponseObject, aE as QuoteSingleResponse, am as Range, $ as RedeemReferralCodeSignatureOptions, X as ReferralBearerWriteOptions, d7 as ReferralFee, Y as ReferralReadOptions, ai as ReferralRedemption, aj as ReferralSignatureBody, _ as ReferralSignatureOptions, aZ as RegisterPayeeDetailsRequest, a_ as RegisterPayeeDetailsResponse, bw as RegisteredSellerCredentialPlatform, by as RegisteredUploadSellerCredentialParams, aq as ReleaseFundsToPayerParams, cY as RuntimeEnv, cX as STAKE_VAULT_ABI, bn as SellerAttestationOutput, bb as SellerCiphertextBundle, bg as SellerCredentialBundleUpload, bo as SellerCredentialProbeResponse, bi as SellerCredentialStatus, bh as SellerCredentialStatusValue, ba as SellerCredentialUploadInputByPlatform, bm as SellerPaymentTypedDataValue, a$ as SellerPlatform, bf as SellerProbeInput, bc as SellerSignedCiphertextBundle, bk as SellerTypedDataField, bl as SellerTypedDataSpec, be as SellerVerifyInput, bd as SellerVerifyIntentDetails, bj as SellerVerifyProxyBody, dl as SendBatchFn, dk as SendTransactionFn, a1 as SignalIntentMethodParams, ao as SignalIntentParams, a0 as SignalIntentReferralFee, bQ as StakeEnvironment, a6 as StakeVaultState, a7 as StakeVaultWriteFunction, a8 as StakeVaultWriteParams, co as StakingEntityIds, bR as TakerStakeBalances, ag as TimeoutConfig, aI as TokenResponse, a4 as UpdateReferralCodeSignatureOptions, bC as UploadGoogleOAuthSellerCredentialParams, bB as UploadPayPalGoogleOAuthSellerCredentialParams, bz as UploadSellerCredentialOptions, bx as UploadSellerCredentialParams, bP as UsdcAmount, c_ as V2ContractAbis, cZ as V2ContractAddresses, b7 as VenmoCredentialUploadInput, b0 as VenmoSessionMaterial, bD as VerifySellerPaymentParams, b9 as WiseCredentialUploadInput, b3 as WiseProfileInfo, b5 as WiseProfileNotFound, b4 as WiseProfileSelectionRequired, b2 as WiseSessionMaterial, an as WithdrawDepositParams, da as ZERO_RATE_MANAGER_ID, Z as Zkp2pClient, a5 as Zkp2pClientOptions, bZ as buildStakingEntityIds, df as classifyDelegationState, ae as classifyIntentGuardianError, bY as compareEventCursorIdsByRecency, cF as currencyInfo, bV as defaultIndexerEndpoint, ds as diffAccessPolicy, d1 as enrichPvDepositView, d2 as enrichPvIntentView, b$ as fetchIndexerFulfillmentAndPayment, cS as getChargebackPolicyContract, cM as getContracts, cI as getCurrencyCodeFromHash, cH as getCurrencyInfoFromCountryCode, cG as getCurrencyInfoFromHash, de as getDelegationRoute, cU as getGatingServiceAddress, cN as getIntentGuardianContract, cR as getOrchestratorV3Contract, cT as getPaymentMethodsCatalog, cP as getRateManagerContracts, cQ as getStakeVaultContract, cO as hasIntentGuardian, cJ as isSupportedCurrencyHash, db as isZeroRateManagerId, cK as mapConversionRatesToOnchainMinRate, dt as normalizeAccessPolicyState, dc as normalizeRateManagerId, dd as normalizeRegistry, c$ as parseDepositView, d0 as parseIntentView, du as planAccessPolicyUpdate } from './vaultUtils-xNLHO5lY.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';
|
|
@@ -183,7 +183,6 @@ declare class ContractRouter {
|
|
|
183
183
|
|
|
184
184
|
type PeerConnectionStatus = 'connected' | 'disconnected' | 'pending';
|
|
185
185
|
type PeerMetadataCaptureMode = 'buyerTee' | 'sellerCredential';
|
|
186
|
-
type PeerMetadataProviderConfig = Record<string, unknown>;
|
|
187
186
|
type PeerAuthenticateParams = {
|
|
188
187
|
actionType: string;
|
|
189
188
|
attestationActionType?: string | null;
|
|
@@ -192,7 +191,6 @@ type PeerAuthenticateParams = {
|
|
|
192
191
|
callerAddress?: string | null;
|
|
193
192
|
captureMode?: PeerMetadataCaptureMode;
|
|
194
193
|
platform: string;
|
|
195
|
-
providerConfig?: PeerMetadataProviderConfig;
|
|
196
194
|
};
|
|
197
195
|
type PeerBuyerTeePaymentParams = Record<string, string | number | boolean>;
|
|
198
196
|
type PeerBuyerTeePaymentCapture = {
|
|
@@ -708,6 +706,36 @@ declare function resolvePaymentMethodHashFromCatalog(processorName: string, cata
|
|
|
708
706
|
*/
|
|
709
707
|
declare function resolvePaymentMethodNameFromHash(hash: string, catalog: PaymentMethodCatalog): string | undefined;
|
|
710
708
|
|
|
709
|
+
/**
|
|
710
|
+
* Exact client-side counterparts of the ChargebackPolicy admission rules.
|
|
711
|
+
*
|
|
712
|
+
* Kept inside the public SDK so its generated declarations and runtime remain
|
|
713
|
+
* self-contained for external consumers. The deployed policy (contracts-v2
|
|
714
|
+
* 0.4.0) is full-gross: an intent on a payment method with a non-zero risk
|
|
715
|
+
* window locks the full intent amount 1:1 from the effective stake owner's
|
|
716
|
+
* free stake, so stake-backed capacity IS that free stake. A method with a
|
|
717
|
+
* zero (or absent) risk window admits unbonded and never touches stake.
|
|
718
|
+
*
|
|
719
|
+
* Intent-lifetime extension pricing is not risk math: it belongs to the
|
|
720
|
+
* standalone IntentGuardian and is quoted via the guardian operations.
|
|
721
|
+
*/
|
|
722
|
+
type IntegerLike = bigint | number | string | {
|
|
723
|
+
toString(): string;
|
|
724
|
+
};
|
|
725
|
+
type RiskMode = 'UNBONDED' | 'STAKE_BACKED';
|
|
726
|
+
declare const RISK_BPS_DENOMINATOR = 10000n;
|
|
727
|
+
/** Full-gross coverage required at admission; zero when the method is unbonded. */
|
|
728
|
+
declare function calculateRequiredCoverage(amount: IntegerLike, chargebackable: boolean): bigint;
|
|
729
|
+
/** Maximum chargebackable intent amount that can use existing stake. */
|
|
730
|
+
declare function calculateStakeBackedCapacity(freeStake: IntegerLike): bigint;
|
|
731
|
+
/**
|
|
732
|
+
* Exact admission mode under the ChargebackPolicy. `chargebackable` means the
|
|
733
|
+
* payment method carries a non-zero risk window; the policy additionally
|
|
734
|
+
* requires the deposit to have chargebacks enabled and admissions unpaused,
|
|
735
|
+
* both of which reject the intent outright rather than changing its mode.
|
|
736
|
+
*/
|
|
737
|
+
declare function selectRiskMode(amount: IntegerLike, freeStake: IntegerLike, chargebackable: boolean): RiskMode;
|
|
738
|
+
|
|
711
739
|
/**
|
|
712
740
|
* Ensure a value is 32 bytes hex (0x + 64 nibbles). If ascii, keccak256 by default when hash=true.
|
|
713
741
|
*/
|
|
@@ -896,4 +924,4 @@ declare class ContractError extends ZKP2PError {
|
|
|
896
924
|
constructor(message: string, details?: unknown);
|
|
897
925
|
}
|
|
898
926
|
|
|
899
|
-
export { APIError, ApiAdapterOptions, AttestationServiceIdentityResponse, AttestationServiceSellerCredentialUploadResponse, AttestationServiceSellerVerifyResponse, BASE_BUILDER_CODE, BestByPlatformResponse, BuyerTeeSessionMaterialEncryptionInput, BuyerTeeVerifyPaymentBody, CHAINLINK_ORACLE_ADAPTER, CHAINLINK_ORACLE_FEEDS, ContractError, ContractRouter, type ContractRouterConfig, CreateReferralCodeRequest, CreateReferralCodeResponse, CuratorSellerCredentialUploadResponse, CurrencyType, DEFAULT_ORACLE_MAX_STALENESS_SECONDS, ErrorCode, type EscrowContractContext, type EscrowDepositView, type EscrowIntentView, GetDepositBundleParams, GetDepositBundleResponse, GetOrderbookParams, GetOrderbookResponse, GetOrderbookTableResponse, GetOwnerDepositsRequest, GetOwnerDepositsResponse, GetPayeeDetailsRequest, GetPayeeDetailsResponse, GoogleOAuthSellerCredentialPlatform, GoogleOAuthSellerCredentialUploadBodyByPlatform, IdentityAttestationRequestBody, DepositWithRelations as IndexerDepositWithRelations, IntentEntity as IndexerIntent, type LogLevel, type MulticallClient, NetworkError, type OracleAdapterOverrides, type OracleKind, type OrchestratorContractContext, PEER_EXTENSION_CHROME_URL, PLATFORM_METADATA, PYTH_CONTRACT_BASE, PYTH_ORACLE_ADAPTER, PYTH_ORACLE_FEEDS, PaymentMethodCatalog, type PeerAuthenticateParams, type PeerBuyerTeePaymentCapture, type PeerBuyerTeePaymentParams, type PeerConnectionStatus, type PeerExtensionApi, type PeerExtensionSdk, type PeerExtensionSdkOptions, type PeerExtensionState, type PeerExtensionWindow, type PeerMetadataCaptureMode, type PeerMetadataMessage, type PeerMetadataMessageCallback, type
|
|
927
|
+
export { APIError, ApiAdapterOptions, AttestationServiceIdentityResponse, AttestationServiceSellerCredentialUploadResponse, AttestationServiceSellerVerifyResponse, BASE_BUILDER_CODE, BestByPlatformResponse, BuyerTeeSessionMaterialEncryptionInput, BuyerTeeVerifyPaymentBody, CHAINLINK_ORACLE_ADAPTER, CHAINLINK_ORACLE_FEEDS, ContractError, ContractRouter, type ContractRouterConfig, CreateReferralCodeRequest, CreateReferralCodeResponse, CuratorSellerCredentialUploadResponse, CurrencyType, DEFAULT_ORACLE_MAX_STALENESS_SECONDS, ErrorCode, type EscrowContractContext, type EscrowDepositView, type EscrowIntentView, GetDepositBundleParams, GetDepositBundleResponse, GetOrderbookParams, GetOrderbookResponse, GetOrderbookTableResponse, GetOwnerDepositsRequest, GetOwnerDepositsResponse, GetPayeeDetailsRequest, GetPayeeDetailsResponse, GoogleOAuthSellerCredentialPlatform, GoogleOAuthSellerCredentialUploadBodyByPlatform, IdentityAttestationRequestBody, DepositWithRelations as IndexerDepositWithRelations, IntentEntity as IndexerIntent, type IntegerLike, type LogLevel, type MulticallClient, NetworkError, type OracleAdapterOverrides, type OracleKind, type OrchestratorContractContext, PEER_EXTENSION_CHROME_URL, PLATFORM_METADATA, PYTH_CONTRACT_BASE, PYTH_ORACLE_ADAPTER, PYTH_ORACLE_FEEDS, PaymentMethodCatalog, type PeerAuthenticateParams, type PeerBuyerTeePaymentCapture, type PeerBuyerTeePaymentParams, type PeerConnectionStatus, type PeerExtensionApi, type PeerExtensionSdk, type PeerExtensionSdkOptions, type PeerExtensionState, type PeerExtensionWindow, type PeerMetadataCaptureMode, type PeerMetadataMessage, type PeerMetadataMessageCallback, type PeerMetadataRow, type PeerSarCredentialCapture, PostDepositDetailsRequest, PostDepositDetailsResponse, type PythFeedConfig, QuoteRequest, QuoteResponse, QuotesBestByPlatformRequest, REFERRAL_SIGNATURE_DOMAIN, REFERRAL_SIGNATURE_TYPES, RISK_BPS_DENOMINATOR, RedeemReferralCodeRequest, RedeemReferralCodeResponse, ReferralCodeLookupResponse, ReferralDashboardResponse, ReferralEarningsResponse, ReferralReadRequest, ReferrerFeeConfig, type RiskMode, SPREAD_ORACLE_FEEDS, SUPPORTED_CHAIN_IDS, SellerCredentialAttestationRuntime, SellerCredentialBundle, SellerCredentialUploadInput, SellerCredentialUploadPlatform, type SignIntentApiOptions, type SignIntentV3ReferralFee, type SignIntentV3Request, type SignIntentV3ResponseObject, type SignIntentV3Result, type SpreadOracleConfig, type SpreadOracleFeedConfig, type SupportedChainId, TOKEN_METADATA, TxOverrides, UpdateReferralCodeRequest, UpdateReferralCodeResponse, UploadSellerCredentialBundleParams, ValidatePayeeDetailsRequest, ValidatePayeeDetailsResponse, ValidationError, ZKP2PError, ZKP2P_ANDROID_REFERRER, ZKP2P_IOS_REFERRER, apiCreateReferralCode, apiCreateSellerCredentialBundle, apiGetDepositBundle, apiGetOrderbook, apiGetOrderbookTable, apiGetOwnerDeposits, apiGetPayeeDetails, apiGetQuote, apiGetQuotesBestByPlatform, apiGetReferralDashboard, apiGetReferralEarnings, apiLookupReferralCode, apiPostDepositDetails, apiRedeemReferralCode, apiRequestIdentityAttestation, apiSignIntentV3, apiSignIntentV3Raw, apiUpdateReferralCode, apiUploadGoogleOAuthSellerCredential, apiUploadSellerCredentialBundle, apiValidatePayeeDetails, apiVerifyBuyerTeePayment, appendAttributionToCalldata, asciiToBytes32, assertValidReferrerFeeConfig, calculateRequiredCoverage, calculateStakeBackedCapacity, convertDepositsForLiquidity, convertIndexerDepositToEscrowView, convertIndexerIntentsToEscrowViews, createCompositeDepositId, createEncryptedBuyerTeeSessionMaterial, createPeerExtensionSdk, encodePythAdapterConfig, encodeSpreadOracleAdapterConfig, encodeWithAttribution, ensureBytes32, getAttributionDataSuffix, getPeerExtensionState, getSpreadOracleConfig, isPeerExtensionAvailable, isValidReferralCode, isValidReferrerFeeBps, isValidReferrerFeeRecipient, logger, normalizeReferralCode, openPeerExtensionInstallPage, parseReferrerFeeConfig, peerExtensionSdk, referrerFeeConfigToPreciseUnits, resolveFiatCurrencyBytes32, resolvePaymentMethodHash, resolvePaymentMethodHashFromCatalog, resolvePaymentMethodNameFromHash, selectRiskMode, sendTransactionWithAttribution, setLogLevel, validateOracleFeedsOnChain };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { R as ReferrerFeeConfig, S as SellerCredentialBundle, D as DepositWithRelations, I as IntentEntity, a as IdentityAttestationRequestBody, A as AttestationServiceIdentityResponse, B as BuyerTeeVerifyPaymentBody, b as AttestationServiceSellerVerifyResponse, c as SellerCredentialUploadInput, d as SellerCredentialUploadPlatform, e as SellerCredentialAttestationRuntime, f as AttestationServiceSellerCredentialUploadResponse, g as BuyerTeeSessionMaterialEncryptionInput, U as UploadSellerCredentialBundleParams, C as CuratorSellerCredentialUploadResponse, h as CreateReferralCodeRequest, i as ApiAdapterOptions, j as CreateReferralCodeResponse, k as ReferralReadRequest, l as ReferralDashboardResponse, m as ReferralEarningsResponse, n as ReferralCodeLookupResponse, o as RedeemReferralCodeRequest, p as RedeemReferralCodeResponse, q as UpdateReferralCodeRequest, r as UpdateReferralCodeResponse, G as GoogleOAuthSellerCredentialPlatform, s as GoogleOAuthSellerCredentialUploadBodyByPlatform, Q as QuotesBestByPlatformRequest, t as BestByPlatformResponse, V as ValidatePayeeDetailsRequest, u as ValidatePayeeDetailsResponse, P as PostDepositDetailsRequest, v as PostDepositDetailsResponse, w as GetPayeeDetailsRequest, x as GetPayeeDetailsResponse, y as GetOwnerDepositsRequest, z as GetOwnerDepositsResponse, E as GetDepositBundleParams, F as GetDepositBundleResponse, H as GetOrderbookParams, J as GetOrderbookResponse, K as GetOrderbookTableResponse, L as QuoteRequest, M as QuoteResponse, N as CuratorMetadata, O as CurrencyType, T as PaymentMethodCatalog, W as TxOverrides } from './vaultUtils-
|
|
2
|
-
export {
|
|
1
|
+
import { R as ReferrerFeeConfig, S as SellerCredentialBundle, D as DepositWithRelations, I as IntentEntity, a as IdentityAttestationRequestBody, A as AttestationServiceIdentityResponse, B as BuyerTeeVerifyPaymentBody, b as AttestationServiceSellerVerifyResponse, c as SellerCredentialUploadInput, d as SellerCredentialUploadPlatform, e as SellerCredentialAttestationRuntime, f as AttestationServiceSellerCredentialUploadResponse, g as BuyerTeeSessionMaterialEncryptionInput, U as UploadSellerCredentialBundleParams, C as CuratorSellerCredentialUploadResponse, h as CreateReferralCodeRequest, i as ApiAdapterOptions, j as CreateReferralCodeResponse, k as ReferralReadRequest, l as ReferralDashboardResponse, m as ReferralEarningsResponse, n as ReferralCodeLookupResponse, o as RedeemReferralCodeRequest, p as RedeemReferralCodeResponse, q as UpdateReferralCodeRequest, r as UpdateReferralCodeResponse, G as GoogleOAuthSellerCredentialPlatform, s as GoogleOAuthSellerCredentialUploadBodyByPlatform, Q as QuotesBestByPlatformRequest, t as BestByPlatformResponse, V as ValidatePayeeDetailsRequest, u as ValidatePayeeDetailsResponse, P as PostDepositDetailsRequest, v as PostDepositDetailsResponse, w as GetPayeeDetailsRequest, x as GetPayeeDetailsResponse, y as GetOwnerDepositsRequest, z as GetOwnerDepositsResponse, E as GetDepositBundleParams, F as GetDepositBundleResponse, H as GetOrderbookParams, J as GetOrderbookResponse, K as GetOrderbookTableResponse, L as QuoteRequest, M as QuoteResponse, N as CuratorMetadata, O as CurrencyType, T as PaymentMethodCatalog, W as TxOverrides } from './vaultUtils-xNLHO5lY.js';
|
|
2
|
+
export { dv as AccessPolicyDiff, dm as AccessPolicyOperations, dw as AccessPolicyOrdering, dx as AccessPolicyPlan, dy as AccessPolicyPlanStep, dz as AccessPolicyState, dn as AccessPolicyUnsupportedError, dA as AccessPolicyViolation, ah as ActionCallback, aL as ApiDeposit, aS as ApiIntentStatus, bq as AttestationServiceSellerCredentialProbeResponse, af as AuthorizationTokenProvider, dj as BatchResult, as as BestByPlatformResponseObject, br as BuyerTeePaymentParams, bs as BuyerTeePaymentProofInput, bt as BuyerTeeSessionMaterial, cW as CHARGEBACK_POLICY_ABI, a3 as CancelIntentMethodParams, ar as CancelIntentParams, b8 as CashAppCredentialUploadInput, b1 as CashAppSessionMaterial, al as CreateDepositConversionRate, ak as CreateDepositParams, bu as CuratorSellerCredentialStatusResponse, bv as CuratorSellerVerifyResponse, cE as Currency, cL as CurrencyData, di as DelegationDepositTarget, dg as DelegationRoute, dh as DelegationState, d4 as Deposit, d6 as DepositCurrency, bO as DepositIntentStatistics, aO as DepositStatus, aM as DepositVerifier, aN as DepositVerifierCurrency, bL as DepositVerifierData, d3 as DepositView, aH as FiatResponse, bp as FulfillIntentAttestationResponse, a2 as FulfillIntentMethodParams, ap as FulfillIntentParams, at as GetBestByPlatformResponse, au as GetBestByPlatformResponseObject, aP as GetDepositByIdRequest, aQ as GetDepositByIdResponse, aX as GetIntentByHashRequest, aY as GetIntentByHashResponse, aV as GetIntentsByDepositRequest, aW as GetIntentsByDepositResponse, ay as GetNearbyQuote, az as GetNearbySuggestions, aT as GetOwnerIntentsRequest, aU as GetOwnerIntentsResponse, av as GetPlatformQuote, aA as GetQuoteResponse, aB as GetQuoteResponseObject, aC as GetQuoteSingleResponse, bA as GetSellerCredentialStatusParams, bE as IdentityAttestationActionType, bF as IdentityAttestationOutput, bG as IdentityAttestationOutputFor, bH as IdentityAttestationParams, cj as IndexedRiskWindow, ck as IndexedStakingRowFreshness, cl as IndexedStakingState, cm as IndexedStakingStateParams, cn as IndexedTakerAuthorization, bU as IndexerClient, cy as IndexerDeploymentEnv, c0 as IndexerDeposit, ch as IndexerDepositDailySnapshot, cp as IndexerDepositFilter, cg as IndexerDepositFundActivity, ci as IndexerDepositFundActivityType, cs as IndexerDepositOrderDirection, cr as IndexerDepositOrderField, cq as IndexerDepositPagination, c3 as IndexerDepositPaymentMethod, bW as IndexerDepositService, cB as IndexerFulfillmentAndPaymentResponse, cz as IndexerFulfillmentRecord, c1 as IndexerIntentFulfilled, c2 as IndexerIntentFulfillmentAmounts, c5 as IndexerIntentStatus, c9 as IndexerManagerAggregateStats, cb as IndexerManagerDailySnapshot, ca as IndexerManagerStats, ce as IndexerManualRateUpdate, c4 as IndexerMethodCurrency, cf as IndexerOracleConfigUpdate, cA as IndexerPaymentVerifiedRecord, c6 as IndexerRateManager, c8 as IndexerRateManagerDelegation, cv as IndexerRateManagerDelegationPagination, cd as IndexerRateManagerDetail, ct as IndexerRateManagerFilter, cc as IndexerRateManagerListItem, cx as IndexerRateManagerOrderDirection, cw as IndexerRateManagerOrderField, cu as IndexerRateManagerPagination, c7 as IndexerRateManagerRate, bX as IndexerRateManagerService, b_ as IndexerStakingService, aR as Intent, ad as IntentGuardianErrorCode, a9 as IntentGuardianPolicy, aa as IntentGuardianQuote, ab as IntentGuardianWriteFunction, ac as IntentGuardianWriteParams, d8 as IntentView, dq as MAX_ADDRESSES_PER_CALL, dp as MAX_GROUPS_PER_DEPOSIT, dr as MAX_WHITELISTED_ADDRESSES, bI as MakerIdentityAttestationRequestBody, bJ as MakerIdentityPlatform, aJ as NearbyQuote, aK as NearbySuggestions, cV as ORCHESTRATOR_V3_ABI, Z as OfframpClient, bK as OnchainCurrency, d9 as OnchainIntent, bN as OrderStats, bS as OrderbookEntry, bT as OrderbookTableRow, cC as PAYMENT_PLATFORMS, b6 as PayPalGoogleOAuthSellerCredentialUploadBody, d5 as PaymentMethodData, cD as PaymentPlatformType, aw as PlatformQuote, bM as PreparedTransaction, aG as QuoteFeesResponse, aF as QuoteIntentResponse, ax as QuotePreference, aD as QuoteResponseObject, aE as QuoteSingleResponse, am as Range, $ as RedeemReferralCodeSignatureOptions, X as ReferralBearerWriteOptions, d7 as ReferralFee, Y as ReferralReadOptions, ai as ReferralRedemption, aj as ReferralSignatureBody, _ as ReferralSignatureOptions, aZ as RegisterPayeeDetailsRequest, a_ as RegisterPayeeDetailsResponse, bw as RegisteredSellerCredentialPlatform, by as RegisteredUploadSellerCredentialParams, aq as ReleaseFundsToPayerParams, cY as RuntimeEnv, cX as STAKE_VAULT_ABI, bn as SellerAttestationOutput, bb as SellerCiphertextBundle, bg as SellerCredentialBundleUpload, bo as SellerCredentialProbeResponse, bi as SellerCredentialStatus, bh as SellerCredentialStatusValue, ba as SellerCredentialUploadInputByPlatform, bm as SellerPaymentTypedDataValue, a$ as SellerPlatform, bf as SellerProbeInput, bc as SellerSignedCiphertextBundle, bk as SellerTypedDataField, bl as SellerTypedDataSpec, be as SellerVerifyInput, bd as SellerVerifyIntentDetails, bj as SellerVerifyProxyBody, dl as SendBatchFn, dk as SendTransactionFn, a1 as SignalIntentMethodParams, ao as SignalIntentParams, a0 as SignalIntentReferralFee, bQ as StakeEnvironment, a6 as StakeVaultState, a7 as StakeVaultWriteFunction, a8 as StakeVaultWriteParams, co as StakingEntityIds, bR as TakerStakeBalances, ag as TimeoutConfig, aI as TokenResponse, a4 as UpdateReferralCodeSignatureOptions, bC as UploadGoogleOAuthSellerCredentialParams, bB as UploadPayPalGoogleOAuthSellerCredentialParams, bz as UploadSellerCredentialOptions, bx as UploadSellerCredentialParams, bP as UsdcAmount, c_ as V2ContractAbis, cZ as V2ContractAddresses, b7 as VenmoCredentialUploadInput, b0 as VenmoSessionMaterial, bD as VerifySellerPaymentParams, b9 as WiseCredentialUploadInput, b3 as WiseProfileInfo, b5 as WiseProfileNotFound, b4 as WiseProfileSelectionRequired, b2 as WiseSessionMaterial, an as WithdrawDepositParams, da as ZERO_RATE_MANAGER_ID, Z as Zkp2pClient, a5 as Zkp2pClientOptions, bZ as buildStakingEntityIds, df as classifyDelegationState, ae as classifyIntentGuardianError, bY as compareEventCursorIdsByRecency, cF as currencyInfo, bV as defaultIndexerEndpoint, ds as diffAccessPolicy, d1 as enrichPvDepositView, d2 as enrichPvIntentView, b$ as fetchIndexerFulfillmentAndPayment, cS as getChargebackPolicyContract, cM as getContracts, cI as getCurrencyCodeFromHash, cH as getCurrencyInfoFromCountryCode, cG as getCurrencyInfoFromHash, de as getDelegationRoute, cU as getGatingServiceAddress, cN as getIntentGuardianContract, cR as getOrchestratorV3Contract, cT as getPaymentMethodsCatalog, cP as getRateManagerContracts, cQ as getStakeVaultContract, cO as hasIntentGuardian, cJ as isSupportedCurrencyHash, db as isZeroRateManagerId, cK as mapConversionRatesToOnchainMinRate, dt as normalizeAccessPolicyState, dc as normalizeRateManagerId, dd as normalizeRegistry, c$ as parseDepositView, d0 as parseIntentView, du as planAccessPolicyUpdate } from './vaultUtils-xNLHO5lY.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';
|
|
@@ -183,7 +183,6 @@ declare class ContractRouter {
|
|
|
183
183
|
|
|
184
184
|
type PeerConnectionStatus = 'connected' | 'disconnected' | 'pending';
|
|
185
185
|
type PeerMetadataCaptureMode = 'buyerTee' | 'sellerCredential';
|
|
186
|
-
type PeerMetadataProviderConfig = Record<string, unknown>;
|
|
187
186
|
type PeerAuthenticateParams = {
|
|
188
187
|
actionType: string;
|
|
189
188
|
attestationActionType?: string | null;
|
|
@@ -192,7 +191,6 @@ type PeerAuthenticateParams = {
|
|
|
192
191
|
callerAddress?: string | null;
|
|
193
192
|
captureMode?: PeerMetadataCaptureMode;
|
|
194
193
|
platform: string;
|
|
195
|
-
providerConfig?: PeerMetadataProviderConfig;
|
|
196
194
|
};
|
|
197
195
|
type PeerBuyerTeePaymentParams = Record<string, string | number | boolean>;
|
|
198
196
|
type PeerBuyerTeePaymentCapture = {
|
|
@@ -708,6 +706,36 @@ declare function resolvePaymentMethodHashFromCatalog(processorName: string, cata
|
|
|
708
706
|
*/
|
|
709
707
|
declare function resolvePaymentMethodNameFromHash(hash: string, catalog: PaymentMethodCatalog): string | undefined;
|
|
710
708
|
|
|
709
|
+
/**
|
|
710
|
+
* Exact client-side counterparts of the ChargebackPolicy admission rules.
|
|
711
|
+
*
|
|
712
|
+
* Kept inside the public SDK so its generated declarations and runtime remain
|
|
713
|
+
* self-contained for external consumers. The deployed policy (contracts-v2
|
|
714
|
+
* 0.4.0) is full-gross: an intent on a payment method with a non-zero risk
|
|
715
|
+
* window locks the full intent amount 1:1 from the effective stake owner's
|
|
716
|
+
* free stake, so stake-backed capacity IS that free stake. A method with a
|
|
717
|
+
* zero (or absent) risk window admits unbonded and never touches stake.
|
|
718
|
+
*
|
|
719
|
+
* Intent-lifetime extension pricing is not risk math: it belongs to the
|
|
720
|
+
* standalone IntentGuardian and is quoted via the guardian operations.
|
|
721
|
+
*/
|
|
722
|
+
type IntegerLike = bigint | number | string | {
|
|
723
|
+
toString(): string;
|
|
724
|
+
};
|
|
725
|
+
type RiskMode = 'UNBONDED' | 'STAKE_BACKED';
|
|
726
|
+
declare const RISK_BPS_DENOMINATOR = 10000n;
|
|
727
|
+
/** Full-gross coverage required at admission; zero when the method is unbonded. */
|
|
728
|
+
declare function calculateRequiredCoverage(amount: IntegerLike, chargebackable: boolean): bigint;
|
|
729
|
+
/** Maximum chargebackable intent amount that can use existing stake. */
|
|
730
|
+
declare function calculateStakeBackedCapacity(freeStake: IntegerLike): bigint;
|
|
731
|
+
/**
|
|
732
|
+
* Exact admission mode under the ChargebackPolicy. `chargebackable` means the
|
|
733
|
+
* payment method carries a non-zero risk window; the policy additionally
|
|
734
|
+
* requires the deposit to have chargebacks enabled and admissions unpaused,
|
|
735
|
+
* both of which reject the intent outright rather than changing its mode.
|
|
736
|
+
*/
|
|
737
|
+
declare function selectRiskMode(amount: IntegerLike, freeStake: IntegerLike, chargebackable: boolean): RiskMode;
|
|
738
|
+
|
|
711
739
|
/**
|
|
712
740
|
* Ensure a value is 32 bytes hex (0x + 64 nibbles). If ascii, keccak256 by default when hash=true.
|
|
713
741
|
*/
|
|
@@ -896,4 +924,4 @@ declare class ContractError extends ZKP2PError {
|
|
|
896
924
|
constructor(message: string, details?: unknown);
|
|
897
925
|
}
|
|
898
926
|
|
|
899
|
-
export { APIError, ApiAdapterOptions, AttestationServiceIdentityResponse, AttestationServiceSellerCredentialUploadResponse, AttestationServiceSellerVerifyResponse, BASE_BUILDER_CODE, BestByPlatformResponse, BuyerTeeSessionMaterialEncryptionInput, BuyerTeeVerifyPaymentBody, CHAINLINK_ORACLE_ADAPTER, CHAINLINK_ORACLE_FEEDS, ContractError, ContractRouter, type ContractRouterConfig, CreateReferralCodeRequest, CreateReferralCodeResponse, CuratorSellerCredentialUploadResponse, CurrencyType, DEFAULT_ORACLE_MAX_STALENESS_SECONDS, ErrorCode, type EscrowContractContext, type EscrowDepositView, type EscrowIntentView, GetDepositBundleParams, GetDepositBundleResponse, GetOrderbookParams, GetOrderbookResponse, GetOrderbookTableResponse, GetOwnerDepositsRequest, GetOwnerDepositsResponse, GetPayeeDetailsRequest, GetPayeeDetailsResponse, GoogleOAuthSellerCredentialPlatform, GoogleOAuthSellerCredentialUploadBodyByPlatform, IdentityAttestationRequestBody, DepositWithRelations as IndexerDepositWithRelations, IntentEntity as IndexerIntent, type LogLevel, type MulticallClient, NetworkError, type OracleAdapterOverrides, type OracleKind, type OrchestratorContractContext, PEER_EXTENSION_CHROME_URL, PLATFORM_METADATA, PYTH_CONTRACT_BASE, PYTH_ORACLE_ADAPTER, PYTH_ORACLE_FEEDS, PaymentMethodCatalog, type PeerAuthenticateParams, type PeerBuyerTeePaymentCapture, type PeerBuyerTeePaymentParams, type PeerConnectionStatus, type PeerExtensionApi, type PeerExtensionSdk, type PeerExtensionSdkOptions, type PeerExtensionState, type PeerExtensionWindow, type PeerMetadataCaptureMode, type PeerMetadataMessage, type PeerMetadataMessageCallback, type
|
|
927
|
+
export { APIError, ApiAdapterOptions, AttestationServiceIdentityResponse, AttestationServiceSellerCredentialUploadResponse, AttestationServiceSellerVerifyResponse, BASE_BUILDER_CODE, BestByPlatformResponse, BuyerTeeSessionMaterialEncryptionInput, BuyerTeeVerifyPaymentBody, CHAINLINK_ORACLE_ADAPTER, CHAINLINK_ORACLE_FEEDS, ContractError, ContractRouter, type ContractRouterConfig, CreateReferralCodeRequest, CreateReferralCodeResponse, CuratorSellerCredentialUploadResponse, CurrencyType, DEFAULT_ORACLE_MAX_STALENESS_SECONDS, ErrorCode, type EscrowContractContext, type EscrowDepositView, type EscrowIntentView, GetDepositBundleParams, GetDepositBundleResponse, GetOrderbookParams, GetOrderbookResponse, GetOrderbookTableResponse, GetOwnerDepositsRequest, GetOwnerDepositsResponse, GetPayeeDetailsRequest, GetPayeeDetailsResponse, GoogleOAuthSellerCredentialPlatform, GoogleOAuthSellerCredentialUploadBodyByPlatform, IdentityAttestationRequestBody, DepositWithRelations as IndexerDepositWithRelations, IntentEntity as IndexerIntent, type IntegerLike, type LogLevel, type MulticallClient, NetworkError, type OracleAdapterOverrides, type OracleKind, type OrchestratorContractContext, PEER_EXTENSION_CHROME_URL, PLATFORM_METADATA, PYTH_CONTRACT_BASE, PYTH_ORACLE_ADAPTER, PYTH_ORACLE_FEEDS, PaymentMethodCatalog, type PeerAuthenticateParams, type PeerBuyerTeePaymentCapture, type PeerBuyerTeePaymentParams, type PeerConnectionStatus, type PeerExtensionApi, type PeerExtensionSdk, type PeerExtensionSdkOptions, type PeerExtensionState, type PeerExtensionWindow, type PeerMetadataCaptureMode, type PeerMetadataMessage, type PeerMetadataMessageCallback, type PeerMetadataRow, type PeerSarCredentialCapture, PostDepositDetailsRequest, PostDepositDetailsResponse, type PythFeedConfig, QuoteRequest, QuoteResponse, QuotesBestByPlatformRequest, REFERRAL_SIGNATURE_DOMAIN, REFERRAL_SIGNATURE_TYPES, RISK_BPS_DENOMINATOR, RedeemReferralCodeRequest, RedeemReferralCodeResponse, ReferralCodeLookupResponse, ReferralDashboardResponse, ReferralEarningsResponse, ReferralReadRequest, ReferrerFeeConfig, type RiskMode, SPREAD_ORACLE_FEEDS, SUPPORTED_CHAIN_IDS, SellerCredentialAttestationRuntime, SellerCredentialBundle, SellerCredentialUploadInput, SellerCredentialUploadPlatform, type SignIntentApiOptions, type SignIntentV3ReferralFee, type SignIntentV3Request, type SignIntentV3ResponseObject, type SignIntentV3Result, type SpreadOracleConfig, type SpreadOracleFeedConfig, type SupportedChainId, TOKEN_METADATA, TxOverrides, UpdateReferralCodeRequest, UpdateReferralCodeResponse, UploadSellerCredentialBundleParams, ValidatePayeeDetailsRequest, ValidatePayeeDetailsResponse, ValidationError, ZKP2PError, ZKP2P_ANDROID_REFERRER, ZKP2P_IOS_REFERRER, apiCreateReferralCode, apiCreateSellerCredentialBundle, apiGetDepositBundle, apiGetOrderbook, apiGetOrderbookTable, apiGetOwnerDeposits, apiGetPayeeDetails, apiGetQuote, apiGetQuotesBestByPlatform, apiGetReferralDashboard, apiGetReferralEarnings, apiLookupReferralCode, apiPostDepositDetails, apiRedeemReferralCode, apiRequestIdentityAttestation, apiSignIntentV3, apiSignIntentV3Raw, apiUpdateReferralCode, apiUploadGoogleOAuthSellerCredential, apiUploadSellerCredentialBundle, apiValidatePayeeDetails, apiVerifyBuyerTeePayment, appendAttributionToCalldata, asciiToBytes32, assertValidReferrerFeeConfig, calculateRequiredCoverage, calculateStakeBackedCapacity, convertDepositsForLiquidity, convertIndexerDepositToEscrowView, convertIndexerIntentsToEscrowViews, createCompositeDepositId, createEncryptedBuyerTeeSessionMaterial, createPeerExtensionSdk, encodePythAdapterConfig, encodeSpreadOracleAdapterConfig, encodeWithAttribution, ensureBytes32, getAttributionDataSuffix, getPeerExtensionState, getSpreadOracleConfig, isPeerExtensionAvailable, isValidReferralCode, isValidReferrerFeeBps, isValidReferrerFeeRecipient, logger, normalizeReferralCode, openPeerExtensionInstallPage, parseReferrerFeeConfig, peerExtensionSdk, referrerFeeConfigToPreciseUnits, resolveFiatCurrencyBytes32, resolvePaymentMethodHash, resolvePaymentMethodHashFromCatalog, resolvePaymentMethodNameFromHash, selectRiskMode, sendTransactionWithAttribution, setLogLevel, validateOracleFeedsOnChain };
|