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