@moonwell-fi/moonwell-sdk
Version:
TypeScript Interface for Moonwell
25 lines • 896 B
TypeScript
import type { Address } from "viem";
type MerklReward = {
chain: number;
token: {
address: string;
chainId: number;
symbol: string;
decimals: number;
price: number;
};
amount: string;
claimed: string;
pending: string;
};
/** Resets the in-memory campaign IDs cache. Intended for use in tests only. */
export declare function resetMerklCampaignIdsCache(): void;
/**
* Fetches all Moonwell Merkl campaign IDs from the API.
* Results are cached in memory for 4 hours since campaigns only change monthly.
*/
export declare function getMerklCampaignIds(): Promise<string[]>;
export declare function getMerklRewardsData(campaignId: string[], chainId: number, account: Address): Promise<MerklReward[]>;
export declare function getMerklStakingApr(contractAddress: string): Promise<number>;
export {};
//# sourceMappingURL=common.d.ts.map