@moonwell-fi/moonwell-sdk
Version:
TypeScript Interface for Moonwell
11 lines • 626 B
TypeScript
import type { MoonwellClient } from "../../client/createMoonwellClient.js";
import type { Delegate } from "../../types/delegate.js";
export type GetDelegatesReturnType = Promise<Delegate[]>;
/**
* Returns a list of delegates with voting power and activity stats
* Data is fetched from Governor API, enriched with forum profiles and on-chain voting power
* All delegates are returned sorted by total voting power
* The app should handle pagination locally for better performance and caching
*/
export declare function getDelegates(client: MoonwellClient): GetDelegatesReturnType;
//# sourceMappingURL=getDelegates.d.ts.map