UNPKG

@kamino-finance/klend-sdk

Version:

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

30 lines 1.27 kB
import { PublicKey, Connection } from '@solana/web3.js'; import BN from 'bn.js'; import * as types from '../types'; export declare const PYTH_RECEIVER_PROGRAM_ID: PublicKey; export interface PriceUpdateV2Fields { writeAuthority: PublicKey; verificationLevel: types.VerificationLevelKind; priceMessage: types.PriceFeedMessageFields; postedSlot: BN; } export interface PriceUpdateV2JSON { writeAuthority: string; verificationLevel: types.VerificationLevelJSON; priceMessage: types.PriceFeedMessageJSON; postedSlot: string; } export declare class PriceUpdateV2 { readonly writeAuthority: PublicKey; readonly verificationLevel: types.VerificationLevelKind; readonly priceMessage: types.PriceFeedMessage; readonly postedSlot: BN; static readonly layout: any; constructor(fields: PriceUpdateV2Fields); static fetch(c: Connection, address: PublicKey, programId?: PublicKey): Promise<PriceUpdateV2 | null>; static fetchMultiple(c: Connection, addresses: PublicKey[], programId?: PublicKey): Promise<Array<PriceUpdateV2 | null>>; static decode(data: Buffer): PriceUpdateV2; toJSON(): PriceUpdateV2JSON; static fromJSON(obj: PriceUpdateV2JSON): PriceUpdateV2; } //# sourceMappingURL=PriceUpdateV2.d.ts.map