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