UNPKG

@coinbase/agentkit

Version:

Coinbase AgentKit core primitives

33 lines (32 loc) 1.28 kB
import { z } from "zod"; import { EvmWalletProvider } from "../../wallet-providers"; import { ActionProvider } from "../actionProvider"; import { Network } from "../../network"; import { FindTokenSchema } from "./sushiDataSchemas"; /** * SushiDataActionProvider is an action provider for Sushi. * * This provider is used for any action that uses the Sushi Data API. */ export declare class SushiDataActionProvider extends ActionProvider<EvmWalletProvider> { /** * Constructor for the SushiDataActionProvider class. */ constructor(); /** * Swaps a specified amount of a from token to a to token for the wallet. * * @param walletProvider - The wallet provider to swap the tokens from. * @param args - The input arguments for the action. * @returns A message containing the swap details. */ findToken(walletProvider: EvmWalletProvider, args: z.infer<typeof FindTokenSchema>): Promise<string>; /** * Custom action providers are supported on all networks * * @param network - The network to checkpointSaver * @returns True if the network is supported, false otherwise */ supportsNetwork(network: Network): boolean; } export declare const sushiDataActionProvider: () => SushiDataActionProvider;