UNPKG

blub-sdk

Version:

A modular SDK for interacting with the BLUB ecosystem on the Sui blockchain.

18 lines (17 loc) 523 B
import { RewardCoin } from "../../utils/rewards"; export interface PositionInfo { positionId: string; staked: bigint; rewards: RewardCoin[]; } export interface StakingSummary { totalStaked: bigint; positions: PositionInfo[]; } /** * Returns a full staking summary for the given wallet: * - total staked amount * - every position (id, staked amount) * - pending rewards for each coinType listed in `rewardCoins` */ export declare function getStakingSummary(wallet: string): Promise<StakingSummary>;