@kamino-finance/scope-sdk
Version:
Scope Oracle SDK
28 lines • 1.01 kB
TypeScript
import BN from "bn.js";
import * as types from "../types";
export interface DiscountToMaturityDataFields {
discountPerYearBps: number;
maturityTimestamp: BN;
}
export interface DiscountToMaturityDataJSON {
discountPerYearBps: number;
maturityTimestamp: string;
}
export declare class DiscountToMaturityData {
readonly discountPerYearBps: number;
readonly maturityTimestamp: BN;
constructor(fields: DiscountToMaturityDataFields);
static layout(property?: string): import("buffer-layout").Layout<unknown>;
static fromDecoded(obj: any): types.DiscountToMaturityData;
static toEncodable(fields: DiscountToMaturityDataFields): {
discountPerYearBps: number;
maturityTimestamp: BN;
};
toJSON(): DiscountToMaturityDataJSON;
static fromJSON(obj: DiscountToMaturityDataJSON): DiscountToMaturityData;
toEncodable(): {
discountPerYearBps: number;
maturityTimestamp: BN;
};
}
//# sourceMappingURL=DiscountToMaturityData.d.ts.map