@renft/sdk
Version:
**ReNFT** is a multi-chain highly gas-optimised NFT rental protocol and platform that can be whitelabel integrated into any project to enable collateral-free in-house renting, lending, and reward share (scholarship automation).
12 lines (11 loc) • 1.28 kB
TypeScript
import { PaymentToken, RenftContractType, RenftContractVersions } from '../../core';
import { Executor, SDK, SDKInterface } from '../base';
export default class WhoopiV0SDK<ContractType extends RenftContractType, ContractVersion extends RenftContractVersions[ContractType]> extends SDK<ContractType, ContractVersion> {
protected supportedDeployments: import("../../core").Deployment<RenftContractType.WHOOPI, import("../../core").WhoopiVersion>[];
constructor(args: SDKInterface<ContractType, ContractVersion>);
lend(nftAddress: string, tokenId: string[], upfrontRentFees: string[], revShareBeneficiaries: string[][], revSharePortions: number[][], maxRentDurations: number[], paymentTokens: PaymentToken[], allowedRenters?: string[][]): Promise<ReturnType<Executor>>;
rent(nftAddress: string, tokenId: string[], lendingId: string[], rentDurations: number[]): Promise<ReturnType<Executor>>;
stopRent(nftAddress: string, tokenId: string[], lendingId: string[]): Promise<ReturnType<Executor>>;
stopLend(nftAddress: string, tokenId: string[], lendingId: string[]): Promise<ReturnType<Executor>>;
pay(nftAddress: string, tokenId: string[], lendingId: string[], renterAddress: string[], amountToPay: string[]): Promise<ReturnType<Executor>>;
}