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