@zyfai/sdk 1.0.0 → 1.2.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 +53 -39
- package/dist/index.d.mts +89 -27
- package/dist/index.d.ts +89 -27
- package/dist/index.js +296 -80
- package/dist/index.mjs +267 -50
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -134,16 +134,18 @@ This method:
|
|
|
134
134
|
> - The address is always the backend-assigned one; it is **never** derived with
|
|
135
135
|
> `getDeterministicSafeAddress`.
|
|
136
136
|
>
|
|
137
|
-
>
|
|
138
|
-
>
|
|
137
|
+
> Onboarding a pool wallet takes a single funding signature. Eligible direct
|
|
138
|
+
> first deposits use a sponsored ERC-2612 permit.
|
|
139
139
|
>
|
|
140
|
-
> **Registering
|
|
140
|
+
> **Registering a wallet transfer.** For pool wallets, an on-chain
|
|
141
141
|
> ERC-20 transfer alone does **not** subscribe the user. The backend must also
|
|
142
142
|
> receive `POST /users/log_deposit` with a **user JWT** (`Authorization: Bearer
|
|
143
143
|
> …`) from SIWE — your SDK API key is not enough (that call returns **401**).
|
|
144
144
|
> Without a successful `log_deposit`, ownership is not rotated, the session key
|
|
145
145
|
> is not activated, and funds sit idle in the Safe.
|
|
146
146
|
>
|
|
147
|
+
> For sponsored permit deposits, the execution API registers the confirmed pull.
|
|
148
|
+
>
|
|
147
149
|
> The pool's ERC-7579 module addresses are exported as reference constants
|
|
148
150
|
> (`POOL_MODULE_ADDRESSES`, `INTENT_SMART_SESSIONS`, `PROXY_EXECUTOR`, …) for
|
|
149
151
|
> parity/validation only — the SDK does not install them.
|
|
@@ -163,8 +165,8 @@ console.log("Is Deployed:", walletInfo.isDeployed);
|
|
|
163
165
|
// Deploy the Safe with default conservative strategy (automatically checks if already deployed)
|
|
164
166
|
const result = await sdk.deploySafe(userAddress, 8453);
|
|
165
167
|
|
|
166
|
-
// Or deploy with
|
|
167
|
-
const
|
|
168
|
+
// Or deploy with aggressive strategy
|
|
169
|
+
const aggressiveResult = await sdk.deploySafe(userAddress, 8453, "aggressive");
|
|
168
170
|
|
|
169
171
|
if (result.success) {
|
|
170
172
|
console.log("Safe Address:", result.safeAddress);
|
|
@@ -178,8 +180,8 @@ if (result.success) {
|
|
|
178
180
|
**Strategy Options:**
|
|
179
181
|
|
|
180
182
|
- `"conservative"` (default): Low-risk, stable yield strategy
|
|
181
|
-
- `"
|
|
182
|
-
- `"
|
|
183
|
+
- `"aggressive"`: High-risk, high-reward strategy
|
|
184
|
+
- `"yieldmaxxing"`: Aggressive plus protocols with delayed withdrawals — see [Strategies](#strategies)
|
|
183
185
|
|
|
184
186
|
### 2. Multi-Chain Support
|
|
185
187
|
|
|
@@ -335,8 +337,8 @@ Deploy a Safe smart wallet for a user. **Deployment is handled by the backend AP
|
|
|
335
337
|
- `chainId`: Target chain ID
|
|
336
338
|
- `strategy`: Optional strategy selection (default: `"conservative"`)
|
|
337
339
|
- `"conservative"`: Low-risk, stable yield strategy (default)
|
|
338
|
-
- `"
|
|
339
|
-
- `"
|
|
340
|
+
- `"aggressive"`: High-risk, high-reward strategy
|
|
341
|
+
- `"yieldmaxxing"`: Aggressive plus protocols with delayed withdrawals — see [Strategies](#strategies)
|
|
340
342
|
|
|
341
343
|
**Returns:**
|
|
342
344
|
|
|
@@ -417,7 +419,7 @@ console.log("User ID:", result.userId);
|
|
|
417
419
|
|
|
418
420
|
### 4. Send a Deposit
|
|
419
421
|
|
|
420
|
-
|
|
422
|
+
Fund your Safe smart wallet. The SDK selects the token address from the chain and asset.
|
|
421
423
|
|
|
422
424
|
- **Ethereum Mainnet (1), Base (8453), Arbitrum (42161)**: USDC (default) or WETH
|
|
423
425
|
- **Ethereum Mainnet (1), Base (8453)**: EURC (6 decimals; not available on Arbitrum)
|
|
@@ -435,6 +437,18 @@ Minimums for WETH and NVDAc are quoted in dollars and converted at deposit time
|
|
|
435
437
|
|
|
436
438
|
Top-ups smaller than the minimum are allowed if the Safe already holds enough of the asset to meet it after the deposit.
|
|
437
439
|
|
|
440
|
+
For a direct first deposit into a reserved pool Safe, `sendDeposit()` and `sendDirectDeposit()` request a typed-data signature when the execution API enables the token on that chain. Zyfai sponsors the pull and returns the normal deposit registration. Other direct deposits use a wallet transfer.
|
|
441
|
+
|
|
442
|
+
If the permit response is interrupted or times out, check its status before retrying:
|
|
443
|
+
|
|
444
|
+
```typescript
|
|
445
|
+
const intent = await sdk.getFirstPermitDepositStatus(userAddress);
|
|
446
|
+
if (intent?.depositId) {
|
|
447
|
+
await sdk.waitForDepositCredit(intent.depositId, intent.chainId);
|
|
448
|
+
}
|
|
449
|
+
```
|
|
450
|
+
|
|
451
|
+
|
|
438
452
|
```typescript
|
|
439
453
|
// Send 10 USDC (6 decimals) to Safe on Base.
|
|
440
454
|
const sent = await sdk.sendDeposit(
|
|
@@ -447,15 +461,15 @@ const sent = await sdk.sendDeposit(
|
|
|
447
461
|
// Await custody credit only when this UI needs the completion state.
|
|
448
462
|
const credited = await sdk.waitForDepositCredit(sent.registration.id, 8453);
|
|
449
463
|
|
|
450
|
-
// First deposit with
|
|
451
|
-
const
|
|
464
|
+
// First deposit with aggressive strategy (protocol patching)
|
|
465
|
+
const aggressiveSent = await sdk.sendDeposit(
|
|
452
466
|
userAddress,
|
|
453
467
|
8453,
|
|
454
468
|
"10000000",
|
|
455
469
|
"USDC",
|
|
456
|
-
"
|
|
470
|
+
"aggressive",
|
|
457
471
|
);
|
|
458
|
-
await sdk.waitForDepositCredit(
|
|
472
|
+
await sdk.waitForDepositCredit(aggressiveSent.registration.id, 8453);
|
|
459
473
|
|
|
460
474
|
if (credited.status === "credited") {
|
|
461
475
|
console.log("Deposit credited!");
|
|
@@ -468,8 +482,8 @@ if (credited.status === "credited") {
|
|
|
468
482
|
- Amount must be in least decimal units. For USDC (6 decimals): 1 USDC = 1000000
|
|
469
483
|
- `asset` is required (`"USDC"`, `"WETH"`, `"EURC"`, `"USDT"`, `"PYUSD"`, or `"NVDAc"` — EURC on Mainnet/Base, USDT and PYUSD on Mainnet, NVDAc on Base); token address is selected from that for the chain. Depositing an asset on a chain where it does not exist throws before any transfer.
|
|
470
484
|
- The total Safe balance must meet the per-asset minimum after the deposit (see above). WETH uses a live ETH/USD price, so the wei threshold moves with the market.
|
|
471
|
-
- Call `connectAccount()` on the **same** `ZyfaiSDK` instance before `sendDeposit()`. The
|
|
472
|
-
- `sendDeposit(userAddress, chainId, amount, asset)`
|
|
485
|
+
- Call `connectAccount()` on the **same** `ZyfaiSDK` instance before `sendDeposit()`. The SDK uses that session's JWT to submit a permit or register a wallet transfer.
|
|
486
|
+
- `sendDeposit(userAddress, chainId, amount, asset)` funds the Safe directly when the wallet already holds the collateral. Pass an object with `spendToken` when the wallet holds a different token or the same token on another chain: the execution API quotes Relay, the wallet signs, and the Safe receives `asset`. Same-chain ETH into WETH wraps in the wallet (`spendToken: "ETH"`). `sendDirectDeposit` and `sendSwapDeposit` are the two steps `sendDeposit` chooses between. Optional `slippageBps` on a swap defaults to 200 (max 500) and is fixed when the funding order is created. Omit it to use the server default. A later `sendSwapDeposit({ orderId })` ignores a new `slippageBps` and signs the stored order.
|
|
473
487
|
|
|
474
488
|
```typescript
|
|
475
489
|
const swapped = await sdk.sendDeposit({
|
|
@@ -485,12 +499,12 @@ if (credited.status === "credited") {
|
|
|
485
499
|
|
|
486
500
|
- `sendDeposit()` confirms the transfer (or the Relay fill) and registers its lifecycle, then returns its ID. Call `waitForDepositPosition()` when the UI should wait until allocation finishes. `waitForDepositCredit()` is the shorter wait for credited balance only.
|
|
487
501
|
- `depositFunds()` remains a compatibility wrapper that calls both steps and waits through the normal completion window; it **rejects** if credit is not confirmed in that window (track in-flight deposits with `getDepositStatus()` or call `waitForDepositCredit()` with a longer `timeoutMs`).
|
|
488
|
-
- If first-deposit protocol patching fails,
|
|
489
|
-
- **First deposit only** (before transfer + `log_deposit`): if the USDC profile has no `chains` yet, the SDK patches protocols for **USDC, WETH, EURC, USDT, PYUSD, and NVDAc**, each across the chains it exists on (EURC on Mainnet/Base, USDT and PYUSD on Mainnet, NVDAc on Base → `assetTypeSettings.[usdc|eth|eurc|usdt|pyusd|nvdac]`). Pass optional `strategy` (`"conservative"` default, `"
|
|
490
|
-
- **`strategy` is ignored on later deposits, and no error is raised.** Re-running the patch would overwrite a protocol selection the user may have customised, so passing `"
|
|
502
|
+
- If first-deposit protocol patching fails, funding still proceeds. If registration fails after a wallet transfer, use the transfer hash to retry `logDeposit()` after `connectAccount()`.
|
|
503
|
+
- **First deposit only** (before transfer + `log_deposit`): if the USDC profile has no `chains` yet, the SDK patches protocols for **USDC, WETH, EURC, USDT, PYUSD, and NVDAc**, each across the chains it exists on (EURC on Mainnet/Base, USDT and PYUSD on Mainnet, NVDAc on Base → `assetTypeSettings.[usdc|eth|eurc|usdt|pyusd|nvdac]`). Pass optional `strategy` (`"conservative"` default, `"aggressive"` or `"yieldmaxxing"`) — same role as the former `deploySafe` strategy argument. That first write also opts each configured asset into vaults added later (`autoSelectProtocols`). Later deposits skip this.
|
|
504
|
+
- **`strategy` is ignored on later deposits, and no error is raised.** Re-running the patch would overwrite a protocol selection the user may have customised, so passing `"yieldmaxxing"` to an account that has already deposited leaves it on its current strategy. To change an existing account, use `setStrategyWithProtocols` or `setAssetStrategy` (not `updateUserProfile` alone):
|
|
491
505
|
|
|
492
506
|
```typescript
|
|
493
|
-
await sdk.setStrategyWithProtocols({ strategy: "
|
|
507
|
+
await sdk.setStrategyWithProtocols({ strategy: "yieldmaxxing" });
|
|
494
508
|
```
|
|
495
509
|
|
|
496
510
|
#### Deposit With an External Wallet (Sponsored Transactions)
|
|
@@ -598,7 +612,7 @@ if (result.success) {
|
|
|
598
612
|
- Check the `message` field for the withdrawal status
|
|
599
613
|
- Use `getHistory()` to track the withdrawal transaction once it's processed
|
|
600
614
|
|
|
601
|
-
**Delayed withdrawals (`
|
|
615
|
+
**Delayed withdrawals (`yieldmaxxing` strategy)**
|
|
602
616
|
|
|
603
617
|
Positions held in protocols with asynchronous withdrawals (Ipor, Superform)
|
|
604
618
|
cannot be exited on demand. For those the backend sends the immediately
|
|
@@ -752,7 +766,7 @@ it from exactly two sources: the underlying amount of every deployed position,
|
|
|
752
766
|
and the idle balances sitting in the Safe. Anything that is in neither place is
|
|
753
767
|
missing from it.
|
|
754
768
|
|
|
755
|
-
That gap is real under the `
|
|
769
|
+
That gap is real under the `yieldmaxxing` strategy. When the agent requests a
|
|
756
770
|
redemption from a delayed-withdrawal protocol, the position leaves the snapshot
|
|
757
771
|
immediately while the funds stay in the vault for a day or three. During that
|
|
758
772
|
window they are in no balance field — only in `pendingAsyncWithdrawals`.
|
|
@@ -839,7 +853,7 @@ const user = await sdk.getUserDetails();
|
|
|
839
853
|
console.log("Smart Wallet:", user.user.smartWallet);
|
|
840
854
|
console.log("Active Chains:", user.user.chains);
|
|
841
855
|
console.log("Active Protocols:", user.user.protocols);
|
|
842
|
-
console.log("Strategy:", user.user.strategy); // "conservative" | "
|
|
856
|
+
console.log("Strategy:", user.user.strategy); // "conservative" | "aggressive" | "yieldmaxxing"
|
|
843
857
|
console.log("Has Active Session:", user.user.hasActiveSessionKey);
|
|
844
858
|
|
|
845
859
|
// Feature flags
|
|
@@ -860,7 +874,7 @@ console.log("Wallet Type:", user.user.walletType);
|
|
|
860
874
|
|
|
861
875
|
**Available Fields:**
|
|
862
876
|
- **Core Info**: `id`, `address`, `smartWallet`, `chains`, `protocols`
|
|
863
|
-
- **Strategy**: `strategy` (conservative,
|
|
877
|
+
- **Strategy**: `strategy` (conservative, aggressive or yieldmaxxing)
|
|
864
878
|
- **Session**: `hasActiveSessionKey` (boolean)
|
|
865
879
|
- **Features**: `autocompounding`, `autoSelectProtocols`, `omniAccount`, `crosschainStrategy`, `executorProxy`, `splitting`, `minSplits`
|
|
866
880
|
- **Optional**: `email`, `telegramId`, `agentName`, `walletType`, `customization`, `registered`
|
|
@@ -1091,7 +1105,7 @@ console.log("By chain (with rZFI):", apyHistory.weightedApyWithRzfiAfterFeeByCha
|
|
|
1091
1105
|
#### Get Conservative Opportunities (Low Risk)
|
|
1092
1106
|
|
|
1093
1107
|
```typescript
|
|
1094
|
-
//
|
|
1108
|
+
// Live pools. Pass "not_live" as the third argument for retired pools.
|
|
1095
1109
|
const conservativeOpps = await sdk.getConservativeOpportunities(8453, "USDC");
|
|
1096
1110
|
conservativeOpps.data.forEach((o) => {
|
|
1097
1111
|
console.log(`${o.protocolName} - ${o.poolName}: ${o.apy}% APY`);
|
|
@@ -1120,16 +1134,16 @@ asyncOpps.data.forEach((o) => {
|
|
|
1120
1134
|
#### Strategies
|
|
1121
1135
|
|
|
1122
1136
|
Every method that takes a `strategy` accepts one of three values. Each tier is a
|
|
1123
|
-
superset of the previous one:
|
|
1124
|
-
and
|
|
1137
|
+
superset of the previous one: an aggressive user also gets conservative pools,
|
|
1138
|
+
and a yieldmaxxing user gets everything.
|
|
1125
1139
|
|
|
1126
1140
|
| Strategy | Backend value | Pools unlocked |
|
|
1127
1141
|
| --- | --- | --- |
|
|
1128
1142
|
| `conservative` (default) | `safe_strategy` | Low-risk pools only |
|
|
1129
|
-
| `
|
|
1130
|
-
| `
|
|
1143
|
+
| `aggressive` | `degen_strategy` | Conservative + higher-risk pools |
|
|
1144
|
+
| `yieldmaxxing` | `async_strategy` | Aggressive + pools with **delayed withdrawals** |
|
|
1131
1145
|
|
|
1132
|
-
`
|
|
1146
|
+
`yieldmaxxing` is the only strategy that changes how withdrawals behave. It
|
|
1133
1147
|
unlocks protocols (Ipor, Superform) that cannot be exited on demand: a
|
|
1134
1148
|
redemption has to be requested, then claimed once the protocol releases the
|
|
1135
1149
|
funds — roughly a day on Ipor, three on Superform. The agent handles both steps,
|
|
@@ -1146,12 +1160,12 @@ entry in `getManagedAssets()` when `asset` is omitted:
|
|
|
1146
1160
|
|
|
1147
1161
|
```typescript
|
|
1148
1162
|
const profiles = await sdk.setStrategyWithProtocols({
|
|
1149
|
-
strategy: "
|
|
1163
|
+
strategy: "yieldmaxxing",
|
|
1150
1164
|
});
|
|
1151
1165
|
// Or a single asset:
|
|
1152
1166
|
const profile = await sdk.setAssetStrategy({
|
|
1153
1167
|
asset: "NVDAc",
|
|
1154
|
-
strategy: "
|
|
1168
|
+
strategy: "yieldmaxxing",
|
|
1155
1169
|
});
|
|
1156
1170
|
console.log(profile.protocols); // Ipor + Superform
|
|
1157
1171
|
```
|
|
@@ -1159,7 +1173,7 @@ console.log(profile.protocols); // Ipor + Superform
|
|
|
1159
1173
|
| Parameter | Default | Notes |
|
|
1160
1174
|
| --- | --- | --- |
|
|
1161
1175
|
| `asset` | — | Required |
|
|
1162
|
-
| `strategy` | the asset's current one | Omit it to recompute the protocol list without changing strategy |
|
|
1176
|
+
| `strategy` | the asset's current one | Omit it to recompute the protocol list without changing strategy. Passing one opts the asset into vaults added later |
|
|
1163
1177
|
| `chains` | every chain the asset exists on | **Additive** — chains already enabled are kept, so this cannot disable one |
|
|
1164
1178
|
|
|
1165
1179
|
This is the method to reach for when changing an existing account's strategy,
|
|
@@ -1173,8 +1187,8 @@ resuming after `pauseAgent`.
|
|
|
1173
1187
|
**8 decimals, Base only**. It behaves like any other asset — same `sendDeposit`,
|
|
1174
1188
|
`withdrawFunds` and `getPortfolio` — with three differences worth planning for.
|
|
1175
1189
|
|
|
1176
|
-
**It only exists under `
|
|
1177
|
-
and Superform, are both async-only, so a `conservative` or `
|
|
1190
|
+
**It only exists under `yieldmaxxing`.** The two protocols that hold it, Ipor
|
|
1191
|
+
and Superform, are both async-only, so a `conservative` or `aggressive` profile
|
|
1178
1192
|
resolves to zero protocols for NVDAc and the agent has nothing to deploy into.
|
|
1179
1193
|
Every NVDAc withdrawal is therefore a delayed one — read
|
|
1180
1194
|
[Total balance](#total-balance) before showing a balance.
|
|
@@ -1191,7 +1205,7 @@ unaffected. `getPortfolio` returns ready-to-display copy in
|
|
|
1191
1205
|
```typescript
|
|
1192
1206
|
// Existing account: one call sets the strategy and selects the protocols.
|
|
1193
1207
|
// Chains default to Base, the only one NVDAc exists on.
|
|
1194
|
-
await sdk.setAssetStrategy({ asset: "NVDAc", strategy: "
|
|
1208
|
+
await sdk.setAssetStrategy({ asset: "NVDAc", strategy: "yieldmaxxing" });
|
|
1195
1209
|
|
|
1196
1210
|
// 1 NVDAc = 100000000 (8 decimals). Must leave at least ~$10 in the Safe.
|
|
1197
1211
|
const sentNvda = await sdk.sendDeposit(userAddress, 8453, "100000000", "NVDAc");
|
|
@@ -1286,7 +1300,7 @@ All examples are available in the `examples/` directory:
|
|
|
1286
1300
|
|
|
1287
1301
|
### Opportunities & Rebalancing
|
|
1288
1302
|
|
|
1289
|
-
21. **`get-opportunities.ts`** - Get conservative and
|
|
1303
|
+
21. **`get-opportunities.ts`** - Get conservative and aggressive yield opportunities
|
|
1290
1304
|
22. **`get-rebalance-info.ts`** - Get rebalance events and frequency tier
|
|
1291
1305
|
|
|
1292
1306
|
### Premium Features
|
|
@@ -1336,8 +1350,8 @@ async function main() {
|
|
|
1336
1350
|
// Deploy Safe with default conservative strategy
|
|
1337
1351
|
const result = await sdk.deploySafe(userAddress, 8453);
|
|
1338
1352
|
|
|
1339
|
-
// Or deploy with
|
|
1340
|
-
// const result = await sdk.deploySafe(userAddress, 8453, "
|
|
1353
|
+
// Or deploy with aggressive strategy
|
|
1354
|
+
// const result = await sdk.deploySafe(userAddress, 8453, "aggressive");
|
|
1341
1355
|
|
|
1342
1356
|
if (result.success) {
|
|
1343
1357
|
console.log("✅ Successfully deployed Safe");
|
package/dist/index.d.mts
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
|
*
|
|
@@ -1639,7 +1653,9 @@ declare class ZyfaiSDK {
|
|
|
1639
1653
|
* @param params.asset - Asset to configure
|
|
1640
1654
|
* @param params.strategy - Strategy to apply; defaults to the one already
|
|
1641
1655
|
* stored for this asset (`"conservative"` on a fresh account), which lets
|
|
1642
|
-
* you recompute a protocol list without changing the strategy
|
|
1656
|
+
* you recompute a protocol list without changing the strategy. Passing a
|
|
1657
|
+
* strategy also opts the asset into vaults added later. Omitting it does
|
|
1658
|
+
* not change that opt-in.
|
|
1643
1659
|
* @param params.chains - Chains to enable. Defaults to every chain the asset
|
|
1644
1660
|
* exists on. **Additive**: chains already enabled are kept, so this cannot
|
|
1645
1661
|
* be used to disable one.
|
|
@@ -1649,11 +1665,11 @@ declare class ZyfaiSDK {
|
|
|
1649
1665
|
*
|
|
1650
1666
|
* @example
|
|
1651
1667
|
* ```typescript
|
|
1652
|
-
* // NVDAc only lives in async protocols, so it needs "
|
|
1668
|
+
* // NVDAc only lives in async protocols, so it needs "yieldmaxxing".
|
|
1653
1669
|
* // Chains default to Base, the only chain it exists on.
|
|
1654
1670
|
* const profile = await sdk.setAssetStrategy({
|
|
1655
1671
|
* asset: "NVDAc",
|
|
1656
|
-
* strategy: "
|
|
1672
|
+
* strategy: "yieldmaxxing",
|
|
1657
1673
|
* });
|
|
1658
1674
|
* console.log(profile.protocols); // Ipor + Superform
|
|
1659
1675
|
* ```
|
|
@@ -1667,7 +1683,8 @@ declare class ZyfaiSDK {
|
|
|
1667
1683
|
* Apply a strategy and auto-select matching protocols for one or all managed
|
|
1668
1684
|
* assets ({@link getManagedAssets}). Prefer this over
|
|
1669
1685
|
* {@link updateUserProfile} when changing strategy so protocols stay aligned
|
|
1670
|
-
* with the tier (including `
|
|
1686
|
+
* with the tier (including `yieldmaxxing` async venues). The chosen strategy
|
|
1687
|
+
* also opts those assets into vaults added later.
|
|
1671
1688
|
*
|
|
1672
1689
|
* @group Portfolio and execution
|
|
1673
1690
|
*/
|
|
@@ -1725,14 +1742,16 @@ declare class ZyfaiSDK {
|
|
|
1725
1742
|
status: string;
|
|
1726
1743
|
}>;
|
|
1727
1744
|
/**
|
|
1728
|
-
*
|
|
1745
|
+
* Deposit a collateral token the wallet already holds into the Safe.
|
|
1729
1746
|
*
|
|
1730
1747
|
* @remarks
|
|
1731
1748
|
* Use this when the connected wallet holds the strategy collateral on the
|
|
1732
1749
|
* deposit chain. {@link ZyfaiSDK.sendDeposit} calls this automatically in
|
|
1733
1750
|
* that case. A different token uses {@link ZyfaiSDK.sendSwapDeposit}.
|
|
1734
1751
|
*
|
|
1735
|
-
*
|
|
1752
|
+
* Eligible first deposits sign an ERC-2612 permit and the backend sponsors and
|
|
1753
|
+
* registers the pull. Other direct deposits confirm an ERC-20 transfer and
|
|
1754
|
+
* call {@link ZyfaiSDK.logDeposit}.
|
|
1736
1755
|
* Requires {@link ZyfaiSDK.connectAccount}. Pass the **EOA** as `userAddress`.
|
|
1737
1756
|
*
|
|
1738
1757
|
* @group Deposits and withdrawals
|
|
@@ -1756,12 +1775,37 @@ declare class ZyfaiSDK {
|
|
|
1756
1775
|
* ```
|
|
1757
1776
|
*/
|
|
1758
1777
|
sendDirectDeposit(userAddress: string, chainId: SupportedChainId, amount: string, asset: string, strategy?: Strategy): Promise<DepositResponse>;
|
|
1778
|
+
private sendCollateralDeposit;
|
|
1779
|
+
/**
|
|
1780
|
+
* Read the current first-deposit permit intent after a pending or interrupted deposit.
|
|
1781
|
+
*
|
|
1782
|
+
* @remarks
|
|
1783
|
+
* Uses the execution API and the SIWE session from {@link ZyfaiSDK.connectAccount}.
|
|
1784
|
+
* A registered intent provides the deposit id for {@link ZyfaiSDK.getDepositStatus}.
|
|
1785
|
+
*
|
|
1786
|
+
* @group Deposits and withdrawals
|
|
1787
|
+
*
|
|
1788
|
+
* @param userAddress - Authenticated EOA
|
|
1789
|
+
* @returns The latest permit intent, or null when no intent exists
|
|
1790
|
+
* @throws If the address differs from the authenticated EOA or the request fails
|
|
1791
|
+
*
|
|
1792
|
+
* @example
|
|
1793
|
+
* ```typescript
|
|
1794
|
+
* const intent = await sdk.getFirstPermitDepositStatus(eoa);
|
|
1795
|
+
* if (intent?.depositId) await sdk.waitForDepositCredit(intent.depositId, intent.chainId);
|
|
1796
|
+
* ```
|
|
1797
|
+
*/
|
|
1798
|
+
getFirstPermitDepositStatus(userAddress: string): Promise<FirstPermitDepositStatus | null>;
|
|
1799
|
+
private getFirstPermitDepositAvailability;
|
|
1800
|
+
private sendFirstPermitDeposit;
|
|
1759
1801
|
/**
|
|
1760
1802
|
* Fund the Safe with a collateral the wallet already holds, or swap another token into it.
|
|
1761
1803
|
*
|
|
1762
1804
|
* @remarks
|
|
1763
|
-
* The positional call
|
|
1764
|
-
*
|
|
1805
|
+
* The positional call deposits the collateral on `chainId`. Eligible first
|
|
1806
|
+
* deposits use a sponsored ERC-2612 permit. Other direct deposits use a wallet
|
|
1807
|
+
* transfer. If a permit submission is interrupted, check
|
|
1808
|
+
* {@link ZyfaiSDK.getFirstPermitDepositStatus} before starting another deposit.
|
|
1765
1809
|
*
|
|
1766
1810
|
* The object form spends `spendToken`. When that token is the destination
|
|
1767
1811
|
* collateral on `chainId`, this is a direct deposit. Any other token is
|
|
@@ -2176,7 +2220,7 @@ declare class ZyfaiSDK {
|
|
|
2176
2220
|
* Note: The withdrawal is processed asynchronously, so txHash may not be immediately available
|
|
2177
2221
|
* Funds are always withdrawn to the Safe owner's address (userAddress)
|
|
2178
2222
|
*
|
|
2179
|
-
* **Delayed withdrawals.** Positions held under the `"
|
|
2223
|
+
* **Delayed withdrawals.** Positions held under the `"yieldmaxxing"`
|
|
2180
2224
|
* strategy sit in protocols that cannot be exited on demand. For those the
|
|
2181
2225
|
* backend transfers the immediately available portion, then queues a
|
|
2182
2226
|
* redemption for the rest and forwards the funds to the EOA once the
|
|
@@ -2290,7 +2334,7 @@ declare class ZyfaiSDK {
|
|
|
2290
2334
|
* a snapshot, so net values can differ slightly from a fully live calc.
|
|
2291
2335
|
*
|
|
2292
2336
|
* **Total balance.** `portfolioByAssetType` sums deployed positions and idle
|
|
2293
|
-
* Safe balances, and nothing else. Under the `"
|
|
2337
|
+
* Safe balances, and nothing else. Under the `"yieldmaxxing"` strategy a
|
|
2294
2338
|
* redemption in flight has already left its position and has not landed in
|
|
2295
2339
|
* the Safe yet, so its funds appear in no balance field at all. That makes
|
|
2296
2340
|
* two distinct numbers:
|
|
@@ -2315,7 +2359,7 @@ declare class ZyfaiSDK {
|
|
|
2315
2359
|
* @group Portfolio and execution
|
|
2316
2360
|
*
|
|
2317
2361
|
* @remarks Data API portfolio endpoint. See {@link PortfolioDetailed.pendingAsyncWithdrawals}
|
|
2318
|
-
* when using {@link Strategy |
|
|
2362
|
+
* when using {@link Strategy | yieldmaxxing}.
|
|
2319
2363
|
*
|
|
2320
2364
|
* @param userAddress - User's EOA address
|
|
2321
2365
|
* @returns Portfolio with optional fee-adjusted balance fields
|
|
@@ -2397,7 +2441,7 @@ declare class ZyfaiSDK {
|
|
|
2397
2441
|
*
|
|
2398
2442
|
* @param crossChain - Whether to get cross-chain APY (true = omni account, false = simple account)
|
|
2399
2443
|
* @param days - Time period: 7, 14, or 30
|
|
2400
|
-
* @param strategy - Strategy type: "conservative" (default), "
|
|
2444
|
+
* @param strategy - Strategy type: "conservative" (default), "aggressive" or "yieldmaxxing"
|
|
2401
2445
|
* @param chainId - Optional chain ID filter
|
|
2402
2446
|
* @param tokenSymbol - Optional token symbol filter (e.g. "USDC", "WETH", "WBTC")
|
|
2403
2447
|
* @returns APY per strategy for a specific chain
|
|
@@ -2573,6 +2617,8 @@ declare class ZyfaiSDK {
|
|
|
2573
2617
|
/**
|
|
2574
2618
|
* Get conservative (low-risk) yield opportunities.
|
|
2575
2619
|
*
|
|
2620
|
+
* Omitting `status` requests live pools only. Pass `"not_live"` for retired pools.
|
|
2621
|
+
*
|
|
2576
2622
|
* @group Analytics and opportunities
|
|
2577
2623
|
*
|
|
2578
2624
|
* @remarks Data API. Partner API key only.
|
|
@@ -2589,36 +2635,52 @@ declare class ZyfaiSDK {
|
|
|
2589
2635
|
*/
|
|
2590
2636
|
getConservativeOpportunities(chainId?: number, asset?: string, status?: "live" | "not_live"): Promise<OpportunitiesResponse>;
|
|
2591
2637
|
/**
|
|
2592
|
-
* Get
|
|
2638
|
+
* Get balanced (high-risk, high-reward) yield opportunities.
|
|
2639
|
+
*
|
|
2640
|
+
* Omitting `status` requests live pools only. Pass `"not_live"` for retired pools.
|
|
2593
2641
|
*
|
|
2594
2642
|
* @param chainId - Optional chain ID filter
|
|
2595
2643
|
* @param asset - Optional asset filter (e.g. "USDC", "WETH", "WBTC")
|
|
2596
|
-
* @returns List of
|
|
2644
|
+
* @returns List of balanced opportunities
|
|
2597
2645
|
*
|
|
2598
2646
|
* @example
|
|
2599
2647
|
* ```typescript
|
|
2600
|
-
* const opportunities = await sdk.
|
|
2648
|
+
* const opportunities = await sdk.getBalancedOpportunities(8453, "WETH");
|
|
2601
2649
|
* opportunities.data.forEach(o => console.log(o.protocolName, o.apy));
|
|
2602
2650
|
* ```
|
|
2603
2651
|
*/
|
|
2652
|
+
getBalancedOpportunities(chainId?: number, asset?: string, status?: "live" | "not_live"): Promise<OpportunitiesResponse>;
|
|
2653
|
+
/**
|
|
2654
|
+
* @deprecated Use {@link getBalancedOpportunities} instead. Retains the
|
|
2655
|
+
* pre-rename `getAggressiveOpportunities` entry point; same HTTP request as
|
|
2656
|
+
* balanced, with legacy `strategyType: "aggressive"` on the response and rows.
|
|
2657
|
+
*/
|
|
2604
2658
|
getAggressiveOpportunities(chainId?: number, asset?: string, status?: "live" | "not_live"): Promise<OpportunitiesResponse>;
|
|
2605
2659
|
/**
|
|
2606
|
-
* Get
|
|
2660
|
+
* Get advanced yield opportunities — pools reachable only with the
|
|
2607
2661
|
* `"advanced"` strategy, including protocols whose withdrawals are
|
|
2608
2662
|
* asynchronous (Ipor, Superform). Exiting these pools takes about a day
|
|
2609
2663
|
* on Ipor and three on Superform; track the redemption through
|
|
2610
2664
|
* `getPortfolio().portfolio.pendingAsyncWithdrawals`.
|
|
2611
2665
|
*
|
|
2666
|
+
* Omitting `status` requests live pools only. Pass `"not_live"` for retired pools.
|
|
2667
|
+
*
|
|
2612
2668
|
* @param chainId - Optional chain ID filter
|
|
2613
2669
|
* @param asset - Optional asset filter (e.g. "USDC", "WETH")
|
|
2614
|
-
* @returns List of
|
|
2670
|
+
* @returns List of advanced opportunities
|
|
2615
2671
|
*
|
|
2616
2672
|
* @example
|
|
2617
2673
|
* ```typescript
|
|
2618
|
-
* const opportunities = await sdk.
|
|
2674
|
+
* const opportunities = await sdk.getAdvancedOpportunities(8453);
|
|
2619
2675
|
* opportunities.data.forEach(o => console.log(o.protocolName, o.apy));
|
|
2620
2676
|
* ```
|
|
2621
2677
|
*/
|
|
2678
|
+
getAdvancedOpportunities(chainId?: number, asset?: string, status?: "live" | "not_live"): Promise<OpportunitiesResponse>;
|
|
2679
|
+
/**
|
|
2680
|
+
* @deprecated Use {@link getAdvancedOpportunities} instead. Retains the
|
|
2681
|
+
* pre-rename `getAsyncOpportunities` entry point; same HTTP request as
|
|
2682
|
+
* advanced, with legacy `strategyType: "yieldmaxxing"` on the response and rows.
|
|
2683
|
+
*/
|
|
2622
2684
|
getAsyncOpportunities(chainId?: number, asset?: string, status?: "live" | "not_live"): Promise<OpportunitiesResponse>;
|
|
2623
2685
|
/**
|
|
2624
2686
|
* Get active conservative opportunities (status = "live") with risk and utilization data
|
|
@@ -3279,4 +3341,4 @@ declare const ERC7579_LAUNCHPAD_ADDRESS: Address$1;
|
|
|
3279
3341
|
*/
|
|
3280
3342
|
declare const POOL_MODULE_ADDRESSES: readonly Address$1[];
|
|
3281
3343
|
|
|
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 };
|
|
3344
|
+
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 };
|