@mithraic-labs/psylend-utils
Advanced tools
Comparing version 0.0.3-rc16 to 0.0.3-rc17
@@ -6,4 +6,6 @@ import * as instructions from "./instructions"; | ||
import * as keys from "./keys"; | ||
export { instructions, pdas, types, tools, keys }; | ||
import * as decode from "./decode"; | ||
import * as math from "./decode"; | ||
export { instructions, pdas, types, tools, keys, decode, math }; | ||
export { PsyLend, PsyLendIdl } from "./idl"; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -18,4 +18,3 @@ /// <reference types="node" /> | ||
export declare const MARKET_REWARD_SIZE = 39968; | ||
export declare const MAX_RESERVES = 32; | ||
export declare const RESERVE_INFO_SIZE = 496; | ||
export declare const POSITION_SIZE = 160; | ||
export declare type AmountUnits = { | ||
@@ -111,13 +110,2 @@ tokens: {}; | ||
/** | ||
* When fetching a ReserveAccount, the ReserveStateStruct can be converted to a buffer and then read | ||
* using this function. | ||
* | ||
* Use `Buffer.from(reserve.state as any as number[])` to convert Reserve state to a buffer | ||
* @param buff | ||
* @returns | ||
*/ | ||
export declare const decodeReserveStateStruct: (buff: Buffer) => ReserveStateStruct; | ||
export declare const decodeReserveInfoStruct: (buff: Buffer) => JetMarketReserveInfo; | ||
export declare const decodeReserveInfoStructList: (buff: Buffer) => JetMarketReserveInfo[]; | ||
/** | ||
* Part of the reserve.rs struct, stores information that a reserve may need to interact with a | ||
@@ -318,2 +306,13 @@ * PsyFi vault. | ||
}; | ||
/** | ||
* Position record in an Obligation. Matches obligation.rs | ||
*/ | ||
export declare type Position = { | ||
account: PublicKey; | ||
noteAmount: BN; | ||
lastUpdated: BN; | ||
cummulativeRewardUnits: BN; | ||
side: BN; | ||
reserveIndex: BN; | ||
}; | ||
//# sourceMappingURL=types.d.ts.map |
{ | ||
"name": "@mithraic-labs/psylend-utils", | ||
"version": "0.0.3-rc16", | ||
"version": "0.0.3-rc17", | ||
"description": "Instructions and utilities for interacting with the PsyLend protocol", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
526552
23
13241