UNPKG

@kamino-finance/klend-sdk

Version:

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

48 lines 1.52 kB
import { PublicKey, Connection } from '@solana/web3.js'; import BN from 'bn.js'; import * as types from '../types'; export interface PoolFields { name: string; custodies: Array<PublicKey>; aumUsd: BN; limit: types.LimitFields; fees: types.FeesFields; poolApr: types.PoolAprFields; maxRequestExecutionSec: BN; bump: number; lpTokenBump: number; inceptionTime: BN; } export interface PoolJSON { name: string; custodies: Array<string>; aumUsd: string; limit: types.LimitJSON; fees: types.FeesJSON; poolApr: types.PoolAprJSON; maxRequestExecutionSec: string; bump: number; lpTokenBump: number; inceptionTime: string; } export declare class Pool { readonly name: string; readonly custodies: Array<PublicKey>; readonly aumUsd: BN; readonly limit: types.Limit; readonly fees: types.Fees; readonly poolApr: types.PoolApr; readonly maxRequestExecutionSec: BN; readonly bump: number; readonly lpTokenBump: number; readonly inceptionTime: BN; static readonly discriminator: Buffer; static readonly layout: any; constructor(fields: PoolFields); static fetch(c: Connection, address: PublicKey, programId?: PublicKey): Promise<Pool | null>; static fetchMultiple(c: Connection, addresses: PublicKey[], programId?: PublicKey): Promise<Array<Pool | null>>; static decode(data: Buffer): Pool; toJSON(): PoolJSON; static fromJSON(obj: PoolJSON): Pool; } //# sourceMappingURL=Pool.d.ts.map