@zyfai/sdk 0.2.57 → 0.3.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/dist/index.d.mts CHANGED
@@ -12,7 +12,7 @@ type Hex = `0x${string}`;
12
12
  */
13
13
  type Strategy = "conservative" | "aggressive" | "yieldmaxxing";
14
14
  /** Public asset symbols supported by the SDK */
15
- type SupportedAsset = "USDC" | "WETH" | "EURC";
15
+ type SupportedAsset = "USDC" | "WETH" | "EURC" | "NVDAc";
16
16
  interface RpcUrlsConfig {
17
17
  1?: string;
18
18
  8453?: string;
@@ -26,6 +26,8 @@ interface SDKConfig {
26
26
  executionApiUrl?: string;
27
27
  /** @internal Local integration tests only — not part of the public SDK contract. */
28
28
  dataApiUrl?: string;
29
+ /** @internal Override client-side minimum portfolio checks (local integration). */
30
+ bypassMinPortfolio?: boolean;
29
31
  }
30
32
  interface DeploySafeResponse {
31
33
  success: boolean;
@@ -524,10 +526,24 @@ interface DepositResponse {
524
526
  txHash: string;
525
527
  smartWallet: string;
526
528
  amount: string;
529
+ /** Current lifecycle state; high-level methods return pending after their normal completion window. */
530
+ registration: DepositLifecycleResponse;
531
+ }
532
+ type DepositLifecycleStatus = "handover_pending" | "credited" | "recovered_to_eoa";
533
+ interface DepositLifecycleResponse {
534
+ id: string;
535
+ status: DepositLifecycleStatus;
536
+ balanceCredited: boolean;
537
+ statusUrl: string;
527
538
  }
528
539
  interface LogDepositResponse {
529
540
  success: boolean;
530
541
  message: string;
542
+ deposit: DepositLifecycleResponse;
543
+ }
544
+ interface WaitForDepositCreditOptions {
545
+ intervalMs?: number;
546
+ timeoutMs?: number;
531
547
  }
532
548
  interface WithdrawResponse {
533
549
  success: boolean;
@@ -849,11 +865,12 @@ declare class ZyfaiSDK {
849
865
  private rpcUrls?;
850
866
  private referralSource?;
851
867
  /**
852
- * Warn that a legacy method is deprecated in favor of depositFunds.
868
+ * Warn that a legacy method is deprecated in favor of sendDeposit.
853
869
  * Predeployed wallets no longer require deploySafe / createSessionKey.
854
870
  */
855
871
  private warnDeprecatedOnboardingMethod;
856
872
  private readonly executionApiUrl;
873
+ private readonly bypassMinPortfolio;
857
874
  constructor(config: SDKConfig | string);
858
875
  /**
859
876
  * Authenticate user with SIWE (Sign-In with Ethereum) & JWT token
@@ -1058,7 +1075,7 @@ declare class ZyfaiSDK {
1058
1075
  /**
1059
1076
  * Deploy Safe Smart Wallet for a user
1060
1077
  *
1061
- * @deprecated Prefer `depositFunds()`. Predeployed Safes and session keys are
1078
+ * @deprecated Prefer `sendDeposit()`. Predeployed Safes and session keys are
1062
1079
  * managed automatically on first deposit. This method remains available for
1063
1080
  * legacy flows.
1064
1081
  *
@@ -1070,8 +1087,9 @@ declare class ZyfaiSDK {
1070
1087
  *
1071
1088
  * @example
1072
1089
  * ```typescript
1073
- * // Preferred: depositFunds handles predeployed wallet onboarding
1074
- * await sdk.depositFunds(userAddress, 8453, amount, "USDC");
1090
+ * // Preferred: sendDeposit handles predeployed wallet onboarding
1091
+ * const sent = await sdk.sendDeposit(userAddress, 8453, amount, "USDC");
1092
+ * await sdk.waitForDepositCredit(sent.registration.id, 8453);
1075
1093
  *
1076
1094
  * // Legacy: deploy with default conservative strategy
1077
1095
  * await sdk.deploySafe(userAddress, 8453);
@@ -1082,7 +1100,7 @@ declare class ZyfaiSDK {
1082
1100
  * Create session key with auto-fetched configuration from Zyfai API
1083
1101
  * This is the simplified method that automatically fetches session configuration
1084
1102
  *
1085
- * @deprecated Prefer `depositFunds()`. Predeployed wallets already have the
1103
+ * @deprecated Prefer `sendDeposit()`. Predeployed wallets already have the
1086
1104
  * agent session enabled; session activation is handled after first deposit.
1087
1105
  * This method remains available for legacy flows.
1088
1106
  *
@@ -1092,8 +1110,9 @@ declare class ZyfaiSDK {
1092
1110
  *
1093
1111
  * @example
1094
1112
  * ```typescript
1095
- * // Preferred: depositFunds handles session onboarding for predeployed wallets
1096
- * await sdk.depositFunds(userAddress, 8453, amount, "USDC");
1113
+ * // Preferred: sendDeposit handles session onboarding for predeployed wallets
1114
+ * const sent = await sdk.sendDeposit(userAddress, 8453, amount, "USDC");
1115
+ * await sdk.waitForDepositCredit(sent.registration.id, 8453);
1097
1116
  *
1098
1117
  * // Legacy:
1099
1118
  * const result = await sdk.createSessionKey(userAddress, 8453);
@@ -1116,7 +1135,7 @@ declare class ZyfaiSDK {
1116
1135
  * asset/chain/strategy combo.
1117
1136
  * 4. Persist via `updateUserProfile` (writes `assetTypeSettings`).
1118
1137
  *
1119
- * Called from `deploySafe` after every path, and from `depositFunds` on
1138
+ * Called from `deploySafe` after every path, and from `sendDeposit` on
1120
1139
  * the account's first deposit (when USDC chains are still empty).
1121
1140
  *
1122
1141
  * @internal
@@ -1127,6 +1146,45 @@ declare class ZyfaiSDK {
1127
1146
  * @internal
1128
1147
  */
1129
1148
  private updateUserProtocolsForAsset;
1149
+ /**
1150
+ * Switch one asset to a strategy and select the protocols that go with it.
1151
+ *
1152
+ * `updateUserProfile` stores a strategy but does not compute a protocol
1153
+ * list, so on its own it leaves the asset with nothing to deploy into. This
1154
+ * method does both in one call: it resolves the protocols that support the
1155
+ * asset on the requested chains under the requested strategy, drops those
1156
+ * with no pool available, and persists strategy, chains and protocols
1157
+ * together.
1158
+ *
1159
+ * Mostly needed for assets that are not set up by the account's first
1160
+ * deposit, or to change an existing account's strategy — `sendDeposit`
1161
+ * ignores its `strategy` argument after the first deposit.
1162
+ *
1163
+ * @param params.asset - Asset to configure
1164
+ * @param params.strategy - Strategy to apply; defaults to the one already
1165
+ * stored for this asset (`"conservative"` on a fresh account), which lets
1166
+ * you recompute a protocol list without changing the strategy
1167
+ * @param params.chains - Chains to enable. Defaults to every chain the asset
1168
+ * exists on. **Additive**: chains already enabled are kept, so this cannot
1169
+ * be used to disable one.
1170
+ * @returns The updated profile for that asset
1171
+ *
1172
+ * @example
1173
+ * ```typescript
1174
+ * // NVDAc only lives in async protocols, so it needs "yieldmaxxing".
1175
+ * // Chains default to Base, the only chain it exists on.
1176
+ * const profile = await sdk.setAssetStrategy({
1177
+ * asset: "NVDAc",
1178
+ * strategy: "yieldmaxxing",
1179
+ * });
1180
+ * console.log(profile.protocols); // Ipor + Superform
1181
+ * ```
1182
+ */
1183
+ setAssetStrategy(params: {
1184
+ asset: SupportedAsset;
1185
+ strategy?: Strategy;
1186
+ chains?: SupportedChainId[];
1187
+ }): Promise<UpdateUserProfileResponse>;
1130
1188
  /**
1131
1189
  * Drop protocols that have no pools on any of the selected chains for the
1132
1190
  * requested asset. The /customization/pools endpoint filters server-side on
@@ -1144,55 +1202,6 @@ declare class ZyfaiSDK {
1144
1202
  * Convert session nonces from bigint[] to number[]
1145
1203
  */
1146
1204
  private normalizeSessionNonces;
1147
- /**
1148
- * Deposit funds from EOA to Safe smart wallet
1149
- * Transfers tokens from the connected wallet to the user's Safe and logs the deposit
1150
- *
1151
- * Token address is selected from `asset` for the given chain:
1152
- * - Ethereum Mainnet (1), Base (8453), Arbitrum (42161): USDC or WETH
1153
- * - Ethereum Mainnet (1), Base (8453): EURC
1154
- *
1155
- * On the account's first deposit (USDC profile has no chains yet), patches
1156
- * protocol selection for USDC, WETH, and EURC across all supported chains
1157
- * (EURC on Mainnet/Base only) before the transfer and log_deposit.
1158
- * Pass `strategy` to select protocols for that first-deposit setup
1159
- * (same role as the former `deploySafe` strategy argument). On every later
1160
- * deposit the argument is ignored without error, since re-running the patch
1161
- * would overwrite a protocol selection the user may have customised. To
1162
- * change the strategy of an existing account, call
1163
- * `updateUserProfile({ asset, strategy })`.
1164
- *
1165
- * Minimum portfolio balance enforced (Safe balance + deposit amount):
1166
- * - Stablecoins: `MIN_PORTFOLIO_BALANCE` (Mainnet 10,000 USDC/EURC; Base/Arbitrum 100)
1167
- * - WETH: about $10,000 on Mainnet, $100 on Base/Arbitrum, from Data API `/price?token=eth`
1168
- *
1169
- * @param userAddress - User's address (owner of the Safe)
1170
- * @param chainId - Target chain ID
1171
- * @param amount - Amount in least decimal units (e.g., "100000000" for 100 USDC with 6 decimals)
1172
- * @param asset - Asset symbol: "USDC", "WETH", or "EURC".
1173
- * EURC is supported on Ethereum Mainnet and Base only.
1174
- * @param strategy - Optional strategy for first-deposit protocol patching:
1175
- * "conservative" (default), "aggressive" or "yieldmaxxing". Ignored on
1176
- * later deposits — use `updateUserProfile` to change an existing account.
1177
- * @returns Deposit response with transaction hash
1178
- *
1179
- * @example
1180
- * ```typescript
1181
- * // Deposit 10,000 USDC (6 decimals) to Safe on Base
1182
- * const result = await sdk.depositFunds(
1183
- * "0xUser...",
1184
- * 8453,
1185
- * "10000000000",
1186
- * "USDC"
1187
- * );
1188
- *
1189
- * // First deposit with aggressive strategy
1190
- * await sdk.depositFunds(userAddress, 8453, "10000000000", "USDC", "aggressive");
1191
- *
1192
- * // Changing the strategy of an account that has already deposited
1193
- * await sdk.updateUserProfile({ asset: "USDC", strategy: "yieldmaxxing" });
1194
- * ```
1195
- */
1196
1205
  /**
1197
1206
  * Deploy the connected predeployed (pool) wallet on one or more chains.
1198
1207
  *
@@ -1203,7 +1212,7 @@ declare class ZyfaiSDK {
1203
1212
  * resolves once all requested chains have landed on-chain. Idempotent — chains
1204
1213
  * already deployed are a no-op.
1205
1214
  *
1206
- * Optional for deposits: `depositFunds` no longer pre-deploys the target chain — the ERC20
1215
+ * Optional for deposits: `sendDeposit` no longer pre-deploys the target chain — the ERC20
1207
1216
  * transfer lands on the counterfactual address and the backend deploys + hands over on first
1208
1217
  * deposit (report-deposit). Use this only to pre-provision chains ahead of time.
1209
1218
  *
@@ -1215,11 +1224,58 @@ declare class ZyfaiSDK {
1215
1224
  chains: number[];
1216
1225
  status: string;
1217
1226
  }>;
1227
+ /**
1228
+ * Send a deposit from an EOA to its Safe smart wallet.
1229
+ *
1230
+ * Confirms the ERC-20 transfer and starts the custody-credit lifecycle. Use
1231
+ * `waitForDepositCredit(result.registration.id, chainId)` to await credit.
1232
+ */
1233
+ sendDeposit(userAddress: string, chainId: SupportedChainId, amount: string, asset: string, strategy?: Strategy): Promise<DepositResponse>;
1234
+ /**
1235
+ * @deprecated Compatibility convenience method. Prefer `sendDeposit()` followed by
1236
+ * `waitForDepositCredit()` when the caller owns the completion UX.
1237
+ */
1218
1238
  depositFunds(userAddress: string, chainId: SupportedChainId, amount: string, asset: string, strategy?: Strategy): Promise<DepositResponse>;
1239
+ /**
1240
+ * Prepare ERC-20 transfer calldata for builders using a custom signer,
1241
+ * sponsored transaction provider, or mobile wallet. Most custom-wallet
1242
+ * integrations can compose this with `ensureFirstDepositSetup()` and
1243
+ * `logDeposit()` instead.
1244
+ */
1245
+ buildDepositTransfer(params: {
1246
+ userAddress: string;
1247
+ chainId: SupportedChainId;
1248
+ amount: string;
1249
+ asset: SupportedAsset;
1250
+ }): Promise<{
1251
+ safeAddress: Address;
1252
+ tokenAddress: Address;
1253
+ to: Address;
1254
+ data: Hex;
1255
+ value: "0";
1256
+ }>;
1257
+ /** Apply the same per-asset minimum portfolio rule as sendDeposit. */
1258
+ private enforceMinimumPortfolioBalance;
1259
+ /**
1260
+ * Idempotently apply the first-deposit profile configuration for builders
1261
+ * composing an advanced custom transfer flow. Most custom-wallet
1262
+ * integrations can use this with `buildDepositTransfer()` and `logDeposit()`.
1263
+ *
1264
+ * When setup runs (`applied: true`), protocol configuration is persisted
1265
+ * before returning. Failures throw so callers can abort before submitting a
1266
+ * transfer. High-level deposit methods still treat setup as best-effort.
1267
+ */
1268
+ ensureFirstDepositSetup(strategy?: Strategy): Promise<{
1269
+ applied: boolean;
1270
+ }>;
1271
+ /** Best-effort first-deposit setup shared by both high-level deposit flows. */
1272
+ private prepareFirstDeposit;
1273
+ /** Shared post-transfer registration path for every deposit flow. */
1274
+ private registerDeposit;
1219
1275
  /**
1220
1276
  * Log a deposit that was executed client-side.
1221
1277
  *
1222
- * `depositFunds()` already calls this after the ERC20 transfer. If you send the
1278
+ * `sendDeposit()` already calls this after the ERC20 transfer. If you send the
1223
1279
  * transfer yourself (front, Privy, Biconomy, custom wallet) you **must** call
1224
1280
  * `logDeposit` — otherwise the backend never sees the deposit: a reserved pool
1225
1281
  * wallet stays reserved (no ownership rotation), and yield/agent tracking does
@@ -1264,6 +1320,25 @@ declare class ZyfaiSDK {
1264
1320
  * ```
1265
1321
  */
1266
1322
  logDeposit(chainId: SupportedChainId, txHash: string, amount: string, tokenAddress?: string): Promise<LogDepositResponse>;
1323
+ /**
1324
+ * Fetch the custody handover and balance-credit lifecycle for a registered
1325
+ * deposit. A status of `credited` is required before funds are investable.
1326
+ */
1327
+ getDepositStatus(depositId: string): Promise<DepositLifecycleResponse>;
1328
+ /**
1329
+ * Await deposit credit after `logDeposit` returns `handover_pending`.
1330
+ *
1331
+ * Polls `getDepositStatus` until `status === "credited"` and
1332
+ * `balanceCredited === true`. Rejects on recovery, timeout, or poll errors.
1333
+ *
1334
+ * Poll interval and timeout are chain-specific. Mainnet defaults to a 2s
1335
+ * interval and 1 minute ceiling; Base/Arbitrum use tighter polling (~500ms /
1336
+ * ~250ms) with a ~20 second completion window. Override `timeoutMs` when a
1337
+ * caller intentionally wants to wait longer than the normal UX window.
1338
+ *
1339
+ * Requires `connectAccount()` on the same SDK instance first.
1340
+ */
1341
+ waitForDepositCredit(depositId: string, chainId: SupportedChainId, options?: WaitForDepositCreditOptions): Promise<DepositLifecycleResponse>;
1267
1342
  /**
1268
1343
  * Withdraw funds from Safe smart wallet
1269
1344
  * Initiates a withdrawal request to the Zyfai API
@@ -1283,6 +1358,13 @@ declare class ZyfaiSDK {
1283
1358
  * When every source is an async pool nothing settles on-chain at that point,
1284
1359
  * so `txHash` is `undefined` on a successful call.
1285
1360
  *
1361
+ * **One redemption per pool at a time.** While an entry for a pool is
1362
+ * `REQUESTED` or `CLAIMABLE`, the backend drops a further withdrawal aimed at
1363
+ * that same pool — the protocols behind it (ERC-7540) hold a single request
1364
+ * slot per user. This method throws rather than reporting that no-op as a
1365
+ * success. It only throws when nothing the call could reach is withdrawable:
1366
+ * another pool, another asset or an idle Safe balance still goes through.
1367
+ *
1286
1368
  * Once requested, that amount can no longer be withdrawn: it is gone from
1287
1369
  * both the position snapshot and the Safe balance, so a second call silently
1288
1370
  * returns only what is left. Validate user-entered amounts against
@@ -1309,6 +1391,14 @@ declare class ZyfaiSDK {
1309
1391
  * ```
1310
1392
  */
1311
1393
  withdrawFunds(userAddress: string, chainId: SupportedChainId, amount?: string, tokenSymbol?: string): Promise<WithdrawResponse>;
1394
+ /**
1395
+ * Turn a withdrawal the backend would silently drop — one aimed only at
1396
+ * async pools that already hold an in-flight redemption — into an error, so
1397
+ * the caller gets an answer rather than a `success: true` no-op.
1398
+ *
1399
+ * @internal
1400
+ */
1401
+ private assertAsyncRedemptionSlotFree;
1312
1402
  /**
1313
1403
  * Get available DeFi protocols and pools for a specific chain
1314
1404
  *
@@ -2116,4 +2206,4 @@ declare const ERC7579_LAUNCHPAD_ADDRESS: Address$1;
2116
2206
  */
2117
2207
  declare const POOL_MODULE_ADDRESSES: readonly Address$1[];
2118
2208
 
2119
- 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 BestOpportunityDetails, type BestOpportunityResponse, type ChainConfig, type ChainPortfolio, type ChainTokenEarnings, type CustomizationConfig, type CustomizeBatchRequest, type CustomizeBatchResponse, DATA_API_BASE_URLS, DATA_API_ENDPOINT, DEFAULT_TOKEN_ADDRESSES, type DailyApyEntry, type DailyApyHistoryPeriod, type DailyApyHistoryResponse, type DailyEarning, type DailyEarningsResponse, type DebankPortfolioResponse, type DepegEvent, type DeploySafeResponse, type DepositResponse, 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, 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, type RebalanceFrequencyResponse, type RegisterAgentResponse, 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 Session, type SessionKeyResponse, type SimulateBestPositionsParams, type SimulateBestPositionsResponse, type SimulateCalldataItem, type SimulatedPosition, type SmartWalletByEOAResponse, type SmartWalletResponse, type Strategy, type SupportedAsset, type SupportedChainId, type TVLResponse, type TokenApy, type TokenEarnings, type UpdateUserProfileRequest, type UpdateUserProfileResponse, type UserPosition, VAULT_ADDRESS, type VaultAsset, type VaultClaimResponse, type VaultDepositResponse, type VaultSharesResponse, type VaultWithdrawResponse, type VaultWithdrawStatusResponse, type VolumeResponse, WS_ENDPOINT, WS_URLS, type WalletTVL, type WithdrawResponse, type ZyfaiEventFilters, type ZyfaiEventHandlers, ZyfaiSDK, createBankrProvider, getChainConfig, getDataApiBaseUrl, getDefaultTokenAddress, getExecutionApiBaseUrl, getSupportedChainIds, getWsUrl, isSupportedChain, type staleBalances };
2209
+ 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 BestOpportunityDetails, type BestOpportunityResponse, type ChainConfig, type ChainPortfolio, type ChainTokenEarnings, type CustomizationConfig, type CustomizeBatchRequest, type CustomizeBatchResponse, DATA_API_BASE_URLS, DATA_API_ENDPOINT, DEFAULT_TOKEN_ADDRESSES, type DailyApyEntry, type DailyApyHistoryPeriod, type DailyApyHistoryResponse, type DailyEarning, type DailyEarningsResponse, type DebankPortfolioResponse, type DepegEvent, type DeploySafeResponse, type DepositLifecycleResponse, type DepositLifecycleStatus, type DepositResponse, 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, 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, type RebalanceFrequencyResponse, type RegisterAgentResponse, 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 Session, type SessionKeyResponse, type SimulateBestPositionsParams, type SimulateBestPositionsResponse, type SimulateCalldataItem, type SimulatedPosition, type SmartWalletByEOAResponse, type SmartWalletResponse, type Strategy, type SupportedAsset, type SupportedChainId, type TVLResponse, type TokenApy, type TokenEarnings, type UpdateUserProfileRequest, type UpdateUserProfileResponse, type UserPosition, VAULT_ADDRESS, type VaultAsset, type VaultClaimResponse, type VaultDepositResponse, type VaultSharesResponse, type VaultWithdrawResponse, type VaultWithdrawStatusResponse, type VolumeResponse, WS_ENDPOINT, WS_URLS, type WaitForDepositCreditOptions, type WalletTVL, type WithdrawResponse, type ZyfaiEventFilters, type ZyfaiEventHandlers, ZyfaiSDK, createBankrProvider, getChainConfig, getDataApiBaseUrl, getDefaultTokenAddress, getExecutionApiBaseUrl, getSupportedChainIds, getWsUrl, isSupportedChain, type staleBalances };