Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions typescript/.changeset/beige-pants-make.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@coinbase/agentkit": patch
---

Updated Vaults.fyi provider to use the v2 API
40 changes: 30 additions & 10 deletions typescript/agentkit/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -575,25 +575,45 @@ const agent = createReactAgent({
<td width="768">Gets historical APY and TVL data for a specific vault over time.</td>
</tr>
<tr>
<td width="200"><code>deposit</code></td>
<td width="768">Deposits assets into a selected vault to start earning yield.</td>
<td width="200"><code>transaction_context</code></td>
<td width="768">Gets the available balances and operations for a given vault.</td>
</tr>
<tr>
<td width="200"><code>redeem</code></td>
<td width="768">Redeems assets from a vault to withdraw principal and earned yield.</td>
</tr>
<tr>
<td width="200"><code>claim</code></td>
<td width="768">Claims rewards from a vault without withdrawing the principal deposit.</td>
<td width="200"><code>execute_step</code></td>
<td width="768">Executes an operation on a given vault.</td>
</tr>
<tr>
<td width="200"><code>balances</code></td>
<td width="768">Retrieves user's native token and ERC20 token balances across supported networks.</td>
<td width="200"><code>user_idle_assets</code></td>
<td width="768">Gets the user's idle assets.</td>
</tr>
<tr>
<td width="200"><code>positions</code></td>
<td width="768">Gets user's current positions in vaults including balances and unclaimed rewards.</td>
</tr>
<tr>
<td width="200"><code>rewards_context</code></td>
<td width="768">Gets the available rewards for a given user.</td>
</tr>
<tr>
<td width="200"><code>claim_rewards</code></td>
<td width="768">Claims requested rewards for a given user.</td>
</tr>
<tr>
<td width="200"><code>benchmark_apy</code></td>
<td width="768">Gets the benchmark APY.</td>
</tr>
<tr>
<td width="200"><code>historical_benchmark_apy</code></td>
<td width="768">Gets the historical benchmark APY.</td>
</tr>
<tr>
<td width="200"><code>total_vault_returns</code></td>
<td width="768">Gets the total returns for a given vault.</td>
</tr>
<tr>
<td width="200"><code>user_events</code></td>
<td width="768">Gets the user's events for a given vault.</td>
</tr>
</table>
</details>
<details>
Expand Down
5 changes: 3 additions & 2 deletions typescript/agentkit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,14 @@
"@coinbase/cdp-sdk": "^1.38.0",
"@coinbase/coinbase-sdk": "^0.20.0",
"@coinbase/x402": "^0.6.3",
"@ensofinance/sdk": "^2.0.6",
"@jup-ag/api": "^6.0.39",
"@privy-io/public-api": "2.18.5",
"@privy-io/server-auth": "1.18.4",
"@solana/kit": "^2.1.1",
"@solana/spl-token": "^0.4.12",
"@solana/web3.js": "^1.98.1",
"@vaultsfyi/sdk": "^2.1.9",
"@zerodev/ecdsa-validator": "^5.4.5",
"@zerodev/intent": "^0.0.24",
"@zerodev/sdk": "^5.4.28",
Expand All @@ -67,9 +69,8 @@
"opensea-js": "^7.1.18",
"reflect-metadata": "^0.2.2",
"sushi": "6.2.1",
"@ensofinance/sdk": "^2.0.6",
"twitter-api-v2": "^1.18.2",
"viem": "^2.22.16",
"viem": "2.38.3",
"x402": "^0.6.0",
"x402-axios": "^0.6.0",
"zod": "^3.23.8"
Expand Down
23 changes: 12 additions & 11 deletions typescript/agentkit/src/action-providers/vaultsfyi/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,24 +15,25 @@ vaultsfyi/
├── schemas.ts # Action schemas and types
├── constants.ts # Provider constants
├── utils.ts # Provider utility functions
├── /api
├── actions.ts # vaultsfyi transactional API actions
├── types.ts # vaultsfyi API types
├── vaults.ts # vaults list getter
├── historicalData.ts # vaults historical data getter
├── sdk.ts # vaultsfyi SDK client
├── index.ts # Package exports
└── README.md # Documentation (this file)
```

## Actions
- `vaults`: Get the list of available vaults on vaultsfyi.
- `vault_details`: Get details of a specific vault.
- `historical_data`: Get historical data for a specific vault.
- `deposit`: Deposit assets into a vault.
- `redeem`: Redeem assets from a vault.
- `claim`: Claim rewards from a vault.
- `user-wallet-balances`: Get the user's native token and compatible ERC20 token balances.
- `positions`: Get the user's positions in vaults.
- `vault_historical_data`: Get historical data for a specific vault.
- `transaction_context`: Get the transaction context for a vault.
- `execute_step`: Execute a step in a vault.
- `user_idle_assets`: Get the user's idle assets.
- `positions`: Get the user's positions.
- `rewards_context`: Get the rewards context.
- `claim_rewards`: Claim rewards.
- `benchmark_apy`: Get the benchmark APY.
- `historical_benchmark_apy`: Get the historical benchmark APY.
- `total_vault_returns`: Get the total returns for a vault.
- `user_events`: Get the user's events for a vault.

## Network Support
This provider supports selected evm networks.
Expand Down

This file was deleted.

This file was deleted.

36 changes: 0 additions & 36 deletions typescript/agentkit/src/action-providers/vaultsfyi/api/types.ts

This file was deleted.

Loading
Loading