UNPKG

ulysses-actions-sdk

Version:

An sdk for interacting with contracts using Ulysses Protocol

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