UNPKG

@wuwei-labs/srsly

Version:
22 lines 799 B
/** * Rental utility functions * @module utils/rental */ import { type Address } from '@solana/kit'; /** * Check if a contract has an active rental. * * @param contract - The contract address * @param rpcUrl - RPC URL to use for fetching rental state * @returns true if active rental exists and has Active status */ export declare function hasActiveRental(contract: Address | string, rpcUrl: string): Promise<boolean>; /** * Check if a contract has a queued rental reservation. * * @param contract - The contract address * @param rpcUrl - RPC URL to use for fetching rental state * @returns true if queued rental exists and has Queued status */ export declare function hasQueuedRental(contract: Address | string, rpcUrl: string): Promise<boolean>; //# sourceMappingURL=rental.d.ts.map