ulysses-actions-sdk
Version:
An sdk for interacting with contracts using Ulysses Protocol
26 lines (25 loc) • 1.29 kB
TypeScript
import { TUndelegateVotesParams } 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 bHermesVotes contract.
* @author MaiaDAO
*/
export declare class UndelegateVotesAction implements IAction<TUndelegateVotesParams, IActionResult<void>> {
params: TUndelegateVotesParams;
chainId?: SupportedChainId;
/**
* Constructor for the UndelegateAction class.
* @param params the parameters for the undelegate action in bHermesVotes.
* @returns a new instance of UndelegateAction.
* @notice the constructor is used to set the parameters for the undelegate action in bHermesVotes.
*/
constructor(params: TUndelegateVotesParams, chainId?: SupportedChainId);
/**
* Encodes the contract interaction calldata to undelegate bHermesVotes.
* @param params the parameters for the undelegate action in bHermesVotes.
* @returns the target contract, encoded calldata and message value to send onchain for the undelegate action.
*/
encode(params: TUndelegateVotesParams): IActionResult<IActionResult<void>>;
}