@zkp2p/sdk 0.11.2 → 0.12.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.
@@ -13,6 +13,16 @@ import { IdentityPlatform, IdentityAttestationOutputFor as IdentityAttestationOu
13
13
  * @module contracts
14
14
  */
15
15
 
16
+ /** Reviewed OrchestratorV3 intent-lifecycle ABI. */
17
+ declare const ORCHESTRATOR_V3_ABI: Abi;
18
+ /** Reviewed StakeVault ledger ABI (stake/lock/claim/delegation). */
19
+ declare const STAKE_VAULT_ABI: Abi;
20
+ /**
21
+ * Reviewed ChargebackPolicy ABI — the deployed StakeVault controller. Owns
22
+ * per-payment-method risk windows, per-deposit chargeback enablement, the
23
+ * admissions pause, and chargeback intents.
24
+ */
25
+ declare const CHARGEBACK_POLICY_ABI: Abi;
16
26
  /**
17
27
  * Contract addresses for a specific deployment.
18
28
  */
@@ -33,8 +43,6 @@ type V2ContractAddresses = {
33
43
  orchestratorAddresses?: `0x${string}`[];
34
44
  /** UnifiedPaymentVerifier contract (verifies payment proofs) */
35
45
  unifiedPaymentVerifier?: `0x${string}`;
36
- /** UnifiedPaymentVerifierV2 contract (updated verifier) */
37
- unifiedPaymentVerifierV2?: `0x${string}`;
38
46
  /** ProtocolViewer contract (batch read operations) */
39
47
  protocolViewer?: `0x${string}`;
40
48
  /** Ordered list of supported ProtocolViewer instances for the current deployment */
@@ -66,6 +74,10 @@ type V2ContractAddresses = {
66
74
  addressGroupRegistry?: `0x${string}`;
67
75
  /** WhitelistPolicy contract for deposit access policies */
68
76
  whitelistPolicy?: `0x${string}`;
77
+ /** StakeVault contract for taker stake and delegation */
78
+ stakeVault?: `0x${string}`;
79
+ /** ChargebackPolicy contract — the StakeVault controller for dispute-risk admission */
80
+ chargebackPolicy?: `0x${string}`;
69
81
  };
70
82
  /**
71
83
  * Contract ABIs for a specific deployment.
@@ -77,7 +89,6 @@ type V2ContractAbis = {
77
89
  orchestratorV2?: Abi;
78
90
  orchestratorV3?: Abi;
79
91
  unifiedPaymentVerifier?: Abi;
80
- unifiedPaymentVerifierV2?: Abi;
81
92
  protocolViewer?: Abi;
82
93
  rateManagerV1?: Abi;
83
94
  orchestratorRegistry?: Abi;
@@ -86,6 +97,8 @@ type V2ContractAbis = {
86
97
  intentGuardian?: Abi;
87
98
  addressGroupRegistry?: Abi;
88
99
  whitelistPolicy?: Abi;
100
+ stakeVault?: Abi;
101
+ chargebackPolicy?: Abi;
89
102
  };
90
103
  /**
91
104
  * Runtime environment: 'production' for mainnet, 'preproduction' for preprod
@@ -176,6 +189,30 @@ declare function getIntentGuardianContract(chainId: number, env?: RuntimeEnv): {
176
189
  };
177
190
  /** True when the deployment has a usable guardian. Use to gate UI affordances. */
178
191
  declare function hasIntentGuardian(chainId: number, env?: RuntimeEnv): boolean;
192
+ /**
193
+ * Resolve the user-facing StakeVault contract for a deployment.
194
+ *
195
+ * Throws when the environment has no StakeVault deployment so callers fail
196
+ * closed instead of accidentally targeting another environment.
197
+ */
198
+ declare function getStakeVaultContract(chainId: number, env?: RuntimeEnv): {
199
+ address: `0x${string}`;
200
+ abi: Abi;
201
+ stakeToken: `0x${string}`;
202
+ };
203
+ /** Resolve OrchestratorV3 for a deployment, failing closed when unavailable. */
204
+ declare function getOrchestratorV3Contract(chainId: number, env?: RuntimeEnv): {
205
+ address: `0x${string}`;
206
+ abi: Abi;
207
+ };
208
+ /**
209
+ * Resolve the ChargebackPolicy contract — the deployed StakeVault controller —
210
+ * failing closed when unavailable.
211
+ */
212
+ declare function getChargebackPolicyContract(chainId: number, env?: RuntimeEnv): {
213
+ address: `0x${string}`;
214
+ abi: Abi;
215
+ };
179
216
 
180
217
  /**
181
218
  * Minimal fetch-based GraphQL client for the ZKP2P indexer.
@@ -1640,6 +1677,21 @@ type OrderStats = {
1640
1677
  };
1641
1678
  /** @deprecated No corresponding SDK method; will be removed in 0.8. */
1642
1679
  type DepositIntentStatistics = OrderStats;
1680
+ type UsdcAmount = {
1681
+ /** USDC base units (6 decimals), stringified integer. */
1682
+ raw: string;
1683
+ /** Display decimal (e.g. "1250" or "0.059792"). */
1684
+ formatted: string;
1685
+ };
1686
+ type StakeEnvironment = 'base' | 'base_staging';
1687
+ type TakerStakeBalances = {
1688
+ /** All principal owned by the stake owner, including locked principal. */
1689
+ totalUsdc: string;
1690
+ /** Principal committed to active StakeVault locks. */
1691
+ lockedUsdc: string;
1692
+ /** Principal withdrawable or lockable immediately. */
1693
+ freeUsdc: string;
1694
+ };
1643
1695
  type GetDepositBundleParams = DepositBundleRequest;
1644
1696
  type GetDepositBundleResponse = DepositBundleResponse;
1645
1697
  type GetOrderbookParams = {
@@ -2049,6 +2101,50 @@ type IntentGuardianErrorCode = 'EXTENSIONS_DISABLED' | 'COST_EXCEEDS_MAX' | 'FEE
2049
2101
  */
2050
2102
  declare function classifyIntentGuardianError(error: unknown): IntentGuardianErrorCode;
2051
2103
 
2104
+ type StakeVaultWriteFunction = 'depositStake' | 'withdrawStake' | 'claim' | 'setTakerAuthorization' | 'selectStakeOwner' | 'clearStakeOwner';
2105
+ type StakeWriteBase = {
2106
+ txOverrides?: TxOverrides;
2107
+ };
2108
+ type StakeVaultWriteParams = {
2109
+ depositStake: StakeWriteBase & {
2110
+ amount: bigint;
2111
+ };
2112
+ withdrawStake: StakeWriteBase & {
2113
+ amount: bigint;
2114
+ };
2115
+ claim: StakeWriteBase;
2116
+ setTakerAuthorization: StakeWriteBase & {
2117
+ taker: Address;
2118
+ authorized: boolean;
2119
+ };
2120
+ selectStakeOwner: StakeWriteBase & {
2121
+ stakeOwner: Address;
2122
+ };
2123
+ clearStakeOwner: StakeWriteBase;
2124
+ };
2125
+ /**
2126
+ * Vault accounting for one staker plus the delegation view for one taker.
2127
+ * `stakeOwner` is the EFFECTIVE owner from `stakeOwnerOf(taker)`;
2128
+ * `selectedStakeOwner` is the raw selection, which is only meaningful while
2129
+ * `selectionAuthorized` remains true. The two must never be conflated: a
2130
+ * stale selection falls back to self-stake on the contract side.
2131
+ * `admissionsPaused` comes from the vault's ChargebackPolicy controller and
2132
+ * blocks new chargebackable admissions while true.
2133
+ */
2134
+ type StakeVaultState = {
2135
+ staker: Address;
2136
+ taker: Address;
2137
+ stakeToken: Address;
2138
+ stakeOwner: Address;
2139
+ selectedStakeOwner: Address | null;
2140
+ selectionAuthorized: boolean;
2141
+ staked: bigint;
2142
+ locked: bigint;
2143
+ free: bigint;
2144
+ claimable: bigint;
2145
+ admissionsPaused: boolean;
2146
+ };
2147
+
2052
2148
  type PV_ReferralFee = {
2053
2149
  recipient: `0x${string}`;
2054
2150
  fee: bigint;
@@ -2402,6 +2498,91 @@ declare class IndexerRateManagerService {
2402
2498
  }): Promise<OracleConfigUpdateEntity[]>;
2403
2499
  }
2404
2500
 
2501
+ type IndexedStakingStateParams = {
2502
+ chainId: number;
2503
+ environment: StakeEnvironment;
2504
+ vaultAddress: Address;
2505
+ chargebackPolicyAddress: Address;
2506
+ taker: Address;
2507
+ /** Effective owner from the caller's fresh stakeOwnerOf(taker) read. */
2508
+ stakeOwner: Address;
2509
+ };
2510
+ type IndexedStakingRowFreshness = {
2511
+ updatedAtBlockNumber: string;
2512
+ updatedAt: string;
2513
+ };
2514
+ type IndexedTakerAuthorization = {
2515
+ stakeOwner: Address;
2516
+ authorized: boolean;
2517
+ freshness: IndexedStakingRowFreshness;
2518
+ };
2519
+ type IndexedRiskWindow = {
2520
+ /** Payment method hash the window applies to. */
2521
+ paymentMethod: string;
2522
+ /**
2523
+ * Minimum collateral lock window in seconds. The policy locks the full
2524
+ * intent amount for at least this long after settlement; a method with no
2525
+ * row (or a zero window) admits unbonded.
2526
+ */
2527
+ riskWindowSeconds: string;
2528
+ updatedAt: string;
2529
+ };
2530
+ type IndexedStakingState = {
2531
+ chainId: number;
2532
+ environment: StakeEnvironment;
2533
+ taker: Address;
2534
+ /** Effective owner from the indexed TakerStakeState, or the taker when absent. */
2535
+ stakeOwner: Address;
2536
+ selectedStakeOwner: Address | null;
2537
+ selectionAuthorized: boolean;
2538
+ stake: TakerStakeBalances;
2539
+ claimableUsdc: string;
2540
+ authorizations: IndexedTakerAuthorization[];
2541
+ /**
2542
+ * Per-payment-method minimum lock windows from the ChargebackPolicy. The
2543
+ * global admissions pause is intentionally absent from the indexed model —
2544
+ * read it on-chain (`admissionsPaused()`), where it is authoritative.
2545
+ */
2546
+ riskWindows: IndexedRiskWindow[];
2547
+ vault: {
2548
+ controller: Address | null;
2549
+ pendingController: Address | null;
2550
+ pendingControllerValidAt: string | null;
2551
+ } | null;
2552
+ /**
2553
+ * False when the indexer's effective owner has not caught up with the
2554
+ * caller's onchain owner. In that case stake defaults to zero rather than
2555
+ * attributing another owner's account to this taker.
2556
+ */
2557
+ stakeAccountMatchesEffectiveOwner: boolean;
2558
+ freshness: {
2559
+ takerStakeState: IndexedStakingRowFreshness | null;
2560
+ stakeAccountState: IndexedStakingRowFreshness | null;
2561
+ claimAccountState: IndexedStakingRowFreshness | null;
2562
+ stakeVaultConfig: IndexedStakingRowFreshness | null;
2563
+ authorizations: IndexedStakingRowFreshness[];
2564
+ /**
2565
+ * Conservative minimum across the block-stamped rows present in this
2566
+ * response. Risk-window rows carry timestamps only and are excluded.
2567
+ */
2568
+ indexedBlockNumber: string | null;
2569
+ };
2570
+ };
2571
+ type StakingEntityIds = {
2572
+ takerStateId: string;
2573
+ stakeAccountId: string;
2574
+ claimAccountId: string;
2575
+ vaultConfigId: string;
2576
+ /** Lowercased policy address used to filter risk-window rows. */
2577
+ policy: string;
2578
+ };
2579
+ declare function buildStakingEntityIds(params: IndexedStakingStateParams): StakingEntityIds;
2580
+ declare class IndexerStakingService {
2581
+ private readonly client;
2582
+ constructor(client: IndexerClient);
2583
+ fetchStakingState(params: IndexedStakingStateParams, init?: RequestInit): Promise<IndexedStakingState>;
2584
+ }
2585
+
2405
2586
  type FulfillmentRecord = {
2406
2587
  id: string;
2407
2588
  intentHash: string;
@@ -2523,7 +2704,10 @@ type SignalIntentMethodParams = {
2523
2704
  data?: `0x${string}`;
2524
2705
  /** Optional escrow override (auto-routes orchestrator when provided) */
2525
2706
  escrowAddress?: Address;
2526
- /** Optional orchestrator override */
2707
+ /**
2708
+ * Optional caller-pinned orchestrator target. Must resolve to an orchestrator
2709
+ * in the configured deployment; an unrecognized address throws.
2710
+ */
2527
2711
  orchestratorAddress?: Address;
2528
2712
  /** Pre-obtained signature (if not auto-fetching) */
2529
2713
  gatingServiceSignature?: `0x${string}`;
@@ -2539,7 +2723,10 @@ type SignalIntentMethodParams = {
2539
2723
  type CancelIntentMethodParams = {
2540
2724
  /** The intent hash to cancel (0x-prefixed, 32 bytes) */
2541
2725
  intentHash: `0x${string}`;
2542
- /** Optional orchestrator override */
2726
+ /**
2727
+ * Optional caller-pinned orchestrator target. Must resolve to an orchestrator
2728
+ * in the configured deployment; an unrecognized address throws.
2729
+ */
2543
2730
  orchestratorAddress?: Address;
2544
2731
  /** Optional viem transaction overrides */
2545
2732
  txOverrides?: TxOverrides;
@@ -2562,7 +2749,10 @@ type FulfillIntentMethodParams = {
2562
2749
  attestationServiceFallbackUrls?: string[];
2563
2750
  /** Override attestation service URL */
2564
2751
  attestationServiceUrl?: string;
2565
- /** Optional orchestrator override */
2752
+ /**
2753
+ * Optional caller-pinned orchestrator target. Must resolve to an orchestrator
2754
+ * in the configured deployment; an unrecognized address throws.
2755
+ */
2566
2756
  orchestratorAddress?: Address;
2567
2757
  /** Data to pass to post-intent hook */
2568
2758
  postIntentHookData?: `0x${string}`;
@@ -2739,6 +2929,14 @@ declare class Zkp2pClient {
2739
2929
  readonly orchestratorRegistryAddress?: Address;
2740
2930
  /** OrchestratorRegistry ABI */
2741
2931
  readonly orchestratorRegistryAbi?: Abi;
2932
+ /** StakeVault address (undefined when staking is not deployed) */
2933
+ readonly stakeVaultAddress?: Address;
2934
+ /** StakeVault ABI */
2935
+ readonly stakeVaultAbi?: Abi;
2936
+ /** ChargebackPolicy address (undefined when the staking stack is not deployed) */
2937
+ readonly chargebackPolicyAddress?: Address;
2938
+ /** ChargebackPolicy ABI */
2939
+ readonly chargebackPolicyAbi?: Abi;
2742
2940
  /** Base API URL for ZKP2P services */
2743
2941
  readonly baseApiUrl?: string;
2744
2942
  /** Optional internal curator API key (`x-api-key`) for internal seller verification */
@@ -2755,9 +2953,11 @@ declare class Zkp2pClient {
2755
2953
  private readonly _indexerClient;
2756
2954
  private readonly _indexerService;
2757
2955
  private readonly _indexerRateManagerService;
2956
+ private readonly _indexerStakingService;
2758
2957
  private readonly _router;
2759
2958
  private readonly _pvReader;
2760
2959
  private readonly _vaultOps;
2960
+ private readonly _stakeOps;
2761
2961
  private readonly _intentGuardianOps;
2762
2962
  private readonly _intentOps;
2763
2963
  private readonly _referralOps;
@@ -2827,6 +3027,8 @@ declare class Zkp2pClient {
2827
3027
  private prepareResolvedOrchestratorTransaction;
2828
3028
  private prepareContractTransaction;
2829
3029
  private buildContractMethod;
3030
+ private buildStakeVaultMethod;
3031
+ private buildChargebackPolicyMethod;
2830
3032
  private buildIntentGuardianMethod;
2831
3033
  private buildEscrowMethod;
2832
3034
  private buildOrchestratorMethod;
@@ -3070,6 +3272,14 @@ declare class Zkp2pClient {
3070
3272
  limit?: number;
3071
3273
  rateManagerAddress?: string | null;
3072
3274
  }) => Promise<OracleConfigUpdateEntity[]>;
3275
+ /**
3276
+ * Composes the hard-cut 0.14.0-rc.0 staking current-state rows. Pass the
3277
+ * caller's fresh stakeOwnerOf(taker) result so the account rows can be
3278
+ * fetched together and checked against indexed ownership.
3279
+ */
3280
+ getStakingState: (params: IndexedStakingStateParams, options?: {
3281
+ signal?: AbortSignal;
3282
+ }) => Promise<IndexedStakingState>;
3073
3283
  /**
3074
3284
  * Fetches chronological fund activities for a specific deposit.
3075
3285
  */
@@ -3130,6 +3340,117 @@ declare class Zkp2pClient {
3130
3340
  hadAllowance: boolean;
3131
3341
  hash?: Hash;
3132
3342
  }>;
3343
+ /**
3344
+ * Return the resolved StakeVault coordinates for advanced wallet, relayer,
3345
+ * or reactive read integrations.
3346
+ */
3347
+ getStakeVaultContract(): {
3348
+ address: Address;
3349
+ abi: Abi;
3350
+ stakeToken: Address;
3351
+ };
3352
+ /** Return the resolved OrchestratorV3 coordinates for advanced integrations. */
3353
+ getOrchestratorV3Contract(): {
3354
+ address: Address;
3355
+ abi: Abi;
3356
+ };
3357
+ /** Return the resolved ChargebackPolicy coordinates for keeper integrations. */
3358
+ getChargebackPolicyContract(): {
3359
+ address: Address;
3360
+ abi: Abi;
3361
+ };
3362
+ /**
3363
+ * Ensure the connected wallet has approved enough USDC for StakeVault.
3364
+ * If an approval is submitted, wait for it to confirm before depositing.
3365
+ */
3366
+ ensureStakeAllowance(params: {
3367
+ amount: bigint;
3368
+ maxApprove?: boolean;
3369
+ txOverrides?: TxOverrides;
3370
+ }): Promise<{
3371
+ hadAllowance: boolean;
3372
+ hash?: Hash;
3373
+ }>;
3374
+ /** Deposit USDC stake owned by the transaction sender. */
3375
+ readonly depositStake: PrepareableMethod<{
3376
+ txOverrides?: TxOverrides;
3377
+ } & {
3378
+ amount: bigint;
3379
+ }, `0x${string}`>;
3380
+ /** Withdraw the sender's free stake immediately; locked stake cannot move. */
3381
+ readonly withdrawStake: PrepareableMethod<{
3382
+ txOverrides?: TxOverrides;
3383
+ } & {
3384
+ amount: bigint;
3385
+ }, `0x${string}`>;
3386
+ /** Withdraw the sender's complete claimable USDC balance. */
3387
+ readonly claim: PrepareableMethod<{
3388
+ txOverrides?: TxOverrides;
3389
+ }, `0x${string}`>;
3390
+ /** Grant or revoke a taker's access to the sender's stake. */
3391
+ readonly setTakerAuthorization: PrepareableMethod<{
3392
+ txOverrides?: TxOverrides;
3393
+ } & {
3394
+ taker: Address;
3395
+ authorized: boolean;
3396
+ }, `0x${string}`>;
3397
+ /** Select the authorizing stake owner that backs the connected taker. */
3398
+ readonly selectStakeOwner: PrepareableMethod<{
3399
+ txOverrides?: TxOverrides;
3400
+ } & {
3401
+ stakeOwner: Address;
3402
+ }, `0x${string}`>;
3403
+ /** Clear the connected taker's selection and return to self-stake. */
3404
+ readonly clearStakeOwner: PrepareableMethod<{
3405
+ txOverrides?: TxOverrides;
3406
+ }, `0x${string}`>;
3407
+ /** Read total stake owned by an address directly from StakeVault. */
3408
+ getStakeBalance(stakeOwner: Address): Promise<bigint>;
3409
+ /** Read stake committed to active StakeVault locks. */
3410
+ getLockedStake(stakeOwner: Address): Promise<bigint>;
3411
+ /** Read stake available for immediate withdrawal or a new lock. */
3412
+ getFreeStake(stakeOwner: Address): Promise<bigint>;
3413
+ /** Read the non-stake USDC withdrawable by a beneficiary with `claim()`. */
3414
+ getClaimable(beneficiary: Address): Promise<bigint>;
3415
+ /** Resolve the effective stake owner backing a taker. */
3416
+ getStakeOwner(taker: Address): Promise<Address>;
3417
+ /** Read a taker's raw selection, which is stale once authorization is revoked. */
3418
+ getSelectedStakeOwner(taker: Address): Promise<Address>;
3419
+ /** Read whether a stake owner currently authorizes a taker. */
3420
+ getTakerAuthorization(stakeOwner: Address, taker: Address): Promise<boolean>;
3421
+ /** Read the complete authoritative StakeVault state needed by a staking UI. */
3422
+ getStakeVaultState(params: {
3423
+ staker: Address;
3424
+ taker?: Address;
3425
+ }): Promise<StakeVaultState>;
3426
+ /** Read whether the ChargebackPolicy is refusing new chargebackable admissions. */
3427
+ getAdmissionsPaused(): Promise<boolean>;
3428
+ /**
3429
+ * Read a payment method's minimum collateral lock window in seconds. Zero
3430
+ * means the method admits unbonded — no stake is locked at admission.
3431
+ */
3432
+ getRiskWindow(paymentMethodHash: `0x${string}`): Promise<bigint>;
3433
+ /** Read whether an escrow deposit has opted into chargeback coverage. */
3434
+ isChargebackEnabled(escrow: Address, depositId: bigint): Promise<boolean>;
3435
+ /**
3436
+ * Release one chargeback intent whose risk window matured, unlocking its
3437
+ * stake cover. Permissionless once mature. Pass `chargebackPolicyAddress` to
3438
+ * pin the transaction to a snapshotted deployment.
3439
+ */
3440
+ readonly releaseMaturedChargebackIntent: PrepareableMethod<{
3441
+ intentHash: `0x${string}`;
3442
+ chargebackPolicyAddress?: Address;
3443
+ txOverrides?: TxOverrides;
3444
+ }, `0x${string}`>;
3445
+ /**
3446
+ * Release multiple matured chargeback intents in one transaction.
3447
+ * Pass `chargebackPolicyAddress` to pin the transaction to a snapshotted deployment.
3448
+ */
3449
+ readonly releaseMaturedChargebackIntents: PrepareableMethod<{
3450
+ intentHashes: readonly `0x${string}`[];
3451
+ chargebackPolicyAddress?: Address;
3452
+ txOverrides?: TxOverrides;
3453
+ }, `0x${string}`>;
3133
3454
  /**
3134
3455
  * Registers payee details with the curator API and returns hashed on-chain IDs.
3135
3456
  *
@@ -4192,6 +4513,8 @@ declare class Zkp2pClient {
4192
4513
  unifiedPaymentVerifier?: Address;
4193
4514
  rateManagerV1?: Address;
4194
4515
  orchestratorRegistry?: Address;
4516
+ stakeVault?: Address;
4517
+ chargebackPolicy?: Address;
4195
4518
  usdc?: Address;
4196
4519
  };
4197
4520
  /**
@@ -4275,4 +4598,4 @@ type SendBatchFn = (txs: Array<{
4275
4598
  value?: bigint;
4276
4599
  }>) => Promise<string>;
4277
4600
 
4278
- export { type RedeemReferralCodeSignatureOptions as $, type AttestationServiceIdentityResponse as A, type BuyerTeeVerifyPaymentBody as B, type CuratorSellerCredentialUploadResponse as C, type DepositWithRelations as D, type GetDepositBundleParams as E, type GetDepositBundleResponse as F, type GoogleOAuthSellerCredentialPlatform as G, type GetOrderbookParams as H, type IntentEntity as I, type GetOrderbookResponse as J, type GetOrderbookTableResponse as K, type QuoteRequest as L, type QuoteResponse as M, type CuratorMetadata as N, type CurrencyType as O, type PostDepositDetailsRequest as P, type QuotesBestByPlatformRequest as Q, type ReferrerFeeConfig as R, type SellerCredentialBundle as S, type PaymentMethodCatalog as T, type UploadSellerCredentialBundleParams as U, type ValidatePayeeDetailsRequest as V, type TxOverrides as W, type ReferralBearerWriteOptions as X, type ReferralReadOptions as Y, Zkp2pClient as Z, type ReferralSignatureOptions as _, type IdentityAttestationRequestBody as a, type WiseSessionMaterial as a$, type SignalIntentReferralFee as a0, type SignalIntentMethodParams as a1, type FulfillIntentMethodParams as a2, type CancelIntentMethodParams as a3, type UpdateReferralCodeSignatureOptions as a4, type Zkp2pNextOptions as a5, type IntentGuardianPolicy as a6, type IntentGuardianQuote as a7, type IntentGuardianWriteFunction as a8, type IntentGuardianWriteParams as a9, type QuoteResponseObject as aA, type QuoteSingleResponse as aB, type QuoteIntentResponse as aC, type QuoteFeesResponse as aD, type FiatResponse as aE, type TokenResponse as aF, type NearbyQuote as aG, type NearbySuggestions as aH, type ApiDeposit as aI, type DepositVerifier as aJ, type DepositVerifierCurrency as aK, type DepositStatus$1 as aL, type GetDepositByIdRequest as aM, type GetDepositByIdResponse as aN, type Intent as aO, type ApiIntentStatus as aP, type GetOwnerIntentsRequest as aQ, type GetOwnerIntentsResponse as aR, type GetIntentsByDepositRequest as aS, type GetIntentsByDepositResponse as aT, type GetIntentByHashRequest as aU, type GetIntentByHashResponse as aV, type RegisterPayeeDetailsRequest as aW, type RegisterPayeeDetailsResponse as aX, type SellerPlatform as aY, type VenmoSessionMaterial as aZ, type CashAppSessionMaterial as a_, type IntentGuardianErrorCode as aa, classifyIntentGuardianError as ab, type AuthorizationTokenProvider as ac, type TimeoutConfig as ad, type ActionCallback as ae, type ReferralRedemption as af, type ReferralSignatureBody as ag, type CreateDepositParams as ah, type CreateDepositConversionRate as ai, type Range as aj, type WithdrawDepositParams as ak, type SignalIntentParams as al, type FulfillIntentParams as am, type ReleaseFundsToPayerParams as an, type CancelIntentParams as ao, type BestByPlatformResponseObject as ap, type GetBestByPlatformResponse as aq, type GetBestByPlatformResponseObject as ar, type GetPlatformQuote as as, type PlatformQuote as at, type QuotePreference as au, type GetNearbyQuote as av, type GetNearbySuggestions as aw, type GetQuoteResponse as ax, type GetQuoteResponseObject as ay, type GetQuoteSingleResponse as az, type AttestationServiceSellerVerifyResponse as b, type RateManagerRateEntity as b$, type WiseProfileInfo as b0, type WiseProfileSelectionRequired as b1, type WiseProfileNotFound as b2, type PayPalGoogleOAuthSellerCredentialUploadBody as b3, type VenmoCredentialUploadInput as b4, type CashAppCredentialUploadInput as b5, type WiseCredentialUploadInput as b6, type SellerCredentialUploadInputByPlatform as b7, type SellerCiphertextBundle as b8, type SellerSignedCiphertextBundle as b9, type VerifySellerPaymentParams as bA, type IdentityAttestationActionType as bB, type IdentityAttestationOutput as bC, type IdentityAttestationOutputFor as bD, type IdentityAttestationParams as bE, type MakerIdentityAttestationRequestBody as bF, type MakerIdentityPlatform as bG, type OnchainCurrency as bH, type DepositVerifierData as bI, type PreparedTransaction as bJ, type OrderStats as bK, type DepositIntentStatistics as bL, type OrderbookEntry as bM, type OrderbookTableRow as bN, IndexerClient as bO, defaultIndexerEndpoint as bP, IndexerDepositService as bQ, IndexerRateManagerService as bR, compareEventCursorIdsByRecency as bS, fetchFulfillmentAndPayment as bT, type DepositEntity as bU, type IntentFulfilledEntity as bV, type IntentFulfillmentAmountsEntity as bW, type DepositPaymentMethodEntity as bX, type MethodCurrencyEntity as bY, type IntentStatus as bZ, type RateManagerEntity as b_, type SellerVerifyIntentDetails as ba, type SellerVerifyInput as bb, type SellerProbeInput as bc, type SellerCredentialBundleUpload as bd, type SellerCredentialStatusValue as be, type SellerCredentialStatus as bf, type SellerVerifyProxyBody as bg, type SellerTypedDataField as bh, type SellerTypedDataSpec as bi, type SellerPaymentTypedDataValue as bj, type SellerAttestationOutput as bk, type SellerCredentialProbeResponse as bl, type FulfillIntentAttestationResponse as bm, type AttestationServiceSellerCredentialProbeResponse as bn, type BuyerTeePaymentParams as bo, type BuyerTeePaymentProofInput as bp, type BuyerTeeSessionMaterial as bq, type CuratorSellerCredentialStatusResponse as br, type CuratorSellerVerifyResponse as bs, type RegisteredSellerCredentialPlatform as bt, type UploadSellerCredentialParams as bu, type RegisteredUploadSellerCredentialParams as bv, type UploadSellerCredentialOptions as bw, type GetSellerCredentialStatusParams as bx, type UploadPayPalGoogleOAuthSellerCredentialParams as by, type UploadGoogleOAuthSellerCredentialParams as bz, type SellerCredentialUploadInput as c, type SendBatchFn as c$, type RateManagerDelegationEntity as c0, type ManagerAggregateStatsEntity as c1, type ManagerStatsEntity as c2, type ManagerDailySnapshotEntity as c3, type RateManagerListItem as c4, type RateManagerDetail as c5, type ManualRateUpdateEntity as c6, type OracleConfigUpdateEntity as c7, type DepositFundActivityEntity as c8, type DepositDailySnapshotEntity as c9, hasIntentGuardian as cA, getRateManagerContracts as cB, getPaymentMethodsCatalog as cC, getGatingServiceAddress as cD, type RuntimeEnv as cE, parseDepositView as cF, parseIntentView as cG, enrichPvDepositView as cH, enrichPvIntentView as cI, type PV_DepositView as cJ, type PV_Deposit as cK, type PV_PaymentMethodData as cL, type PV_Currency as cM, type PV_ReferralFee as cN, type PV_IntentView as cO, type PV_Intent as cP, ZERO_RATE_MANAGER_ID as cQ, isZeroRateManagerId as cR, normalizeRateManagerId as cS, normalizeRegistry as cT, getDelegationRoute as cU, classifyDelegationState as cV, type DelegationRoute as cW, type DelegationState as cX, type DelegationDepositTarget as cY, type BatchResult as cZ, type SendTransactionFn as c_, type DepositFundActivityType as ca, type DepositFilter as cb, type PaginationOptions as cc, type DepositOrderField as cd, type OrderDirection$1 as ce, type RateManagerFilter as cf, type RateManagerPaginationOptions as cg, type RateManagerDelegationPaginationOptions as ch, type RateManagerOrderField as ci, type OrderDirection as cj, type DeploymentEnv as ck, type FulfillmentRecord as cl, type PaymentVerifiedRecord as cm, type FulfillmentAndPaymentResponse as cn, PAYMENT_PLATFORMS as co, type PaymentPlatformType as cp, Currency as cq, currencyInfo as cr, getCurrencyInfoFromHash as cs, getCurrencyInfoFromCountryCode as ct, getCurrencyCodeFromHash as cu, isSupportedCurrencyHash as cv, mapConversionRatesToOnchainMinRate as cw, type CurrencyData as cx, getContracts as cy, getIntentGuardianContract as cz, type SellerCredentialUploadPlatform as d, AccessPolicyOperations as d0, AccessPolicyUnsupportedError as d1, MAX_GROUPS_PER_DEPOSIT as d2, MAX_ADDRESSES_PER_CALL as d3, MAX_WHITELISTED_ADDRESSES as d4, diffAccessPolicy as d5, normalizeAccessPolicyState as d6, planAccessPolicyUpdate as d7, type AccessPolicyDiff as d8, type AccessPolicyOrdering as d9, type AccessPolicyPlan as da, type AccessPolicyPlanStep as db, type AccessPolicyState as dc, type AccessPolicyViolation as dd, ZERO_ADDRESS as de, asErrorMessage as df, assertDelegationMethodSupport as dg, type SellerCredentialAttestationRuntime as e, type AttestationServiceSellerCredentialUploadResponse as f, type BuyerTeeSessionMaterialEncryptionInput as g, type CreateReferralCodeRequest as h, type ApiAdapterOptions as i, type CreateReferralCodeResponse as j, type ReferralReadRequest as k, type ReferralDashboardResponse as l, type ReferralEarningsResponse as m, type ReferralCodeLookupResponse as n, type RedeemReferralCodeRequest as o, type RedeemReferralCodeResponse as p, type UpdateReferralCodeRequest as q, type UpdateReferralCodeResponse as r, type GoogleOAuthSellerCredentialUploadBodyByPlatform as s, type BestByPlatformResponse as t, type ValidatePayeeDetailsResponse as u, type PostDepositDetailsResponse as v, type GetPayeeDetailsRequest as w, type GetPayeeDetailsResponse as x, type GetOwnerDepositsRequest as y, type GetOwnerDepositsResponse as z };
4601
+ export { type RedeemReferralCodeSignatureOptions as $, type AttestationServiceIdentityResponse as A, type BuyerTeeVerifyPaymentBody as B, type CuratorSellerCredentialUploadResponse as C, type DepositWithRelations as D, type GetDepositBundleParams as E, type GetDepositBundleResponse as F, type GoogleOAuthSellerCredentialPlatform as G, type GetOrderbookParams as H, type IntentEntity as I, type GetOrderbookResponse as J, type GetOrderbookTableResponse as K, type QuoteRequest as L, type QuoteResponse as M, type CuratorMetadata as N, type CurrencyType as O, type PostDepositDetailsRequest as P, type QuotesBestByPlatformRequest as Q, type ReferrerFeeConfig as R, type SellerCredentialBundle as S, type PaymentMethodCatalog as T, type UploadSellerCredentialBundleParams as U, type ValidatePayeeDetailsRequest as V, type TxOverrides as W, type ReferralBearerWriteOptions as X, type ReferralReadOptions as Y, Zkp2pClient as Z, type ReferralSignatureOptions as _, type IdentityAttestationRequestBody as a, type SellerPlatform as a$, type SignalIntentReferralFee as a0, type SignalIntentMethodParams as a1, type FulfillIntentMethodParams as a2, type CancelIntentMethodParams as a3, type UpdateReferralCodeSignatureOptions as a4, type Zkp2pNextOptions as a5, type StakeVaultState as a6, type StakeVaultWriteFunction as a7, type StakeVaultWriteParams as a8, type IntentGuardianPolicy as a9, type GetQuoteResponse as aA, type GetQuoteResponseObject as aB, type GetQuoteSingleResponse as aC, type QuoteResponseObject as aD, type QuoteSingleResponse as aE, type QuoteIntentResponse as aF, type QuoteFeesResponse as aG, type FiatResponse as aH, type TokenResponse as aI, type NearbyQuote as aJ, type NearbySuggestions as aK, type ApiDeposit as aL, type DepositVerifier as aM, type DepositVerifierCurrency as aN, type DepositStatus$1 as aO, type GetDepositByIdRequest as aP, type GetDepositByIdResponse as aQ, type Intent as aR, type ApiIntentStatus as aS, type GetOwnerIntentsRequest as aT, type GetOwnerIntentsResponse as aU, type GetIntentsByDepositRequest as aV, type GetIntentsByDepositResponse as aW, type GetIntentByHashRequest as aX, type GetIntentByHashResponse as aY, type RegisterPayeeDetailsRequest as aZ, type RegisterPayeeDetailsResponse as a_, type IntentGuardianQuote as aa, type IntentGuardianWriteFunction as ab, type IntentGuardianWriteParams as ac, type IntentGuardianErrorCode as ad, classifyIntentGuardianError as ae, type AuthorizationTokenProvider as af, type TimeoutConfig as ag, type ActionCallback as ah, type ReferralRedemption as ai, type ReferralSignatureBody as aj, type CreateDepositParams as ak, type CreateDepositConversionRate as al, type Range as am, type WithdrawDepositParams as an, type SignalIntentParams as ao, type FulfillIntentParams as ap, type ReleaseFundsToPayerParams as aq, type CancelIntentParams as ar, type BestByPlatformResponseObject as as, type GetBestByPlatformResponse as at, type GetBestByPlatformResponseObject as au, type GetPlatformQuote as av, type PlatformQuote as aw, type QuotePreference as ax, type GetNearbyQuote as ay, type GetNearbySuggestions as az, type AttestationServiceSellerVerifyResponse as b, fetchFulfillmentAndPayment as b$, type VenmoSessionMaterial as b0, type CashAppSessionMaterial as b1, type WiseSessionMaterial as b2, type WiseProfileInfo as b3, type WiseProfileSelectionRequired as b4, type WiseProfileNotFound as b5, type PayPalGoogleOAuthSellerCredentialUploadBody as b6, type VenmoCredentialUploadInput as b7, type CashAppCredentialUploadInput as b8, type WiseCredentialUploadInput as b9, type GetSellerCredentialStatusParams as bA, type UploadPayPalGoogleOAuthSellerCredentialParams as bB, type UploadGoogleOAuthSellerCredentialParams as bC, type VerifySellerPaymentParams as bD, type IdentityAttestationActionType as bE, type IdentityAttestationOutput as bF, type IdentityAttestationOutputFor as bG, type IdentityAttestationParams as bH, type MakerIdentityAttestationRequestBody as bI, type MakerIdentityPlatform as bJ, type OnchainCurrency as bK, type DepositVerifierData as bL, type PreparedTransaction as bM, type OrderStats as bN, type DepositIntentStatistics as bO, type UsdcAmount as bP, type StakeEnvironment as bQ, type TakerStakeBalances as bR, type OrderbookEntry as bS, type OrderbookTableRow as bT, IndexerClient as bU, defaultIndexerEndpoint as bV, IndexerDepositService as bW, IndexerRateManagerService as bX, compareEventCursorIdsByRecency as bY, buildStakingEntityIds as bZ, IndexerStakingService as b_, type SellerCredentialUploadInputByPlatform as ba, type SellerCiphertextBundle as bb, type SellerSignedCiphertextBundle as bc, type SellerVerifyIntentDetails as bd, type SellerVerifyInput as be, type SellerProbeInput as bf, type SellerCredentialBundleUpload as bg, type SellerCredentialStatusValue as bh, type SellerCredentialStatus as bi, type SellerVerifyProxyBody as bj, type SellerTypedDataField as bk, type SellerTypedDataSpec as bl, type SellerPaymentTypedDataValue as bm, type SellerAttestationOutput as bn, type SellerCredentialProbeResponse as bo, type FulfillIntentAttestationResponse as bp, type AttestationServiceSellerCredentialProbeResponse as bq, type BuyerTeePaymentParams as br, type BuyerTeePaymentProofInput as bs, type BuyerTeeSessionMaterial as bt, type CuratorSellerCredentialStatusResponse as bu, type CuratorSellerVerifyResponse as bv, type RegisteredSellerCredentialPlatform as bw, type UploadSellerCredentialParams as bx, type RegisteredUploadSellerCredentialParams as by, type UploadSellerCredentialOptions as bz, type SellerCredentialUploadInput as c, parseDepositView as c$, type DepositEntity as c0, type IntentFulfilledEntity as c1, type IntentFulfillmentAmountsEntity as c2, type DepositPaymentMethodEntity as c3, type MethodCurrencyEntity as c4, type IntentStatus as c5, type RateManagerEntity as c6, type RateManagerRateEntity as c7, type RateManagerDelegationEntity as c8, type ManagerAggregateStatsEntity as c9, type PaymentVerifiedRecord as cA, type FulfillmentAndPaymentResponse as cB, PAYMENT_PLATFORMS as cC, type PaymentPlatformType as cD, Currency as cE, currencyInfo as cF, getCurrencyInfoFromHash as cG, getCurrencyInfoFromCountryCode as cH, getCurrencyCodeFromHash as cI, isSupportedCurrencyHash as cJ, mapConversionRatesToOnchainMinRate as cK, type CurrencyData as cL, getContracts as cM, getIntentGuardianContract as cN, hasIntentGuardian as cO, getRateManagerContracts as cP, getStakeVaultContract as cQ, getOrchestratorV3Contract as cR, getChargebackPolicyContract as cS, getPaymentMethodsCatalog as cT, getGatingServiceAddress as cU, ORCHESTRATOR_V3_ABI as cV, CHARGEBACK_POLICY_ABI as cW, STAKE_VAULT_ABI as cX, type RuntimeEnv as cY, type V2ContractAddresses as cZ, type V2ContractAbis as c_, type ManagerStatsEntity as ca, type ManagerDailySnapshotEntity as cb, type RateManagerListItem as cc, type RateManagerDetail as cd, type ManualRateUpdateEntity as ce, type OracleConfigUpdateEntity as cf, type DepositFundActivityEntity as cg, type DepositDailySnapshotEntity as ch, type DepositFundActivityType as ci, type IndexedRiskWindow as cj, type IndexedStakingRowFreshness as ck, type IndexedStakingState as cl, type IndexedStakingStateParams as cm, type IndexedTakerAuthorization as cn, type StakingEntityIds as co, type DepositFilter as cp, type PaginationOptions as cq, type DepositOrderField as cr, type OrderDirection$1 as cs, type RateManagerFilter as ct, type RateManagerPaginationOptions as cu, type RateManagerDelegationPaginationOptions as cv, type RateManagerOrderField as cw, type OrderDirection as cx, type DeploymentEnv as cy, type FulfillmentRecord as cz, type SellerCredentialUploadPlatform as d, parseIntentView as d0, enrichPvDepositView as d1, enrichPvIntentView as d2, type PV_DepositView as d3, type PV_Deposit as d4, type PV_PaymentMethodData as d5, type PV_Currency as d6, type PV_ReferralFee as d7, type PV_IntentView as d8, type PV_Intent as d9, type AccessPolicyViolation as dA, ZERO_ADDRESS as dB, asErrorMessage as dC, assertDelegationMethodSupport as dD, ZERO_RATE_MANAGER_ID as da, isZeroRateManagerId as db, normalizeRateManagerId as dc, normalizeRegistry as dd, getDelegationRoute as de, classifyDelegationState as df, type DelegationRoute as dg, type DelegationState as dh, type DelegationDepositTarget as di, type BatchResult as dj, type SendTransactionFn as dk, type SendBatchFn as dl, AccessPolicyOperations as dm, AccessPolicyUnsupportedError as dn, MAX_GROUPS_PER_DEPOSIT as dp, MAX_ADDRESSES_PER_CALL as dq, MAX_WHITELISTED_ADDRESSES as dr, diffAccessPolicy as ds, normalizeAccessPolicyState as dt, planAccessPolicyUpdate as du, type AccessPolicyDiff as dv, type AccessPolicyOrdering as dw, type AccessPolicyPlan as dx, type AccessPolicyPlanStep as dy, type AccessPolicyState as dz, type SellerCredentialAttestationRuntime as e, type AttestationServiceSellerCredentialUploadResponse as f, type BuyerTeeSessionMaterialEncryptionInput as g, type CreateReferralCodeRequest as h, type ApiAdapterOptions as i, type CreateReferralCodeResponse as j, type ReferralReadRequest as k, type ReferralDashboardResponse as l, type ReferralEarningsResponse as m, type ReferralCodeLookupResponse as n, type RedeemReferralCodeRequest as o, type RedeemReferralCodeResponse as p, type UpdateReferralCodeRequest as q, type UpdateReferralCodeResponse as r, type GoogleOAuthSellerCredentialUploadBodyByPlatform as s, type BestByPlatformResponse as t, type ValidatePayeeDetailsResponse as u, type PostDepositDetailsResponse as v, type GetPayeeDetailsRequest as w, type GetPayeeDetailsResponse as x, type GetOwnerDepositsRequest as y, type GetOwnerDepositsResponse as z };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zkp2p/sdk",
3
- "version": "0.11.2",
3
+ "version": "0.12.1",
4
4
  "description": "ZKP2P Client SDK - TypeScript SDK for deposit management, liquidity provision, and onramping",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.cjs",