UNPKG

ulysses-actions-sdk

Version:

An sdk for interacting with contracts using Ulysses Protocol

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