UNPKG

@kamino-finance/klend-sdk

Version:

Typescript SDK for interacting with the Kamino Lending (klend) protocol

22 lines 829 B
import { PublicKey, Connection } from "@solana/web3.js"; export interface ShortUrlFields { referrer: PublicKey; shortUrl: string; } export interface ShortUrlJSON { referrer: string; shortUrl: string; } export declare class ShortUrl { readonly referrer: PublicKey; readonly shortUrl: string; static readonly discriminator: Buffer<ArrayBuffer>; static readonly layout: any; constructor(fields: ShortUrlFields); static fetch(c: Connection, address: PublicKey, programId?: PublicKey): Promise<ShortUrl | null>; static fetchMultiple(c: Connection, addresses: PublicKey[], programId?: PublicKey): Promise<Array<ShortUrl | null>>; static decode(data: Buffer): ShortUrl; toJSON(): ShortUrlJSON; static fromJSON(obj: ShortUrlJSON): ShortUrl; } //# sourceMappingURL=ShortUrl.d.ts.map