@moonwell-fi/moonwell-sdk
Version:
TypeScript Interface for Moonwell
20 lines • 972 B
TypeScript
import type { MoonwellClient } from "../client/createMoonwellClient.js";
import type { Environment } from "../environments/index.js";
export { Amount } from "./amount.js";
export { BaseError, HttpRequestError } from "./error.js";
export type { HttpRequestErrorType } from "./error.js";
export type { MultichainReturnType } from "./types.js";
export declare const SECONDS_PER_DAY = 86400;
export declare const DAYS_PER_YEAR = 365;
export declare const perDay: (value: number) => number;
export declare function isStartOfDay(timestamp: number): boolean;
export declare const calculateApy: (value: number) => number;
export declare const getEnvironmentFromArgs: (client: MoonwellClient, args?: {
chainId?: number;
network?: any;
}) => Environment | undefined;
export declare const getEnvironmentsFromArgs: (client: MoonwellClient, args?: {
chainId?: number;
network?: any;
}, onlyWithDeployment?: boolean) => Environment[];
//# sourceMappingURL=index.d.ts.map