UNPKG

ulysses-actions-sdk

Version:

An sdk for interacting with contracts using Ulysses Protocol

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