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

@openbook-dex/openbook-v2

Package Overview
Dependencies
Maintainers
3
Versions
47
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@openbook-dex/openbook-v2 - npm Package Compare versions

Comparing version 0.0.24 to 0.0.25

1

dist/cjs/market.d.ts

@@ -26,2 +26,3 @@ /// <reference types="node" />

export declare function quoteLotsToUi(market: MarketAccount, quantity: BN): number;
export declare function quantityToUiBase(market: MarketAccount, quantity: BN, decimals: number): number;
export {};

@@ -6,3 +6,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.quoteLotsToUi = exports.baseLotsToUi = exports.priceNativeToUi = exports.priceLotsToUi = exports.priceLotsToNative = exports.uiQuoteToLots = exports.uiBaseToLots = exports.uiPriceToLots = exports.findAllMarkets = exports.findAccountsByMints = void 0;
exports.quantityToUiBase = exports.quoteLotsToUi = exports.baseLotsToUi = exports.priceNativeToUi = exports.priceLotsToUi = exports.priceLotsToNative = exports.uiQuoteToLots = exports.uiBaseToLots = exports.uiPriceToLots = exports.findAllMarkets = exports.findAccountsByMints = void 0;
const web3_js_1 = require("@solana/web3.js");

@@ -137,1 +137,5 @@ const client_1 = require("./client");

exports.quoteLotsToUi = quoteLotsToUi;
function quantityToUiBase(market, quantity, decimals) {
return (0, utils_1.toUiDecimals)(quantity.mul(market.baseLotSize).toNumber(), decimals);
}
exports.quantityToUiBase = quantityToUiBase;

@@ -120,1 +120,4 @@ import { PublicKey, } from '@solana/web3.js';

}
export function quantityToUiBase(market, quantity, decimals) {
return toUiDecimals(quantity.mul(market.baseLotSize).toNumber(), decimals);
}

@@ -26,3 +26,4 @@ /// <reference types="node" />

export declare function quoteLotsToUi(market: MarketAccount, quantity: BN): number;
export declare function quantityToUiBase(market: MarketAccount, quantity: BN, decimals: number): number;
export {};
//# sourceMappingURL=market.d.ts.map

2

package.json
{
"name": "@openbook-dex/openbook-v2",
"version": "0.0.24",
"version": "0.0.25",
"description": "Typescript Client for openbook-v2 program.",

@@ -5,0 +5,0 @@ "repository": "https://github.com/openbook-dex/openbook-v2/",

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