UNPKG

ulysses-actions-sdk

Version:

An sdk for interacting with contracts using Ulysses Protocol

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