UNPKG

hermes-v2-sdk

Version:

⚒️ An SDK for building applications on top of Hermes V2

25 lines (24 loc) 1.04 kB
import { Interface } from '@ethersproject/abi'; /** * Class to handle the Flywheel functionalities, such as claiming rewards for a staked Talos positions and for claiming bribes. */ export declare abstract class Flywheel { static readonly INTERFACE: Interface; /** * Cannot be constructed. */ private constructor(); /** * Encodes the contract interaction calldata to accrue rewards for a strategy and user. * @param strategy address of the strategy to accrue rewards for. * @param user address of the user to accrue rewards for. * @returns the encoded calldata for the accrue action. */ static encodeAccrueCalldata(strategy: string, user: string): string; /** * Encodes the contract interaction calldata to claim rewards from a Flywheel contract. * @param address address of the user to claim rewards for. * @returns the encoded calldata for the claimRewards action. */ static encodeClaimRewardsCalldata(address: string): string; }