UNPKG

@collabland/staking-contracts

Version:
25 lines (24 loc) 829 B
import { BigNumber } from 'ethers'; import { BaseStakingContractAdapter, StakingAsset } from '../staking.js'; export declare class PrimordiaStakingContractAdapter 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 * @returns all the token ids staked by the user for that asset */ getStakedTokenIds(owner: string): Promise<BigNumber[]>; /** * Get staked token ids for the given owner * @param owner - Owner address * @returns the balance of that asset staked by the user */ getStakedTokenBalance(owner: string): Promise<BigNumber>; }