UNPKG

ulysses-actions-sdk

Version:

An sdk for interacting with contracts using Ulysses Protocol

26 lines (25 loc) 1.35 kB
import { TClaimAllRewardsParams } from 'hermes-v2-sdk'; import { SupportedChainId } from 'maia-core-sdk'; import { IAction, IActionResult } from '../../../../utils/action'; /** * @title ClaimRewardAction class * @notice Provides a set of function to encode calldata for the claim all rewards action in UniswapV3Staker contract. * @author MaiaDAO */ export declare class ClaimAllRewardsAction implements IAction<TClaimAllRewardsParams, IActionResult<void>> { params: TClaimAllRewardsParams; chainId?: SupportedChainId; /** * Constructor for the ClaimRewardAction class. * @param params the parameters for the claim all rewards action in UniswapV3Staker. * @returns a new instance of ClaimRewardAction. * @notice the constructor is used to set the parameters for the claim all rewards action in UniswapV3Staker. */ constructor(params: TClaimAllRewardsParams, chainId?: SupportedChainId); /** * Encodes the contract interaction calldata to increment a gauge in UniswapV3Staker. * @param params the parameters for the claim all rewards action in UniswapV3Staker. * @returns the target contract, encoded calldata and message value to send onchain for the claim all rewards action. */ encode(params: TClaimAllRewardsParams): IActionResult<IActionResult<void>>; }