@zkp2p/sdk 0.9.0 → 0.10.0-rc.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 RiskManager keeper and settlement-event ABI. */
19
+ declare const RISK_MANAGER_ABI: Abi;
20
+ /** Reviewed StakeVault ABI, including deferred-payout events. */
21
+ declare const STAKE_VAULT_ABI: Abi;
22
+ /** Focused ABI for decoding RiskPositionSettled receipts. */
23
+ declare const RISK_POSITION_SETTLED_EVENT_ABI: Abi;
24
+ /** Focused ABI for decoding DeferredPayoutRecorded receipts. */
25
+ declare const DEFERRED_PAYOUT_RECORDED_EVENT_ABI: Abi;
16
26
  /**
17
27
  * Contract addresses for a specific deployment.
18
28
  */
@@ -27,6 +37,8 @@ type V2ContractAddresses = {
27
37
  orchestrator?: `0x${string}`;
28
38
  /** OrchestratorV2 contract (queries EscrowV2 effective rates) */
29
39
  orchestratorV2?: `0x${string}`;
40
+ /** OrchestratorV3 contract (stake-risk intent lifecycle) */
41
+ orchestratorV3?: `0x${string}`;
30
42
  /** All supported orchestrator addresses for the current deployment */
31
43
  orchestratorAddresses?: `0x${string}`[];
32
44
  /** UnifiedPaymentVerifier contract (verifies payment proofs) */
@@ -54,6 +66,10 @@ type V2ContractAddresses = {
54
66
  chainlinkOracleAdapter?: `0x${string}`;
55
67
  /** PythOracleAdapter contract */
56
68
  pythOracleAdapter?: `0x${string}`;
69
+ /** StakeVault contract for taker stake and delegation */
70
+ stakeVault?: `0x${string}`;
71
+ /** RiskManager contract for stake reservation and settlement recovery */
72
+ riskManager?: `0x${string}`;
57
73
  };
58
74
  /**
59
75
  * Contract ABIs for a specific deployment.
@@ -63,6 +79,7 @@ type V2ContractAbis = {
63
79
  escrowV2?: Abi;
64
80
  orchestrator?: Abi;
65
81
  orchestratorV2?: Abi;
82
+ orchestratorV3?: Abi;
66
83
  unifiedPaymentVerifier?: Abi;
67
84
  unifiedPaymentVerifierV2?: Abi;
68
85
  protocolViewer?: Abi;
@@ -70,6 +87,8 @@ type V2ContractAbis = {
70
87
  orchestratorRegistry?: Abi;
71
88
  rateManagerRegistry?: Abi;
72
89
  rateManagerController?: Abi;
90
+ stakeVault?: Abi;
91
+ riskManager?: Abi;
73
92
  };
74
93
  /**
75
94
  * Runtime environment: 'production' for mainnet, 'preproduction' for preprod
@@ -145,6 +164,27 @@ declare function getRateManagerContracts(chainId: number, env?: RuntimeEnv): {
145
164
  controller?: Abi;
146
165
  };
147
166
  };
167
+ /**
168
+ * Resolve the user-facing StakeVault contract for a deployment.
169
+ *
170
+ * Throws when the environment has no StakeVault deployment so callers fail
171
+ * closed instead of accidentally targeting another environment.
172
+ */
173
+ declare function getStakeVaultContract(chainId: number, env?: RuntimeEnv): {
174
+ address: `0x${string}`;
175
+ abi: Abi;
176
+ stakeToken: `0x${string}`;
177
+ };
178
+ /** Resolve OrchestratorV3 for a deployment, failing closed when unavailable. */
179
+ declare function getOrchestratorV3Contract(chainId: number, env?: RuntimeEnv): {
180
+ address: `0x${string}`;
181
+ abi: Abi;
182
+ };
183
+ /** Resolve RiskManager for a deployment, failing closed when unavailable. */
184
+ declare function getRiskManagerContract(chainId: number, env?: RuntimeEnv): {
185
+ address: `0x${string}`;
186
+ abi: Abi;
187
+ };
148
188
 
149
189
  /**
150
190
  * Minimal fetch-based GraphQL client for the ZKP2P indexer.
@@ -1555,111 +1595,198 @@ type OrderStats = {
1555
1595
  };
1556
1596
  /** @deprecated No corresponding SDK method; will be removed in 0.8. */
1557
1597
  type DepositIntentStatistics = OrderStats;
1558
- type TakerTierStats = {
1559
- lifetimeSignaledCount: number;
1560
- lifetimeFulfilledCount: number;
1561
- lifetimeManualReleaseCount: number;
1562
- lifetimePruneCount: number;
1563
- totalCancelledVolume: string;
1564
- totalFulfilledVolume: string;
1565
- lockScore: string;
1566
- lockScoreDiluted: string;
1567
- firstSeenAt: string;
1568
- lastIntentAt: string;
1569
- updatedAt: string;
1570
- };
1571
- type TakerTierLevel = 'PEASANT' | 'PEER' | 'PLUS' | 'PRO' | 'PLATINUM';
1572
- type PlatformRiskLevel = 'LOW' | 'MEDIUM_HIGH' | 'HIGH' | 'HIGHEST';
1573
- type PlatformLimit = {
1598
+ type UsdcAmount = {
1599
+ /** USDC base units (6 decimals), stringified integer. */
1600
+ raw: string;
1601
+ /** Display decimal (e.g. "1250" or "0.059792"). */
1602
+ formatted: string;
1603
+ };
1604
+ type TakerStakeAsset = {
1605
+ symbol: 'USDC';
1606
+ decimals: 6;
1607
+ };
1608
+ type TakerDelegation = {
1609
+ /** True when the taker's intents are backed by another owner's stake. */
1610
+ isDelegated: boolean;
1611
+ taker: string;
1612
+ stakeOwner: string;
1613
+ };
1614
+ type TakerStakeBalances = {
1615
+ /** Total USDC held for the stake owner. */
1616
+ stakedUsdc: UsdcAmount;
1617
+ /** Requested for withdrawal; already excluded from reservation eligibility. */
1618
+ pendingWithdrawalUsdc: UsdcAmount;
1619
+ /** Stake remaining after the pending partial removal. */
1620
+ eligibleUsdc: UsdcAmount;
1621
+ /** Authoritative StakeVault reservation total (locked, not spent). */
1622
+ reservedUsdc: UsdcAmount;
1623
+ /** Stake available to support new bonded activity. */
1624
+ freeUsdc: UsdcAmount;
1625
+ };
1626
+ type TakerStakeExit = {
1627
+ exiting: boolean;
1628
+ requestedAt: string | null;
1629
+ availableAt: string | null;
1630
+ };
1631
+ type StakeReservationKind = 'pending_intent' | 'chargeback_coverage';
1632
+ type StakeReservation = {
1633
+ id: string;
1634
+ intentId: string;
1574
1635
  paymentMethodHash: string;
1575
1636
  platformName: string;
1576
- /** Legacy risk category. Current curator cap-grid responses omit this. */
1577
- riskLevel?: PlatformRiskLevel;
1578
- /** Legacy multiplier. Current curator cap-grid responses omit this. */
1579
- capMultiplier?: number;
1580
- effectiveCap: string;
1581
- effectiveCapDisplay: string;
1582
- hasCooldown: boolean;
1583
- cooldownHours: number;
1584
- isLocked: boolean;
1585
- minTierRequired: TakerTierLevel | null;
1586
- /**
1587
- * Whether the rail is chargeback-reversible. Reversible rails backed by a
1588
- * seller-automated-release (SAR) credential are takeable only through Peer
1589
- * Pay, so the intent-sign path rejects them with "peer pay only". Optional:
1590
- * older curator deployments (current prod) omit this field.
1591
- */
1592
- reversible?: boolean;
1593
- };
1594
- type TakerTierVolumeBreakdown = {
1595
- platformName: string;
1637
+ kind: StakeReservationKind;
1638
+ reservedUsdc: UsdcAmount;
1639
+ coverageExpiresAt: string | null;
1640
+ };
1641
+ type StakeReservations = {
1642
+ activeCount: number;
1643
+ /** Aggregate maximum griefing/initial reservations for pending positions. */
1644
+ pendingIntentUsdc: UsdcAmount;
1645
+ /** Active, non-matured post-settlement chargeback coverage. */
1646
+ chargebackCoverageUsdc: UsdcAmount;
1647
+ totalReservedUsdc: UsdcAmount;
1648
+ /**
1649
+ * Forward-compatible per-reservation detail; intentionally empty in the
1650
+ * initial API. `balances.reservedUsdc` stays authoritative — never
1651
+ * reconstruct it from the category aggregates above.
1652
+ */
1653
+ items: StakeReservation[];
1654
+ };
1655
+ type TakerStake = {
1656
+ /** Requested taker address. */
1657
+ owner: string;
1658
+ chainId: number;
1659
+ /** Resolved stake owner; differs from `owner` when stake is delegated. */
1660
+ stakeOwner: string;
1661
+ asset: TakerStakeAsset;
1662
+ delegation: TakerDelegation;
1663
+ balances: TakerStakeBalances;
1664
+ reservations: StakeReservations;
1665
+ exit: TakerStakeExit;
1666
+ source: 'indexer';
1667
+ updatedAt: string | null;
1668
+ };
1669
+ type GetTakerStakeRequest = {
1670
+ owner: string;
1671
+ chainId: number;
1672
+ };
1673
+ type GetTakerStakeResponse = {
1674
+ success: boolean;
1675
+ message: string;
1676
+ responseObject: TakerStake;
1677
+ statusCode?: number;
1678
+ };
1679
+ type CapacityWarningCode = 'ADMISSION_PAUSED' | 'STAKE_RESERVATIONS_PAUSED' | 'STAKE_DEPOSITS_PAUSED' | 'PLATFORM_DISABLED' | 'NO_BONDED_CAPACITY' | 'UNLIMITED_BONDED_CAPACITY' | 'FREE_TAKES_AVAILABLE' | 'FREE_TAKES_EXHAUSTED' | 'PARTIAL_CHARGEBACK_COVERAGE' | 'UNPROTECTED_AFTER_CHARGEBACK_WINDOW' | 'DEFERRED_PAYOUT_AVAILABLE' | 'GRIEFING_BOND_DISABLED' | 'STAKE_EXIT_PENDING' | 'SHARED_STAKE_PORTFOLIO';
1680
+ type CapacityWarningSeverity = 'info' | 'warning' | 'error';
1681
+ type CapacityWarning = {
1682
+ /** Stable machine-readable code; key behavior and analytics off this. */
1683
+ code: CapacityWarningCode;
1684
+ severity: CapacityWarningSeverity;
1685
+ message: string;
1686
+ };
1687
+ /** `amountUsdc: null` only with `unlimited: true` (curve does not constrain). */
1688
+ type CurveTakingCapacity = {
1689
+ amountUsdc: UsdcAmount;
1690
+ unlimited: false;
1691
+ } | {
1692
+ amountUsdc: null;
1693
+ unlimited: true;
1694
+ };
1695
+ type LimitingCurve = 'griefing' | 'chargeback' | 'both' | 'none';
1696
+ type BondedTakingCapacity = {
1697
+ amountUsdc: UsdcAmount;
1698
+ unlimited: false;
1699
+ limitingCurve: LimitingCurve;
1700
+ } | {
1701
+ amountUsdc: null;
1702
+ unlimited: true;
1703
+ limitingCurve: 'none';
1704
+ };
1705
+ type PlatformFreeTakes = {
1706
+ eligible: boolean;
1707
+ configuredCount: number;
1708
+ usedCount: number;
1709
+ remainingCount: number;
1710
+ /** Per-intent maximum for each whole free take. */
1711
+ amountPerTakeUsdc: UsdcAmount;
1712
+ /**
1713
+ * Display total only. Free allowances are separate whole intents; they can
1714
+ * never be combined with each other or with bonded capacity in one intent.
1715
+ */
1716
+ remainingTotalUsdc: UsdcAmount;
1717
+ intentSemantics: 'separate_intents_only';
1718
+ };
1719
+ type PlatformGriefingCapacity = {
1720
+ enabled: boolean;
1721
+ cliffSeconds: string;
1722
+ penaltyBpsPerHour: string;
1723
+ maximumIntentPeriodSeconds: string;
1724
+ maximumBondForOneUsdc: UsdcAmount;
1725
+ takingCapacity: CurveTakingCapacity;
1726
+ };
1727
+ type ChargebackCoverageStatus = 'full' | 'partial' | 'none' | 'not_applicable';
1728
+ type PlatformChargebackCapacity = {
1729
+ chargebackable: boolean;
1730
+ reserveBps: number;
1731
+ riskWindowSeconds: string;
1732
+ deferredPayoutAvailable: boolean;
1733
+ coverage: {
1734
+ status: ChargebackCoverageStatus;
1735
+ protectedBps: number;
1736
+ uncoveredBps: number;
1737
+ afterWindow: 'uncovered';
1738
+ };
1739
+ takingCapacity: CurveTakingCapacity;
1740
+ };
1741
+ type PlatformCapacity = {
1596
1742
  paymentMethodHash: string;
1597
- volumeBaseUnits: string;
1598
- volumeDisplay: string;
1599
- multiplierBps: number;
1600
- weightedVolumeBaseUnits: string;
1601
- weightedVolumeDisplay: string;
1602
- };
1603
- /** How the curator resolved the taker tier (see curator tier engine). */
1604
- type TakerTierSource = 'computed' | 'fallback' | 'override' | 'blocklist';
1605
- type TakerTier = {
1743
+ platformName: string;
1744
+ enabled: boolean;
1745
+ policyVersion: string | null;
1746
+ /**
1747
+ * Platform capacities are alternative views of one shared stake-owner
1748
+ * portfolio. Never sum capacity across platforms.
1749
+ */
1750
+ stakeScope: 'shared_stake_owner_portfolio';
1751
+ stake: TakerStakeBalances;
1752
+ bondedTakingCapacity: BondedTakingCapacity;
1753
+ freeTakes: PlatformFreeTakes;
1754
+ griefing: PlatformGriefingCapacity;
1755
+ chargeback: PlatformChargebackCapacity;
1756
+ warnings: CapacityWarning[];
1757
+ };
1758
+ type TakerOperationalGates = {
1759
+ /** Blocks all new admissions. */
1760
+ admissionPaused: boolean;
1761
+ /** Blocks bonded/deferred admissions; eligible zero-reservation free takes remain. */
1762
+ reservationsPaused: boolean;
1763
+ /** Blocks stake top-ups only; capacity from existing stake stays available. */
1764
+ depositsPaused: boolean;
1765
+ bondedAdmissionGateOpen: boolean;
1766
+ zeroReservationFreeAdmissionGateOpen: boolean;
1767
+ stakeTopUpGateOpen: boolean;
1768
+ };
1769
+ type TakerCapacity = {
1606
1770
  owner: string;
1607
1771
  chainId: number;
1608
- tier: TakerTierLevel;
1609
- /** Legacy base cap. Current curator responses expose enforced caps in platformLimits. */
1610
- perIntentCapBaseUnits?: string;
1611
- /** Legacy formatted base cap. */
1612
- perIntentCapDisplay?: string;
1613
- lastUpdated: string;
1614
- source: TakerTierSource;
1615
- stats: TakerTierStats | null;
1616
- cooldownHours: number;
1617
- cooldownSeconds: number;
1618
- cooldownActive: boolean;
1619
- cooldownRemainingSeconds: number;
1620
- nextIntentAvailableAt: string | null;
1621
- /**
1622
- * Server-authoritative platform cap grid. Use this for enforced caps; do not
1623
- * derive platform caps from top-level tier caps or risk multipliers.
1624
- */
1625
- platformLimits?: PlatformLimit[];
1626
- /**
1627
- * Server-authoritative tier fields (curator PR #461/#463/#478 contract). All
1628
- * optional because the current production deployment still serves the older
1629
- * payload that omits them — read them when present and fall back gracefully.
1630
- * Amounts are USDC base-unit strings (6 decimals).
1631
- */
1632
- /** Base per-intent cap before platform risk multipliers (alias of perIntentCapBaseUnits). */
1633
- maxOrderSize?: string;
1634
- maxOrderSizeDisplay?: string;
1635
- /** Peer Pay volume floor that qualifies the current tier. */
1636
- minVolumeForTier?: string;
1637
- minVolumeForTierDisplay?: string;
1638
- /** Next tier up the volume ladder, or null at the top / off-ladder tiers. */
1639
- nextTier?: TakerTierLevel | null;
1640
- /** Remaining Peer Pay volume to reach `nextTier`. */
1641
- volumeToNextTier?: string | null;
1642
- volumeToNextTierDisplay?: string | null;
1643
- nextTierMaxOrderSize?: string | null;
1644
- nextTierMaxOrderSizeDisplay?: string | null;
1645
- /**
1646
- * Compatibility name retained by curator. Current semantics preserve
1647
- * historical maker tiers through July 1, 2026 UTC, then add forward Peer Pay
1648
- * volume only. Present on deployments with the PR #461/#463 progression
1649
- * contract.
1650
- */
1651
- peerPayVolume?: string;
1652
- /** Auditable tier progression inputs. Current curator may return a synthetic Peer Pay row. */
1653
- volumeBreakdown?: TakerTierVolumeBreakdown[];
1654
- };
1655
- type GetTakerTierRequest = {
1772
+ stakeOwner: string;
1773
+ asset: TakerStakeAsset;
1774
+ delegation: TakerDelegation;
1775
+ stake: TakerStakeBalances;
1776
+ operationalGates: TakerOperationalGates;
1777
+ platforms: PlatformCapacity[];
1778
+ warnings: CapacityWarning[];
1779
+ source: 'indexer';
1780
+ updatedAt: string | null;
1781
+ };
1782
+ type GetTakerCapacityRequest = {
1656
1783
  owner: string;
1657
1784
  chainId: number;
1658
1785
  };
1659
- type GetTakerTierResponse = {
1786
+ type GetTakerCapacityResponse = {
1660
1787
  success: boolean;
1661
1788
  message: string;
1662
- responseObject: TakerTier;
1789
+ responseObject: TakerCapacity;
1663
1790
  statusCode?: number;
1664
1791
  };
1665
1792
  type GetDepositBundleParams = DepositBundleRequest;
@@ -1792,6 +1919,63 @@ type UpdateReferralCodeSignatureOptions$1 = ReferralSignatureOptions$1 & {
1792
1919
  oldCode: string;
1793
1920
  };
1794
1921
 
1922
+ type StakeVaultWriteFunction = 'depositStake' | 'depositStakeFor' | 'requestStakeWithdrawal' | 'cancelStakeWithdrawal' | 'withdrawRequestedStake' | 'requestExit' | 'cancelExit' | 'withdrawStake' | 'setStakeDelegationEnabled' | 'setAllowedStakeOwner' | 'clearStakeOwner';
1923
+ type StakeWriteBase = {
1924
+ txOverrides?: TxOverrides;
1925
+ };
1926
+ type StakeVaultWriteParams = {
1927
+ depositStake: StakeWriteBase & {
1928
+ amount: bigint;
1929
+ };
1930
+ depositStakeFor: StakeWriteBase & {
1931
+ taker: Address;
1932
+ amount: bigint;
1933
+ };
1934
+ requestStakeWithdrawal: StakeWriteBase & {
1935
+ amount: bigint;
1936
+ };
1937
+ cancelStakeWithdrawal: StakeWriteBase;
1938
+ withdrawRequestedStake: StakeWriteBase & {
1939
+ recipient: Address;
1940
+ };
1941
+ requestExit: StakeWriteBase;
1942
+ cancelExit: StakeWriteBase;
1943
+ withdrawStake: StakeWriteBase & {
1944
+ recipient: Address;
1945
+ };
1946
+ setStakeDelegationEnabled: StakeWriteBase & {
1947
+ enabled: boolean;
1948
+ };
1949
+ setAllowedStakeOwner: StakeWriteBase & {
1950
+ stakeOwner: Address;
1951
+ };
1952
+ clearStakeOwner: StakeWriteBase;
1953
+ };
1954
+ type StakeWithdrawalRequest = {
1955
+ amount: bigint;
1956
+ requestedAt: bigint;
1957
+ availableAt: bigint;
1958
+ };
1959
+ type StakeExitRequest = {
1960
+ exiting: boolean;
1961
+ requestedAt: bigint;
1962
+ availableAt: bigint;
1963
+ };
1964
+ type StakeVaultState = {
1965
+ staker: Address;
1966
+ taker: Address;
1967
+ stakeToken: Address;
1968
+ stakeOwner: Address;
1969
+ allowedStakeOwner: Address;
1970
+ delegationEnabled: boolean;
1971
+ staked: bigint;
1972
+ eligible: bigint;
1973
+ reserved: bigint;
1974
+ free: bigint;
1975
+ withdrawal: StakeWithdrawalRequest;
1976
+ exit: StakeExitRequest;
1977
+ };
1978
+
1795
1979
  type PV_ReferralFee = {
1796
1980
  recipient: `0x${string}`;
1797
1981
  fee: bigint;
@@ -2429,6 +2613,10 @@ declare class Zkp2pClient {
2429
2613
  readonly orchestratorV2Address?: Address;
2430
2614
  /** OrchestratorV2 ABI */
2431
2615
  readonly orchestratorV2Abi?: Abi;
2616
+ /** OrchestratorV3 address (undefined when stake-risk intents are not deployed) */
2617
+ readonly orchestratorV3Address?: Address;
2618
+ /** OrchestratorV3 ABI */
2619
+ readonly orchestratorV3Abi?: Abi;
2432
2620
  /** All supported upgraded orchestrator addresses (current first, then historical) */
2433
2621
  readonly orchestratorAddresses: Address[];
2434
2622
  /** UnifiedPaymentVerifier contract address */
@@ -2455,6 +2643,14 @@ declare class Zkp2pClient {
2455
2643
  readonly orchestratorRegistryAddress?: Address;
2456
2644
  /** OrchestratorRegistry ABI */
2457
2645
  readonly orchestratorRegistryAbi?: Abi;
2646
+ /** StakeVault address (undefined when staking is not deployed) */
2647
+ readonly stakeVaultAddress?: Address;
2648
+ /** StakeVault ABI */
2649
+ readonly stakeVaultAbi?: Abi;
2650
+ /** RiskManager address (undefined when stake-risk settlement is not deployed) */
2651
+ readonly riskManagerAddress?: Address;
2652
+ /** RiskManager ABI */
2653
+ readonly riskManagerAbi?: Abi;
2458
2654
  /** Base API URL for ZKP2P services */
2459
2655
  readonly baseApiUrl?: string;
2460
2656
  /** Optional internal curator API key (`x-api-key`) for internal seller verification */
@@ -2472,6 +2668,7 @@ declare class Zkp2pClient {
2472
2668
  private readonly _router;
2473
2669
  private readonly _pvReader;
2474
2670
  private readonly _vaultOps;
2671
+ private readonly _stakeOps;
2475
2672
  private readonly _intentOps;
2476
2673
  private readonly _referralOps;
2477
2674
  private _rateManagerInitError?;
@@ -2539,6 +2736,8 @@ declare class Zkp2pClient {
2539
2736
  private prepareResolvedOrchestratorTransaction;
2540
2737
  private prepareContractTransaction;
2541
2738
  private buildContractMethod;
2739
+ private buildStakeVaultMethod;
2740
+ private buildRiskManagerMethod;
2542
2741
  private buildEscrowMethod;
2543
2742
  private buildOrchestratorMethod;
2544
2743
  /**
@@ -2841,6 +3040,144 @@ declare class Zkp2pClient {
2841
3040
  hadAllowance: boolean;
2842
3041
  hash?: Hash;
2843
3042
  }>;
3043
+ /**
3044
+ * Return the resolved StakeVault coordinates for advanced wallet, relayer,
3045
+ * or reactive read integrations.
3046
+ */
3047
+ getStakeVaultContract(): {
3048
+ address: Address;
3049
+ abi: Abi;
3050
+ stakeToken: Address;
3051
+ };
3052
+ /** Return the resolved OrchestratorV3 coordinates for advanced integrations. */
3053
+ getOrchestratorV3Contract(): {
3054
+ address: Address;
3055
+ abi: Abi;
3056
+ };
3057
+ /** Return the resolved RiskManager coordinates for keeper integrations. */
3058
+ getRiskManagerContract(): {
3059
+ address: Address;
3060
+ abi: Abi;
3061
+ };
3062
+ /**
3063
+ * Ensure the connected wallet has approved enough USDC for StakeVault.
3064
+ * If an approval is submitted, wait for it to confirm before depositing.
3065
+ */
3066
+ ensureStakeAllowance(params: {
3067
+ amount: bigint;
3068
+ maxApprove?: boolean;
3069
+ txOverrides?: TxOverrides;
3070
+ }): Promise<{
3071
+ hadAllowance: boolean;
3072
+ hash?: Hash;
3073
+ }>;
3074
+ /** Deposit USDC stake for the connected taker. */
3075
+ readonly depositStake: PrepareableMethod<{
3076
+ txOverrides?: TxOverrides;
3077
+ } & {
3078
+ amount: bigint;
3079
+ }, `0x${string}`>;
3080
+ /** Deposit USDC stake for a different taker that has enabled delegation. */
3081
+ readonly depositStakeFor: PrepareableMethod<{
3082
+ txOverrides?: TxOverrides;
3083
+ } & {
3084
+ taker: Address;
3085
+ amount: bigint;
3086
+ }, `0x${string}`>;
3087
+ /** Begin a partial stake-withdrawal delay. */
3088
+ readonly requestStakeWithdrawal: PrepareableMethod<{
3089
+ txOverrides?: TxOverrides;
3090
+ } & {
3091
+ amount: bigint;
3092
+ }, `0x${string}`>;
3093
+ /** Cancel the connected staker's pending partial withdrawal. */
3094
+ readonly cancelStakeWithdrawal: PrepareableMethod<{
3095
+ txOverrides?: TxOverrides;
3096
+ }, `0x${string}`>;
3097
+ /** Withdraw a matured partial stake-withdrawal request. */
3098
+ readonly withdrawRequestedStake: PrepareableMethod<{
3099
+ txOverrides?: TxOverrides;
3100
+ } & {
3101
+ recipient: Address;
3102
+ }, `0x${string}`>;
3103
+ /** Begin a full exit, blocking new taking activity for the stake owner. */
3104
+ readonly requestExit: PrepareableMethod<{
3105
+ txOverrides?: TxOverrides;
3106
+ }, `0x${string}`>;
3107
+ /** Cancel a pending full exit. */
3108
+ readonly cancelExit: PrepareableMethod<{
3109
+ txOverrides?: TxOverrides;
3110
+ }, `0x${string}`>;
3111
+ /** Withdraw all stake after a matured, fully settled exit. */
3112
+ readonly withdrawStake: PrepareableMethod<{
3113
+ txOverrides?: TxOverrides;
3114
+ } & {
3115
+ recipient: Address;
3116
+ }, `0x${string}`>;
3117
+ /** Allow or block third-party stake owners for the connected taker. */
3118
+ readonly setStakeDelegationEnabled: PrepareableMethod<{
3119
+ txOverrides?: TxOverrides;
3120
+ } & {
3121
+ enabled: boolean;
3122
+ }, `0x${string}`>;
3123
+ /** Select the stake owner whose portfolio backs the connected taker. */
3124
+ readonly setAllowedStakeOwner: PrepareableMethod<{
3125
+ txOverrides?: TxOverrides;
3126
+ } & {
3127
+ stakeOwner: Address;
3128
+ }, `0x${string}`>;
3129
+ /** Remove the connected taker's selected third-party stake owner. */
3130
+ readonly clearStakeOwner: PrepareableMethod<{
3131
+ txOverrides?: TxOverrides;
3132
+ }, `0x${string}`>;
3133
+ /** Read total stake owned by an address directly from StakeVault. */
3134
+ getStakeBalance(staker: Address): Promise<bigint>;
3135
+ /** Read stake that currently backs taking capacity. */
3136
+ getEligibleStake(staker: Address): Promise<bigint>;
3137
+ /** Read stake reserved against active intents. */
3138
+ getReservedStake(staker: Address): Promise<bigint>;
3139
+ /** Read stake currently available for withdrawal or new reservations. */
3140
+ getFreeStake(staker: Address): Promise<bigint>;
3141
+ /** Resolve the effective stake owner backing a taker. */
3142
+ getStakeOwner(taker: Address): Promise<Address>;
3143
+ /** Read the stake owner explicitly selected by a taker. */
3144
+ getAllowedStakeOwner(taker: Address): Promise<Address>;
3145
+ /** Read whether a taker allows third-party stake delegation. */
3146
+ getStakeDelegationEnabled(taker: Address): Promise<boolean>;
3147
+ /** Read the connected staker's pending partial withdrawal. */
3148
+ getStakeWithdrawalRequest(staker: Address): Promise<StakeWithdrawalRequest>;
3149
+ /** Read the connected staker's pending full exit. */
3150
+ getStakeExitRequest(staker: Address): Promise<StakeExitRequest>;
3151
+ /** Read the complete authoritative StakeVault state needed by a staking UI. */
3152
+ getStakeVaultState(params: {
3153
+ staker: Address;
3154
+ taker?: Address;
3155
+ }): Promise<StakeVaultState>;
3156
+ /** Release one or more RiskManager positions whose chargeback window matured. */
3157
+ readonly releaseMaturedPositions: PrepareableMethod<{
3158
+ intentHashes: readonly `0x${string}`[];
3159
+ txOverrides?: TxOverrides;
3160
+ }, `0x${string}`>;
3161
+ /** Reconcile one failed OrchestratorV3 settlement callback. */
3162
+ readonly reconcileSettlement: PrepareableMethod<{
3163
+ intentHash: `0x${string}`;
3164
+ txOverrides?: TxOverrides;
3165
+ }, `0x${string}`>;
3166
+ /** Reconcile multiple failed OrchestratorV3 settlement callbacks. */
3167
+ readonly reconcileSettlements: PrepareableMethod<{
3168
+ intentHashes: readonly `0x${string}`[];
3169
+ txOverrides?: TxOverrides;
3170
+ }, `0x${string}`>;
3171
+ /** Reconcile one failed OrchestratorV3 cancellation callback. */
3172
+ readonly reconcileCancellation: PrepareableMethod<{
3173
+ intentHash: `0x${string}`;
3174
+ txOverrides?: TxOverrides;
3175
+ }, `0x${string}`>;
3176
+ /** Reconcile multiple failed OrchestratorV3 cancellation callbacks. */
3177
+ readonly reconcileCancellations: PrepareableMethod<{
3178
+ intentHashes: readonly `0x${string}`[];
3179
+ txOverrides?: TxOverrides;
3180
+ }, `0x${string}`>;
2844
3181
  /**
2845
3182
  * Registers payee details with the curator API and returns hashed on-chain IDs.
2846
3183
  *
@@ -3674,18 +4011,36 @@ declare class Zkp2pClient {
3674
4011
  timeoutMs?: number;
3675
4012
  }): Promise<GetBestByPlatformResponse>;
3676
4013
  /**
3677
- * **Supporting Method** - Fetches taker tier information for an address.
4014
+ * **Supporting Method** - Fetches the stake portfolio backing a taker:
4015
+ * staked/pending-withdrawal/eligible/reserved/free balances, reservation
4016
+ * aggregates, delegation, and exit state.
4017
+ *
4018
+ * @param req - Stake request parameters
4019
+ * @param req.owner - Taker address (the resolved stake owner may differ)
4020
+ * @param req.chainId - Chain ID
4021
+ * @param opts - Optional overrides for API URL and timeout
4022
+ * @returns Taker stake response
4023
+ */
4024
+ getTakerStake(req: GetTakerStakeRequest, opts?: {
4025
+ baseApiUrl?: string;
4026
+ timeoutMs?: number;
4027
+ }): Promise<GetTakerStakeResponse>;
4028
+ /**
4029
+ * **Supporting Method** - Fetches per-platform bonded taking capacity, free
4030
+ * takes, curve terms, warnings, and operational gates for a taker's shared
4031
+ * stake portfolio. Platform capacities are alternative views of one shared
4032
+ * balance and must never be summed.
3678
4033
  *
3679
- * @param req - Taker tier request parameters
3680
- * @param req.owner - Taker address
4034
+ * @param req - Capacity request parameters
4035
+ * @param req.owner - Taker address (the resolved stake owner may differ)
3681
4036
  * @param req.chainId - Chain ID
3682
4037
  * @param opts - Optional overrides for API URL and timeout
3683
- * @returns Taker tier response
4038
+ * @returns Taker capacity response
3684
4039
  */
3685
- getTakerTier(req: GetTakerTierRequest, opts?: {
4040
+ getTakerCapacity(req: GetTakerCapacityRequest, opts?: {
3686
4041
  baseApiUrl?: string;
3687
4042
  timeoutMs?: number;
3688
- }): Promise<GetTakerTierResponse>;
4043
+ }): Promise<GetTakerCapacityResponse>;
3689
4044
  /**
3690
4045
  * Fetch a referral dashboard. Pass `address` for a public wallet-keyed read;
3691
4046
  * omit it to use the authenticated caller mode.
@@ -3848,12 +4203,15 @@ declare class Zkp2pClient {
3848
4203
  escrowAddresses: Address[];
3849
4204
  orchestrator?: Address;
3850
4205
  orchestratorV2?: Address;
4206
+ orchestratorV3?: Address;
3851
4207
  orchestratorAddresses: Address[];
3852
4208
  protocolViewer?: Address;
3853
4209
  protocolViewerEntries: Address[];
3854
4210
  unifiedPaymentVerifier?: Address;
3855
4211
  rateManagerV1?: Address;
3856
4212
  orchestratorRegistry?: Address;
4213
+ stakeVault?: Address;
4214
+ riskManager?: Address;
3857
4215
  usdc?: Address;
3858
4216
  };
3859
4217
  /**
@@ -3938,4 +4296,4 @@ type SendBatchFn = (txs: Array<{
3938
4296
  value?: bigint;
3939
4297
  }>) => Promise<string>;
3940
4298
 
3941
- export { type RedeemReferralCodeSignatureOptions as $, type AttestationServiceIdentityResponse as A, type BuyerTeeVerifyPaymentBody as B, type CuratorSellerCredentialUploadResponse as C, type DepositWithRelations as D, type GetTakerTierRequest as E, type GetTakerTierResponse as F, type GoogleOAuthSellerCredentialPlatform as G, type GetDepositBundleParams as H, type IntentEntity as I, type GetDepositBundleResponse as J, type GetOrderbookParams as K, type GetOrderbookResponse as L, type GetOrderbookTableResponse as M, type CurrencyType as N, type PaymentMethodCatalog as O, type PostDepositDetailsRequest as P, type QuotesBestByPlatformRequest as Q, type ReferrerFeeConfig as R, type SellerCredentialBundle as S, type TakerTierLevel 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 VenmoGoogleOAuthSellerCredentialUploadBody 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 AuthorizationTokenProvider as a6, type TimeoutConfig as a7, type ActionCallback as a8, type ReferralRedemption as a9, type TokenResponse as aA, type NearbyQuote as aB, type NearbySuggestions as aC, type ApiDeposit as aD, type DepositVerifier as aE, type DepositVerifierCurrency as aF, type DepositStatus$1 as aG, type GetDepositByIdRequest as aH, type GetDepositByIdResponse as aI, type Intent as aJ, type ApiIntentStatus as aK, type GetOwnerIntentsRequest as aL, type GetOwnerIntentsResponse as aM, type GetIntentsByDepositRequest as aN, type GetIntentsByDepositResponse as aO, type GetIntentByHashRequest as aP, type GetIntentByHashResponse as aQ, type RegisterPayeeDetailsRequest as aR, type RegisterPayeeDetailsResponse as aS, type SellerPlatform as aT, type VenmoSessionMaterial as aU, type CashAppSessionMaterial as aV, type WiseSessionMaterial as aW, type WiseProfileInfo as aX, type WiseProfileSelectionRequired as aY, type WiseProfileNotFound as aZ, type PayPalGoogleOAuthSellerCredentialUploadBody as a_, type ReferralSignatureBody as aa, type CreateDepositParams as ab, type CreateDepositConversionRate as ac, type Range as ad, type WithdrawDepositParams as ae, type SignalIntentParams as af, type FulfillIntentParams as ag, type ReleaseFundsToPayerParams as ah, type CancelIntentParams as ai, type BestByPlatformResponseObject as aj, type GetBestByPlatformResponse as ak, type GetBestByPlatformResponseObject as al, type GetPlatformQuote as am, type PlatformQuote as an, type QuoteRequest as ao, type GetNearbyQuote as ap, type GetNearbySuggestions as aq, type GetQuoteResponse as ar, type GetQuoteResponseObject as as, type GetQuoteSingleResponse as at, type QuoteResponse as au, type QuoteResponseObject as av, type QuoteSingleResponse as aw, type QuoteIntentResponse as ax, type QuoteFeesResponse as ay, type FiatResponse as az, type AttestationServiceSellerVerifyResponse as b, type MethodCurrencyEntity as b$, type VenmoCredentialUploadInput as b0, type CashAppCredentialUploadInput as b1, type WiseCredentialUploadInput as b2, type SellerCredentialUploadInputByPlatform as b3, type SellerCiphertextBundle as b4, type SellerSignedCiphertextBundle as b5, type SellerVerifyIntentDetails as b6, type SellerVerifyInput as b7, type SellerProbeInput as b8, type SellerCredentialBundleUpload as b9, type IdentityAttestationOutputFor as bA, type IdentityAttestationParams as bB, type MakerIdentityAttestationRequestBody as bC, type MakerIdentityPlatform as bD, type OnchainCurrency as bE, type DepositVerifierData as bF, type PreparedTransaction as bG, type OrderStats as bH, type DepositIntentStatistics as bI, type TakerTier as bJ, type TakerTierVolumeBreakdown as bK, type TakerTierStats as bL, type TakerTierSource as bM, type PlatformLimit as bN, type PlatformRiskLevel as bO, type OrderbookEntry as bP, type OrderbookTableRow as bQ, IndexerClient as bR, defaultIndexerEndpoint as bS, IndexerDepositService as bT, IndexerRateManagerService as bU, compareEventCursorIdsByRecency as bV, fetchFulfillmentAndPayment as bW, type DepositEntity as bX, type IntentFulfilledEntity as bY, type IntentFulfillmentAmountsEntity as bZ, type DepositPaymentMethodEntity as b_, type SellerCredentialStatusValue as ba, type SellerCredentialStatus as bb, type SellerVerifyProxyBody as bc, type SellerTypedDataField as bd, type SellerTypedDataSpec as be, type SellerPaymentTypedDataValue as bf, type SellerAttestationOutput as bg, type SellerCredentialProbeResponse as bh, type FulfillIntentAttestationResponse as bi, type AttestationServiceSellerCredentialProbeResponse as bj, type BuyerTeePaymentParams as bk, type BuyerTeePaymentProofInput as bl, type BuyerTeeSessionMaterial as bm, type CuratorSellerCredentialStatusResponse as bn, type CuratorSellerVerifyResponse as bo, type RegisteredSellerCredentialPlatform as bp, type UploadSellerCredentialParams as bq, type RegisteredUploadSellerCredentialParams as br, type UploadSellerCredentialOptions as bs, type GetSellerCredentialStatusParams as bt, type UploadPayPalGoogleOAuthSellerCredentialParams as bu, type UploadVenmoGoogleOAuthSellerCredentialParams as bv, type UploadGoogleOAuthSellerCredentialParams as bw, type VerifySellerPaymentParams as bx, type IdentityAttestationActionType as by, type IdentityAttestationOutput as bz, type SellerCredentialUploadInput as c, type SendTransactionFn as c$, type IntentStatus as c0, type RateManagerEntity as c1, type RateManagerRateEntity as c2, type RateManagerDelegationEntity as c3, type ManagerAggregateStatsEntity as c4, type ManagerStatsEntity as c5, type ManagerDailySnapshotEntity as c6, type RateManagerListItem as c7, type RateManagerDetail as c8, type ManualRateUpdateEntity as c9, type CurrencyData as cA, getContracts as cB, getRateManagerContracts as cC, getPaymentMethodsCatalog as cD, getGatingServiceAddress as cE, type RuntimeEnv as cF, parseDepositView as cG, parseIntentView as cH, enrichPvDepositView as cI, enrichPvIntentView as cJ, type PV_DepositView as cK, type PV_Deposit as cL, type PV_PaymentMethodData as cM, type PV_Currency as cN, type PV_ReferralFee as cO, type PV_IntentView as cP, type PV_Intent as cQ, ZERO_RATE_MANAGER_ID as cR, isZeroRateManagerId as cS, normalizeRateManagerId as cT, normalizeRegistry as cU, getDelegationRoute as cV, classifyDelegationState as cW, type DelegationRoute as cX, type DelegationState as cY, type DelegationDepositTarget as cZ, type BatchResult as c_, type OracleConfigUpdateEntity as ca, type DepositFundActivityEntity as cb, type DepositDailySnapshotEntity as cc, type DepositFundActivityType as cd, type DepositFilter as ce, type PaginationOptions as cf, type DepositOrderField as cg, type OrderDirection$1 as ch, type RateManagerFilter as ci, type RateManagerPaginationOptions as cj, type RateManagerDelegationPaginationOptions as ck, type RateManagerOrderField as cl, type OrderDirection as cm, type DeploymentEnv as cn, type FulfillmentRecord as co, type PaymentVerifiedRecord as cp, type FulfillmentAndPaymentResponse as cq, PAYMENT_PLATFORMS as cr, type PaymentPlatformType as cs, Currency as ct, currencyInfo as cu, getCurrencyInfoFromHash as cv, getCurrencyInfoFromCountryCode as cw, getCurrencyCodeFromHash as cx, isSupportedCurrencyHash as cy, mapConversionRatesToOnchainMinRate as cz, type SellerCredentialUploadPlatform as d, type SendBatchFn as d0, ZERO_ADDRESS as d1, asErrorMessage as d2, assertDelegationMethodSupport as d3, 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 };
4299
+ export { type ReferralSignatureOptions as $, type AttestationServiceIdentityResponse as A, type BuyerTeeVerifyPaymentBody as B, type CuratorSellerCredentialUploadResponse as C, type DepositWithRelations as D, type GetTakerStakeRequest as E, type GetTakerStakeResponse as F, type GoogleOAuthSellerCredentialPlatform as G, type GetTakerCapacityRequest as H, type IntentEntity as I, type GetTakerCapacityResponse as J, type GetDepositBundleParams as K, type GetDepositBundleResponse as L, type GetOrderbookParams as M, type GetOrderbookResponse as N, type GetOrderbookTableResponse as O, type PostDepositDetailsRequest as P, type QuotesBestByPlatformRequest as Q, type ReferrerFeeConfig as R, type SellerCredentialBundle as S, type CurrencyType as T, type UploadSellerCredentialBundleParams as U, type ValidatePayeeDetailsRequest as V, type PaymentMethodCatalog as W, type TxOverrides as X, type ReferralBearerWriteOptions as Y, Zkp2pClient as Z, type ReferralReadOptions as _, type IdentityAttestationRequestBody as a, type CashAppSessionMaterial as a$, type RedeemReferralCodeSignatureOptions as a0, type SignalIntentReferralFee as a1, type SignalIntentMethodParams as a2, type FulfillIntentMethodParams as a3, type CancelIntentMethodParams as a4, type UpdateReferralCodeSignatureOptions as a5, type Zkp2pNextOptions as a6, type StakeExitRequest as a7, type StakeVaultState as a8, type StakeVaultWriteFunction as a9, type QuoteResponse as aA, type QuoteResponseObject as aB, type QuoteSingleResponse as aC, type QuoteIntentResponse as aD, type QuoteFeesResponse as aE, type FiatResponse as aF, type TokenResponse as aG, type NearbyQuote as aH, type NearbySuggestions as aI, type ApiDeposit as aJ, type DepositVerifier as aK, type DepositVerifierCurrency as aL, type DepositStatus$1 as aM, type GetDepositByIdRequest as aN, type GetDepositByIdResponse as aO, type Intent as aP, type ApiIntentStatus as aQ, type GetOwnerIntentsRequest as aR, type GetOwnerIntentsResponse as aS, type GetIntentsByDepositRequest as aT, type GetIntentsByDepositResponse as aU, type GetIntentByHashRequest as aV, type GetIntentByHashResponse as aW, type RegisterPayeeDetailsRequest as aX, type RegisterPayeeDetailsResponse as aY, type SellerPlatform as aZ, type VenmoSessionMaterial as a_, type StakeVaultWriteParams as aa, type StakeWithdrawalRequest 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 QuoteRequest 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 CurveTakingCapacity as b$, type WiseSessionMaterial as b0, type WiseProfileInfo as b1, type WiseProfileSelectionRequired as b2, type WiseProfileNotFound as b3, type PayPalGoogleOAuthSellerCredentialUploadBody as b4, type VenmoGoogleOAuthSellerCredentialUploadBody as b5, type VenmoCredentialUploadInput as b6, type CashAppCredentialUploadInput as b7, type WiseCredentialUploadInput as b8, type SellerCredentialUploadInputByPlatform as b9, type UploadPayPalGoogleOAuthSellerCredentialParams as bA, type UploadVenmoGoogleOAuthSellerCredentialParams 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 TakerStakeAsset as bQ, type TakerDelegation as bR, type TakerStakeBalances as bS, type TakerStakeExit as bT, type StakeReservationKind as bU, type StakeReservation as bV, type StakeReservations as bW, type TakerStake as bX, type CapacityWarningCode as bY, type CapacityWarningSeverity as bZ, type CapacityWarning as b_, type SellerCiphertextBundle as ba, type SellerSignedCiphertextBundle as bb, type SellerVerifyIntentDetails as bc, type SellerVerifyInput as bd, type SellerProbeInput as be, type SellerCredentialBundleUpload as bf, type SellerCredentialStatusValue as bg, type SellerCredentialStatus as bh, type SellerVerifyProxyBody as bi, type SellerTypedDataField as bj, type SellerTypedDataSpec as bk, type SellerPaymentTypedDataValue as bl, type SellerAttestationOutput as bm, type SellerCredentialProbeResponse as bn, type FulfillIntentAttestationResponse as bo, type AttestationServiceSellerCredentialProbeResponse as bp, type BuyerTeePaymentParams as bq, type BuyerTeePaymentProofInput as br, type BuyerTeeSessionMaterial as bs, type CuratorSellerCredentialStatusResponse as bt, type CuratorSellerVerifyResponse as bu, type RegisteredSellerCredentialPlatform as bv, type UploadSellerCredentialParams as bw, type RegisteredUploadSellerCredentialParams as bx, type UploadSellerCredentialOptions as by, type GetSellerCredentialStatusParams as bz, type SellerCredentialUploadInput as c, getRiskManagerContract as c$, type LimitingCurve as c0, type BondedTakingCapacity as c1, type PlatformFreeTakes as c2, type PlatformGriefingCapacity as c3, type ChargebackCoverageStatus as c4, type PlatformChargebackCapacity as c5, type PlatformCapacity as c6, type TakerOperationalGates as c7, type TakerCapacity as c8, type OrderbookEntry as c9, type DepositFilter as cA, type PaginationOptions as cB, type DepositOrderField as cC, type OrderDirection$1 as cD, type RateManagerFilter as cE, type RateManagerPaginationOptions as cF, type RateManagerDelegationPaginationOptions as cG, type RateManagerOrderField as cH, type OrderDirection as cI, type DeploymentEnv as cJ, type FulfillmentRecord as cK, type PaymentVerifiedRecord as cL, type FulfillmentAndPaymentResponse as cM, PAYMENT_PLATFORMS as cN, type PaymentPlatformType as cO, Currency as cP, currencyInfo as cQ, getCurrencyInfoFromHash as cR, getCurrencyInfoFromCountryCode as cS, getCurrencyCodeFromHash as cT, isSupportedCurrencyHash as cU, mapConversionRatesToOnchainMinRate as cV, type CurrencyData as cW, getContracts as cX, getRateManagerContracts as cY, getStakeVaultContract as cZ, getOrchestratorV3Contract as c_, type OrderbookTableRow as ca, IndexerClient as cb, defaultIndexerEndpoint as cc, IndexerDepositService as cd, IndexerRateManagerService as ce, compareEventCursorIdsByRecency as cf, fetchFulfillmentAndPayment as cg, type DepositEntity as ch, type IntentFulfilledEntity as ci, type IntentFulfillmentAmountsEntity as cj, type DepositPaymentMethodEntity as ck, type MethodCurrencyEntity as cl, type IntentStatus as cm, type RateManagerEntity as cn, type RateManagerRateEntity as co, type RateManagerDelegationEntity as cp, type ManagerAggregateStatsEntity as cq, type ManagerStatsEntity as cr, type ManagerDailySnapshotEntity as cs, type RateManagerListItem as ct, type RateManagerDetail as cu, type ManualRateUpdateEntity as cv, type OracleConfigUpdateEntity as cw, type DepositFundActivityEntity as cx, type DepositDailySnapshotEntity as cy, type DepositFundActivityType as cz, type SellerCredentialUploadPlatform as d, getPaymentMethodsCatalog as d0, getGatingServiceAddress as d1, ORCHESTRATOR_V3_ABI as d2, RISK_MANAGER_ABI as d3, STAKE_VAULT_ABI as d4, RISK_POSITION_SETTLED_EVENT_ABI as d5, DEFERRED_PAYOUT_RECORDED_EVENT_ABI as d6, type RuntimeEnv as d7, type V2ContractAddresses as d8, type V2ContractAbis as d9, assertDelegationMethodSupport as dA, parseDepositView as da, parseIntentView as db, enrichPvDepositView as dc, enrichPvIntentView as dd, type PV_DepositView as de, type PV_Deposit as df, type PV_PaymentMethodData as dg, type PV_Currency as dh, type PV_ReferralFee as di, type PV_IntentView as dj, type PV_Intent as dk, ZERO_RATE_MANAGER_ID as dl, isZeroRateManagerId as dm, normalizeRateManagerId as dn, normalizeRegistry as dp, getDelegationRoute as dq, classifyDelegationState as dr, type DelegationRoute as ds, type DelegationState as dt, type DelegationDepositTarget as du, type BatchResult as dv, type SendTransactionFn as dw, type SendBatchFn as dx, ZERO_ADDRESS as dy, asErrorMessage 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 };