UNPKG

@collabland/staking-contracts

Version:
27 lines (26 loc) 939 B
import { BigNumber } from 'ethers'; import { BaseStakingContractAdapter, StakingAsset } from '../staking.js'; export declare class MoonrunnersStakingContractAdapter extends BaseStakingContractAdapter { /** * The contract address */ contractAddress: string; /** * Assets that can be staked to this contract */ supportedAssets: StakingAsset[]; /** * Get staked token ids for the given owner * @param owner - Owner address * @param name - Name of the asset * @returns all the token ids staked by the user for that asset */ getStakedTokenIds(owner: string, name?: string): Promise<BigNumber[]>; /** * Get staked token ids for the given owner * @param owner - Owner address * @param name - Name of the asset * @returns the balance of that asset staked by the user */ getStakedTokenBalance(owner: string, name?: string): Promise<BigNumber>; }