UNPKG

client-aftermath-ts-sdk

Version:
69 lines 2.87 kB
import { Caller } from "../../general/utils/caller"; import { Balance, CallerConfig, CoinType, CoinsToBalance, FarmsStakedPositionObject, SuiAddress, Timestamp } from "../../types"; import { FarmsStakingPool } from "./farmsStakingPool"; import { AftermathApi } from "../../general/providers"; export declare class FarmsStakedPosition extends Caller { stakedPosition: FarmsStakedPositionObject; private readonly Provider?; readonly trueLastHarvestRewardsTimestamp: Timestamp; constructor(stakedPosition: FarmsStakedPositionObject, trueLastHarvestRewardsTimestamp?: Timestamp | undefined, config?: CallerConfig, Provider?: AftermathApi | undefined); isLocked: (inputs: { stakingPool: FarmsStakingPool; }) => boolean; isLockDuration: () => boolean; unlockTimestamp: () => number; rewardCoinsToClaimableBalance: (inputs: { stakingPool: FarmsStakingPool; }) => CoinsToBalance; rewardCoinTypes: () => CoinType[]; nonZeroRewardCoinTypes: (inputs: { stakingPool: FarmsStakingPool; }) => CoinType[]; rewardCoin: (inputs: { coinType: CoinType; }) => import("./farmsTypes").FarmsStakedPositionRewardCoin; hasClaimableRewards: (inputs: { stakingPool: FarmsStakingPool; }) => boolean; rewardsEarned: (inputs: { coinType: CoinType; stakingPool: FarmsStakingPool; }) => bigint; updatePosition: (inputs: { stakingPool: FarmsStakingPool; }) => void; getDepositPrincipalTransaction(inputs: { depositAmount: Balance; walletAddress: SuiAddress; isSponsoredTx?: boolean; }): Promise<import("@mysten/sui/transactions").Transaction>; getUnstakeTransaction(inputs: { walletAddress: SuiAddress; stakingPool: FarmsStakingPool; claimSuiAsAfSui?: boolean; }): Promise<import("@mysten/sui/transactions").Transaction>; getLockTransaction(inputs: { lockDurationMs: Timestamp; walletAddress: SuiAddress; }): Promise<import("@mysten/sui/transactions").Transaction>; getRenewLockTransaction(inputs: { walletAddress: SuiAddress; }): Promise<import("@mysten/sui/transactions").Transaction>; getUnlockTransaction(inputs: { walletAddress: SuiAddress; }): Promise<import("@mysten/sui/transactions").Transaction>; getHarvestRewardsTransaction(inputs: { walletAddress: SuiAddress; stakingPool: FarmsStakingPool; claimSuiAsAfSui?: boolean; }): Promise<import("@mysten/sui/transactions").Transaction>; calcTotalRewardsFromTimeT0(inputs: { rewardsAccumulatedPerShare: Balance; multiplierRewardsDebt: Balance; emissionEndTimestamp: Timestamp; }): [Balance, Balance]; private unlock; private isUnlocked; private useProvider; } //# sourceMappingURL=farmsStakedPosition.d.ts.map