@zyfai/sdk 1.0.0 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +51 -37
- package/dist/index.d.mts +79 -26
- package/dist/index.d.ts +79 -26
- package/dist/index.js +261 -69
- package/dist/index.mjs +232 -39
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -10,10 +10,12 @@ type Address = `0x${string}`;
|
|
|
10
10
|
type Hex = `0x${string}`;
|
|
11
11
|
/**
|
|
12
12
|
* Public strategy names.
|
|
13
|
-
* `
|
|
13
|
+
* `yieldmaxxing` unlocks protocols with asynchronous (delayed) withdrawals —
|
|
14
14
|
* see `PortfolioDetailed.pendingAsyncWithdrawals`.
|
|
15
15
|
*/
|
|
16
|
-
type Strategy = "conservative" | "
|
|
16
|
+
type Strategy = "conservative" | "aggressive" | "yieldmaxxing";
|
|
17
|
+
/** Strategy labels returned on opportunity rows (includes renamed public tiers). */
|
|
18
|
+
type OpportunityStrategyType = "conservative" | "balanced" | "advanced" | Strategy;
|
|
17
19
|
/** Public asset symbols supported by the SDK */
|
|
18
20
|
type SupportedAsset = "USDC" | "WETH" | "EURC" | "USDT" | "PYUSD" | "NVDAc";
|
|
19
21
|
/** Optional per-chain RPC URLs for on-chain reads and writes. */
|
|
@@ -557,14 +559,14 @@ interface Opportunity {
|
|
|
557
559
|
tvl?: number;
|
|
558
560
|
asset?: string;
|
|
559
561
|
risk?: string;
|
|
560
|
-
/**
|
|
561
|
-
strategyType:
|
|
562
|
+
/** Strategy tier for this pool (see {@link OpportunityStrategyType}). */
|
|
563
|
+
strategyType: OpportunityStrategyType;
|
|
562
564
|
status?: string;
|
|
563
565
|
}
|
|
564
566
|
interface OpportunitiesResponse {
|
|
565
567
|
success: boolean;
|
|
566
568
|
chainId?: number;
|
|
567
|
-
strategyType:
|
|
569
|
+
strategyType: OpportunityStrategyType;
|
|
568
570
|
data: Opportunity[];
|
|
569
571
|
}
|
|
570
572
|
interface ApyPosition {
|
|
@@ -618,7 +620,7 @@ interface DepositResponse {
|
|
|
618
620
|
amount: string;
|
|
619
621
|
/**
|
|
620
622
|
* How the collateral reached the Safe.
|
|
621
|
-
* `direct`
|
|
623
|
+
* `direct` sends the collateral by permit or wallet transfer. `swap` converts another token
|
|
622
624
|
* through Relay. `wrap` turns same-chain native ETH into WETH, then transfers it.
|
|
623
625
|
*/
|
|
624
626
|
route?: "direct" | "swap" | "wrap";
|
|
@@ -630,6 +632,18 @@ interface DepositResponse {
|
|
|
630
632
|
*/
|
|
631
633
|
registration: DepositLifecycleResponse;
|
|
632
634
|
}
|
|
635
|
+
/** Current sponsored first-deposit intent for the authenticated EOA. */
|
|
636
|
+
interface FirstPermitDepositStatus {
|
|
637
|
+
id: string;
|
|
638
|
+
status: "prepared" | "queued" | "submitted" | "registered" | "failed";
|
|
639
|
+
chainId: SupportedChainId;
|
|
640
|
+
token: Address;
|
|
641
|
+
/** Exact collateral amount in least units. */
|
|
642
|
+
amount: string;
|
|
643
|
+
/** Available after the backend registers the confirmed pull. */
|
|
644
|
+
depositId: string | null;
|
|
645
|
+
txHash: Hex | null;
|
|
646
|
+
}
|
|
633
647
|
/**
|
|
634
648
|
* Spend a token that is not already the destination collateral.
|
|
635
649
|
* The execution API quotes Relay; the connected wallet signs the steps.
|
|
@@ -703,7 +717,7 @@ interface SwapDepositOrder {
|
|
|
703
717
|
lastError?: string | null;
|
|
704
718
|
}
|
|
705
719
|
/**
|
|
706
|
-
* `sendDeposit` input. Omit `spendToken` to
|
|
720
|
+
* `sendDeposit` input. Omit `spendToken` to deposit `asset` directly on `chainId`.
|
|
707
721
|
* Set `spendToken` when the wallet holds a different token or chain.
|
|
708
722
|
*/
|
|
709
723
|
interface SendDepositParams {
|
|
@@ -1548,7 +1562,7 @@ declare class ZyfaiSDK {
|
|
|
1548
1562
|
*
|
|
1549
1563
|
* @param userAddress - User's EOA address (the connected EOA, not the smart wallet address)
|
|
1550
1564
|
* @param chainId - Target chain ID
|
|
1551
|
-
* @param strategy - Optional strategy selection: "conservative" (default), "
|
|
1565
|
+
* @param strategy - Optional strategy selection: "conservative" (default), "aggressive" or "yieldmaxxing"
|
|
1552
1566
|
* @param createSessionKey - If true, automatically creates a session key after deployment (default: false)
|
|
1553
1567
|
* @returns Deployment response with Safe address and transaction hash
|
|
1554
1568
|
*
|
|
@@ -1649,11 +1663,11 @@ declare class ZyfaiSDK {
|
|
|
1649
1663
|
*
|
|
1650
1664
|
* @example
|
|
1651
1665
|
* ```typescript
|
|
1652
|
-
* // NVDAc only lives in async protocols, so it needs "
|
|
1666
|
+
* // NVDAc only lives in async protocols, so it needs "yieldmaxxing".
|
|
1653
1667
|
* // Chains default to Base, the only chain it exists on.
|
|
1654
1668
|
* const profile = await sdk.setAssetStrategy({
|
|
1655
1669
|
* asset: "NVDAc",
|
|
1656
|
-
* strategy: "
|
|
1670
|
+
* strategy: "yieldmaxxing",
|
|
1657
1671
|
* });
|
|
1658
1672
|
* console.log(profile.protocols); // Ipor + Superform
|
|
1659
1673
|
* ```
|
|
@@ -1667,7 +1681,7 @@ declare class ZyfaiSDK {
|
|
|
1667
1681
|
* Apply a strategy and auto-select matching protocols for one or all managed
|
|
1668
1682
|
* assets ({@link getManagedAssets}). Prefer this over
|
|
1669
1683
|
* {@link updateUserProfile} when changing strategy so protocols stay aligned
|
|
1670
|
-
* with the tier (including `
|
|
1684
|
+
* with the tier (including `yieldmaxxing` async venues).
|
|
1671
1685
|
*
|
|
1672
1686
|
* @group Portfolio and execution
|
|
1673
1687
|
*/
|
|
@@ -1725,14 +1739,16 @@ declare class ZyfaiSDK {
|
|
|
1725
1739
|
status: string;
|
|
1726
1740
|
}>;
|
|
1727
1741
|
/**
|
|
1728
|
-
*
|
|
1742
|
+
* Deposit a collateral token the wallet already holds into the Safe.
|
|
1729
1743
|
*
|
|
1730
1744
|
* @remarks
|
|
1731
1745
|
* Use this when the connected wallet holds the strategy collateral on the
|
|
1732
1746
|
* deposit chain. {@link ZyfaiSDK.sendDeposit} calls this automatically in
|
|
1733
1747
|
* that case. A different token uses {@link ZyfaiSDK.sendSwapDeposit}.
|
|
1734
1748
|
*
|
|
1735
|
-
*
|
|
1749
|
+
* Eligible first deposits sign an ERC-2612 permit and the backend sponsors and
|
|
1750
|
+
* registers the pull. Other direct deposits confirm an ERC-20 transfer and
|
|
1751
|
+
* call {@link ZyfaiSDK.logDeposit}.
|
|
1736
1752
|
* Requires {@link ZyfaiSDK.connectAccount}. Pass the **EOA** as `userAddress`.
|
|
1737
1753
|
*
|
|
1738
1754
|
* @group Deposits and withdrawals
|
|
@@ -1756,12 +1772,37 @@ declare class ZyfaiSDK {
|
|
|
1756
1772
|
* ```
|
|
1757
1773
|
*/
|
|
1758
1774
|
sendDirectDeposit(userAddress: string, chainId: SupportedChainId, amount: string, asset: string, strategy?: Strategy): Promise<DepositResponse>;
|
|
1775
|
+
private sendCollateralDeposit;
|
|
1776
|
+
/**
|
|
1777
|
+
* Read the current first-deposit permit intent after a pending or interrupted deposit.
|
|
1778
|
+
*
|
|
1779
|
+
* @remarks
|
|
1780
|
+
* Uses the execution API and the SIWE session from {@link ZyfaiSDK.connectAccount}.
|
|
1781
|
+
* A registered intent provides the deposit id for {@link ZyfaiSDK.getDepositStatus}.
|
|
1782
|
+
*
|
|
1783
|
+
* @group Deposits and withdrawals
|
|
1784
|
+
*
|
|
1785
|
+
* @param userAddress - Authenticated EOA
|
|
1786
|
+
* @returns The latest permit intent, or null when no intent exists
|
|
1787
|
+
* @throws If the address differs from the authenticated EOA or the request fails
|
|
1788
|
+
*
|
|
1789
|
+
* @example
|
|
1790
|
+
* ```typescript
|
|
1791
|
+
* const intent = await sdk.getFirstPermitDepositStatus(eoa);
|
|
1792
|
+
* if (intent?.depositId) await sdk.waitForDepositCredit(intent.depositId, intent.chainId);
|
|
1793
|
+
* ```
|
|
1794
|
+
*/
|
|
1795
|
+
getFirstPermitDepositStatus(userAddress: string): Promise<FirstPermitDepositStatus | null>;
|
|
1796
|
+
private getFirstPermitDepositAvailability;
|
|
1797
|
+
private sendFirstPermitDeposit;
|
|
1759
1798
|
/**
|
|
1760
1799
|
* Fund the Safe with a collateral the wallet already holds, or swap another token into it.
|
|
1761
1800
|
*
|
|
1762
1801
|
* @remarks
|
|
1763
|
-
* The positional call
|
|
1764
|
-
*
|
|
1802
|
+
* The positional call deposits the collateral on `chainId`. Eligible first
|
|
1803
|
+
* deposits use a sponsored ERC-2612 permit. Other direct deposits use a wallet
|
|
1804
|
+
* transfer. If a permit submission is interrupted, check
|
|
1805
|
+
* {@link ZyfaiSDK.getFirstPermitDepositStatus} before starting another deposit.
|
|
1765
1806
|
*
|
|
1766
1807
|
* The object form spends `spendToken`. When that token is the destination
|
|
1767
1808
|
* collateral on `chainId`, this is a direct deposit. Any other token is
|
|
@@ -2176,7 +2217,7 @@ declare class ZyfaiSDK {
|
|
|
2176
2217
|
* Note: The withdrawal is processed asynchronously, so txHash may not be immediately available
|
|
2177
2218
|
* Funds are always withdrawn to the Safe owner's address (userAddress)
|
|
2178
2219
|
*
|
|
2179
|
-
* **Delayed withdrawals.** Positions held under the `"
|
|
2220
|
+
* **Delayed withdrawals.** Positions held under the `"yieldmaxxing"`
|
|
2180
2221
|
* strategy sit in protocols that cannot be exited on demand. For those the
|
|
2181
2222
|
* backend transfers the immediately available portion, then queues a
|
|
2182
2223
|
* redemption for the rest and forwards the funds to the EOA once the
|
|
@@ -2290,7 +2331,7 @@ declare class ZyfaiSDK {
|
|
|
2290
2331
|
* a snapshot, so net values can differ slightly from a fully live calc.
|
|
2291
2332
|
*
|
|
2292
2333
|
* **Total balance.** `portfolioByAssetType` sums deployed positions and idle
|
|
2293
|
-
* Safe balances, and nothing else. Under the `"
|
|
2334
|
+
* Safe balances, and nothing else. Under the `"yieldmaxxing"` strategy a
|
|
2294
2335
|
* redemption in flight has already left its position and has not landed in
|
|
2295
2336
|
* the Safe yet, so its funds appear in no balance field at all. That makes
|
|
2296
2337
|
* two distinct numbers:
|
|
@@ -2315,7 +2356,7 @@ declare class ZyfaiSDK {
|
|
|
2315
2356
|
* @group Portfolio and execution
|
|
2316
2357
|
*
|
|
2317
2358
|
* @remarks Data API portfolio endpoint. See {@link PortfolioDetailed.pendingAsyncWithdrawals}
|
|
2318
|
-
* when using {@link Strategy |
|
|
2359
|
+
* when using {@link Strategy | yieldmaxxing}.
|
|
2319
2360
|
*
|
|
2320
2361
|
* @param userAddress - User's EOA address
|
|
2321
2362
|
* @returns Portfolio with optional fee-adjusted balance fields
|
|
@@ -2397,7 +2438,7 @@ declare class ZyfaiSDK {
|
|
|
2397
2438
|
*
|
|
2398
2439
|
* @param crossChain - Whether to get cross-chain APY (true = omni account, false = simple account)
|
|
2399
2440
|
* @param days - Time period: 7, 14, or 30
|
|
2400
|
-
* @param strategy - Strategy type: "conservative" (default), "
|
|
2441
|
+
* @param strategy - Strategy type: "conservative" (default), "aggressive" or "yieldmaxxing"
|
|
2401
2442
|
* @param chainId - Optional chain ID filter
|
|
2402
2443
|
* @param tokenSymbol - Optional token symbol filter (e.g. "USDC", "WETH", "WBTC")
|
|
2403
2444
|
* @returns APY per strategy for a specific chain
|
|
@@ -2589,21 +2630,27 @@ declare class ZyfaiSDK {
|
|
|
2589
2630
|
*/
|
|
2590
2631
|
getConservativeOpportunities(chainId?: number, asset?: string, status?: "live" | "not_live"): Promise<OpportunitiesResponse>;
|
|
2591
2632
|
/**
|
|
2592
|
-
* Get
|
|
2633
|
+
* Get balanced (high-risk, high-reward) yield opportunities.
|
|
2593
2634
|
*
|
|
2594
2635
|
* @param chainId - Optional chain ID filter
|
|
2595
2636
|
* @param asset - Optional asset filter (e.g. "USDC", "WETH", "WBTC")
|
|
2596
|
-
* @returns List of
|
|
2637
|
+
* @returns List of balanced opportunities
|
|
2597
2638
|
*
|
|
2598
2639
|
* @example
|
|
2599
2640
|
* ```typescript
|
|
2600
|
-
* const opportunities = await sdk.
|
|
2641
|
+
* const opportunities = await sdk.getBalancedOpportunities(8453, "WETH");
|
|
2601
2642
|
* opportunities.data.forEach(o => console.log(o.protocolName, o.apy));
|
|
2602
2643
|
* ```
|
|
2603
2644
|
*/
|
|
2645
|
+
getBalancedOpportunities(chainId?: number, asset?: string, status?: "live" | "not_live"): Promise<OpportunitiesResponse>;
|
|
2646
|
+
/**
|
|
2647
|
+
* @deprecated Use {@link getBalancedOpportunities} instead. Retains the
|
|
2648
|
+
* pre-rename `getAggressiveOpportunities` entry point; same HTTP request as
|
|
2649
|
+
* balanced, with legacy `strategyType: "aggressive"` on the response and rows.
|
|
2650
|
+
*/
|
|
2604
2651
|
getAggressiveOpportunities(chainId?: number, asset?: string, status?: "live" | "not_live"): Promise<OpportunitiesResponse>;
|
|
2605
2652
|
/**
|
|
2606
|
-
* Get
|
|
2653
|
+
* Get advanced yield opportunities — pools reachable only with the
|
|
2607
2654
|
* `"advanced"` strategy, including protocols whose withdrawals are
|
|
2608
2655
|
* asynchronous (Ipor, Superform). Exiting these pools takes about a day
|
|
2609
2656
|
* on Ipor and three on Superform; track the redemption through
|
|
@@ -2611,14 +2658,20 @@ declare class ZyfaiSDK {
|
|
|
2611
2658
|
*
|
|
2612
2659
|
* @param chainId - Optional chain ID filter
|
|
2613
2660
|
* @param asset - Optional asset filter (e.g. "USDC", "WETH")
|
|
2614
|
-
* @returns List of
|
|
2661
|
+
* @returns List of advanced opportunities
|
|
2615
2662
|
*
|
|
2616
2663
|
* @example
|
|
2617
2664
|
* ```typescript
|
|
2618
|
-
* const opportunities = await sdk.
|
|
2665
|
+
* const opportunities = await sdk.getAdvancedOpportunities(8453);
|
|
2619
2666
|
* opportunities.data.forEach(o => console.log(o.protocolName, o.apy));
|
|
2620
2667
|
* ```
|
|
2621
2668
|
*/
|
|
2669
|
+
getAdvancedOpportunities(chainId?: number, asset?: string, status?: "live" | "not_live"): Promise<OpportunitiesResponse>;
|
|
2670
|
+
/**
|
|
2671
|
+
* @deprecated Use {@link getAdvancedOpportunities} instead. Retains the
|
|
2672
|
+
* pre-rename `getAsyncOpportunities` entry point; same HTTP request as
|
|
2673
|
+
* advanced, with legacy `strategyType: "yieldmaxxing"` on the response and rows.
|
|
2674
|
+
*/
|
|
2622
2675
|
getAsyncOpportunities(chainId?: number, asset?: string, status?: "live" | "not_live"): Promise<OpportunitiesResponse>;
|
|
2623
2676
|
/**
|
|
2624
2677
|
* Get active conservative opportunities (status = "live") with risk and utilization data
|
|
@@ -3279,4 +3332,4 @@ declare const ERC7579_LAUNCHPAD_ADDRESS: Address$1;
|
|
|
3279
3332
|
*/
|
|
3280
3333
|
declare const POOL_MODULE_ADDRESSES: readonly Address$1[];
|
|
3281
3334
|
|
|
3282
|
-
export { ALLOWED_HISTORY_DAYS, API_ENDPOINT, type APYPerStrategy, type APYPerStrategyResponse, type ActionData, type ActiveWallet, type ActiveWalletsResponse, type AddWalletToSdkResponse, type Address, type AllocationDetail, type AllowedHistoryDays, type ApyPosition, type AsyncWithdrawal, type AsyncWithdrawalStatus, type BackendEnvironment, type BankrProvider, type BankrProviderConfig, type BaseMerklCampaignId, type BestOpportunityDetails, type BestOpportunityResponse, type ChainConfig, type ChainPortfolio, type ChainTokenEarnings, type CustomizationConfig, type CustomizeBatchRequest, type CustomizeBatchResponse, DATA_API_BASE_URLS, DATA_API_ENDPOINT, DEFAULT_RELAY_SLIPPAGE_BPS, DEFAULT_TOKEN_ADDRESSES, type DailyApyEntry, type DailyApyHistoryPeriod, type DailyApyHistoryResponse, type DailyEarning, type DailyEarningsResponse, type DebankPortfolioResponse, type DepegEvent, type DeploySafeResponse, type DepositLifecycleResponse, type DepositLifecycleStatus, type DepositPositionOutcome, type DepositResponse, type DepositRoute, type DepositRouteInput, ERC7579_LAUNCHPAD_ADDRESS, type ERC7739Context, type ERC7739Data, EXECUTION_API_BASE_URLS, type ExcludedPool, type FirstTopupResponse, type GetPoolsResponse, type GetSelectedPoolsResponse, type Hex, type HistoryEntry, type HistoryFeeData, type HistoryPosition, type HistoryRebalanceLog, type HistoryResponse, INTENT_EXECUTOR, INTENT_SMART_SESSIONS, LOCAL_DATA_API_BASE_URL, LOCAL_EXECUTION_API_BASE_URL, LOCAL_WS_URL, type LiquidityDropEvent, type LogDepositResponse, MAX_RELAY_SLIPPAGE_BPS, type MerklCampaign, type NewCollateralDetectedEvent, OWNABLE_VALIDATOR, type OnchainEarnings, type OnchainEarningsResponse, type OpportunitiesResponse, type Opportunity, type OpportunityPosition, POOL_MODULE_ADDRESSES, PROXY_EXECUTOR, type PolicyData, type Pool, type Portfolio, type PortfolioAssetBalance, type PortfolioByAssetType, type PortfolioByChain, type PortfolioDetailed, type PortfolioDetailedResponse, type PortfolioResponse, type PortfolioToken, type PositionSlot, type Protocol, type ProtocolsResponse, RELAY_SLIPPAGE_PRESETS_BPS, type RebalanceFrequencyResponse, type RegisterAgentResponse, type RzfiClaimResponse, type RzfiClaimTransaction, SAFE_7579_ADDRESS, type SDKConfig, SMART_SESSIONS_FALLBACK, SMART_SESSIONS_VALIDATOR, STAGING_DATA_API_BASE_URL, STAGING_EXECUTION_API_BASE_URL, STAGING_WS_URL, type SdkKeyTVLResponse, type SendDepositParams, type Session, type SessionKeyResponse, type SimulateBestPositionsParams, type SimulateBestPositionsResponse, type SimulateCalldataItem, type SimulatedPosition, type SmartWalletByEOAResponse, type SmartWalletResponse, type Strategy, type SupportedAsset, type SupportedChainId, type SwapDepositOrder, type SwapDepositParams, type SwapDepositQuote, type TVLResponse, type TokenApy, type TokenEarnings, type UpdateUserProfileRequest, type UpdateUserProfileResponse, type UserPosition, type UserSessionAuth, VAULT_ADDRESS, type VaultAsset, type VaultClaimResponse, type VaultDepositResponse, type VaultSharesResponse, type VaultWithdrawResponse, type VaultWithdrawStatusResponse, type VolumeResponse, WS_ENDPOINT, WS_URLS, type WaitForDepositCreditOptions, type WaitForDepositPositionOptions, type WaitForWithdrawCompleteOptions, type WaitForWithdrawSettlementOptions, type WalletTVL, type WithdrawAsyncLeg, type WithdrawLifecycleResponse, type WithdrawLifecycleStatus, type WithdrawResponse, type ZyfaiEventFilters, type ZyfaiEventHandlers, ZyfaiSDK, createBankrProvider, getChainConfig, getDataApiBaseUrl, getDefaultTokenAddress, getExecutionApiBaseUrl, getManagedAssets, getSupportedChainIds, getWsUrl, isSupportedChain, resolveDepositRoute, resolveRelaySlippageBps, type staleBalances };
|
|
3335
|
+
export { ALLOWED_HISTORY_DAYS, API_ENDPOINT, type APYPerStrategy, type APYPerStrategyResponse, type ActionData, type ActiveWallet, type ActiveWalletsResponse, type AddWalletToSdkResponse, type Address, type AllocationDetail, type AllowedHistoryDays, type ApyPosition, type AsyncWithdrawal, type AsyncWithdrawalStatus, type BackendEnvironment, type BankrProvider, type BankrProviderConfig, type BaseMerklCampaignId, type BestOpportunityDetails, type BestOpportunityResponse, type ChainConfig, type ChainPortfolio, type ChainTokenEarnings, type CustomizationConfig, type CustomizeBatchRequest, type CustomizeBatchResponse, DATA_API_BASE_URLS, DATA_API_ENDPOINT, DEFAULT_RELAY_SLIPPAGE_BPS, DEFAULT_TOKEN_ADDRESSES, type DailyApyEntry, type DailyApyHistoryPeriod, type DailyApyHistoryResponse, type DailyEarning, type DailyEarningsResponse, type DebankPortfolioResponse, type DepegEvent, type DeploySafeResponse, type DepositLifecycleResponse, type DepositLifecycleStatus, type DepositPositionOutcome, type DepositResponse, type DepositRoute, type DepositRouteInput, ERC7579_LAUNCHPAD_ADDRESS, type ERC7739Context, type ERC7739Data, EXECUTION_API_BASE_URLS, type ExcludedPool, type FirstPermitDepositStatus, type FirstTopupResponse, type GetPoolsResponse, type GetSelectedPoolsResponse, type Hex, type HistoryEntry, type HistoryFeeData, type HistoryPosition, type HistoryRebalanceLog, type HistoryResponse, INTENT_EXECUTOR, INTENT_SMART_SESSIONS, LOCAL_DATA_API_BASE_URL, LOCAL_EXECUTION_API_BASE_URL, LOCAL_WS_URL, type LiquidityDropEvent, type LogDepositResponse, MAX_RELAY_SLIPPAGE_BPS, type MerklCampaign, type NewCollateralDetectedEvent, OWNABLE_VALIDATOR, type OnchainEarnings, type OnchainEarningsResponse, type OpportunitiesResponse, type Opportunity, type OpportunityPosition, POOL_MODULE_ADDRESSES, PROXY_EXECUTOR, type PolicyData, type Pool, type Portfolio, type PortfolioAssetBalance, type PortfolioByAssetType, type PortfolioByChain, type PortfolioDetailed, type PortfolioDetailedResponse, type PortfolioResponse, type PortfolioToken, type PositionSlot, type Protocol, type ProtocolsResponse, RELAY_SLIPPAGE_PRESETS_BPS, type RebalanceFrequencyResponse, type RegisterAgentResponse, type RzfiClaimResponse, type RzfiClaimTransaction, SAFE_7579_ADDRESS, type SDKConfig, SMART_SESSIONS_FALLBACK, SMART_SESSIONS_VALIDATOR, STAGING_DATA_API_BASE_URL, STAGING_EXECUTION_API_BASE_URL, STAGING_WS_URL, type SdkKeyTVLResponse, type SendDepositParams, type Session, type SessionKeyResponse, type SimulateBestPositionsParams, type SimulateBestPositionsResponse, type SimulateCalldataItem, type SimulatedPosition, type SmartWalletByEOAResponse, type SmartWalletResponse, type Strategy, type SupportedAsset, type SupportedChainId, type SwapDepositOrder, type SwapDepositParams, type SwapDepositQuote, type TVLResponse, type TokenApy, type TokenEarnings, type UpdateUserProfileRequest, type UpdateUserProfileResponse, type UserPosition, type UserSessionAuth, VAULT_ADDRESS, type VaultAsset, type VaultClaimResponse, type VaultDepositResponse, type VaultSharesResponse, type VaultWithdrawResponse, type VaultWithdrawStatusResponse, type VolumeResponse, WS_ENDPOINT, WS_URLS, type WaitForDepositCreditOptions, type WaitForDepositPositionOptions, type WaitForWithdrawCompleteOptions, type WaitForWithdrawSettlementOptions, type WalletTVL, type WithdrawAsyncLeg, type WithdrawLifecycleResponse, type WithdrawLifecycleStatus, type WithdrawResponse, type ZyfaiEventFilters, type ZyfaiEventHandlers, ZyfaiSDK, createBankrProvider, getChainConfig, getDataApiBaseUrl, getDefaultTokenAddress, getExecutionApiBaseUrl, getManagedAssets, getSupportedChainIds, getWsUrl, isSupportedChain, resolveDepositRoute, resolveRelaySlippageBps, type staleBalances };
|