@exponent-labs/kamino-reserve-deserializer 0.9.2 → 0.9.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build/fraction.d.ts
CHANGED
|
@@ -5,8 +5,8 @@ export declare class Fraction {
|
|
|
5
5
|
static MAX_SIZE_BF: number;
|
|
6
6
|
static FRACTIONS: number;
|
|
7
7
|
static MULTIPLIER_NUMBER: number;
|
|
8
|
-
static MAX_BN:
|
|
9
|
-
static MIN_BN:
|
|
8
|
+
static MAX_BN: any;
|
|
9
|
+
static MIN_BN: any;
|
|
10
10
|
valueSf: BN;
|
|
11
11
|
constructor(valueSf: BN);
|
|
12
12
|
toDecimal(): Decimal;
|
package/build/index.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ import { ReserveConfig, ReserveConfigFields, ReserveConfigJSON } from "./types/R
|
|
|
8
8
|
import { ReserveLiquidity, ReserveLiquidityFields, ReserveLiquidityJSON } from "./types/ReserveLiquidity";
|
|
9
9
|
export { Fraction } from "./fraction";
|
|
10
10
|
export { Obligation };
|
|
11
|
-
export declare const PROGRAM_ID:
|
|
11
|
+
export declare const PROGRAM_ID: any;
|
|
12
12
|
export interface ReserveFields {
|
|
13
13
|
/** Version of the reserve */
|
|
14
14
|
version: BN;
|
|
@@ -86,7 +86,7 @@ export declare class Reserve {
|
|
|
86
86
|
*/
|
|
87
87
|
readonly borrowedAmountsAgainstThisReserveInElevationGroups: Array<BN>;
|
|
88
88
|
readonly padding: Array<BN>;
|
|
89
|
-
static readonly discriminator:
|
|
89
|
+
static readonly discriminator: any;
|
|
90
90
|
static readonly layout: any;
|
|
91
91
|
constructor(fields: ReserveFields);
|
|
92
92
|
static fetch(c: Connection, address: PublicKey, programId?: PublicKey): Promise<Reserve | null>;
|
|
@@ -190,7 +190,7 @@ export declare class Obligation {
|
|
|
190
190
|
*/
|
|
191
191
|
readonly orders: Array<ObligationOrder>;
|
|
192
192
|
readonly padding3: Array<BN>;
|
|
193
|
-
static readonly discriminator:
|
|
193
|
+
static readonly discriminator: any;
|
|
194
194
|
static readonly layout: any;
|
|
195
195
|
constructor(fields: ObligationFields);
|
|
196
196
|
static fetch(c: Connection, address: PublicKey, programId?: PublicKey): Promise<Obligation | null>;
|
|
@@ -253,16 +253,16 @@ export declare class ReserveConfig {
|
|
|
253
253
|
maxAgePriceSeconds: BN;
|
|
254
254
|
maxAgeTwapSeconds: BN;
|
|
255
255
|
scopeConfiguration: {
|
|
256
|
-
priceFeed:
|
|
256
|
+
priceFeed: PublicKey;
|
|
257
257
|
priceChain: number[];
|
|
258
258
|
twapChain: number[];
|
|
259
259
|
};
|
|
260
260
|
switchboardConfiguration: {
|
|
261
|
-
priceAggregator:
|
|
262
|
-
twapAggregator:
|
|
261
|
+
priceAggregator: PublicKey;
|
|
262
|
+
twapAggregator: PublicKey;
|
|
263
263
|
};
|
|
264
264
|
pythConfiguration: {
|
|
265
|
-
price:
|
|
265
|
+
price: PublicKey;
|
|
266
266
|
};
|
|
267
267
|
blockPriceUsage: number;
|
|
268
268
|
reserved: number[];
|
|
@@ -329,16 +329,16 @@ export declare class ReserveConfig {
|
|
|
329
329
|
maxAgePriceSeconds: BN;
|
|
330
330
|
maxAgeTwapSeconds: BN;
|
|
331
331
|
scopeConfiguration: {
|
|
332
|
-
priceFeed:
|
|
332
|
+
priceFeed: PublicKey;
|
|
333
333
|
priceChain: number[];
|
|
334
334
|
twapChain: number[];
|
|
335
335
|
};
|
|
336
336
|
switchboardConfiguration: {
|
|
337
|
-
priceAggregator:
|
|
338
|
-
twapAggregator:
|
|
337
|
+
priceAggregator: PublicKey;
|
|
338
|
+
twapAggregator: PublicKey;
|
|
339
339
|
};
|
|
340
340
|
pythConfiguration: {
|
|
341
|
-
price:
|
|
341
|
+
price: PublicKey;
|
|
342
342
|
};
|
|
343
343
|
blockPriceUsage: number;
|
|
344
344
|
reserved: number[];
|
|
@@ -73,16 +73,16 @@ export declare class TokenInfo {
|
|
|
73
73
|
maxAgePriceSeconds: BN;
|
|
74
74
|
maxAgeTwapSeconds: BN;
|
|
75
75
|
scopeConfiguration: {
|
|
76
|
-
priceFeed:
|
|
76
|
+
priceFeed: PublicKey;
|
|
77
77
|
priceChain: number[];
|
|
78
78
|
twapChain: number[];
|
|
79
79
|
};
|
|
80
80
|
switchboardConfiguration: {
|
|
81
|
-
priceAggregator:
|
|
82
|
-
twapAggregator:
|
|
81
|
+
priceAggregator: PublicKey;
|
|
82
|
+
twapAggregator: PublicKey;
|
|
83
83
|
};
|
|
84
84
|
pythConfiguration: {
|
|
85
|
-
price:
|
|
85
|
+
price: PublicKey;
|
|
86
86
|
};
|
|
87
87
|
blockPriceUsage: number;
|
|
88
88
|
reserved: number[];
|
|
@@ -101,16 +101,16 @@ export declare class TokenInfo {
|
|
|
101
101
|
maxAgePriceSeconds: BN;
|
|
102
102
|
maxAgeTwapSeconds: BN;
|
|
103
103
|
scopeConfiguration: {
|
|
104
|
-
priceFeed:
|
|
104
|
+
priceFeed: PublicKey;
|
|
105
105
|
priceChain: number[];
|
|
106
106
|
twapChain: number[];
|
|
107
107
|
};
|
|
108
108
|
switchboardConfiguration: {
|
|
109
|
-
priceAggregator:
|
|
110
|
-
twapAggregator:
|
|
109
|
+
priceAggregator: PublicKey;
|
|
110
|
+
twapAggregator: PublicKey;
|
|
111
111
|
};
|
|
112
112
|
pythConfiguration: {
|
|
113
|
-
price:
|
|
113
|
+
price: PublicKey;
|
|
114
114
|
};
|
|
115
115
|
blockPriceUsage: number;
|
|
116
116
|
reserved: number[];
|