@openbook-dex/openbook-v2
Advanced tools
Comparing version 0.0.24 to 0.0.25
@@ -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 |
{ | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
637115
16887