Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@mithraic-labs/psylend-utils

Package Overview
Dependencies
Maintainers
4
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mithraic-labs/psylend-utils - npm Package Compare versions

Comparing version 0.0.3-rc16 to 0.0.3-rc17

dist/decode.d.ts

4

dist/index.d.ts

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc