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