@bombearn/sdk
Version:
Interaction framework for the yearn protocol
26 lines (25 loc) • 834 B
TypeScript
import { ChainId } from "./chain";
import { Token, ZappableVault } from "./types";
export declare type ZapInWith = keyof Token["supported"];
export declare type ZapOutWith = keyof Token["supported"];
declare type ZapInDetails = {
isZapInSupported: boolean;
zapInWith: ZapInWith | null;
};
declare type ZapOutDetails = {
isZapOutSupported: boolean;
zapOutWith: ZapOutWith | null;
};
declare type ZapInArgs = {
chainId: ChainId;
token: Partial<Token>;
vault: ZappableVault;
};
declare type ZapOutArgs = {
chainId: ChainId;
token: Partial<Token>;
vault: ZappableVault;
};
export declare function getZapInDetails({ chainId, token, vault }: ZapInArgs): ZapInDetails;
export declare function getZapOutDetails({ chainId, token, vault }: ZapOutArgs): ZapOutDetails;
export {};