@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).
10 lines (9 loc) • 1.2 kB
TypeScript
import { NFTStandard, PaymentToken, RenftContractType, RenftContractVersions } from '../../core';
import { Executor, SDK } from '../base';
export default class SylvesterBaseSDK<ContractType extends RenftContractType, ContractVersion extends RenftContractVersions[ContractType]> extends SDK<ContractType, ContractVersion> {
lend(nftStandard: NFTStandard[], nftAddress: string[], tokenID: string[], amount: number[], maxRentDuration: number[], dailyRentPrice: number[], paymentToken: PaymentToken[], willAutoRenew?: boolean[]): Promise<ReturnType<Executor>>;
rent(nftStandard: NFTStandard[], nftAddress: string[], tokenID: string[], lendingID: string[], rentDuration: number[], rentAmount: string[]): Promise<ReturnType<Executor>>;
stopRent(nftStandard: NFTStandard[], nftAddress: string[], tokenID: string[], lendingID: string[], rentingID: string[]): Promise<ReturnType<Executor>>;
claimRent(nftStandard: NFTStandard[], nftAddress: string[], tokenID: string[], lendingID: string[], rentingID: string[]): Promise<ReturnType<Executor>>;
stopLend(nftStandard: NFTStandard[], nftAddress: string[], tokenID: string[], lendingID: string[]): Promise<ReturnType<Executor>>;
}