@marinade.finance/kamino-sdk
Version:
36 lines (35 loc) • 1.41 kB
TypeScript
/// <reference types="node" />
import { PublicKey, Connection } from '@solana/web3.js';
export interface OperationStateFields {
/** Bump to identify PDA */
bump: number;
/** Address of the operation owner */
operationOwners: Array<PublicKey>;
/** The mint address of whitelist to emmit reward */
whitelistMints: Array<PublicKey>;
}
export interface OperationStateJSON {
/** Bump to identify PDA */
bump: number;
/** Address of the operation owner */
operationOwners: Array<string>;
/** The mint address of whitelist to emmit reward */
whitelistMints: Array<string>;
}
/** Holds the current owner of the factory */
export declare class OperationState {
/** Bump to identify PDA */
readonly bump: number;
/** Address of the operation owner */
readonly operationOwners: Array<PublicKey>;
/** The mint address of whitelist to emmit reward */
readonly whitelistMints: Array<PublicKey>;
static readonly discriminator: Buffer;
static readonly layout: any;
constructor(fields: OperationStateFields);
static fetch(c: Connection, address: PublicKey): Promise<OperationState | null>;
static fetchMultiple(c: Connection, addresses: PublicKey[]): Promise<Array<OperationState | null>>;
static decode(data: Buffer): OperationState;
toJSON(): OperationStateJSON;
static fromJSON(obj: OperationStateJSON): OperationState;
}