@kamino-finance/klend-sdk
Version:
Typescript SDK for interacting with the Kamino Lending (klend) protocol
40 lines • 1.9 kB
TypeScript
import { PublicKey, Connection } from "@solana/web3.js";
export interface GlobalConfigFields {
/** Global admin of the program */
globalAdmin: PublicKey;
/** Pending admin must sign a specific transaction to become the global admin */
pendingAdmin: PublicKey;
/** Fee collector is the only allowed owner of token accounts receiving protocol fees */
feeCollector: PublicKey;
/** Padding to make the struct size 1024 bytes */
padding: Array<number>;
}
export interface GlobalConfigJSON {
/** Global admin of the program */
globalAdmin: string;
/** Pending admin must sign a specific transaction to become the global admin */
pendingAdmin: string;
/** Fee collector is the only allowed owner of token accounts receiving protocol fees */
feeCollector: string;
/** Padding to make the struct size 1024 bytes */
padding: Array<number>;
}
export declare class GlobalConfig {
/** Global admin of the program */
readonly globalAdmin: PublicKey;
/** Pending admin must sign a specific transaction to become the global admin */
readonly pendingAdmin: PublicKey;
/** Fee collector is the only allowed owner of token accounts receiving protocol fees */
readonly feeCollector: PublicKey;
/** Padding to make the struct size 1024 bytes */
readonly padding: Array<number>;
static readonly discriminator: Buffer<ArrayBuffer>;
static readonly layout: any;
constructor(fields: GlobalConfigFields);
static fetch(c: Connection, address: PublicKey, programId?: PublicKey): Promise<GlobalConfig | null>;
static fetchMultiple(c: Connection, addresses: PublicKey[], programId?: PublicKey): Promise<Array<GlobalConfig | null>>;
static decode(data: Buffer): GlobalConfig;
toJSON(): GlobalConfigJSON;
static fromJSON(obj: GlobalConfigJSON): GlobalConfig;
}
//# sourceMappingURL=GlobalConfig.d.ts.map