@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.
- package/README.md +85 -14
- package/dist/{chunk-EIOXBVXP.mjs → chunk-LPJE2MN7.mjs} +3 -39
- package/dist/chunk-LPJE2MN7.mjs.map +1 -0
- package/dist/{chunk-FSIRPX4W.mjs → chunk-NKEAAPPR.mjs} +33616 -248
- package/dist/chunk-NKEAAPPR.mjs.map +1 -0
- package/dist/index.cjs +34184 -406
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +64 -61
- package/dist/index.d.ts +64 -61
- package/dist/index.mjs +456 -25
- package/dist/index.mjs.map +1 -1
- package/dist/protocolViewerParsers-WNN3TJD3.mjs +5 -0
- package/dist/{protocolViewerParsers-ER62YZ5L.mjs.map → protocolViewerParsers-WNN3TJD3.mjs.map} +1 -1
- package/dist/react.cjs +97 -94
- package/dist/react.cjs.map +1 -1
- package/dist/react.d.mts +33 -14
- package/dist/react.d.ts +33 -14
- package/dist/react.mjs +99 -68
- package/dist/react.mjs.map +1 -1
- package/dist/{vaultUtils-aJdIIILM.d.mts → vaultUtils-CxUP_m-J.d.mts} +460 -102
- package/dist/{vaultUtils-aJdIIILM.d.ts → vaultUtils-CxUP_m-J.d.ts} +460 -102
- package/package.json +1 -1
- package/dist/chunk-EIOXBVXP.mjs.map +0 -1
- package/dist/chunk-FSIRPX4W.mjs.map +0 -1
- package/dist/protocolViewerParsers-ER62YZ5L.mjs +0 -5
|
@@ -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
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
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
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
*
|
|
1589
|
-
*
|
|
1590
|
-
*
|
|
1591
|
-
*/
|
|
1592
|
-
|
|
1593
|
-
};
|
|
1594
|
-
type
|
|
1595
|
-
|
|
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
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
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
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
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
|
|
1786
|
+
type GetTakerCapacityResponse = {
|
|
1660
1787
|
success: boolean;
|
|
1661
1788
|
message: string;
|
|
1662
|
-
responseObject:
|
|
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
|
|
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 -
|
|
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
|
|
4038
|
+
* @returns Taker capacity response
|
|
3684
4039
|
*/
|
|
3685
|
-
|
|
4040
|
+
getTakerCapacity(req: GetTakerCapacityRequest, opts?: {
|
|
3686
4041
|
baseApiUrl?: string;
|
|
3687
4042
|
timeoutMs?: number;
|
|
3688
|
-
}): Promise<
|
|
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
|
|
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 };
|