@collabland/staking-contracts
Version:
Staking contracts supported by Collab.Land
25 lines (24 loc) • 775 B
TypeScript
import { BigNumber } from 'ethers';
import { BaseStakingContractAdapter, StakingAsset } from '../staking.js';
export declare class RandomStakingContractAdapter extends BaseStakingContractAdapter {
private contract;
/**
* The staking contract address
*/
contractAddress: string;
supportedAssets: StakingAsset[];
constructor();
/**
* Get staked token ids for the given owner
* @param owner - Owner address
* @returns
*/
getStakedTokenIds(owner: string): Promise<BigNumber[]>;
/**
* Get staked token balance for the given owner
* @param owner - Owner address
* @returns
*/
getStakedTokenBalance(owner: string): Promise<BigNumber>;
isAssetSupported(assetName: string): Promise<boolean>;
}