ulysses-actions-sdk
Version:
An sdk for interacting with contracts using Ulysses Protocol
26 lines (25 loc) • 1.31 kB
TypeScript
import { TClaimRewardParams } 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 reward action in UniswapV3Staker contract.
* @author MaiaDAO
*/
export declare class ClaimRewardAction implements IAction<TClaimRewardParams, IActionResult<void>> {
params: TClaimRewardParams;
chainId?: SupportedChainId;
/**
* Constructor for the ClaimRewardAction class.
* @param params the parameters for the claim reward action in UniswapV3Staker.
* @returns a new instance of ClaimRewardAction.
* @notice the constructor is used to set the parameters for the claim reward action in UniswapV3Staker.
*/
constructor(params: TClaimRewardParams, chainId?: SupportedChainId);
/**
* Encodes the contract interaction calldata to increment a gauge in UniswapV3Staker.
* @param params the parameters for the claim reward action in UniswapV3Staker.
* @returns the target contract, encoded calldata and message value to send onchain for the claim reward action.
*/
encode(params: TClaimRewardParams): IActionResult<IActionResult<void>>;
}