@zyfai/sdk 0.12.0 → 1.0.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 +47 -45
- package/dist/index.d.mts +43 -14
- package/dist/index.d.ts +43 -14
- package/dist/index.js +204 -62
- package/dist/index.mjs +181 -34
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -163,8 +163,8 @@ console.log("Is Deployed:", walletInfo.isDeployed);
|
|
|
163
163
|
// Deploy the Safe with default conservative strategy (automatically checks if already deployed)
|
|
164
164
|
const result = await sdk.deploySafe(userAddress, 8453);
|
|
165
165
|
|
|
166
|
-
// Or deploy with
|
|
167
|
-
const
|
|
166
|
+
// Or deploy with balance strategy
|
|
167
|
+
const balanceResult = await sdk.deploySafe(userAddress, 8453, "balanced");
|
|
168
168
|
|
|
169
169
|
if (result.success) {
|
|
170
170
|
console.log("Safe Address:", result.safeAddress);
|
|
@@ -178,8 +178,8 @@ if (result.success) {
|
|
|
178
178
|
**Strategy Options:**
|
|
179
179
|
|
|
180
180
|
- `"conservative"` (default): Low-risk, stable yield strategy
|
|
181
|
-
- `"
|
|
182
|
-
- `"
|
|
181
|
+
- `"balanced"`: High-risk, high-reward strategy
|
|
182
|
+
- `"advanced"`: Balance plus protocols with delayed withdrawals — see [Strategies](#strategies)
|
|
183
183
|
|
|
184
184
|
### 2. Multi-Chain Support
|
|
185
185
|
|
|
@@ -335,8 +335,8 @@ Deploy a Safe smart wallet for a user. **Deployment is handled by the backend AP
|
|
|
335
335
|
- `chainId`: Target chain ID
|
|
336
336
|
- `strategy`: Optional strategy selection (default: `"conservative"`)
|
|
337
337
|
- `"conservative"`: Low-risk, stable yield strategy (default)
|
|
338
|
-
- `"
|
|
339
|
-
- `"
|
|
338
|
+
- `"balanced"`: High-risk, high-reward strategy
|
|
339
|
+
- `"advanced"`: Balance plus protocols with delayed withdrawals — see [Strategies](#strategies)
|
|
340
340
|
|
|
341
341
|
**Returns:**
|
|
342
342
|
|
|
@@ -447,15 +447,15 @@ const sent = await sdk.sendDeposit(
|
|
|
447
447
|
// Await custody credit only when this UI needs the completion state.
|
|
448
448
|
const credited = await sdk.waitForDepositCredit(sent.registration.id, 8453);
|
|
449
449
|
|
|
450
|
-
// First deposit with
|
|
451
|
-
const
|
|
450
|
+
// First deposit with balance strategy (protocol patching)
|
|
451
|
+
const balanceSent = await sdk.sendDeposit(
|
|
452
452
|
userAddress,
|
|
453
453
|
8453,
|
|
454
454
|
"10000000",
|
|
455
455
|
"USDC",
|
|
456
|
-
"
|
|
456
|
+
"balanced",
|
|
457
457
|
);
|
|
458
|
-
await sdk.waitForDepositCredit(
|
|
458
|
+
await sdk.waitForDepositCredit(balanceSent.registration.id, 8453);
|
|
459
459
|
|
|
460
460
|
if (credited.status === "credited") {
|
|
461
461
|
console.log("Deposit credited!");
|
|
@@ -486,11 +486,11 @@ if (credited.status === "credited") {
|
|
|
486
486
|
- `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
487
|
- `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
488
|
- If first-deposit protocol patching fails, the transfer still runs. `sendDeposit()` throws if deposit registration is not accepted; retry `logDeposit()` after `connectAccount()`.
|
|
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 `"
|
|
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, `"balanced"` or `"advanced"`) — same role as the former `deploySafe` strategy argument. Later deposits skip this.
|
|
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 `"advanced"` 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
491
|
|
|
492
492
|
```typescript
|
|
493
|
-
await sdk.setStrategyWithProtocols({ strategy: "
|
|
493
|
+
await sdk.setStrategyWithProtocols({ strategy: "advanced" });
|
|
494
494
|
```
|
|
495
495
|
|
|
496
496
|
#### Deposit With an External Wallet (Sponsored Transactions)
|
|
@@ -598,7 +598,7 @@ if (result.success) {
|
|
|
598
598
|
- Check the `message` field for the withdrawal status
|
|
599
599
|
- Use `getHistory()` to track the withdrawal transaction once it's processed
|
|
600
600
|
|
|
601
|
-
**Delayed withdrawals (`
|
|
601
|
+
**Delayed withdrawals (`advanced` strategy)**
|
|
602
602
|
|
|
603
603
|
Positions held in protocols with asynchronous withdrawals (Ipor, Superform)
|
|
604
604
|
cannot be exited on demand. For those the backend sends the immediately
|
|
@@ -656,28 +656,30 @@ const redeeming = (portfolio.pendingAsyncWithdrawals ?? []).some(
|
|
|
656
656
|
|
|
657
657
|
### Claim rZFI Rewards
|
|
658
658
|
|
|
659
|
-
rZFI accrues to the user's Safe on Base
|
|
660
|
-
|
|
661
|
-
|
|
659
|
+
rZFI accrues to the user's Safe on Base. Build the claim as an unsigned
|
|
660
|
+
transaction and sign and send it with your own signer, like
|
|
661
|
+
`buildDepositTransfer`:
|
|
662
662
|
|
|
663
663
|
```typescript
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
// prepared.claimableAmount (wei), prepared.userOpHashToSign
|
|
664
|
+
const tx = await sdk.buildRzfiClaimTransaction(userAddress);
|
|
665
|
+
// tx.claimableAmount (wei), tx.to, tx.data, tx.value
|
|
667
666
|
|
|
668
|
-
//
|
|
669
|
-
const
|
|
667
|
+
// Send from userAddress on Base (8453). Any other sender reverts.
|
|
668
|
+
const hash = await walletClient.sendTransaction({
|
|
670
669
|
account: userAddress,
|
|
671
|
-
|
|
670
|
+
chain: base,
|
|
671
|
+
to: tx.to,
|
|
672
|
+
data: tx.data,
|
|
673
|
+
value: BigInt(tx.value),
|
|
672
674
|
});
|
|
673
|
-
|
|
674
|
-
// 3. Submit within 5 minutes
|
|
675
|
-
const { txHash } = await sdk.submitRzfiClaim(userAddress, signature);
|
|
676
675
|
```
|
|
677
676
|
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
677
|
+
The sender pays the gas (about 250k on Base). It throws when there is nothing
|
|
678
|
+
to claim, or asks you to retry while Merkl's reward tree is updating on-chain.
|
|
679
|
+
|
|
680
|
+
For a gas-sponsored claim, use `prepareRzfiClaim(userAddress)`, sign the
|
|
681
|
+
returned `userOpHashToSign` (personal_sign of the raw hash), then
|
|
682
|
+
`submitRzfiClaim(userAddress, signature)`.
|
|
681
683
|
|
|
682
684
|
### 6. Get Available Protocols
|
|
683
685
|
|
|
@@ -750,7 +752,7 @@ it from exactly two sources: the underlying amount of every deployed position,
|
|
|
750
752
|
and the idle balances sitting in the Safe. Anything that is in neither place is
|
|
751
753
|
missing from it.
|
|
752
754
|
|
|
753
|
-
That gap is real under the `
|
|
755
|
+
That gap is real under the `advanced` strategy. When the agent requests a
|
|
754
756
|
redemption from a delayed-withdrawal protocol, the position leaves the snapshot
|
|
755
757
|
immediately while the funds stay in the vault for a day or three. During that
|
|
756
758
|
window they are in no balance field — only in `pendingAsyncWithdrawals`.
|
|
@@ -837,7 +839,7 @@ const user = await sdk.getUserDetails();
|
|
|
837
839
|
console.log("Smart Wallet:", user.user.smartWallet);
|
|
838
840
|
console.log("Active Chains:", user.user.chains);
|
|
839
841
|
console.log("Active Protocols:", user.user.protocols);
|
|
840
|
-
console.log("Strategy:", user.user.strategy); // "conservative" | "
|
|
842
|
+
console.log("Strategy:", user.user.strategy); // "conservative" | "balanced" | "advanced"
|
|
841
843
|
console.log("Has Active Session:", user.user.hasActiveSessionKey);
|
|
842
844
|
|
|
843
845
|
// Feature flags
|
|
@@ -858,7 +860,7 @@ console.log("Wallet Type:", user.user.walletType);
|
|
|
858
860
|
|
|
859
861
|
**Available Fields:**
|
|
860
862
|
- **Core Info**: `id`, `address`, `smartWallet`, `chains`, `protocols`
|
|
861
|
-
- **Strategy**: `strategy` (conservative,
|
|
863
|
+
- **Strategy**: `strategy` (conservative, balance or grow)
|
|
862
864
|
- **Session**: `hasActiveSessionKey` (boolean)
|
|
863
865
|
- **Features**: `autocompounding`, `autoSelectProtocols`, `omniAccount`, `crosschainStrategy`, `executorProxy`, `splitting`, `minSplits`
|
|
864
866
|
- **Optional**: `email`, `telegramId`, `agentName`, `walletType`, `customization`, `registered`
|
|
@@ -1118,16 +1120,16 @@ asyncOpps.data.forEach((o) => {
|
|
|
1118
1120
|
#### Strategies
|
|
1119
1121
|
|
|
1120
1122
|
Every method that takes a `strategy` accepts one of three values. Each tier is a
|
|
1121
|
-
superset of the previous one:
|
|
1122
|
-
and
|
|
1123
|
+
superset of the previous one: a `balanced`-tier user also gets conservative pools,
|
|
1124
|
+
and an `advanced`-tier user gets everything.
|
|
1123
1125
|
|
|
1124
1126
|
| Strategy | Backend value | Pools unlocked |
|
|
1125
1127
|
| --- | --- | --- |
|
|
1126
1128
|
| `conservative` (default) | `safe_strategy` | Low-risk pools only |
|
|
1127
|
-
| `
|
|
1128
|
-
| `
|
|
1129
|
+
| `balanced` | `degen_strategy` | Conservative + higher-risk pools |
|
|
1130
|
+
| `advanced` | `async_strategy` | Balance + pools with **delayed withdrawals** |
|
|
1129
1131
|
|
|
1130
|
-
`
|
|
1132
|
+
`advanced` is the only strategy that changes how withdrawals behave. It
|
|
1131
1133
|
unlocks protocols (Ipor, Superform) that cannot be exited on demand: a
|
|
1132
1134
|
redemption has to be requested, then claimed once the protocol releases the
|
|
1133
1135
|
funds — roughly a day on Ipor, three on Superform. The agent handles both steps,
|
|
@@ -1144,12 +1146,12 @@ entry in `getManagedAssets()` when `asset` is omitted:
|
|
|
1144
1146
|
|
|
1145
1147
|
```typescript
|
|
1146
1148
|
const profiles = await sdk.setStrategyWithProtocols({
|
|
1147
|
-
strategy: "
|
|
1149
|
+
strategy: "advanced",
|
|
1148
1150
|
});
|
|
1149
1151
|
// Or a single asset:
|
|
1150
1152
|
const profile = await sdk.setAssetStrategy({
|
|
1151
1153
|
asset: "NVDAc",
|
|
1152
|
-
strategy: "
|
|
1154
|
+
strategy: "advanced",
|
|
1153
1155
|
});
|
|
1154
1156
|
console.log(profile.protocols); // Ipor + Superform
|
|
1155
1157
|
```
|
|
@@ -1171,8 +1173,8 @@ resuming after `pauseAgent`.
|
|
|
1171
1173
|
**8 decimals, Base only**. It behaves like any other asset — same `sendDeposit`,
|
|
1172
1174
|
`withdrawFunds` and `getPortfolio` — with three differences worth planning for.
|
|
1173
1175
|
|
|
1174
|
-
**It only exists under `
|
|
1175
|
-
and Superform, are both async-only, so a `conservative` or `
|
|
1176
|
+
**It only exists under `advanced`.** The two protocols that hold it, Ipor
|
|
1177
|
+
and Superform, are both async-only, so a `conservative` or `balanced` profile
|
|
1176
1178
|
resolves to zero protocols for NVDAc and the agent has nothing to deploy into.
|
|
1177
1179
|
Every NVDAc withdrawal is therefore a delayed one — read
|
|
1178
1180
|
[Total balance](#total-balance) before showing a balance.
|
|
@@ -1189,7 +1191,7 @@ unaffected. `getPortfolio` returns ready-to-display copy in
|
|
|
1189
1191
|
```typescript
|
|
1190
1192
|
// Existing account: one call sets the strategy and selects the protocols.
|
|
1191
1193
|
// Chains default to Base, the only one NVDAc exists on.
|
|
1192
|
-
await sdk.setAssetStrategy({ asset: "NVDAc", strategy: "
|
|
1194
|
+
await sdk.setAssetStrategy({ asset: "NVDAc", strategy: "advanced" });
|
|
1193
1195
|
|
|
1194
1196
|
// 1 NVDAc = 100000000 (8 decimals). Must leave at least ~$10 in the Safe.
|
|
1195
1197
|
const sentNvda = await sdk.sendDeposit(userAddress, 8453, "100000000", "NVDAc");
|
|
@@ -1284,7 +1286,7 @@ All examples are available in the `examples/` directory:
|
|
|
1284
1286
|
|
|
1285
1287
|
### Opportunities & Rebalancing
|
|
1286
1288
|
|
|
1287
|
-
21. **`get-opportunities.ts`** - Get conservative and
|
|
1289
|
+
21. **`get-opportunities.ts`** - Get conservative and balance yield opportunities
|
|
1288
1290
|
22. **`get-rebalance-info.ts`** - Get rebalance events and frequency tier
|
|
1289
1291
|
|
|
1290
1292
|
### Premium Features
|
|
@@ -1334,8 +1336,8 @@ async function main() {
|
|
|
1334
1336
|
// Deploy Safe with default conservative strategy
|
|
1335
1337
|
const result = await sdk.deploySafe(userAddress, 8453);
|
|
1336
1338
|
|
|
1337
|
-
// Or deploy with
|
|
1338
|
-
// const result = await sdk.deploySafe(userAddress, 8453, "
|
|
1339
|
+
// Or deploy with balance strategy
|
|
1340
|
+
// const result = await sdk.deploySafe(userAddress, 8453, "balanced");
|
|
1339
1341
|
|
|
1340
1342
|
if (result.success) {
|
|
1341
1343
|
console.log("✅ Successfully deployed Safe");
|
package/dist/index.d.mts
CHANGED
|
@@ -10,10 +10,10 @@ type Address = `0x${string}`;
|
|
|
10
10
|
type Hex = `0x${string}`;
|
|
11
11
|
/**
|
|
12
12
|
* Public strategy names.
|
|
13
|
-
* `
|
|
13
|
+
* `advanced` unlocks protocols with asynchronous (delayed) withdrawals —
|
|
14
14
|
* see `PortfolioDetailed.pendingAsyncWithdrawals`.
|
|
15
15
|
*/
|
|
16
|
-
type Strategy = "conservative" | "
|
|
16
|
+
type Strategy = "conservative" | "balanced" | "advanced";
|
|
17
17
|
/** Public asset symbols supported by the SDK */
|
|
18
18
|
type SupportedAsset = "USDC" | "WETH" | "EURC" | "USDT" | "PYUSD" | "NVDAc";
|
|
19
19
|
/** Optional per-chain RPC URLs for on-chain reads and writes. */
|
|
@@ -794,6 +794,17 @@ interface MerklCampaign {
|
|
|
794
794
|
/** True while now is between startDate and endDate. */
|
|
795
795
|
isActive: boolean;
|
|
796
796
|
}
|
|
797
|
+
/** Unsigned rZFI claim from {@link ZyfaiSDK.buildRzfiClaimTransaction}. */
|
|
798
|
+
interface RzfiClaimTransaction {
|
|
799
|
+
/** Safe that receives the rZFI. */
|
|
800
|
+
safeAddress: Address;
|
|
801
|
+
chainId: 8453;
|
|
802
|
+
/** rZFI being claimed, in wei (18 decimals). */
|
|
803
|
+
claimableAmount: string;
|
|
804
|
+
to: Address;
|
|
805
|
+
data: Hex;
|
|
806
|
+
value: "0";
|
|
807
|
+
}
|
|
797
808
|
/**
|
|
798
809
|
* Two-step rZFI claim state from {@link ZyfaiSDK.prepareRzfiClaim} and
|
|
799
810
|
* {@link ZyfaiSDK.submitRzfiClaim}.
|
|
@@ -1537,7 +1548,7 @@ declare class ZyfaiSDK {
|
|
|
1537
1548
|
*
|
|
1538
1549
|
* @param userAddress - User's EOA address (the connected EOA, not the smart wallet address)
|
|
1539
1550
|
* @param chainId - Target chain ID
|
|
1540
|
-
* @param strategy - Optional strategy selection: "conservative" (default), "
|
|
1551
|
+
* @param strategy - Optional strategy selection: "conservative" (default), "balanced" or "advanced"
|
|
1541
1552
|
* @param createSessionKey - If true, automatically creates a session key after deployment (default: false)
|
|
1542
1553
|
* @returns Deployment response with Safe address and transaction hash
|
|
1543
1554
|
*
|
|
@@ -1638,11 +1649,11 @@ declare class ZyfaiSDK {
|
|
|
1638
1649
|
*
|
|
1639
1650
|
* @example
|
|
1640
1651
|
* ```typescript
|
|
1641
|
-
* // NVDAc only lives in async protocols, so it needs "
|
|
1652
|
+
* // NVDAc only lives in async protocols, so it needs "advanced".
|
|
1642
1653
|
* // Chains default to Base, the only chain it exists on.
|
|
1643
1654
|
* const profile = await sdk.setAssetStrategy({
|
|
1644
1655
|
* asset: "NVDAc",
|
|
1645
|
-
* strategy: "
|
|
1656
|
+
* strategy: "advanced",
|
|
1646
1657
|
* });
|
|
1647
1658
|
* console.log(profile.protocols); // Ipor + Superform
|
|
1648
1659
|
* ```
|
|
@@ -1656,7 +1667,7 @@ declare class ZyfaiSDK {
|
|
|
1656
1667
|
* Apply a strategy and auto-select matching protocols for one or all managed
|
|
1657
1668
|
* assets ({@link getManagedAssets}). Prefer this over
|
|
1658
1669
|
* {@link updateUserProfile} when changing strategy so protocols stay aligned
|
|
1659
|
-
* with the tier (including `
|
|
1670
|
+
* with the tier (including `advanced` async venues).
|
|
1660
1671
|
*
|
|
1661
1672
|
* @group Portfolio and execution
|
|
1662
1673
|
*/
|
|
@@ -1939,6 +1950,24 @@ declare class ZyfaiSDK {
|
|
|
1939
1950
|
data: Hex;
|
|
1940
1951
|
value: "0";
|
|
1941
1952
|
}>;
|
|
1953
|
+
/**
|
|
1954
|
+
* Build the rZFI claim as an unsigned transaction for your own signer.
|
|
1955
|
+
*
|
|
1956
|
+
* @remarks
|
|
1957
|
+
* Same pattern as {@link ZyfaiSDK.buildDepositTransfer}: sign and send
|
|
1958
|
+
* `{ to, data, value }` from `userAddress` on Base (chain 8453). It must be
|
|
1959
|
+
* sent by `userAddress` itself; any other sender reverts. The sender pays the
|
|
1960
|
+
* gas. Claims all unclaimed rZFI into the user's Safe.
|
|
1961
|
+
*
|
|
1962
|
+
* @group Rewards
|
|
1963
|
+
*
|
|
1964
|
+
* @param userAddress - Owner EOA, which must send the transaction
|
|
1965
|
+
* @returns Safe address, claimable amount, and the transaction to send
|
|
1966
|
+
*
|
|
1967
|
+
* @throws If there is no rZFI to claim, the reward tree is updating (retry
|
|
1968
|
+
* later), or `userAddress` cannot execute the Safe alone (not an owner, or threshold above 1)
|
|
1969
|
+
*/
|
|
1970
|
+
buildRzfiClaimTransaction(userAddress: string): Promise<RzfiClaimTransaction>;
|
|
1942
1971
|
/**
|
|
1943
1972
|
* Prepare a gas-sponsored rZFI claim into the user's Safe on Base.
|
|
1944
1973
|
*
|
|
@@ -2147,7 +2176,7 @@ declare class ZyfaiSDK {
|
|
|
2147
2176
|
* Note: The withdrawal is processed asynchronously, so txHash may not be immediately available
|
|
2148
2177
|
* Funds are always withdrawn to the Safe owner's address (userAddress)
|
|
2149
2178
|
*
|
|
2150
|
-
* **Delayed withdrawals.** Positions held under the `"
|
|
2179
|
+
* **Delayed withdrawals.** Positions held under the `"advanced"`
|
|
2151
2180
|
* strategy sit in protocols that cannot be exited on demand. For those the
|
|
2152
2181
|
* backend transfers the immediately available portion, then queues a
|
|
2153
2182
|
* redemption for the rest and forwards the funds to the EOA once the
|
|
@@ -2261,7 +2290,7 @@ declare class ZyfaiSDK {
|
|
|
2261
2290
|
* a snapshot, so net values can differ slightly from a fully live calc.
|
|
2262
2291
|
*
|
|
2263
2292
|
* **Total balance.** `portfolioByAssetType` sums deployed positions and idle
|
|
2264
|
-
* Safe balances, and nothing else. Under the `"
|
|
2293
|
+
* Safe balances, and nothing else. Under the `"advanced"` strategy a
|
|
2265
2294
|
* redemption in flight has already left its position and has not landed in
|
|
2266
2295
|
* the Safe yet, so its funds appear in no balance field at all. That makes
|
|
2267
2296
|
* two distinct numbers:
|
|
@@ -2286,7 +2315,7 @@ declare class ZyfaiSDK {
|
|
|
2286
2315
|
* @group Portfolio and execution
|
|
2287
2316
|
*
|
|
2288
2317
|
* @remarks Data API portfolio endpoint. See {@link PortfolioDetailed.pendingAsyncWithdrawals}
|
|
2289
|
-
* when using {@link Strategy |
|
|
2318
|
+
* when using {@link Strategy | grow}.
|
|
2290
2319
|
*
|
|
2291
2320
|
* @param userAddress - User's EOA address
|
|
2292
2321
|
* @returns Portfolio with optional fee-adjusted balance fields
|
|
@@ -2368,7 +2397,7 @@ declare class ZyfaiSDK {
|
|
|
2368
2397
|
*
|
|
2369
2398
|
* @param crossChain - Whether to get cross-chain APY (true = omni account, false = simple account)
|
|
2370
2399
|
* @param days - Time period: 7, 14, or 30
|
|
2371
|
-
* @param strategy - Strategy type: "conservative" (default), "
|
|
2400
|
+
* @param strategy - Strategy type: "conservative" (default), "balanced" or "advanced"
|
|
2372
2401
|
* @param chainId - Optional chain ID filter
|
|
2373
2402
|
* @param tokenSymbol - Optional token symbol filter (e.g. "USDC", "WETH", "WBTC")
|
|
2374
2403
|
* @returns APY per strategy for a specific chain
|
|
@@ -2574,15 +2603,15 @@ declare class ZyfaiSDK {
|
|
|
2574
2603
|
*/
|
|
2575
2604
|
getAggressiveOpportunities(chainId?: number, asset?: string, status?: "live" | "not_live"): Promise<OpportunitiesResponse>;
|
|
2576
2605
|
/**
|
|
2577
|
-
* Get
|
|
2578
|
-
* `"
|
|
2606
|
+
* Get grow opportunities — pools reachable only with the
|
|
2607
|
+
* `"advanced"` strategy, including protocols whose withdrawals are
|
|
2579
2608
|
* asynchronous (Ipor, Superform). Exiting these pools takes about a day
|
|
2580
2609
|
* on Ipor and three on Superform; track the redemption through
|
|
2581
2610
|
* `getPortfolio().portfolio.pendingAsyncWithdrawals`.
|
|
2582
2611
|
*
|
|
2583
2612
|
* @param chainId - Optional chain ID filter
|
|
2584
2613
|
* @param asset - Optional asset filter (e.g. "USDC", "WETH")
|
|
2585
|
-
* @returns List of
|
|
2614
|
+
* @returns List of grow opportunities
|
|
2586
2615
|
*
|
|
2587
2616
|
* @example
|
|
2588
2617
|
* ```typescript
|
|
@@ -3250,4 +3279,4 @@ declare const ERC7579_LAUNCHPAD_ADDRESS: Address$1;
|
|
|
3250
3279
|
*/
|
|
3251
3280
|
declare const POOL_MODULE_ADDRESSES: readonly Address$1[];
|
|
3252
3281
|
|
|
3253
|
-
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, 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 };
|
|
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 };
|
package/dist/index.d.ts
CHANGED
|
@@ -10,10 +10,10 @@ type Address = `0x${string}`;
|
|
|
10
10
|
type Hex = `0x${string}`;
|
|
11
11
|
/**
|
|
12
12
|
* Public strategy names.
|
|
13
|
-
* `
|
|
13
|
+
* `advanced` unlocks protocols with asynchronous (delayed) withdrawals —
|
|
14
14
|
* see `PortfolioDetailed.pendingAsyncWithdrawals`.
|
|
15
15
|
*/
|
|
16
|
-
type Strategy = "conservative" | "
|
|
16
|
+
type Strategy = "conservative" | "balanced" | "advanced";
|
|
17
17
|
/** Public asset symbols supported by the SDK */
|
|
18
18
|
type SupportedAsset = "USDC" | "WETH" | "EURC" | "USDT" | "PYUSD" | "NVDAc";
|
|
19
19
|
/** Optional per-chain RPC URLs for on-chain reads and writes. */
|
|
@@ -794,6 +794,17 @@ interface MerklCampaign {
|
|
|
794
794
|
/** True while now is between startDate and endDate. */
|
|
795
795
|
isActive: boolean;
|
|
796
796
|
}
|
|
797
|
+
/** Unsigned rZFI claim from {@link ZyfaiSDK.buildRzfiClaimTransaction}. */
|
|
798
|
+
interface RzfiClaimTransaction {
|
|
799
|
+
/** Safe that receives the rZFI. */
|
|
800
|
+
safeAddress: Address;
|
|
801
|
+
chainId: 8453;
|
|
802
|
+
/** rZFI being claimed, in wei (18 decimals). */
|
|
803
|
+
claimableAmount: string;
|
|
804
|
+
to: Address;
|
|
805
|
+
data: Hex;
|
|
806
|
+
value: "0";
|
|
807
|
+
}
|
|
797
808
|
/**
|
|
798
809
|
* Two-step rZFI claim state from {@link ZyfaiSDK.prepareRzfiClaim} and
|
|
799
810
|
* {@link ZyfaiSDK.submitRzfiClaim}.
|
|
@@ -1537,7 +1548,7 @@ declare class ZyfaiSDK {
|
|
|
1537
1548
|
*
|
|
1538
1549
|
* @param userAddress - User's EOA address (the connected EOA, not the smart wallet address)
|
|
1539
1550
|
* @param chainId - Target chain ID
|
|
1540
|
-
* @param strategy - Optional strategy selection: "conservative" (default), "
|
|
1551
|
+
* @param strategy - Optional strategy selection: "conservative" (default), "balanced" or "advanced"
|
|
1541
1552
|
* @param createSessionKey - If true, automatically creates a session key after deployment (default: false)
|
|
1542
1553
|
* @returns Deployment response with Safe address and transaction hash
|
|
1543
1554
|
*
|
|
@@ -1638,11 +1649,11 @@ declare class ZyfaiSDK {
|
|
|
1638
1649
|
*
|
|
1639
1650
|
* @example
|
|
1640
1651
|
* ```typescript
|
|
1641
|
-
* // NVDAc only lives in async protocols, so it needs "
|
|
1652
|
+
* // NVDAc only lives in async protocols, so it needs "advanced".
|
|
1642
1653
|
* // Chains default to Base, the only chain it exists on.
|
|
1643
1654
|
* const profile = await sdk.setAssetStrategy({
|
|
1644
1655
|
* asset: "NVDAc",
|
|
1645
|
-
* strategy: "
|
|
1656
|
+
* strategy: "advanced",
|
|
1646
1657
|
* });
|
|
1647
1658
|
* console.log(profile.protocols); // Ipor + Superform
|
|
1648
1659
|
* ```
|
|
@@ -1656,7 +1667,7 @@ declare class ZyfaiSDK {
|
|
|
1656
1667
|
* Apply a strategy and auto-select matching protocols for one or all managed
|
|
1657
1668
|
* assets ({@link getManagedAssets}). Prefer this over
|
|
1658
1669
|
* {@link updateUserProfile} when changing strategy so protocols stay aligned
|
|
1659
|
-
* with the tier (including `
|
|
1670
|
+
* with the tier (including `advanced` async venues).
|
|
1660
1671
|
*
|
|
1661
1672
|
* @group Portfolio and execution
|
|
1662
1673
|
*/
|
|
@@ -1939,6 +1950,24 @@ declare class ZyfaiSDK {
|
|
|
1939
1950
|
data: Hex;
|
|
1940
1951
|
value: "0";
|
|
1941
1952
|
}>;
|
|
1953
|
+
/**
|
|
1954
|
+
* Build the rZFI claim as an unsigned transaction for your own signer.
|
|
1955
|
+
*
|
|
1956
|
+
* @remarks
|
|
1957
|
+
* Same pattern as {@link ZyfaiSDK.buildDepositTransfer}: sign and send
|
|
1958
|
+
* `{ to, data, value }` from `userAddress` on Base (chain 8453). It must be
|
|
1959
|
+
* sent by `userAddress` itself; any other sender reverts. The sender pays the
|
|
1960
|
+
* gas. Claims all unclaimed rZFI into the user's Safe.
|
|
1961
|
+
*
|
|
1962
|
+
* @group Rewards
|
|
1963
|
+
*
|
|
1964
|
+
* @param userAddress - Owner EOA, which must send the transaction
|
|
1965
|
+
* @returns Safe address, claimable amount, and the transaction to send
|
|
1966
|
+
*
|
|
1967
|
+
* @throws If there is no rZFI to claim, the reward tree is updating (retry
|
|
1968
|
+
* later), or `userAddress` cannot execute the Safe alone (not an owner, or threshold above 1)
|
|
1969
|
+
*/
|
|
1970
|
+
buildRzfiClaimTransaction(userAddress: string): Promise<RzfiClaimTransaction>;
|
|
1942
1971
|
/**
|
|
1943
1972
|
* Prepare a gas-sponsored rZFI claim into the user's Safe on Base.
|
|
1944
1973
|
*
|
|
@@ -2147,7 +2176,7 @@ declare class ZyfaiSDK {
|
|
|
2147
2176
|
* Note: The withdrawal is processed asynchronously, so txHash may not be immediately available
|
|
2148
2177
|
* Funds are always withdrawn to the Safe owner's address (userAddress)
|
|
2149
2178
|
*
|
|
2150
|
-
* **Delayed withdrawals.** Positions held under the `"
|
|
2179
|
+
* **Delayed withdrawals.** Positions held under the `"advanced"`
|
|
2151
2180
|
* strategy sit in protocols that cannot be exited on demand. For those the
|
|
2152
2181
|
* backend transfers the immediately available portion, then queues a
|
|
2153
2182
|
* redemption for the rest and forwards the funds to the EOA once the
|
|
@@ -2261,7 +2290,7 @@ declare class ZyfaiSDK {
|
|
|
2261
2290
|
* a snapshot, so net values can differ slightly from a fully live calc.
|
|
2262
2291
|
*
|
|
2263
2292
|
* **Total balance.** `portfolioByAssetType` sums deployed positions and idle
|
|
2264
|
-
* Safe balances, and nothing else. Under the `"
|
|
2293
|
+
* Safe balances, and nothing else. Under the `"advanced"` strategy a
|
|
2265
2294
|
* redemption in flight has already left its position and has not landed in
|
|
2266
2295
|
* the Safe yet, so its funds appear in no balance field at all. That makes
|
|
2267
2296
|
* two distinct numbers:
|
|
@@ -2286,7 +2315,7 @@ declare class ZyfaiSDK {
|
|
|
2286
2315
|
* @group Portfolio and execution
|
|
2287
2316
|
*
|
|
2288
2317
|
* @remarks Data API portfolio endpoint. See {@link PortfolioDetailed.pendingAsyncWithdrawals}
|
|
2289
|
-
* when using {@link Strategy |
|
|
2318
|
+
* when using {@link Strategy | grow}.
|
|
2290
2319
|
*
|
|
2291
2320
|
* @param userAddress - User's EOA address
|
|
2292
2321
|
* @returns Portfolio with optional fee-adjusted balance fields
|
|
@@ -2368,7 +2397,7 @@ declare class ZyfaiSDK {
|
|
|
2368
2397
|
*
|
|
2369
2398
|
* @param crossChain - Whether to get cross-chain APY (true = omni account, false = simple account)
|
|
2370
2399
|
* @param days - Time period: 7, 14, or 30
|
|
2371
|
-
* @param strategy - Strategy type: "conservative" (default), "
|
|
2400
|
+
* @param strategy - Strategy type: "conservative" (default), "balanced" or "advanced"
|
|
2372
2401
|
* @param chainId - Optional chain ID filter
|
|
2373
2402
|
* @param tokenSymbol - Optional token symbol filter (e.g. "USDC", "WETH", "WBTC")
|
|
2374
2403
|
* @returns APY per strategy for a specific chain
|
|
@@ -2574,15 +2603,15 @@ declare class ZyfaiSDK {
|
|
|
2574
2603
|
*/
|
|
2575
2604
|
getAggressiveOpportunities(chainId?: number, asset?: string, status?: "live" | "not_live"): Promise<OpportunitiesResponse>;
|
|
2576
2605
|
/**
|
|
2577
|
-
* Get
|
|
2578
|
-
* `"
|
|
2606
|
+
* Get grow opportunities — pools reachable only with the
|
|
2607
|
+
* `"advanced"` strategy, including protocols whose withdrawals are
|
|
2579
2608
|
* asynchronous (Ipor, Superform). Exiting these pools takes about a day
|
|
2580
2609
|
* on Ipor and three on Superform; track the redemption through
|
|
2581
2610
|
* `getPortfolio().portfolio.pendingAsyncWithdrawals`.
|
|
2582
2611
|
*
|
|
2583
2612
|
* @param chainId - Optional chain ID filter
|
|
2584
2613
|
* @param asset - Optional asset filter (e.g. "USDC", "WETH")
|
|
2585
|
-
* @returns List of
|
|
2614
|
+
* @returns List of grow opportunities
|
|
2586
2615
|
*
|
|
2587
2616
|
* @example
|
|
2588
2617
|
* ```typescript
|
|
@@ -3250,4 +3279,4 @@ declare const ERC7579_LAUNCHPAD_ADDRESS: Address$1;
|
|
|
3250
3279
|
*/
|
|
3251
3280
|
declare const POOL_MODULE_ADDRESSES: readonly Address$1[];
|
|
3252
3281
|
|
|
3253
|
-
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, 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 };
|
|
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 };
|