@coinbase/agentkit 0.10.1 → 0.10.3
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 +179 -40
- package/dist/action-providers/across/schemas.d.ts +1 -1
- package/dist/action-providers/baseAccount/baseAccountActionProvider.d.ts +46 -0
- package/dist/action-providers/baseAccount/baseAccountActionProvider.js +404 -0
- package/dist/action-providers/baseAccount/baseAccountActionProvider.test.d.ts +1 -0
- package/dist/action-providers/baseAccount/baseAccountActionProvider.test.js +325 -0
- package/dist/action-providers/baseAccount/index.d.ts +2 -0
- package/dist/action-providers/baseAccount/index.js +18 -0
- package/dist/action-providers/baseAccount/schemas.d.ts +43 -0
- package/dist/action-providers/baseAccount/schemas.js +62 -0
- package/dist/action-providers/baseAccount/types.d.ts +17 -0
- package/dist/action-providers/baseAccount/types.js +2 -0
- package/dist/action-providers/baseAccount/utils.d.ts +14 -0
- package/dist/action-providers/baseAccount/utils.js +57 -0
- package/dist/action-providers/cdp/cdpApiActionProvider.js +7 -30
- package/dist/action-providers/cdp/cdpApiActionProvider.test.js +2 -8
- package/dist/action-providers/cdp/cdpEvmWalletActionProvider.js +2 -1
- package/dist/action-providers/cdp/cdpEvmWalletActionProvider.test.js +3 -1
- package/dist/action-providers/cdp/cdpSmartWalletActionProvider.js +2 -1
- package/dist/action-providers/cdp/cdpSmartWalletActionProvider.test.js +3 -1
- package/dist/action-providers/cdp/faucetUtils.d.ts +38 -0
- package/dist/action-providers/cdp/faucetUtils.js +81 -0
- package/dist/action-providers/cdp/swapUtils.d.ts +0 -9
- package/dist/action-providers/cdp/swapUtils.js +0 -36
- package/dist/action-providers/clanker/schemas.d.ts +6 -6
- package/dist/action-providers/enso/constants.d.ts +4 -0
- package/dist/action-providers/enso/constants.js +10 -0
- package/dist/action-providers/enso/ensoActionProvider.d.ts +34 -0
- package/dist/action-providers/enso/ensoActionProvider.js +125 -0
- package/dist/action-providers/enso/ensoActionProvider.test.d.ts +1 -0
- package/dist/action-providers/enso/ensoActionProvider.test.js +141 -0
- package/dist/action-providers/enso/index.d.ts +1 -0
- package/dist/action-providers/enso/index.js +17 -0
- package/dist/action-providers/enso/schemas.d.ts +23 -0
- package/dist/action-providers/enso/schemas.js +22 -0
- package/dist/action-providers/erc20/constants.d.ts +2 -0
- package/dist/action-providers/erc20/constants.js +2 -0
- package/dist/action-providers/erc20/erc20ActionProvider.d.ts +17 -1
- package/dist/action-providers/erc20/erc20ActionProvider.js +103 -1
- package/dist/action-providers/erc20/erc20ActionProvider.test.js +201 -0
- package/dist/action-providers/erc20/schemas.d.ts +29 -0
- package/dist/action-providers/erc20/schemas.js +34 -1
- package/dist/action-providers/flaunch/client_utils.d.ts +25 -0
- package/dist/action-providers/flaunch/client_utils.js +62 -0
- package/dist/action-providers/flaunch/constants.d.ts +41 -20
- package/dist/action-providers/flaunch/constants.js +111 -36
- package/dist/action-providers/flaunch/flaunchActionProvider.d.ts +4 -43
- package/dist/action-providers/flaunch/flaunchActionProvider.js +132 -200
- package/dist/action-providers/flaunch/flaunchActionProvider.test.js +108 -13
- package/dist/action-providers/flaunch/metadata_utils.d.ts +12 -0
- package/dist/action-providers/flaunch/metadata_utils.js +216 -0
- package/dist/action-providers/flaunch/schemas.d.ts +39 -3
- package/dist/action-providers/flaunch/schemas.js +62 -10
- package/dist/action-providers/flaunch/{utils.d.ts → swap_utils.d.ts} +17 -19
- package/dist/action-providers/flaunch/{utils.js → swap_utils.js} +137 -172
- package/dist/action-providers/index.d.ts +4 -1
- package/dist/action-providers/index.js +4 -1
- package/dist/action-providers/pyth/pythActionProvider.d.ts +2 -2
- package/dist/action-providers/pyth/pythActionProvider.js +83 -31
- package/dist/action-providers/pyth/pythActionProvider.test.js +178 -26
- package/dist/action-providers/pyth/schemas.d.ts +6 -0
- package/dist/action-providers/pyth/schemas.js +9 -1
- package/dist/action-providers/superfluid/superfluidSuperTokenCreatorActionProvider.js +5 -4
- package/dist/action-providers/superfluid/utils/parseLogs.d.ts +2 -1
- package/dist/action-providers/superfluid/utils/parseLogs.js +6 -3
- package/dist/action-providers/wallet/walletActionProvider.js +4 -1
- package/dist/action-providers/weth/constants.d.ts +0 -1
- package/dist/action-providers/weth/constants.js +1 -2
- package/dist/action-providers/weth/schemas.js +6 -2
- package/dist/action-providers/weth/wethActionProvider.d.ts +7 -0
- package/dist/action-providers/weth/wethActionProvider.js +57 -32
- package/dist/action-providers/weth/wethActionProvider.test.js +60 -11
- package/dist/action-providers/x402/schemas.d.ts +7 -0
- package/dist/action-providers/x402/schemas.js +11 -1
- package/dist/action-providers/x402/utils.d.ts +55 -0
- package/dist/action-providers/x402/utils.js +197 -0
- package/dist/action-providers/x402/x402ActionProvider.d.ts +14 -14
- package/dist/action-providers/x402/x402ActionProvider.js +179 -45
- package/dist/action-providers/x402/x402ActionProvider.test.js +162 -12
- package/dist/action-providers/yelay/constants.d.ts +64 -0
- package/dist/action-providers/yelay/constants.js +137 -0
- package/dist/action-providers/yelay/index.d.ts +2 -0
- package/dist/action-providers/yelay/index.js +18 -0
- package/dist/action-providers/yelay/schemas.d.ts +47 -0
- package/dist/action-providers/yelay/schemas.js +59 -0
- package/dist/action-providers/yelay/types.d.ts +24 -0
- package/dist/action-providers/yelay/types.js +2 -0
- package/dist/action-providers/yelay/yelayActionProvider.d.ts +70 -0
- package/dist/action-providers/yelay/yelayActionProvider.js +329 -0
- package/dist/action-providers/yelay/yelayActionProvider.test.d.ts +1 -0
- package/dist/action-providers/yelay/yelayActionProvider.test.js +302 -0
- package/dist/utils.d.ts +10 -0
- package/dist/utils.js +43 -13
- package/dist/wallet-providers/cdpEvmWalletProvider.d.ts +7 -0
- package/dist/wallet-providers/cdpEvmWalletProvider.js +14 -21
- package/dist/wallet-providers/cdpEvmWalletProvider.test.js +7 -0
- package/dist/wallet-providers/cdpSmartWalletProvider.d.ts +7 -0
- package/dist/wallet-providers/cdpSmartWalletProvider.js +23 -8
- package/dist/wallet-providers/cdpSmartWalletProvider.test.js +6 -10
- package/dist/wallet-providers/cdpSolanaWalletProvider.d.ts +14 -0
- package/dist/wallet-providers/cdpSolanaWalletProvider.js +39 -3
- package/dist/wallet-providers/cdpSolanaWalletProvider.test.js +16 -0
- package/dist/wallet-providers/evmWalletProvider.d.ts +9 -2
- package/dist/wallet-providers/evmWalletProvider.js +4 -0
- package/dist/wallet-providers/legacyCdpSmartWalletProvider.d.ts +9 -0
- package/dist/wallet-providers/legacyCdpSmartWalletProvider.js +11 -0
- package/dist/wallet-providers/legacyCdpWalletProvider.d.ts +7 -0
- package/dist/wallet-providers/legacyCdpWalletProvider.js +16 -0
- package/dist/wallet-providers/legacyCdpWalletProvider.test.js +6 -0
- package/dist/wallet-providers/privyEvmDelegatedEmbeddedWalletProvider.d.ts +7 -0
- package/dist/wallet-providers/privyEvmDelegatedEmbeddedWalletProvider.js +27 -0
- package/dist/wallet-providers/privyEvmWalletProvider.test.js +11 -0
- package/dist/wallet-providers/privySvmWalletProvider.d.ts +14 -0
- package/dist/wallet-providers/privySvmWalletProvider.js +17 -0
- package/dist/wallet-providers/privySvmWalletProvider.test.js +10 -0
- package/dist/wallet-providers/solanaKeypairWalletProvider.d.ts +14 -0
- package/dist/wallet-providers/solanaKeypairWalletProvider.js +17 -0
- package/dist/wallet-providers/svmWalletProvider.d.ts +34 -0
- package/dist/wallet-providers/svmWalletProvider.js +43 -0
- package/dist/wallet-providers/svmWalletProvider.test.js +10 -0
- package/dist/wallet-providers/viemWalletProvider.d.ts +8 -1
- package/dist/wallet-providers/viemWalletProvider.js +21 -1
- package/dist/wallet-providers/viemWalletProvider.test.js +21 -1
- package/dist/wallet-providers/zeroDevWalletProvider.d.ts +7 -0
- package/dist/wallet-providers/zeroDevWalletProvider.js +12 -0
- package/dist/wallet-providers/zeroDevWalletProvider.test.js +10 -0
- package/package.json +8 -4
package/README.md
CHANGED
|
@@ -77,7 +77,7 @@ AgentKit is a framework for easily enabling AI agents to take actions onchain. I
|
|
|
77
77
|
|
|
78
78
|
_Prerequisites_:
|
|
79
79
|
|
|
80
|
-
- [Node.js
|
|
80
|
+
- [Node.js v22+](https://nodejs.org/en/download/)
|
|
81
81
|
- [CDP Secret API Key](https://docs.cdp.coinbase.com/get-started/docs/cdp-api-keys#creating-secret-api-keys)
|
|
82
82
|
|
|
83
83
|
## Installation
|
|
@@ -172,57 +172,32 @@ const agent = createReactAgent({
|
|
|
172
172
|
## Action Providers
|
|
173
173
|
|
|
174
174
|
<details>
|
|
175
|
-
<summary><strong>
|
|
175
|
+
<summary><strong>Across</strong></summary>
|
|
176
176
|
<table width="100%">
|
|
177
177
|
<tr>
|
|
178
|
-
<td width="200"><code>
|
|
179
|
-
<td width="768">
|
|
180
|
-
</tr>
|
|
181
|
-
<tr>
|
|
182
|
-
<td width="200"><code>use_spend_permission</code></td>
|
|
183
|
-
<td width="768">Uses a spend permission to spend tokens on behalf of a smart account that the current EVM wallet has permission to spend.</td>
|
|
184
|
-
</tr>
|
|
185
|
-
<tr>
|
|
186
|
-
<td width="200"><code>get_swap_price</code></td>
|
|
187
|
-
<td width="768">Fetches a price quote for swapping between two tokens using the CDP Swap API (does not execute swap).</td>
|
|
178
|
+
<td width="200"><code>bridge_token</code></td>
|
|
179
|
+
<td width="768">Bridges tokens between supported chains using Across Protocol.</td>
|
|
188
180
|
</tr>
|
|
189
181
|
<tr>
|
|
190
|
-
<td width="200"><code>
|
|
191
|
-
<td width="768">
|
|
182
|
+
<td width="200"><code>check_deposit_status</code></td>
|
|
183
|
+
<td width="768">Checks the status of a cross-chain bridge deposit on the Across Protocol (mainnet networks only).</td>
|
|
192
184
|
</tr>
|
|
193
185
|
</table>
|
|
194
186
|
</details>
|
|
195
187
|
<details>
|
|
196
|
-
<summary><strong>
|
|
188
|
+
<summary><strong>Base Account</strong></summary>
|
|
197
189
|
<table width="100%">
|
|
198
190
|
<tr>
|
|
199
|
-
<td width="200"><code>
|
|
200
|
-
<td width="768">Lists spend permissions that have been granted to the current
|
|
191
|
+
<td width="200"><code>list_base_account_spend_permissions</code></td>
|
|
192
|
+
<td width="768">Lists spend permissions that have been granted to the current wallet by a Base Account, with support for any ERC20 token.</td>
|
|
201
193
|
</tr>
|
|
202
194
|
<tr>
|
|
203
|
-
<td width="200"><code>
|
|
204
|
-
<td width="768">Uses a spend permission to
|
|
205
|
-
</tr>
|
|
206
|
-
<tr>
|
|
207
|
-
<td width="200"><code>get_swap_price</code></td>
|
|
208
|
-
<td width="768">Fetches a price quote for swapping between two tokens using the CDP Swap API (does not execute swap).</td>
|
|
195
|
+
<td width="200"><code>spend_from_base_account_permission</code></td>
|
|
196
|
+
<td width="768">Uses a spend permission to transfer tokens from a Base Account to the current wallet, with support for any ERC20 token.</td>
|
|
209
197
|
</tr>
|
|
210
198
|
<tr>
|
|
211
|
-
<td width="200"><code>
|
|
212
|
-
<td width="768">
|
|
213
|
-
</tr>
|
|
214
|
-
</table>
|
|
215
|
-
</details>
|
|
216
|
-
<details>
|
|
217
|
-
<summary><strong>Across</strong></summary>
|
|
218
|
-
<table width="100%">
|
|
219
|
-
<tr>
|
|
220
|
-
<td width="200"><code>bridge_token</code></td>
|
|
221
|
-
<td width="768">Bridges tokens between supported chains using Across Protocol.</td>
|
|
222
|
-
</tr>
|
|
223
|
-
<tr>
|
|
224
|
-
<td width="200"><code>check_deposit_status</code></td>
|
|
225
|
-
<td width="768">Checks the status of a cross-chain bridge deposit on the Across Protocol (mainnet networks only).</td>
|
|
199
|
+
<td width="200"><code>revoke_base_account_spend_permission</code></td>
|
|
200
|
+
<td width="768">Revokes a spend permission that was previously granted by a Base Account, with support for any ERC20 token.</td>
|
|
226
201
|
</tr>
|
|
227
202
|
</table>
|
|
228
203
|
</details>
|
|
@@ -270,6 +245,57 @@ const agent = createReactAgent({
|
|
|
270
245
|
</table>
|
|
271
246
|
</details>
|
|
272
247
|
<details>
|
|
248
|
+
<summary><strong>CDP API</strong></summary>
|
|
249
|
+
<table width="100%">
|
|
250
|
+
<tr>
|
|
251
|
+
<td width="200"><code>request_faucet_funds</code></td>
|
|
252
|
+
<td width="768">Requests test tokens from the CDP faucet for base-sepolia, ethereum-sepolia, or solana-devnet networks.</td>
|
|
253
|
+
</tr>
|
|
254
|
+
</table>
|
|
255
|
+
</details>
|
|
256
|
+
<details>
|
|
257
|
+
<summary><strong>CDP EVM Wallet</strong></summary>
|
|
258
|
+
<table width="100%">
|
|
259
|
+
<tr>
|
|
260
|
+
<td width="200"><code>list_spend_permissions</code></td>
|
|
261
|
+
<td width="768">Lists spend permissions that have been granted to the current EVM wallet by a smart account.</td>
|
|
262
|
+
</tr>
|
|
263
|
+
<tr>
|
|
264
|
+
<td width="200"><code>use_spend_permission</code></td>
|
|
265
|
+
<td width="768">Uses a spend permission to spend tokens on behalf of a smart account that the current EVM wallet has permission to spend.</td>
|
|
266
|
+
</tr>
|
|
267
|
+
<tr>
|
|
268
|
+
<td width="200"><code>get_swap_price</code></td>
|
|
269
|
+
<td width="768">Fetches a price quote for swapping between two tokens using the CDP Swap API (does not execute swap).</td>
|
|
270
|
+
</tr>
|
|
271
|
+
<tr>
|
|
272
|
+
<td width="200"><code>swap</code></td>
|
|
273
|
+
<td width="768">Executes a token swap using the CDP Swap API with automatic token approvals.</td>
|
|
274
|
+
</tr>
|
|
275
|
+
</table>
|
|
276
|
+
</details>
|
|
277
|
+
<details>
|
|
278
|
+
<summary><strong>CDP Smart Wallet</strong></summary>
|
|
279
|
+
<table width="100%">
|
|
280
|
+
<tr>
|
|
281
|
+
<td width="200"><code>list_spend_permissions</code></td>
|
|
282
|
+
<td width="768">Lists spend permissions that have been granted to the current smart wallet by a smart account.</td>
|
|
283
|
+
</tr>
|
|
284
|
+
<tr>
|
|
285
|
+
<td width="200"><code>use_spend_permission</code></td>
|
|
286
|
+
<td width="768">Uses a spend permission to spend tokens on behalf of a smart account that the current smart wallet has permission to spend.</td>
|
|
287
|
+
</tr>
|
|
288
|
+
<tr>
|
|
289
|
+
<td width="200"><code>get_swap_price</code></td>
|
|
290
|
+
<td width="768">Fetches a price quote for swapping between two tokens using the CDP Swap API (does not execute swap).</td>
|
|
291
|
+
</tr>
|
|
292
|
+
<tr>
|
|
293
|
+
<td width="200"><code>swap</code></td>
|
|
294
|
+
<td width="768">Executes a token swap using the CDP Swap API with automatic token approvals.</td>
|
|
295
|
+
</tr>
|
|
296
|
+
</table>
|
|
297
|
+
</details>
|
|
298
|
+
<details>
|
|
273
299
|
<summary><strong>DefiLlama</strong></summary>
|
|
274
300
|
<table width="100%">
|
|
275
301
|
<tr>
|
|
@@ -287,6 +313,15 @@ const agent = createReactAgent({
|
|
|
287
313
|
</table>
|
|
288
314
|
</details>
|
|
289
315
|
<details>
|
|
316
|
+
<summary><strong>Enso</strong></summary>
|
|
317
|
+
<table width="100%">
|
|
318
|
+
<tr>
|
|
319
|
+
<td width="200"><code>route</code></td>
|
|
320
|
+
<td width="768">Find and execute a route for entering or exiting any DeFi position or swapping any ERC20 tokens.</td>
|
|
321
|
+
</tr>
|
|
322
|
+
</table>
|
|
323
|
+
</details>
|
|
324
|
+
<details>
|
|
290
325
|
<summary><strong>ERC20</strong></summary>
|
|
291
326
|
<table width="100%">
|
|
292
327
|
<tr>
|
|
@@ -297,6 +332,14 @@ const agent = createReactAgent({
|
|
|
297
332
|
<td width="200"><code>transfer</code></td>
|
|
298
333
|
<td width="768">Transfers a specified amount of ERC-20 tokens to a destination address.</td>
|
|
299
334
|
</tr>
|
|
335
|
+
<tr>
|
|
336
|
+
<td width="200"><code>approve</code></td>
|
|
337
|
+
<td width="768">Approves a spender to transfer ERC-20 tokens on behalf of the wallet.</td>
|
|
338
|
+
</tr>
|
|
339
|
+
<tr>
|
|
340
|
+
<td width="200"><code>get_allowance</code></td>
|
|
341
|
+
<td width="768">Checks the allowance amount for a spender of an ERC-20 token.</td>
|
|
342
|
+
</tr>
|
|
300
343
|
<tr>
|
|
301
344
|
<td width="200"><code>get_erc20_token_address</code></td>
|
|
302
345
|
<td width="768">Gets the contract address for frequently used ERC20 tokens on different networks by token symbol.</td>
|
|
@@ -338,7 +381,7 @@ const agent = createReactAgent({
|
|
|
338
381
|
<table width="100%">
|
|
339
382
|
<tr>
|
|
340
383
|
<td width="200"><code>flaunch</code></td>
|
|
341
|
-
<td width="768">Launches a new memecoin token with customizable name, symbol, image, and
|
|
384
|
+
<td width="768">Launches a new memecoin token with customizable name, symbol, image, metadata, fair launch parameters, fee allocation, and premine options.</td>
|
|
342
385
|
</tr>
|
|
343
386
|
<tr>
|
|
344
387
|
<td width="200"><code>buyCoinWithETHInput</code></td>
|
|
@@ -364,6 +407,19 @@ const agent = createReactAgent({
|
|
|
364
407
|
</table>
|
|
365
408
|
</details>
|
|
366
409
|
<details>
|
|
410
|
+
<summary><strong>Moonwell</strong></summary>
|
|
411
|
+
<table width="100%">
|
|
412
|
+
<tr>
|
|
413
|
+
<td width="200"><code>mint</code></td>
|
|
414
|
+
<td width="768">Mints assets into a Moonwell MToken for lending and earning yield.</td>
|
|
415
|
+
</tr>
|
|
416
|
+
<tr>
|
|
417
|
+
<td width="200"><code>redeem</code></td>
|
|
418
|
+
<td width="768">Redeems assets from a Moonwell MToken to withdraw principal and earned interest.</td>
|
|
419
|
+
</tr>
|
|
420
|
+
</table>
|
|
421
|
+
</details>
|
|
422
|
+
<details>
|
|
367
423
|
<summary><strong>Morpho</strong></summary>
|
|
368
424
|
<table width="100%">
|
|
369
425
|
<tr>
|
|
@@ -407,7 +463,7 @@ const agent = createReactAgent({
|
|
|
407
463
|
</tr>
|
|
408
464
|
<tr>
|
|
409
465
|
<td width="200"><code>fetch_price_feed_id</code></td>
|
|
410
|
-
<td width="768">Retrieves the unique price feed identifier for a given
|
|
466
|
+
<td width="768">Retrieves the unique price feed identifier for a given asset symbol.</td>
|
|
411
467
|
</tr>
|
|
412
468
|
</table>
|
|
413
469
|
</details>
|
|
@@ -487,6 +543,43 @@ const agent = createReactAgent({
|
|
|
487
543
|
</table>
|
|
488
544
|
</details>
|
|
489
545
|
<details>
|
|
546
|
+
<summary><strong>Vaultsfyi</strong></summary>
|
|
547
|
+
<table width="100%">
|
|
548
|
+
<tr>
|
|
549
|
+
<td width="200"><code>vaults</code></td>
|
|
550
|
+
<td width="768">Retrieves a list of available yield farming vaults with filtering and sorting options.</td>
|
|
551
|
+
</tr>
|
|
552
|
+
<tr>
|
|
553
|
+
<td width="200"><code>vault_details</code></td>
|
|
554
|
+
<td width="768">Fetches detailed information about a specific vault including description and rewards breakdown.</td>
|
|
555
|
+
</tr>
|
|
556
|
+
<tr>
|
|
557
|
+
<td width="200"><code>vault_historical_data</code></td>
|
|
558
|
+
<td width="768">Gets historical APY and TVL data for a specific vault over time.</td>
|
|
559
|
+
</tr>
|
|
560
|
+
<tr>
|
|
561
|
+
<td width="200"><code>deposit</code></td>
|
|
562
|
+
<td width="768">Deposits assets into a selected vault to start earning yield.</td>
|
|
563
|
+
</tr>
|
|
564
|
+
<tr>
|
|
565
|
+
<td width="200"><code>redeem</code></td>
|
|
566
|
+
<td width="768">Redeems assets from a vault to withdraw principal and earned yield.</td>
|
|
567
|
+
</tr>
|
|
568
|
+
<tr>
|
|
569
|
+
<td width="200"><code>claim</code></td>
|
|
570
|
+
<td width="768">Claims rewards from a vault without withdrawing the principal deposit.</td>
|
|
571
|
+
</tr>
|
|
572
|
+
<tr>
|
|
573
|
+
<td width="200"><code>balances</code></td>
|
|
574
|
+
<td width="768">Retrieves user's native token and ERC20 token balances across supported networks.</td>
|
|
575
|
+
</tr>
|
|
576
|
+
<tr>
|
|
577
|
+
<td width="200"><code>positions</code></td>
|
|
578
|
+
<td width="768">Gets user's current positions in vaults including balances and unclaimed rewards.</td>
|
|
579
|
+
</tr>
|
|
580
|
+
</table>
|
|
581
|
+
</details>
|
|
582
|
+
<details>
|
|
490
583
|
<summary><strong>Wallet</strong></summary>
|
|
491
584
|
<table width="100%">
|
|
492
585
|
<tr>
|
|
@@ -539,8 +632,25 @@ const agent = createReactAgent({
|
|
|
539
632
|
</table>
|
|
540
633
|
</details>
|
|
541
634
|
<details>
|
|
635
|
+
<summary><strong>SPL</strong></summary>
|
|
636
|
+
<table width="100%">
|
|
637
|
+
<tr>
|
|
638
|
+
<td width="200"><code>get_balance</code></td>
|
|
639
|
+
<td width="768">Retrieves the balance of SPL tokens for a specified address on Solana.</td>
|
|
640
|
+
</tr>
|
|
641
|
+
<tr>
|
|
642
|
+
<td width="200"><code>transfer</code></td>
|
|
643
|
+
<td width="768">Transfers SPL tokens to another address on the Solana network.</td>
|
|
644
|
+
</tr>
|
|
645
|
+
</table>
|
|
646
|
+
</details>
|
|
647
|
+
<details>
|
|
542
648
|
<summary><strong>x402</strong></summary>
|
|
543
649
|
<table width="100%">
|
|
650
|
+
<tr>
|
|
651
|
+
<td width="200"><code>discover_x402_services</code></td>
|
|
652
|
+
<td width="768">Discover available x402 services with optional filtering by maximum USDC price.</td>
|
|
653
|
+
</tr>
|
|
544
654
|
<tr>
|
|
545
655
|
<td width="200"><code>make_http_request</code></td>
|
|
546
656
|
<td width="768">Makes a basic HTTP request to an API endpoint. If the endpoint requires payment (returns 402),
|
|
@@ -553,6 +663,35 @@ it will return payment details that can be used on retry.</td>
|
|
|
553
663
|
<tr>
|
|
554
664
|
<td width="200"><code>make_http_request_with_x402</code></td>
|
|
555
665
|
<td width="768">Combines make_http_request and retry_http_request_with_x402 into a single step.</td>
|
|
666
|
+
</tr>
|
|
667
|
+
</table>
|
|
668
|
+
</details>
|
|
669
|
+
<details>
|
|
670
|
+
<summary><strong>Yelay</strong></summary>
|
|
671
|
+
<table width="100%">
|
|
672
|
+
<tr>
|
|
673
|
+
<td width="200"><code>get_vaults</code></td>
|
|
674
|
+
<td width="768">Fetches a list of available Yelay Vaults with their current APYs and contract addresses.</td>
|
|
675
|
+
</tr>
|
|
676
|
+
<tr>
|
|
677
|
+
<td width="200"><code>deposit</code></td>
|
|
678
|
+
<td width="768">Deposits assets into a specified Yelay Vault.</td>
|
|
679
|
+
</tr>
|
|
680
|
+
<tr>
|
|
681
|
+
<td width="200"><code>redeem</code></td>
|
|
682
|
+
<td width="768">Withdraws assets from a Yelay Vault.</td>
|
|
683
|
+
</tr>
|
|
684
|
+
<tr>
|
|
685
|
+
<td width="200"><code>claim</code></td>
|
|
686
|
+
<td width="768">Claims accumulated yield from a Yelay Vault.</td>
|
|
687
|
+
</tr>
|
|
688
|
+
<tr>
|
|
689
|
+
<td width="200"><code>get_balance</code></td>
|
|
690
|
+
<td width="768">Gets the user's balance and yield information for a specific vault.</td>
|
|
691
|
+
</tr>
|
|
692
|
+
</table>
|
|
693
|
+
</details>
|
|
694
|
+
<details>
|
|
556
695
|
<summary><strong>ZeroX</strong></summary>
|
|
557
696
|
<table width="100%">
|
|
558
697
|
<tr>
|
|
@@ -17,8 +17,8 @@ export declare const BridgeTokenSchema: z.ZodObject<{
|
|
|
17
17
|
}, {
|
|
18
18
|
amount: string;
|
|
19
19
|
destinationChainId: string;
|
|
20
|
-
inputTokenSymbol?: string | undefined;
|
|
21
20
|
recipient?: string | undefined;
|
|
21
|
+
inputTokenSymbol?: string | undefined;
|
|
22
22
|
maxSplippage?: number | undefined;
|
|
23
23
|
}>;
|
|
24
24
|
/**
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { ActionProvider } from "../actionProvider";
|
|
3
|
+
import { EvmWalletProvider } from "../../wallet-providers";
|
|
4
|
+
import { Network } from "../../network";
|
|
5
|
+
import { ListBaseAccountSpendPermissionsSchema, UseBaseAccountSpendPermissionSchema, RevokeBaseAccountSpendPermissionSchema } from "./schemas";
|
|
6
|
+
/**
|
|
7
|
+
* BaseAccountActionProvider provides actions to interact with Base Account spend permissions.
|
|
8
|
+
*/
|
|
9
|
+
export declare class BaseAccountActionProvider extends ActionProvider<EvmWalletProvider> {
|
|
10
|
+
/**
|
|
11
|
+
* Constructor for the BaseAccountActionProvider.
|
|
12
|
+
*/
|
|
13
|
+
constructor();
|
|
14
|
+
/**
|
|
15
|
+
* Lists spend permissions that have been granted to the current wallet by a Base Account.
|
|
16
|
+
*
|
|
17
|
+
* @param walletProvider - The wallet provider to use for listing permissions.
|
|
18
|
+
* @param args - The input arguments for listing spend permissions.
|
|
19
|
+
* @returns A JSON string with the list of spend permissions.
|
|
20
|
+
*/
|
|
21
|
+
listBaseAccountSpendPermissions(walletProvider: EvmWalletProvider, args: z.infer<typeof ListBaseAccountSpendPermissionsSchema>): Promise<string>;
|
|
22
|
+
/**
|
|
23
|
+
* Uses a spend permission to transfer tokens from a Base Account to the current wallet.
|
|
24
|
+
*
|
|
25
|
+
* @param walletProvider - The wallet provider to use for the spend operation.
|
|
26
|
+
* @param args - The input arguments for using the spend permission.
|
|
27
|
+
* @returns A JSON string with the spend operation results.
|
|
28
|
+
*/
|
|
29
|
+
spendFromBaseAccountPermission(walletProvider: EvmWalletProvider, args: z.infer<typeof UseBaseAccountSpendPermissionSchema>): Promise<string>;
|
|
30
|
+
/**
|
|
31
|
+
* Revokes a spend permission that was previously granted by a Base Account to the current wallet.
|
|
32
|
+
*
|
|
33
|
+
* @param walletProvider - The wallet provider to use for the revoke operation.
|
|
34
|
+
* @param args - The input arguments for revoking the spend permission.
|
|
35
|
+
* @returns A JSON string with the revoke operation results.
|
|
36
|
+
*/
|
|
37
|
+
revokeBaseAccountSpendPermission(walletProvider: EvmWalletProvider, args: z.infer<typeof RevokeBaseAccountSpendPermissionSchema>): Promise<string>;
|
|
38
|
+
/**
|
|
39
|
+
* Checks if the Base Account action provider supports the given network.
|
|
40
|
+
*
|
|
41
|
+
* @param network - The network to check.
|
|
42
|
+
* @returns True if the Base Account action provider supports the network, false otherwise.
|
|
43
|
+
*/
|
|
44
|
+
supportsNetwork: (network: Network) => boolean;
|
|
45
|
+
}
|
|
46
|
+
export declare const baseAccountActionProvider: () => BaseAccountActionProvider;
|